/* ==========================================================================
   MCM Consultora — hoja de estilos única (mobile-first)

   PALETA: verde salvia, elegida por la clienta. Es la única del sitio.
   El sitio NO es dark mode y no usa prefers-color-scheme: es una sola paleta
   con zonas claras y zonas oscuras. Por eso hay DOS sets de tokens:
     1) el set CLARO se declara en :root y gobierna todo por defecto;
     2) el set OSCURO se re-declara sobre los contenedores de fondo oscuro
        (ver el bloque inmediatamente después de :root). Como las custom
        properties heredan, todo lo que cuelga de ellos lo toma.
   Cambiar un color = tocar estos dos bloques, no las reglas de más abajo.
   ========================================================================== */

:root {
  /* Base — verde profundo.
     OJO: en las zonas CLARAS --navy es color de TEXTO; en las zonas oscuras
     se redefine como fondo (bloque de abajo). El mismo token cumple los dos
     roles porque nunca se usa como fondo en claro ni como texto en oscuro. */
  --navy: #263029;
  /* Acento verde salvia MCM */
  --gold: #43705A;
  --gold-light: #55856C;
  --gold-dark: #355947;
  --gold-glow: #E4EDE7;
  /* Verde legible sobre fondos claros (AA, 5.7:1 sobre blanco) — texto */
  --gold-text: #43705A;
  /* Acento botón CTA — azul apagado */
  --cta: #4E7C95;
  --cta-light: #416A80;
  --cta-dark: #3A6074;
  /* Neutros fríos cercanos al blanco */
  --cream: #E2E8E3;
  --white: #FFFFFF;
  --off-white: #F6F8F5;
  --gray-100: #DCE3DA;
  --gray-200: #C7D2C4;
  --gray-400: #8A968E;
  --gray-500: #5E6B62;
  --gray-600: #3F4C44;
  --text-dark: #263029;
  --radius: 8px;
  /* Pasteles verdes */
  --pastel-mint:     #EFF3EE;
  --pastel-sky:      #E8EEE7;
  --pastel-lavender: #EBF0EA;
  --pastel-sage:     #F1F5F0;
  /* Verde WhatsApp oscurecido para cumplir contraste AA con texto blanco (5.4:1) */
  --wa: #0f7a40;
  --wa-dark: #0c6234;
  --wa-ring: rgba(var(--wa-ring-rgb), 0.35);
  /* Texto sobre superficies oscuras */
  --on-dark: rgba(var(--on-dark-rgb), 0.88);
  --on-dark-soft: rgba(var(--on-dark-rgb), 0.70);
  /* Canales RGB: permiten componer rgba() sin fijar el color.
     Cambiar la paleta = cambiar estos canales, no cada regla. */
  --navy-rgb: 38, 48, 41;         /* = --navy  */
  --gold-rgb: 67, 112, 90;        /* = --gold  */
  --white-rgb: 255, 255, 255;     /* = --white */
  --on-dark-rgb: 255, 255, 255;   /* blancos traslúcidos sobre zonas OSCURAS */
  --surface-rgb: 255, 255, 255;   /* blancos traslúcidos sobre zonas CLARAS  */
  --wa-rgb: 15, 122, 64;          /* = --wa (marca WhatsApp) */
  --wa-ring-rgb: 37, 211, 102;    /* halo WhatsApp (marca)   */
  --shadow-rgb: 0, 0, 0;          /* sombras neutras */
  /* Fondo de página (distinto de la superficie de las tarjetas) */
  --page-bg: #F6F8F5;
  /* Fondo profundo (footer) */
  --navy-deep: #121714;
  /* Texto sobre el botón CTA y sobre WhatsApp */
  --on-cta: #FFFFFF;
  --wa-on: #fff;
  /* Semánticos. Hoy ningún componente los usa; quedan definidos para que
     existan si se agregan estados de éxito/aviso/error. */
  --success: #4E8C63;
  --warning: #B08240;
  --danger:  #AD5A54;
  /* Layout */
  --container: 1140px;
  --nav-h: 72px;
}

/* ──────────────────────────────────────────────────────────────────────
   SET OSCURO — sólo sobre los contenedores de fondo oscuro.
   Acá el verde primario se aclara (#43705A muere contra el fondo: 3.2:1)
   y el texto del botón CTA se invierte a oscuro.

   Dos detalles que parecen redundantes y no lo son:
   · --on-dark / --on-dark-soft se declaran en :root con var(--on-dark-rgb)
     adentro, así que su var() YA quedó resuelto contra el --on-dark-rgb de
     :root y no toma el override de acá. Hay que re-declararlos enteros.
   · #navbar no cuelga del .hero en el DOM, pero mientras no scrolleó está
     transparente sobre el hero oscuro: necesita su propia regla. Al
     scrollear toma fondo claro, deja de matchear y vuelve solo al set claro.
   · .nav-links.open es el overlay del menú mobile, oscuro incluso con el
     navbar ya scrolleado.
   ────────────────────────────────────────────────────────────────────── */
.hero,
.section-dark,
.selector,
.cta-final,
#navbar:not(.scrolled),
.nav-links.open,
footer {
  /* Fondos */
  --navy: #121714;
  --navy-rgb: 18, 23, 20;
  --navy-deep: #0E120F;           /* footer, un paso más profundo que --navy */
  /* Texto */
  --cream: #E2E8E3;
  --on-dark-rgb: 226, 232, 227;   /* compone superficies y bordes traslúcidos:
                                     @3% ≈ superficie #1A201C, @9% ≈ borde */
  --on-dark:      rgba(226, 232, 227, 0.88);
  --on-dark-soft: rgba(226, 232, 227, 0.70);
  /* Primario aclarado */
  --gold:       #7FB396;
  --gold-text:  #7FB396;
  --gold-light: #92C2A6;
  --gold-dark:  #6BA285;
  --gold-rgb:   127, 179, 150;
  --gold-glow:  #223229;
  /* Acento y botón CTA */
  --cta:       #7FA9C2;
  --cta-light: #93B8CE;
  --cta-dark:  #6B93AB;
  --on-cta:    #12211A;           /* texto oscuro sobre acento claro */
  /* Semánticos, versión oscura */
  --success: #6FB98A;
  --warning: #D3A868;
  --danger:  #D08A85;
}

/* NO cambian entre zonas ni con la paleta, a propósito:
     --wa / --wa-dark / --wa-ring / --wa-rgb / --wa-ring-rgb / --wa-on
       → verde WhatsApp, es color de marca ajeno.
     --shadow-rgb
       → las sombras siguen siendo negro neutro. */

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Evita que el #navbar fijo tape los anclajes */
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  font-family: 'Lato', sans-serif;
  background: var(--page-bg);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

/* ─── Accesibilidad base ─── */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.section-dark :focus-visible,
#navbar:not(.scrolled) :focus-visible {
  outline-color: var(--gold-light);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--navy);
  color: var(--cream);
  padding: 0.9rem 1.4rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

/* ==========================================================================
   NAV
   ========================================================================== */

#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 1.25rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, box-shadow 0.4s;
  background: transparent;
}

#navbar.scrolled {
  background: rgba(var(--white-rgb), 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(var(--navy-rgb), 0.10);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.4s;
  white-space: nowrap;
}

#navbar.scrolled .nav-logo { color: var(--navy); }
.nav-logo span { color: var(--gold); }
#navbar.scrolled .nav-logo span { color: var(--gold-text); }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px 6px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: background 0.3s;
}

#navbar.scrolled .menu-toggle span { background: var(--navy); }
#navbar.menu-open .menu-toggle span { background: var(--white); }

.nav-links {
  display: none;
  list-style: none;
}

.nav-links.open {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(var(--navy-rgb), 0.98);
  backdrop-filter: blur(20px);
  padding: 1rem 1.25rem 1.5rem;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.22);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}

.nav-links a {
  color: var(--on-dark-soft);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0;
  background: none;
  border: none;
  font-family: 'Lato', sans-serif;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.nav-links a:hover { color: var(--gold); }

.nav-links a[aria-current="page"] { color: var(--gold); }

/* Se escribe como `.nav-links a.nav-cta-btn` a propósito: `.nav-links a`
   declara `background: none` con más especificidad que `.nav-cta-btn` sola,
   y dejaba el botón sin fondo (texto navy sobre el hero oscuro). */
.nav-links a.nav-cta-btn {
  background: var(--cta);
  color: var(--on-cta) !important;
  padding: 0.85rem 1.6rem !important;
  border-radius: 4px;
  justify-content: center;
  margin-top: 0.75rem;
  min-height: 48px;
  transition: background 0.3s, transform 0.3s;
}

.nav-links a.nav-cta-btn:hover {
  background: var(--cta-light);
  color: var(--on-cta) !important;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */

.btn-gold,
.btn-outline,
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.9rem;
  min-height: 48px;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-gold {
  background: var(--cta);
  color: var(--on-cta);
}

.btn-gold:hover {
  background: var(--cta-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(var(--navy-rgb), 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  font-weight: 700;
  border: 1.5px solid rgba(var(--on-dark-rgb), 0.35);
}

.btn-outline:hover {
  border-color: rgba(var(--on-dark-rgb), 0.65);
  background: rgba(var(--on-dark-rgb), 0.06);
}

/* CTA principal: WhatsApp */
.btn-wa {
  background: var(--wa);
  color: var(--wa-on);
  box-shadow: 0 2px 0 rgba(var(--shadow-rgb), 0.12);
}

.btn-wa:hover {
  background: var(--wa-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(var(--wa-rgb), 0.35);
}

.btn-wa svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

.btn-wa-lg {
  font-size: 1rem;
  padding: 1.15rem 2.2rem;
  min-height: 56px;
  width: 100%;
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: stretch;
}

.btn-hint {
  font-size: 0.9rem;
  color: var(--on-dark-soft);
  margin-top: 0.9rem;
}

/* Sin esto el enlace hereda el azul por defecto del browser (#0000EE), que
   sobre el fondo oscuro da 1,8:1. Mismo tratamiento que .srv-block__more a. */
.btn-hint a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-hint a:hover { color: var(--gold-light); }

/* ==========================================================================
   HERO (home)
   ========================================================================== */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: calc(var(--nav-h) + 1.25rem) 1.25rem 2.5rem;
  background: var(--navy);
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; }

.hero-bg-img {
  position: absolute;
  inset: 0;
  background: url('/assets/img/hero-bg.webp') center center / cover no-repeat;
  opacity: 0.4;
  filter: brightness(0.7) contrast(1.1);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(var(--navy-rgb), 0.94) 0%, rgba(var(--navy-rgb), 0.80) 50%, rgba(var(--navy-rgb), 0.92) 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--gold-rgb), 0.10) 0%, transparent 65%);
  z-index: 2;
}

.hero-accent-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  z-index: 5;
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-content { animation: fadeUp 0.8s ease-out; }

/* Base compartida con las 7 landings. El tratamiento de marca del home
   (versalitas, cuerpo grande) va aparte, acotado con :not(.hero-landing):
   si se escribiera acá, las landings heredarían el H1 en mayúsculas. */
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 7vw, 3.6rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

.hero h1 em { font-style: italic; color: var(--gold); }

/* ─── Home: la marca es el elemento dominante ───
   El eyebrow se fusionó acá: "MCM Consultora" dejó de ser un rótulo chico
   arriba del H1 y pasó a ser el H1. Las mayúsculas las pone el CSS, así que
   el texto accesible y el que lee Google siguen en capitalización normal. */
.hero:not(.hero-landing) h1 {
  font-size: clamp(2rem, 8.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

/* Bajada del H1: era el H1 hasta ago-2026. Queda notoriamente por debajo de
   la marca y por encima del slogan. No es un <h2> a propósito: los <h2> de
   la home los usan las secciones y meter uno acá rompe el esquema. */
.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 5.6vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--gold);
  margin-bottom: 0.9rem;
  text-wrap: balance;
}

/* Slogan de marca. La clienta lo repite tres veces en su documento: es el
   eje de la marca, así que va destacado y no como un párrafo más. */
.hero-slogan {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 4.8vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--cream);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.hero-slogan em { font-style: italic; color: var(--gold); }

.hero-closer {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--gold-light);
  padding-top: 0.9rem;
  margin-bottom: 1.5rem;
  border-top: 1px solid rgba(var(--gold-rgb), 0.28);
  max-width: 420px;
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(var(--on-dark-rgb), 0.82);
  margin-bottom: 1.1rem;
  font-weight: 300;
  max-width: 480px;
}

/* Línea de rubros. Va debajo de los CTA: el botón de WhatsApp tiene que
   entrar en el primer viewport de 360×640 y los chips no pueden empujarlo. */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  list-style: none;
  margin-top: 1.5rem;
  max-width: 560px;
}

.hero-chips li {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  position: relative;
  padding-right: 0.65rem;
}

.hero-chips li:not(:last-child)::after {
  content: '·';
  position: absolute;
  right: -0.1rem;
  color: rgba(var(--gold-rgb), 0.55);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  max-width: 420px;
}

.hero-visual { display: none; }

.hero-card {
  background: rgba(var(--on-dark-rgb), 0.035);
  border: 1px solid rgba(var(--on-dark-rgb), 0.07);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  backdrop-filter: blur(6px);
  transition: border-color 0.3s;
}

.hero-card:hover { border-color: rgba(var(--gold-rgb), 0.32); }

.hero-card.highlight {
  border-color: rgba(var(--gold-rgb), 0.26);
  background: rgba(var(--gold-rgb), 0.08);
}

.hero-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.3rem;
}

.hero-card p {
  font-size: 0.9rem;
  color: var(--on-dark-soft);
  line-height: 1.55;
  font-weight: 300;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Hero de landing (más compacto que el del home) ─── */

.hero-landing {
  min-height: 0;
  padding: calc(var(--nav-h) + 2.5rem) 1.25rem 3rem;
  align-items: flex-start;
}

.hero-landing .hero-inner { display: block; }
.hero-landing .hero-content { max-width: 720px; }

.hero-landing h1 {
  font-size: clamp(1.9rem, 6.4vw, 3rem);
  margin-bottom: 1rem;
}

.hero-landing .hero-sub {
  max-width: 640px;
  margin-bottom: 1.75rem;
}

/* Breadcrumbs — van dentro de .hero-inner */
.breadcrumb { margin-bottom: 1.25rem; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: rgba(var(--on-dark-rgb), 0.72);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--gold); text-decoration: underline; }

.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: 0.4rem;
  color: rgba(var(--on-dark-rgb), 0.4);
}

.breadcrumb [aria-current="page"] { color: var(--gold); }

/* ==========================================================================
   STATS BAR
   ========================================================================== */

.stats-bar {
  background: var(--pastel-mint);
  padding: 2.5rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
}

.stats-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.25rem;
}

.stat-item { text-align: center; }

.stat-item h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.stat-item h3 span { color: var(--gold-text); }

.stat-item h3.stat-text {
  font-size: 1.5rem;
  line-height: 1.15;
}

.stat-item p {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-top: 0.5rem;
}

/* ==========================================================================
   SECCIONES — comunes
   ========================================================================== */

section { padding: 3.75rem 1.25rem; }

.section-inner { max-width: var(--container); margin: 0 auto; }

.section-label {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.75rem, 5.2vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 0.75rem;
  text-wrap: balance;
}

.section-desc {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 620px;
  line-height: 1.7;
  font-weight: 300;
}

.section-hint {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--gray-500);
  margin-top: 0.4rem;
}

.section-head { margin-bottom: 2.25rem; }

.section-dark { background: var(--navy); color: var(--cream); }

/* .selector es zona oscura (pinta su propio background: var(--navy)) pero no
   lleva la clase .section-dark, así que no recibía estos overrides: el
   .section-title quedaba en var(--navy) sobre un fondo var(--navy), es decir
   invisible. Va listado acá en vez de agregarle .section-dark en el HTML
   porque .section-dark también fija el background, y el de .selector ya está
   declarado en su propia regla. */
.section-dark .section-title,
.selector .section-title { color: var(--cream); }
.section-dark .section-desc,
.selector .section-desc { color: var(--on-dark-soft); }
.section-dark .section-hint,
.selector .section-hint { color: var(--on-dark-soft); }
.section-dark .section-label,
.selector .section-label { color: var(--gold); }

.section-pastel {
  background: var(--pastel-sky);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

.section-gold-top { position: relative; }

.section-gold-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
}

/* ==========================================================================
   5.2 — ¿EN QUÉ PODEMOS AYUDARTE? (tarjetas de entrada)
   ========================================================================== */

.help-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.help-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--pastel-mint);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.help-card:nth-child(2) { background: var(--pastel-sky); }
.help-card:nth-child(3) { background: var(--pastel-lavender); }
.help-card:nth-child(4) { background: var(--pastel-sage); }

.help-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.3s;
}

.help-card:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 24px rgba(var(--shadow-rgb), 0.07);
  transform: translateY(-2px);
}

.help-card:hover::before { opacity: 1; }

.help-icon {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  background: rgba(var(--surface-rgb), 0.7);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.help-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold-text);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.help-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
}

.help-card p {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.6;
  font-weight: 300;
}

.help-card .card-arrow {
  margin-top: auto;
  padding-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-text);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.help-card:hover .card-arrow { text-decoration: underline; }

/* ==========================================================================
   5.3 — SELECTOR "¿QUÉ TRÁMITE NECESITÁS?"
   ========================================================================== */

.selector {
  background: var(--navy);
  color: var(--cream);
}

.selector-box {
  max-width: 820px;
  margin: 2rem auto 0;
  background: rgba(var(--on-dark-rgb), 0.04);
  border: 1px solid rgba(var(--on-dark-rgb), 0.09);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
}

.selector-legend {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 1.1rem;
  padding: 0;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  border: 0;
  padding: 0;
  margin: 0;
}

.chip { position: relative; }

.chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  margin: 0;
  cursor: pointer;
}

.chip label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.05rem;
  min-height: 48px;
  border-radius: 999px;
  border: 1.5px solid rgba(var(--on-dark-rgb), 0.22);
  background: rgba(var(--on-dark-rgb), 0.03);
  color: var(--on-dark);
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.chip label::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid rgba(var(--on-dark-rgb), 0.45);
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px;
  transition: background-color 0.25s, border-color 0.25s;
}

.chip input:checked + label {
  border-color: var(--gold);
  background: rgba(var(--gold-rgb), 0.16);
  color: var(--white);
}

.chip input:checked + label::before {
  background-color: var(--gold);
  border-color: var(--gold);
  /* tilde en SVG inline, color --navy */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%232b2724' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5l3.2 3.2L13 5'/%3E%3C/svg%3E");
}

.chip input:focus-visible + label {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

.chip input:hover + label { border-color: rgba(var(--gold-rgb), 0.55); }

.selector-actions {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(var(--on-dark-rgb), 0.09);
}

.selector-actions .btn-wa { width: 100%; }

.btn-wa:disabled,
.btn-wa[aria-disabled="true"] {
  background: rgba(var(--on-dark-rgb), 0.10);
  color: rgba(var(--on-dark-rgb), 0.45);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.selector-status {
  font-size: 0.9rem;
  color: var(--on-dark-soft);
  margin-top: 0.85rem;
  min-height: 1.35rem;
}

/* ==========================================================================
   5.4 — SERVICIOS
   ========================================================================== */

/* Todo acotado con clases .srv-*: escribir `details`, `summary`, `ul` o `li`
   a secas alcanzaría también los FAQ de las 7 landings. */

/* ─── Grid de 8 tarjetas (atajos a los bloques de abajo) ─── */

.srv-cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin-bottom: 2.5rem;
}

.srv-card {
  height: 100%;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.1rem 0.7rem;
  text-align: center;
  text-decoration: none;
  background: rgba(var(--on-dark-rgb), 0.03);
  border: 1px solid rgba(var(--on-dark-rgb), 0.09);
  border-radius: var(--radius);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.srv-card:hover {
  background: rgba(var(--on-dark-rgb), 0.07);
  border-color: rgba(var(--gold-rgb), 0.32);
  transform: translateY(-2px);
}

.srv-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--gold-glow);
  border: 1px solid rgba(var(--gold-rgb), 0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.srv-card__icon svg,
.srv-block__icon svg {
  width: 21px;
  height: 21px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.srv-card__label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1.3;
  color: var(--cream);
  text-wrap: balance;
}

/* ─── Bloques desplegables (<details> nativo) ─── */

.srv-block {
  background: rgba(var(--on-dark-rgb), 0.03);
  border: 1px solid rgba(var(--on-dark-rgb), 0.09);
  border-radius: var(--radius);
  margin-bottom: 0.7rem;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}

.srv-block[open] {
  background: rgba(var(--on-dark-rgb), 0.05);
  border-color: rgba(var(--gold-rgb), 0.34);
}

.srv-block > summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 0.85rem;
  align-items: start;
  padding: 1.15rem;
  min-height: 56px;
  cursor: pointer;
  list-style: none;
}

.srv-block > summary::-webkit-details-marker { display: none; }
.srv-block > summary:hover { background: rgba(var(--on-dark-rgb), 0.04); }

.srv-block__icon {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--gold-glow);
  border: 1px solid rgba(var(--gold-rgb), 0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.srv-block__text { min-width: 0; }

.srv-block__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--cream);
}

.srv-block__lead {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--on-dark-soft);
  max-width: 65ch;
}

.srv-block__toggle {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold);
}

.srv-block__toggle svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* Sólo transform: `visibility` es discreta y no se anima (bug 10.4) */
  transition: transform 0.3s;
}

.srv-block[open] .srv-block__toggle svg { transform: rotate(180deg); }

.srv-block__body { padding: 1.25rem 1.15rem 1.35rem; }

.srv-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 1.75rem;
  margin-bottom: 1.35rem;
}

.srv-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--on-dark-soft);
}

.srv-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.srv-block__more {
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  line-height: 1.7;
}

.srv-block__more a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.srv-block__more a:hover { color: var(--gold-light); }

.srv-block__cta { align-self: flex-start; }

/* ==========================================================================
   5.5 — ¿CÓMO TRABAJAMOS? (timeline)
   ========================================================================== */

.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  counter-reset: step;
}

.timeline .step {
  position: relative;
  padding: 0 0 2rem 3.25rem;
}

.timeline .step:last-child { padding-bottom: 0; }

/* Línea vertical en móvil */
.timeline .step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.1rem;
  top: 2.6rem;
  bottom: 0.35rem;
  width: 2px;
  background: var(--gray-200);
}

.step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
  color: var(--gold-text);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.timeline .step h3 {
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
  margin-bottom: 0.4rem;
  padding-top: 0.35rem;
}

.timeline .step p {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.6;
  font-weight: 300;
}

/* ==========================================================================
   5.4 — QUIÉNES SOMOS
   ========================================================================== */

.about-body { max-width: 720px; }

.about-body > p {
  font-size: 1.02rem;
  line-height: 1.8;
  font-weight: 300;
  color: var(--gray-600);
}

.about-body > p + p { margin-top: 1.1rem; }
.about-body strong { font-weight: 700; color: var(--navy); }

/* Dos clases (0,2,0) para ganarle a `.about-body > p` (0,1,1) sin !important */
.about-body .about-highlight {
  margin-top: 1.7rem;
  padding: 1.15rem 1.35rem;
  background: var(--white);
  border-left: 3px solid var(--gold-dark);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--navy);
}

.about-body .brand-signature {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-200);
}

.brand-signature strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--navy);
}

.brand-signature span {
  display: block;
  margin-top: 0.15rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  /* --gold-text es el dorado oscurecido que cumple AA sobre fondo claro */
  color: var(--gold-text);
}

/* ==========================================================================
   5.5 — ¿POR QUÉ ELEGIR MCM?
   ========================================================================== */

.why-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-top: 2rem;
}

.why-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.why-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-glow);
  border: 1px solid var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.why-check svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold-text);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-list h3 {
  font-size: 1rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.why-list p {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.6;
  font-weight: 300;
}

/* Variante sobre fondo oscuro */
.section-dark .why-check { border-color: var(--gold); }
.section-dark .why-check svg { stroke: var(--gold); }
.section-dark .why-list h3 { color: var(--cream); }
.section-dark .why-list p { color: var(--on-dark-soft); }

/* Bloque breve de misión/valores al pie de la sección */
.mision-brief {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--gray-100);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.mision-brief h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.mision-brief p {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.6;
  font-weight: 300;
}

/* ==========================================================================
   5.8 — CASOS REALES
   ========================================================================== */

.casos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.caso-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.caso-card:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 24px rgba(var(--shadow-rgb), 0.07);
}

.caso-media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--pastel-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--gray-100);
}

.caso-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.caso-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-400);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
}

.caso-placeholder svg {
  width: 34px;
  height: 34px;
  stroke: var(--gray-400);
  fill: none;
  stroke-width: 1.4;
}

.caso-body { padding: 1.25rem 1.25rem 1.4rem; }

.caso-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.5rem;
}

.caso-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.caso-card p {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.6;
  font-weight: 300;
}

/* ==========================================================================
   5.9 — TESTIMONIOS
   ========================================================================== */

.testimonios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.testimonio {
  background: var(--pastel-mint);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.stars { display: flex; gap: 0.15rem; }

.stars svg {
  width: 17px;
  height: 17px;
  fill: var(--gold-dark);
}

.testimonio blockquote {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gray-600);
  font-weight: 300;
  font-style: italic;
}

.testimonio figcaption {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-top: auto;
}

.testimonio figcaption strong {
  display: block;
  color: var(--navy);
  font-weight: 700;
  font-style: normal;
}

/* ==========================================================================
   5.10 — ORGANISMOS
   ========================================================================== */

.organismos {
  padding: 2.75rem 1.25rem;
  background: var(--white);
  text-align: center;
}

.organismos-label {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 1.75rem;
}

.organismos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.75rem 2rem;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.organismo-logo {
  height: 46px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.15);
  opacity: 0.6;
  transition: filter 0.3s, opacity 0.3s;
}

.organismo-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ==========================================================================
   5.11 — CONTACTO
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  margin-top: 2rem;
}

.contact-info > p {
  font-size: 1rem;
  color: var(--on-dark-soft);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--cream);
  padding: 0.9rem 1.1rem;
  min-height: 56px;
  background: rgba(var(--on-dark-rgb), 0.03);
  border: 1px solid rgba(var(--on-dark-rgb), 0.09);
  border-radius: var(--radius);
  transition: background 0.3s, border-color 0.3s;
}

.channel:hover {
  background: rgba(var(--on-dark-rgb), 0.07);
  border-color: rgba(var(--gold-rgb), 0.32);
}

.channel-icon {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--gold-glow);
  border: 1px solid rgba(var(--gold-rgb), 0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.channel-icon svg.icon-filled { fill: var(--gold); stroke: none; }

.channel-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.1rem;
}

.channel-text p {
  font-size: 0.95rem;
  color: var(--on-dark);
  margin: 0;
  font-weight: 400;
  word-break: break-word;
}

.contact-cta {
  background: rgba(var(--gold-rgb), 0.07);
  border: 1px solid rgba(var(--gold-rgb), 0.26);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
}

.contact-cta h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.contact-cta p {
  font-size: 0.95rem;
  color: var(--on-dark-soft);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 1.25rem;
}

.cobertura {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(var(--on-dark-rgb), 0.09);
}

.cobertura h3 {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.cobertura p {
  font-size: 0.95rem;
  color: var(--on-dark-soft);
  line-height: 1.6;
  font-weight: 300;
}

/* ==========================================================================
   LANDINGS — componentes propios
   ========================================================================== */

/* "¿Qué incluye este servicio?" */
.incluye-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 2rem;
}

.incluye-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-600);
  font-weight: 300;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.incluye-list li strong {
  color: var(--navy);
  font-weight: 700;
}

.incluye-list svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold-text);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* "¿Qué documentación se necesita?" */
.docs-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.docs-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-600);
  font-weight: 300;
}

.docs-list li::before {
  content: '';
  position: absolute;
  left: 0.25rem;
  top: 0.62rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-dark);
}

.nota {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  background: var(--pastel-sage);
  border-left: 3px solid var(--gold-dark);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-600);
  font-weight: 300;
}

.nota strong { color: var(--navy); font-weight: 700; }

/* FAQ — <details> nativo, funciona sin JS */
.faq-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item[open] { border-color: var(--gold-dark); }

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  min-height: 56px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary h3 {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '';
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  margin-top: 0.3rem;
  border-right: 2px solid var(--gold-text);
  border-bottom: 2px solid var(--gold-text);
  transform: rotate(45deg);
  transition: transform 0.3s;
}

.faq-item[open] summary::after { transform: rotate(-135deg); }

.faq-item summary:hover { background: var(--pastel-mint); }

.faq-answer {
  padding: 0 1.15rem 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-600);
  font-weight: 300;
}

.faq-answer p + p { margin-top: 0.8rem; }

/* CTA final de landing */
.cta-final {
  background: var(--navy);
  color: var(--cream);
  text-align: center;
}

.cta-final .section-inner { max-width: 720px; }

.cta-final h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.9rem;
  line-height: 1.2;
  text-wrap: balance;
}

.cta-final > .section-inner > p {
  font-size: 1rem;
  color: var(--on-dark-soft);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1.75rem;
}

.cta-final .btn-row { max-width: 420px; margin: 0 auto; }

/* Interlinking */
.related {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(var(--on-dark-rgb), 0.12);
}

.related h3 {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.related ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.related a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--on-dark-rgb), 0.22);
  color: var(--on-dark);
  text-decoration: none;
  font-size: 0.9rem;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.related a:hover {
  border-color: var(--gold);
  background: rgba(var(--gold-rgb), 0.12);
  color: var(--white);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  background: var(--navy-deep);
  padding: 2.5rem 1.25rem;
  border-top: 1px solid rgba(var(--on-dark-rgb), 0.06);
  /* Espacio para que el botón flotante no tape el contenido */
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.footer-brand span { color: var(--gold); }

.footer-tagline {
  font-size: 0.95rem;
  color: var(--on-dark-soft);
  line-height: 1.6;
  font-weight: 300;
  max-width: 320px;
}

.footer-heading {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.footer-nav a {
  font-size: 0.95rem;
  color: var(--on-dark-soft);
  text-decoration: none;
  transition: color 0.3s;
  display: inline-block;
  padding: 0.45rem 0;
}

.footer-nav a:hover { color: var(--gold); text-decoration: underline; }

.footer-bottom {
  max-width: var(--container);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(var(--on-dark-rgb), 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(var(--on-dark-rgb), 0.65);
  line-height: 1.6;
}

.footer-note {
  font-size: 0.8rem !important;
  color: rgba(var(--on-dark-rgb), 0.5) !important;
  max-width: 720px;
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */

.wa-float {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 1100;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--wa-on);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(var(--shadow-rgb), 0.3), 0 0 0 4px var(--wa-ring);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  /* visibility es discreta y no se anima: sólo se animan opacity y transform */
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.3s;
}

.wa-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wa-float:hover { background: var(--wa-dark); }

.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* Sin JS, el botón igual debe verse */
.no-js .wa-float { opacity: 1; visibility: visible; transform: none; }

/* ==========================================================================
   ANIMACIONES
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* Sin JS no se oculta nada */
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-content, .hero-visual { animation: none; }
}

/* ==========================================================================
   BREAKPOINTS
   ========================================================================== */

@media (min-width: 601px) {
  section { padding: 4.5rem 2rem; }
  #navbar { padding: 0 2rem; }
  .hero { padding-left: 2rem; padding-right: 2rem; }
  .hero-landing { padding-top: calc(var(--nav-h) + 3.5rem); padding-bottom: 4rem; }
  .stats-bar { padding: 3rem 2rem; }
  .stats-inner { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .organismos { padding: 3.25rem 2rem; }
  footer { padding-left: 2rem; padding-right: 2rem; }

  .help-grid { grid-template-columns: repeat(2, 1fr); }

  /* Servicios: el contenedor se limita a 720px y se centra. Los bloques
     siguen a una columna, pero la lista interna pasa a dos: ocho ítems en
     una sola fila dejaban el 90% del ancho vacío. */
  #servicios .section-inner { max-width: 720px; }
  .srv-cards { grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
  .srv-list { grid-template-columns: repeat(2, 1fr); }
  .casos-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonios-grid { grid-template-columns: repeat(3, 1fr); }
  .incluye-list { grid-template-columns: repeat(2, 1fr); }
  .docs-list { grid-template-columns: repeat(2, 1fr); }
  .why-list { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; }
  .about-body { max-width: 68ch; }
  .mision-brief { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
  /* Cuatro bloques desde que el pie suma la columna "Secciones": en tablet
     van 2×2 y recién en desktop entran los cuatro en fila (ver 961px). */
  .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-note { text-align: right; }

  .hero-actions { flex-direction: row; max-width: none; }
  .btn-row { flex-direction: row; }
  .btn-wa-lg { width: auto; }
  .selector-actions .btn-wa { width: auto; min-width: 300px; }
  .cta-final .btn-row { justify-content: center; max-width: none; }
  .organismo-logo { height: 52px; max-width: 165px; }
}

@media (min-width: 961px) {
  section { padding: 6rem 2rem; }

  .menu-toggle { display: none; }

  .nav-links {
    display: flex;
    align-items: center;
    /* 1.5rem y no 2.25: con cuatro entradas + el CTA, "¿Tenés un proyecto?"
       desbordaba el nav justo en 961px. */
    gap: 1.5rem;
    position: static;
    flex-direction: row;
    background: none;
    backdrop-filter: none;
    padding: 0;
    border: 0;
    max-height: none;
    overflow: visible;
  }

  .nav-links a {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: rgba(var(--on-dark-rgb), 0.85);
    padding: 0.5rem 0;
    width: auto;
  }

  #navbar.scrolled .nav-links a { color: var(--gray-600); }

  #navbar.scrolled .nav-links a:hover { color: var(--gold-text); }

  #navbar.scrolled .nav-links a[aria-current="page"] { color: var(--gold-text); }

  .nav-cta-btn {
    margin-top: 0;
    padding: 0.65rem 1.5rem !important;
    min-height: 44px;
    font-size: 0.8rem !important;
  }

  .hero { padding-top: var(--nav-h); }

  /* Home: una sola columna, porque las tarjetas de la derecha quedaron
     comentadas en el HTML. Se centra el contenido para que no quede una
     columna angosta pegada a la izquierda con medio viewport vacío al lado.
     Todo acotado con :not(.hero-landing) para no tocar las 7 landings. */
  .hero:not(.hero-landing) .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
    justify-items: center;
  }

  .hero:not(.hero-landing) .hero-content {
    max-width: 780px;
    text-align: center;
  }

  .hero:not(.hero-landing) .hero-sub {
    max-width: 62ch;
    margin-left: auto;
    margin-right: auto;
  }

  .hero:not(.hero-landing) .hero-closer {
    max-width: 34ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero:not(.hero-landing) .hero-tagline {
    max-width: 24ch;
    margin-left: auto;
    margin-right: auto;
  }

  .hero:not(.hero-landing) .hero-slogan { margin-bottom: 1.25rem; }
  .hero:not(.hero-landing) .hero-actions { justify-content: center; }

  .hero:not(.hero-landing) .hero-chips {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-landing .hero-inner { display: block; }

  /* Las reglas de .hero-visual / .hero-card se conservan a propósito: el
     markup está comentado, no borrado, y tiene que poder reactivarse. */
  .hero-visual {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    animation: fadeUp 0.8s ease-out 0.2s both;
  }

  .hero-sub { font-size: 1.05rem; line-height: 1.75; }
  .hero-chips li { font-size: 0.8rem; }

  .hero:not(.hero-landing) .hero-closer { font-size: 1.1rem; }

  .help-grid { grid-template-columns: repeat(4, 1fr); }
  .help-card { padding: 1.9rem 1.6rem; }

  /* Servicios en desktop: los bloques vuelven al contenedor de 1140px y el
     summary se distribuye en horizontal — icono, texto, toggle a la derecha. */
  /* Quiénes somos en dos columnas: el título a la izquierda y el cuerpo a la
     derecha. A una sola columna, 68ch de texto dentro de 1140px dejaban una
     franja muerta de casi 400px al costado. */
  #quienes-somos .section-inner {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3.5rem;
    align-items: start;
  }

  #quienes-somos .section-head { margin-bottom: 0; }

  #servicios .section-inner { max-width: var(--container); }
  .srv-cards { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .srv-card { min-height: 124px; padding: 1.4rem 1rem; }
  .srv-card__label { font-size: 0.88rem; }

  .srv-block > summary {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.1rem;
    padding: 1.4rem 1.6rem;
  }

  .srv-block__toggle {
    grid-column: auto;
    justify-self: end;
    white-space: nowrap;
  }

  .srv-block__body { padding: 1.5rem 1.6rem 1.6rem; }
  .srv-list { grid-template-columns: repeat(3, 1fr); }

  .selector-box { padding: 2.25rem 2rem; }

  .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }

  .why-list { gap: 1.75rem 3rem; }

  /* Timeline horizontal en desktop */
  .timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 1rem;
  }

  .timeline .step {
    padding: 3.5rem 1.25rem 0;
    text-align: center;
  }

  .timeline .step:not(:last-child)::after {
    left: calc(50% + 1.6rem);
    right: calc(-50% + 1.6rem);
    top: 1.1rem;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .step-num {
    left: 50%;
    transform: translateX(-50%);
    width: 2.2rem;
    height: 2.2rem;
  }

  .timeline .step h3 { padding-top: 0; }

  .section-pastel .step-num { background: var(--pastel-sky); }

  .organismos { padding: 3.5rem 2rem; }
  .organismos-row { gap: 3.5rem; }
  .organismo-logo { height: 55px; max-width: 180px; }

  .wa-float { width: 62px; height: 62px; right: 1.5rem; bottom: 1.5rem; }
  .wa-float svg { width: 32px; height: 32px; }

  /* La columna de servicios lleva los nombres largos del documento de la
     clienta ("Habilitaciones sanitarias y municipales"), así que necesita
     más ancho que las otras tres. */
  .footer-inner { grid-template-columns: 1.3fr 1.3fr 0.8fr 1.1fr; }
}

/* Pantallas muy anchas. Sin las tarjetas del hero, el bloque de texto quedaba
   como una isla chica en 2560px: la tipografía tenía tope en 3.6rem y no
   acompañaba el ancho. Se escala el texto que ya existe; no se agrega copy. */
@media (min-width: 1441px) {
  .hero:not(.hero-landing) .hero-content { max-width: 900px; }
  .hero:not(.hero-landing) h1 { font-size: 5.2rem; }
  .hero:not(.hero-landing) .hero-tagline { font-size: 2.6rem; }
  .hero:not(.hero-landing) .hero-slogan { font-size: 2.35rem; }
  .hero:not(.hero-landing) .hero-sub { font-size: 1.2rem; max-width: 58ch; }
  .hero:not(.hero-landing) .hero-closer { font-size: 1.25rem; max-width: 38ch; }
  .hero:not(.hero-landing) .hero-chips li { font-size: 0.85rem; }
}
