/* ═══════════════════════════════════════════════
   MPD Propiedad Intelectual — Sistema de Diseño
   Inspirado en la estética de firmas legales de élite
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=Raleway:wght@100;200;300;700;800;900&display=swap');

/* ── Variables ── */
:root {
  --bg:          #FFFFFF;
  --bg-alt:      #F4F6FC;
  --bg-dark:     #080F1E;
  --bg-dark-2:   #0E1830;
  --bg-card:     #FFFFFF;

  --accent:      #2755E8;
  --accent-h:    #1A3FC7;
  --accent-soft: rgba(39, 85, 232, 0.08);

  --text:        #1A1A1A;
  --text-mid:    #555555;
  --text-light:  #888888;
  --text-white:  #FFFFFF;
  --text-warm:   #C8C0B8;

  --border:      #E8E3DC;
  --border-dark: rgba(255,255,255,0.10);

  --serif:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow:    0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);

  --radius: 3px;
  --max-w:  1180px;
  --sec-py: 96px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--sans); }

/* ── Skip link ── */
.skip { position: absolute; top: -100px; left: 16px; background: var(--accent); color: #fff; padding: 8px 18px; border-radius: var(--radius); z-index: 9999; font-size: 0.82rem; transition: top .2s; }
.skip:focus { top: 8px; }

/* ══════════════════════════════════════
   HEADER / NAVEGACIÓN
══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  color: #FFFFFF;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.90);
  color: #FFFFFF;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.logo-mark--image {
  padding: 5px;
  overflow: hidden;
  background: #FFFFFF;
}

.logo-mark--image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-wordmark {
  display: inline-block;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #AAAAAA;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.site-nav a:hover { color: #FFFFFF; background: rgba(255,255,255,0.06); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav li.nav-cta a {
  background: var(--accent);
  color: #fff;
  padding: 8px 20px;
  margin-left: 8px;
}
.site-nav li.nav-cta a:hover { background: var(--accent-h); }

.site-nav li.lang-item {
  margin-left: 6px;
  margin-right: 2px;
}

.site-nav .lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
}

.site-nav .lang-switch a {
  padding: 4px 6px;
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: #AAAAAA;
}

.site-nav .lang-switch a:hover,
.site-nav .lang-switch a[aria-current="true"] {
  color: #FFFFFF;
  background: rgba(255,255,255,0.10);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 900px) {
  .header-inner { padding: 0 24px; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--bg-dark-2);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 16px 24px 24px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 2px; }
  .site-nav a { padding: 10px 12px; display: block; font-size: 0.85rem; }
  .site-nav li.nav-cta a { margin-left: 0; margin-top: 8px; }
  .site-nav li.lang-item { margin: 8px 0 4px; }
  .site-nav .lang-switch a { display: inline-flex; padding: 7px 10px; font-size: 0.76rem; }
}

/* ══════════════════════════════════════
   HERO — HOMEPAGE (imagen de fondo)
══════════════════════════════════════ */
.hero-home {
  position: relative;
  min-height: 760px;
  display: block;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero-home__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.78;
  filter: contrast(1.08) brightness(0.78);
}

.hero-home__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8,15,30,0.94) 0%, rgba(8,15,30,0.66) 38%, rgba(8,15,30,0.30) 64%, rgba(8,15,30,0.78) 100%),
    linear-gradient(180deg, rgba(8,15,30,0.54) 0%, rgba(8,15,30,0.06) 44%, rgba(8,15,30,0.90) 100%);
}

.hero-home__corner {
  position: absolute;
  z-index: 2;
  width: 28px;
  height: 28px;
}

.hero-home__corner--blue {
  left: 28px;
  bottom: 28px;
  background: var(--accent);
}

.hero-home__inner {
  position: relative;
  z-index: 3;
  max-width: 1320px;
  min-height: 450px;
  margin: 0 auto;
  padding: 86px 40px 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: 84px;
}

.hero-home__content {
  max-width: 700px;
  min-width: 0;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-tag::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero-home__content h1 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 200;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-home__content h1 .h1-bold {
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #FFFFFF;
}

.hero-home__content h1 .h1-light {
  font-weight: 100;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
}

.hero-home__content p {
  font-size: 1.05rem;
  color: #CCCCCC;
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero-home__copy {
  justify-self: end;
  max-width: 450px;
  min-width: 0;
}

.hero-home__copy p {
  font-size: 1.18rem;
  color: rgba(255,255,255,0.84);
  line-height: 1.45;
  margin-bottom: 30px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.mobile-only { display: none; }

.hero-services,
.hero-flags,
.hero-stats {
  position: relative;
  z-index: 3;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

.hero-services {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.62);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.hero-services a {
  color: #FFFFFF;
  font-size: 0.96rem;
  font-weight: 650;
  padding: 22px 28px 22px 0;
  margin-right: 28px;
  border-right: 1px solid rgba(255,255,255,0.34);
  transition: color .2s;
}

.hero-services a:last-child {
  border-right: 0;
  margin-right: 0;
}

.hero-services a:hover { color: #8EAAFF; }

.hero-flags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  padding-bottom: 4px;
}

.hero-flags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.82);
  font-size: 0.78rem;
  line-height: 1;
}

.hero-flags .hero-flags__label {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-powered {
  position: relative;
  z-index: 3;
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 40px 0;
  color: rgba(255,255,255,0.76);
  font-size: 0.82rem;
  line-height: 1.5;
}

.hero-powered strong {
  color: #FFFFFF;
  font-weight: 800;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 28px;
  padding-bottom: 48px;
}

.hero-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-stat span {
  display: block;
  margin-top: 8px;
  max-width: 150px;
  color: rgba(255,255,255,0.66);
  font-size: 0.78rem;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 640px) {
  .hero-home { min-height: auto; }
  .hero-home__inner {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    margin: 0;
    padding: 60px 24px 28px;
    gap: 28px;
  }
  .hero-home__content {
    max-width: 100%;
  }
  .hero-home__content h1 {
    font-size: 1.72rem;
    line-height: 1.32;
    letter-spacing: 0.02em;
  }
  .hero-home__content h1 .h1-bold,
  .hero-home__content h1 .h1-light {
    letter-spacing: 0.02em;
  }
  .mobile-only { display: block; }
  .hero-home__copy {
    justify-self: start;
    width: 100%;
    max-width: 100%;
  }
  .hero-home__copy p {
    font-size: 0.98rem;
    line-height: 1.58;
    max-width: 100%;
    overflow-wrap: break-word;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
    white-space: normal;
  }
  .hero-services,
  .hero-flags,
  .hero-powered,
  .hero-stats {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero-services a {
    width: 50%;
    margin-right: 0;
    padding: 15px 12px 15px 0;
    border-right: 0;
    font-size: 0.86rem;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding-bottom: 38px;
  }
  .hero-stat strong { font-size: 2rem; }
  .hero-stat span {
    font-size: 0.66rem;
    letter-spacing: 0.06em;
  }
  .hero-stat span { max-width: none; }
}

/* ══════════════════════════════════════
   HERO — PÁGINAS INTERNAS
══════════════════════════════════════ */
.hero-inner {
  background: var(--bg-dark);
  padding: 72px 40px 64px;
  border-bottom: 3px solid var(--accent);
}

.hero-inner__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: #666;
  margin-bottom: 20px;
}
.breadcrumb a { color: #888; transition: color .2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: #444; }

.hero-inner h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 760px;
}

.hero-inner p {
  font-size: 1.05rem;
  color: #AAAAAA;
  max-width: 580px;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .hero-inner { padding: 52px 24px 44px; }
}

/* ══════════════════════════════════════
   SECCIONES / LAYOUT
══════════════════════════════════════ */
.section {
  padding: var(--sec-py) 40px;
}
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: var(--text-white); }

.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Eyebrow + Title */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.section--dark .section-title { color: #FFFFFF; }

.section-lead {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 56px;
}
.section--dark .section-lead { color: #AAAAAA; }

/* ══════════════════════════════════════
   BOTONES
══════════════════════════════════════ */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 36px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-h); border-color: var(--accent-h); }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.07); }

.btn-outline-dark {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline-dark:hover { background: var(--accent); color: #fff; }

.btn-sm { padding: 10px 24px; font-size: 0.74rem; }

/* ══════════════════════════════════════
   TARJETAS DE SERVICIOS
══════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: box-shadow .3s, transform .3s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.card__icon {
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.card__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.card h2, .card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.card a.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 20px;
  transition: gap .2s;
}
.card a.card-link:hover { gap: 10px; }

/* Card dark variant */
.card--dark {
  background: var(--bg-dark-2);
  border-color: rgba(255,255,255,0.07);
  border-top-color: var(--accent);
}
.card--dark h2, .card--dark h3 { color: #FFFFFF; }
.card--dark p { color: #AAAAAA; }

/* ══════════════════════════════════════
   PRICE CARD
══════════════════════════════════════ */
.price-card {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #5BC2EE);
}
.price-card .price-amount {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 4px;
}
.price-card .price-note {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 24px;
}
.price-card .price-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ══════════════════════════════════════
   LISTA CON CHECK / BULLET DECORATIVO
══════════════════════════════════════ */
.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.65;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 3px;
  width: 20px;
  height: 20px;
  background: var(--accent-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-list--dark li {
  border-color: rgba(255,255,255,0.07);
  color: #AAAAAA;
}

/* ══════════════════════════════════════
   COMPLIANCE 2026
══════════════════════════════════════ */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 56px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.compliance-card {
  background: #FFFFFF;
  padding: 30px 24px;
}

.section--alt .compliance-card { background: var(--bg-alt); }

.compliance-card__kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.compliance-card h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 12px;
}

.compliance-card p {
  color: var(--text-mid);
  font-size: 0.86rem;
  line-height: 1.65;
}

/* ══════════════════════════════════════
   PROCESO EN PASOS
══════════════════════════════════════ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 36px; left: calc(16.66% + 20px); right: calc(16.66% + 20px);
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.step {
  text-align: center;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.step__num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 auto 24px;
}

.step h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.section--alt .step__num { background: var(--bg-alt); }

.step p {
  font-size: 0.87rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ══════════════════════════════════════
   DOS COLUMNAS (contenido + imagen/form)
══════════════════════════════════════ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.two-col--wide { grid-template-columns: 3fr 2fr; }

@media (max-width: 860px) {
  .two-col, .two-col--wide { grid-template-columns: 1fr; gap: 48px; }
}

/* ══════════════════════════════════════
   FORMULARIO DE CONTACTO
══════════════════════════════════════ */
.contact-form {
  background: var(--bg-dark);
  border-radius: 4px;
  padding: 44px 40px;
  border: 1px solid rgba(255,255,255,0.07);
}

.form-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 6px;
}
.form-subtitle {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 32px;
  line-height: 1.6;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
}

.field input,
.field textarea,
.field select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: #FFFFFF;
  width: 100%;
  transition: border-color .2s, background .2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.07);
}

.field input::placeholder,
.field textarea::placeholder { color: #555; }

.field textarea { resize: vertical; min-height: 100px; }

.form-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 16px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background .2s;
  margin-top: 4px;
}
.form-submit:hover { background: var(--accent-h); }

.form-note {
  font-size: 0.76rem;
  color: #666;
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

@media (max-width: 500px) {
  .form-row-2 { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }
}

/* ══════════════════════════════════════
   PILARES / VALORES
══════════════════════════════════════ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.pillar {
  background: var(--bg);
  padding: 36px 28px;
}
.section--alt .pillar { background: var(--bg-alt); }

.pillar__num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 12px;
}

.pillar h3 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pillar p {
  font-size: 0.87rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ══════════════════════════════════════
   QUOTE / HIGHLIGHT BAND
══════════════════════════════════════ */
.quote-band {
  background: var(--accent);
  padding: 56px 40px;
  text-align: center;
}

.quote-band blockquote {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.45;
  max-width: 780px;
  margin: 0 auto;
  font-style: italic;
}

.quote-band cite {
  display: block;
  font-size: 0.78rem;
  font-style: normal;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 20px;
}

/* ══════════════════════════════════════
   TABLA DE TIPOS (Guía PI)
══════════════════════════════════════ */
.pi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.pi-table th {
  background: var(--bg-dark);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 20px;
  text-align: left;
}
.pi-table th:first-child { border-radius: var(--radius) 0 0 0; }
.pi-table th:last-child { border-radius: 0 var(--radius) 0 0; }

.pi-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  vertical-align: top;
  line-height: 1.6;
}

.pi-table tr:last-child td { border-bottom: none; }
.pi-table tr:nth-child(even) td { background: var(--bg-alt); }
.pi-table td:first-child { font-weight: 600; color: var(--text); }
.pi-table td .badge-years {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
}

/* ══════════════════════════════════════
   TABS (Guía PI)
══════════════════════════════════════ */
.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 48px;
  gap: 0;
  overflow-x: auto;
}
.tab-btn {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 14px 28px;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ══════════════════════════════════════
   STATS ROW
══════════════════════════════════════ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 56px;
}

.stat {
  background: var(--bg-dark);
  padding: 36px 24px;
  text-align: center;
}

.stat__num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat__label {
  font-size: 0.78rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ══════════════════════════════════════
   TEAM CARD (Nosotros)
══════════════════════════════════════ */
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
}
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.team-card__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--border);
}
.team-card__body { padding: 24px; }
.team-card__name { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.team-card__role { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.team-card__bio { font-size: 0.87rem; color: var(--text-mid); line-height: 1.65; }

/* ══════════════════════════════════════
   BLOG
══════════════════════════════════════ */
.blog-hero .hero-inner__inner {
  max-width: 860px;
}

.blog-layout {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.blog-feed {
  min-width: 0;
}

.blog-entry {
  padding: 34px 0;
  border-top: 1px solid var(--border);
}

.blog-entry:first-of-type {
  padding-top: 20px;
}

.blog-entry__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-entry h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
}

.blog-entry__summary {
  display: grid;
  gap: 10px;
  padding-left: 22px;
  color: var(--text-mid);
  font-size: 0.96rem;
  line-height: 1.72;
}

.blog-entry__summary li::marker {
  color: var(--accent);
  font-weight: 800;
}

.blog-entry__sources {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.blog-entry__sources h3 {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}

.blog-entry__sources ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-entry__sources a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-mid);
  font-size: 0.82rem;
  transition: color .2s, border-color .2s;
}

.blog-entry__sources a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
  background: var(--bg-dark);
  padding: 72px 40px 32px;
  border-top: 3px solid var(--accent);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.footer-brand p { font-size: 0.87rem; color: var(--text-warm); line-height: 1.7; max-width: 280px; }

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 18px;
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 0.87rem;
  color: var(--text-warm);
  transition: color .2s;
}
.footer-col ul a:hover { color: #FFFFFF; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: #666; }
.footer-bottom a { color: var(--accent); transition: color .2s; }
.footer-bottom a:hover { color: #5BC2EE; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 48px 24px 24px; }
  .header-inner {
    width: 100%;
    max-width: 100%;
    padding: 0 18px;
    gap: 12px;
  }
  .logo { gap: 10px; }
  .logo-mark {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }
  .logo-wordmark {
    max-width: 145px;
    white-space: normal;
    font-size: 0.82rem;
    line-height: 1.15;
  }
}

/* ══════════════════════════════════════
   RESPONSIVE GENERAL
══════════════════════════════════════ */
@media (max-width: 860px) {
  :root { --sec-py: 64px; }
  .section { padding: var(--sec-py) 24px; }
  .hero-inner { padding: 52px 24px 44px; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid--4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .compliance-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .cards-grid, .cards-grid--2, .cards-grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .compliance-grid { grid-template-columns: 1fr; }
}
