/* =============================================================
   Detective Virtual · detectivevirtual.cl
   Sistema de diseño v5: azul medianoche — papel frío y tinta azul
   El verde queda SOLO como acento; el ambiente lo pone el azul.
   Cuerpo en papel; barra superior, pie y bloques de aviso en tinta oscura.
   Tipografías: Fraunces (titulares, serif) · Inter (texto)
   =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f3f6f8;
  --bg-2:      #e9eef2;
  --bg-3:      #dde5ea;
  --card:      #ffffff;
  --card-2:    #fafcfd;
  --ink:       #0d1a2b;
  --ink-soft:  #2c3e52;
  --mute:      #5a6e82;
  --dim:       #8598a8;
  --accent:    #0a6e5f;
  --accent-2:  #085447;
  --accent-ink:#ffffff;
  --accent-soft: rgba(10, 110, 95, 0.08);
  --coral:     #b0492b;
  --glass:     rgba(250, 252, 253, 0.78);
  --line:      rgba(13, 26, 43, 0.11);
  --line-2:    rgba(13, 26, 43, 0.17);
  --sombra:    0 12px 30px rgba(13, 26, 43, 0.07);
  --sombra-2:  0 24px 56px rgba(13, 26, 43, 0.12);

  /* v5: el titular manda. Serif de gran formato para display, Inter para todo lo demás. */
  --display: "Fraunces", "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif-it: "Fraunces", Georgia, serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --w: min(1140px, calc(100vw - 2.4rem));
  --nav-h: 76px;
  --radius: 20px;

  /* Mobiliario en azul medianoche: barra superior, pie y bloques de aviso */
  --tinta:       #0d1a2b;
  --tinta-2:     #12233a;
  --sobre-tinta: #eef4f7;
  --acento-claro: #3fc9ae;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  text-wrap: balance;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
}
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); }
/* Las tarjetas y bloques pequeños vuelven a la sans: el serif es para titulares */
.tarjeta h3, .servicio h3, .paso h3, .plan h3, .faq-item summary,
.footer h4, .form-titulo, .cifra-label {
  font-family: var(--sans);
  letter-spacing: -0.01em;
}
ul, ol { padding-left: 1.2em; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--accent); color: var(--accent-ink);
  z-index: 9999; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Palabra acentuada en titulares: serif itálica esmeralda */
h1 em, h2 em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--accent);
  font-size: 1em;
}

/* =============================================================
   3. Niebla de fondo + foco que sigue el cursor (firma del sitio)
   ============================================================= */
.malla {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(560px circle at var(--mx, 70%) var(--my, 22%), rgba(10, 110, 95, 0.07), transparent 66%),
    radial-gradient(48% 42% at 12% 4%,  rgba(10, 110, 95, 0.06), transparent 70%),
    radial-gradient(54% 46% at 94% 14%, rgba(20, 60, 96, 0.055), transparent 72%),
    radial-gradient(64% 52% at 50% 110%, rgba(13, 26, 43, 0.06), transparent 76%),
    var(--bg);
}
/* Grano de papel: da textura de dossier impreso, no de pantalla */
.malla::before {
  content: ""; position: absolute; inset: 0;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)' opacity='.055'/%3E%3C/svg%3E");
}

/* Viñeta sutil: oscurece esquinas, aporta profundidad */
.malla::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, transparent 58%, rgba(13, 26, 43, 0.07) 100%);
}

/* =============================================================
   4. Utilidades
   ============================================================= */
.wrap { width: var(--w); margin-inline: auto; }
.kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.section { padding-block: clamp(3.4rem, 8vw, 6rem); }
.section-head { max-width: 680px; margin-bottom: clamp(1.6rem, 4vw, 2.8rem); }
.section-head h2 { font-size: clamp(1.65rem, 3.4vw, 2.45rem); margin-top: .55rem; }
.section-head .lead { margin-top: .85rem; color: var(--mute); max-width: 56ch; font-size: 1.02rem; }

/* Dato pendiente del documento maestro (⟦…⟧) */
.pendiente {
  font-size: .82em;
  font-weight: 600;
  color: #8a6512;
  background: rgba(176, 134, 26, 0.10);
  border: 1px dashed rgba(176, 134, 26, 0.45);
  border-radius: 8px;
  padding: .05em .5em;
  white-space: nowrap;
}

/* =============================================================
   5. Aviso de borrador (QUITAR EN PRODUCCIÓN) + barra superior
   ============================================================= */
.aviso-borrador {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: center;
  padding: .5rem 1rem;
  background: #33150f;
  color: #eec0ad;
  border-bottom: 1px solid rgba(238, 192, 173, 0.2);
}
.aviso-borrador strong { color: #ffdcc9; }

.topbar {
  --accent: var(--acento-claro);
  background: var(--tinta);
  border-bottom: 1px solid rgba(238, 244, 247, 0.10);
  color: rgba(238, 244, 247, 0.76);
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.8rem;
  padding-block: .5rem;
  font-size: .76rem;
  font-weight: 500;
}
.topbar span::before { content: "✓ "; color: var(--accent); }

/* =============================================================
   6. Navegación (cristal oscuro flotante)
   ============================================================= */
.nav {
  position: sticky; top: .8rem; z-index: 100;
  width: var(--w); margin-inline: auto;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding-inline: clamp(.9rem, 2vw, 1.6rem);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line-2);
  box-shadow: 0 8px 28px rgba(13, 26, 43, 0.09);
  transition: box-shadow .3s var(--ease-out);
}
@supports (backdrop-filter: blur(18px)) {
  .nav { background: var(--glass); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
}
.nav.is-solid { box-shadow: 0 14px 40px rgba(13, 26, 43, 0.16); }
.nav-inner { display: flex; align-items: center; gap: 1.4rem; width: 100%; }

.brand { display: flex; align-items: center; gap: .6rem; margin-right: auto; }
.brand-logo {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 13px;
  background: linear-gradient(150deg, #0c7a68, #063f36);
  color: var(--accent-ink);
  box-shadow: 0 6px 16px rgba(10, 110, 95, 0.28);
}
.brand-logo svg { width: 22px; height: 22px; }
.brand-texto { display: flex; flex-direction: column; line-height: 1.1; }
.brand-nombre { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--ink); white-space: nowrap; }
.brand-grupo { font-size: .62rem; font-weight: 600; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }

.nav-links { display: none; align-items: center; gap: 1.4rem; }
.nav-item { position: relative; }
.nav-item > a::after { content: " ▾"; font-size: .7em; color: var(--accent); }
.nav-sub {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: .7rem;
  display: none; z-index: 120;
}
.nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub { display: block; }
.nav-sub-panel {
  --ink: #0d1a2b;
  --ink-soft: #2c3e52;
  --mute: #5a6e82;
  --dim: #8598a8;
  --accent: #0a6e5f;
  min-width: 300px;
  background: var(--card-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: var(--sombra-2);
  padding: .55rem;
  display: grid; gap: .1rem;
}
.nav-links .nav-sub-panel a {
  display: flex; align-items: baseline; gap: .6rem;
  font-size: .88rem; font-weight: 500; color: var(--ink-soft);
  padding: .55rem .7rem; border-radius: 9px;
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.nav-links .nav-sub-panel a:hover { background: rgba(10, 110, 95, 0.08); color: var(--ink); }
/* El servicio principal se distingue por peso y color, no por un icono */
.nav-links .nav-sub-panel a:first-child {
  font-weight: 600; color: var(--accent);
  background: rgba(10, 110, 95, 0.06);
}
.nav-links .nav-sub-panel a:first-child:hover { background: rgba(10, 110, 95, 0.12); color: var(--accent-2); }
.nav-mobile .grupo {
  font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); padding: .8rem .2rem .2rem; border-bottom: 0;
}
.nav-mobile a.sub { padding-left: 1rem; font-size: .92rem; font-weight: 500; }
.nav-links a {
  font-size: .88rem; font-weight: 600; color: var(--mute);
  position: relative; padding-block: .3rem;
  transition: color .25s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  display: none;
  font-size: .86rem; font-weight: 700; color: var(--accent-ink);
  background: var(--accent);
  border-radius: 99px;
  padding: .55rem 1.2rem;
  box-shadow: 0 6px 18px rgba(10, 110, 95, 0.22);
  transition: transform .25s var(--ease-out), background .25s var(--ease-out);
}
.nav-cta:hover { background: var(--accent-2); transform: translateY(-2px); }

.nav-burger {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--card-2);
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; display: block; width: 17px; height: 2px;
  background: var(--ink); border-radius: 2px; position: relative;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.nav-burger span::before { position: absolute; top: -5.5px; }
.nav-burger span::after { position: absolute; top: 5.5px; }
body.menu-open .nav-burger span { background: transparent; }
body.menu-open .nav-burger span::before { transform: translateY(5.5px) rotate(45deg); }
body.menu-open .nav-burger span::after { transform: translateY(-5.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; top: calc(var(--nav-h) + 1.6rem); left: 50%; transform: translateX(-50%);
  width: var(--w); z-index: 99;
  background: var(--card-2);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  box-shadow: var(--sombra-2);
  padding: .8rem 1.2rem 1.1rem;
  display: none; flex-direction: column;
}
body.menu-open .nav-mobile { display: flex; }
.nav-mobile a {
  padding: .75rem .2rem; font-size: 1rem; font-weight: 600; color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile .nav-mobile-cta { color: var(--accent); }

@media (min-width: 960px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-burger, .nav-mobile { display: none !important; }
}

/* =============================================================
   7. Hero
   ============================================================= */
.hero { position: relative; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.6rem, 6vw, 4.6rem); }
.hero-grid { display: grid; gap: 2.8rem; align-items: center; }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.7rem);
  max-width: 16ch;
  margin-top: .8rem;
}
.hero-sub {
  margin-top: 1.1rem;
  max-width: 50ch;
  color: var(--mute);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}
.hero-pildora {
  display: inline-flex; align-items: baseline; gap: .5rem;
  margin-top: 1.4rem;
  font-size: .86rem; font-weight: 600;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 99px;
  padding: .5rem 1.1rem;
  box-shadow: 0 4px 14px rgba(13, 26, 43, 0.08);
}
.hero-pildora strong { color: var(--accent); font-size: 1.05rem; font-weight: 700; }
.hero-acciones { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.hero-micro {
  margin-top: 1.2rem;
  font-size: .86rem;
  color: var(--dim);
  max-width: 46ch;
}
.hero-micro::before { content: "→ "; color: var(--accent); font-weight: 700; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 4rem; }
}

.hero--ficha { padding-block: clamp(2.4rem, 5vw, 4rem); }
.hero--ficha h1 { font-size: clamp(1.85rem, 4vw, 2.9rem); max-width: 19ch; }

/* =============================================================
   8. Botones
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: .94rem;
  border-radius: 99px;
  padding: .82rem 1.7rem;
  transition: transform .25s var(--ease-out), background .25s var(--ease-out),
              color .25s var(--ease-out), border-color .25s var(--ease-out),
              box-shadow .25s var(--ease-out);
  will-change: transform;
}
.btn-primary {
  background: linear-gradient(150deg, #0c7a68, #085447);
  color: var(--accent-ink);
  box-shadow: 0 10px 26px rgba(10, 110, 95, 0.26);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(10, 110, 95, 0.34); }
.btn-ghost {
  color: var(--ink); background: rgba(13, 26, 43, 0.035);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-wa { background: #1f9d50; color: #fff; box-shadow: 0 10px 26px rgba(31, 157, 80, 0.28); }
.btn-wa:hover { background: #23b15b; transform: translateY(-2px); }

/* =============================================================
   9. Maquetas del entregable (flotantes, datos de ejemplo)
   ============================================================= */
.mock {
  background: linear-gradient(165deg, var(--card-2), var(--card));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--sombra-2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: .8rem;
  color: var(--mute);
  position: relative;
  animation: flota 7s ease-in-out infinite;
}
@keyframes flota {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.mock-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-bottom: .8rem; border-bottom: 1px solid var(--line);
}
.mock-head .t { color: var(--ink); font-weight: 700; font-size: .84rem; }
.mock-head .n { color: var(--dim); font-size: .7rem; }
.mock-tag {
  display: inline-block;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(10, 110, 95, 0.25);
  border-radius: 8px;
  padding: .2rem .6rem;
  margin-top: .9rem;
}
.mock-rows { margin-top: .9rem; display: grid; gap: .45rem; }
.mock-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .5rem .7rem;
  background: rgba(13, 26, 43, 0.035);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.mock-row .v { color: var(--ink); font-weight: 600; white-space: nowrap; }
.mock-row .hl { color: var(--accent); font-weight: 700; white-space: nowrap; }
.mock-bar { height: 7px; border-radius: 4px; background: var(--bg-3); overflow: hidden; margin-top: .35rem; }
.mock-bar i { display: block; height: 100%; background: linear-gradient(90deg, #085447, #0c7a68); border-radius: 4px; }
.mock-foot {
  margin-top: 1rem; padding-top: .7rem;
  border-top: 1px dashed var(--line-2);
  font-size: .68rem; color: var(--dim); font-style: italic;
}

/* =============================================================
   10. Franja de cifras
   ============================================================= */
.cifras .wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.cifra {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  padding: 1.5rem 1.4rem;
}
.cifra-num {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  color: var(--accent); line-height: 1;
  text-shadow: none;
}
.cifra-num sub { font-size: .45em; vertical-align: baseline; }
.cifra-label { margin-top: .5rem; font-size: .84rem; color: var(--mute); }
@media (min-width: 960px) { .cifras .wrap { grid-template-columns: repeat(4, 1fr); } }

/* =============================================================
   11. Cards genéricas
   ============================================================= */
.tarjetas { display: grid; gap: 1.1rem; margin-top: 2rem; }
@media (min-width: 720px) { .tarjetas { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .tarjetas--3 { grid-template-columns: repeat(3, 1fr); } }

.tarjeta {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  padding: 1.6rem;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
}
.tarjeta:hover { transform: translateY(-4px); box-shadow: var(--sombra-2); border-color: rgba(10, 110, 95, 0.3); }
.tarjeta-ico {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(10, 110, 95, 0.2);
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 1rem;
}
.tarjeta h3 { font-size: 1.08rem; }
.tarjeta p { margin-top: .5rem; font-size: .92rem; color: var(--mute); }
.tarjeta ul { margin-top: .7rem; display: grid; gap: .45rem; font-size: .9rem; color: var(--mute); }
.tarjeta .enlace { display: inline-block; margin-top: .9rem; font-size: .86rem; font-weight: 700; color: var(--accent); }
.tarjeta .enlace::after { content: " →"; }

/* Fotos en tarjetas y secciones */
.tarjeta-media {
  border-radius: 14px; overflow: hidden;
  aspect-ratio: 3 / 2;
  margin-bottom: 1rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
}
.tarjeta-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease-out);
}
a.tarjeta:hover .tarjeta-media img { transform: scale(1.05); }

.split-2 { display: grid; gap: 2.2rem; align-items: center; }
@media (min-width: 960px) { .split-2 { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.foto-marco {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--sombra-2);
  aspect-ratio: 4 / 3;
  background: var(--bg-3);
}
.foto-marco img { width: 100%; height: 100%; object-fit: cover; }

.cierre-foto {
  margin-top: 1.7rem;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--sombra);
  max-width: 430px; aspect-ratio: 3 / 2;
  background: var(--bg-3);
}
.cierre-foto img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================================
   12. Pasos (cómo funciona)
   ============================================================= */
.pasos { display: grid; gap: 1.1rem; margin-top: 2rem; counter-reset: paso; }
@media (min-width: 720px) { .pasos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .pasos { grid-template-columns: repeat(4, 1fr); } }
.paso {
  counter-increment: paso;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  padding: 1.5rem;
  position: relative;
}
.paso::before {
  content: counter(paso, decimal-leading-zero);
  font-family: var(--display); font-weight: 700; font-size: .82rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(10, 110, 95, 0.2);
  border-radius: 10px;
  padding: .25rem .6rem;
  display: inline-block;
  margin-bottom: .9rem;
}
.paso h3 { font-size: 1.02rem; }
.paso p { margin-top: .45rem; font-size: .88rem; color: var(--mute); }
.paso-gratis {
  position: absolute; top: 1.3rem; right: 1.3rem;
  font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent);
}

.nota-pie {
  margin-top: 1.4rem;
  font-size: .86rem; color: var(--ink-soft);
  background: var(--accent-soft);
  border: 1px solid rgba(10, 110, 95, 0.18);
  border-radius: 14px;
  padding: .9rem 1.2rem;
  max-width: 72ch;
}
.nota-pie strong { color: var(--accent); }

/* =============================================================
   13. Catálogo de servicios
   ============================================================= */
.servicio {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  padding: 1.5rem;
  position: relative;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
}
a.servicio:hover { transform: translateY(-4px); box-shadow: var(--sombra-2); border-color: rgba(10, 110, 95, 0.35); }
.servicio-top { display: flex; justify-content: space-between; align-items: center; gap: .8rem; }
.servicio-cod {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(10, 110, 95, 0.25);
  border-radius: 8px;
  padding: .22rem .55rem;
}
.servicio-plazo { font-size: .74rem; font-weight: 600; color: var(--dim); }
.servicio h3 { font-size: 1.06rem; margin-top: .85rem; }
.servicio p { font-size: .88rem; color: var(--mute); margin-top: .45rem; flex-grow: 1; }
.servicio-foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: .8rem;
  margin-top: 1.1rem; padding-top: .95rem;
  border-top: 1px solid var(--line);
}
.servicio-precio { font-weight: 700; font-size: .95rem; color: var(--ink); }
.servicio-precio small { color: var(--dim); font-weight: 500; font-size: .78em; }
.servicio-link { font-size: .82rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
a.servicio:hover .servicio-link::after { content: " →"; }
.servicio--retenido { opacity: .68; }
.servicio-nota {
  font-size: .64rem; font-weight: 700; color: #9a4620;
  background: rgba(171, 69, 37, 0.09);
  border: 1px dashed rgba(171, 69, 37, 0.4);
  border-radius: 7px;
  padding: .18rem .5rem; white-space: nowrap;
}

/* =============================================================
   14. Tabla de precios (canon)
   ============================================================= */
.tabla-scroll {
  overflow-x: auto; overflow-y: visible;
  margin-top: 2rem;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--sombra);
}
.tabla { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .88rem; }
.tabla th {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--dim);
  text-align: left;
  padding: .95rem 1.1rem;
  border-bottom: 1px solid var(--line-2);
  background: rgba(13, 26, 43, 0.04);
}
.tabla td { padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); }
.tabla tbody tr { transition: background .2s var(--ease-out); }
.tabla tbody tr:hover { background: rgba(10, 110, 95, 0.04); }
.tabla tbody tr:last-child td { border-bottom: 0; }
.tabla .cod { font-weight: 700; font-size: .78rem; color: var(--accent); white-space: nowrap; }
.tabla .precio { font-weight: 700; color: var(--ink); white-space: nowrap; }
.tabla .plazo { white-space: nowrap; }
.tabla a { color: var(--ink); font-weight: 600; border-bottom: 1px solid rgba(10, 110, 95, 0.45); transition: border-color .2s, color .2s; }
.tabla a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.condiciones { margin-top: 1.4rem; font-size: .86rem; color: var(--mute); max-width: 78ch; }
.condiciones strong { color: var(--ink-soft); }
.condiciones + .condiciones { margin-top: .8rem; }

.precio-card {
  margin-top: 2rem;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem 2rem;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  padding: 1.6rem 1.8rem;
}
.precio-card .valor {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem); color: var(--accent);
  text-shadow: none;
}
.precio-card .meta { font-size: .84rem; font-weight: 600; color: var(--mute); }
.precio-card .nota { flex-basis: 100%; font-size: .86rem; color: var(--mute); }

/* =============================================================
   15. Límites
   ============================================================= */
.limites-lista { list-style: none; padding: 0; margin-top: 1.8rem; display: grid; gap: .6rem; }
@media (min-width: 720px) { .limites-lista--2col { grid-template-columns: 1fr 1fr; } }
.limites-lista li {
  display: flex; gap: .7rem; align-items: flex-start;
  font-size: .9rem; color: var(--ink-soft);
  padding: .85rem 1.05rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.limites-lista li::before { content: "—"; color: var(--dim); font-weight: 700; flex-shrink: 0; }
.limites-lista--check li::before { content: "✓"; color: var(--accent); }

.limite-mayor {
  margin-top: 1.8rem;
  padding: 1.6rem 1.8rem;
  --accent: var(--acento-claro);
  background: linear-gradient(160deg, var(--tinta), var(--tinta-2));
  color: var(--sobre-tinta);
  border: 1px solid rgba(238, 244, 247, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--sombra-2), inset 0 1px 0 rgba(238, 244, 247, 0.07);
}
.limite-mayor .kicker { display: block; margin-bottom: .5rem; }
.limite-mayor p { font-size: 1.06rem; line-height: 1.55; }
.limite-mayor p em { font-family: var(--serif-it); font-style: italic; color: var(--accent); }

/* =============================================================
   16. FAQ
   ============================================================= */
.faq-lista { margin-top: 2rem; display: grid; gap: .8rem; max-width: 820px; align-content: start; }
/* Ocho preguntas en dos columnas a partir de tablet (21-09) */
@media (min-width: 900px) {
  .faq-lista { grid-template-columns: 1fr 1fr; max-width: none; gap: .8rem 1.2rem; }
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--sombra);
  padding: 0 1.3rem;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 600; font-size: .98rem; color: var(--ink);
  transition: color .2s var(--ease-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; color: var(--accent);
  font-size: 1.35rem; font-weight: 400; line-height: 1;
  transition: transform .3s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-item p { padding: 0 0 1.2rem; font-size: .9rem; color: var(--mute); }

/* =============================================================
   17. Cierre + formulario
   ============================================================= */
.cierre-grid { display: grid; gap: 2.6rem; }
@media (min-width: 960px) { .cierre-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.cierre h2, #contacto h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-top: .6rem; }
.cierre-parrafo { margin-top: 1rem; color: var(--mute); max-width: 50ch; font-size: 1.02rem; }
.cierre-acciones { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.cierre-condiciones { margin-top: 1.3rem; font-size: .8rem; font-weight: 600; color: var(--dim); }
.cierre-contacto { margin-top: 1.7rem; display: grid; gap: .55rem; font-size: .94rem; }
.cierre-contacto a {
  display: inline-flex; gap: .6rem; align-items: baseline;
  color: var(--ink-soft); width: fit-content; font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.cierre-contacto a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.cierre-contacto .ico {
  font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  color: var(--accent);
}

.form {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--sombra-2);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: grid; gap: 1rem;
}
.form-titulo { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.form label { display: grid; gap: .4rem; font-size: .82rem; font-weight: 600; color: var(--mute); }
.form input, .form select, .form textarea {
  font: inherit; font-size: .95rem;
  color: var(--ink);
  background: rgba(13, 26, 43, 0.025);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: .75rem .9rem;
  width: 100%;
  transition: border-color .25s var(--ease-out), background .25s var(--ease-out);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
}
.form textarea { min-height: 120px; resize: vertical; }
.form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.form select option { background: var(--bg-3); color: var(--ink); }
.form-fila { display: grid; gap: 1rem; }
@media (min-width: 540px) { .form-fila { grid-template-columns: 1fr 1fr; } }
.form .btn { justify-self: start; }
.form label.form-acepto, .form-acepto {
  display: flex; gap: .65rem; align-items: flex-start;
  font-size: .82rem; font-weight: 400; color: var(--ink-soft);
  background: rgba(10, 110, 95, 0.05);
  border: 1px solid rgba(10, 110, 95, 0.2);
  border-radius: 12px;
  padding: .8rem .95rem;
  cursor: pointer;
}
.form-acepto input { width: auto; margin-top: .2rem; flex-shrink: 0; accent-color: var(--accent); }
.form-acepto a { color: var(--accent); font-weight: 600; }
.form-nota { font-size: .74rem; color: var(--dim); }
.form-estado { font-size: .88rem; font-weight: 600; display: none; padding: .8rem 1rem; border-radius: 12px; }
.form-estado.ok { display: block; color: #085447; background: rgba(10, 110, 95, 0.08); border: 1px solid rgba(10, 110, 95, 0.3); }
.form-estado.error { display: block; color: #8f3a1c; background: rgba(171, 69, 37, 0.08); border: 1px solid rgba(171, 69, 37, 0.35); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* =============================================================
   18. Pie
   ============================================================= */
.footer {
  margin-top: 2rem;
  --ink: #eef4f7;
  --ink-soft: #ccd9e2;
  --mute: #93a6b6;
  --dim: #7d8fa0;
  --accent: var(--acento-claro);
  --line: rgba(238, 244, 247, 0.11);
  background: var(--tinta);
  color: var(--mute);
  padding-block: 3.4rem 2rem;
  border-top: 1px solid rgba(13, 26, 43, 0.14);
}
.footer-grid { display: grid; gap: 2.2rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer .brand-nombre { color: var(--ink); }
.footer-marca p { margin-top: 1rem; font-size: .84rem; color: var(--dim); max-width: 34ch; }
.footer h4 {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.footer-col ul { list-style: none; padding: 0; margin-top: 1rem; display: grid; gap: .5rem; }
.footer-col a { font-size: .86rem; color: var(--mute); transition: color .2s var(--ease-out); }
.footer-col a:hover { color: var(--ink); }
.descargo {
  margin-top: 3rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: .76rem; color: var(--dim);
  max-width: 100ch;
}
.footer-fin {
  margin-top: 1.6rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem;
  font-size: .72rem; color: var(--dim);
}

/* Botón flotante de WhatsApp */
.wa-fab {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #1f9d50; color: #fff;
  box-shadow: 0 12px 30px rgba(13, 26, 43, 0.28);
  transition: transform .25s var(--ease-out);
}
.wa-fab:hover { transform: translateY(-3px) scale(1.05); }
.wa-fab svg { width: 29px; height: 29px; fill: currentColor; }

/* Avisos internos de retención (retirar en producción) */
.retencion {
  background: rgba(171, 69, 37, 0.06);
  border: 1px solid rgba(171, 69, 37, 0.3);
  border-left: 5px solid var(--coral);
  border-radius: 14px;
  padding: 1rem 1.3rem;
  margin: 1.4rem auto 0;
  width: var(--w);
  font-size: .86rem; color: #8f3a1c;
}
.retencion strong { color: #6f2c15; font-size: .78rem; letter-spacing: .05em; }

/* =============================================================
   19. Reveals
   ============================================================= */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  animation: revealNet .4s var(--ease-out) 5s forwards;
}
.reveal.is-visible { opacity: 1; transform: none; animation: none; }
.reveal[data-split] { opacity: 1; transform: none; }
@keyframes revealNet { to { opacity: 1; transform: none; } }
html.no-js .reveal { opacity: 1; transform: none; animation: none; }

/* =============================================================
   20. Responsive fino
   ============================================================= */
@media (max-width: 539px) {
  .hero-acciones .btn { width: 100%; }
  .nav { top: .5rem; }
}

/* =============================================================
   21. Reduced motion — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .mock { animation: none; }
  /* Hovers, reveals, count-ups y el foco del cursor se mantienen: son funcionales */
}

/* =============================================================
   22. Impresión
   ============================================================= */
@media print {
  .aviso-borrador, .nav, .nav-mobile, .wa-fab, .topbar, .malla { display: none !important; }
  body { background: #fff; color: #111; }
}

/* =============================================================
   23. Tratamiento noir de la fotografía (v4, sobre papel claro)
   Las fotos se desaturan y se contrastan: sobre un fondo claro es
   lo que sostiene el carácter detectivesco sin oscurecer la página.
   ============================================================= */
.tarjeta-media img,
.foto-marco img {
  filter: grayscale(.68) contrast(1.14) brightness(.96);
  transition: filter .5s var(--ease-out);
}
.tarjeta:hover .tarjeta-media img { filter: grayscale(.25) contrast(1.06) brightness(1); }

@media (prefers-reduced-motion: reduce) {
  .tarjeta-media img, .foto-marco img { transition: none; }
}

/* =============================================================
   24. Planes de DV-5 en tarjetas (reunión 16-09: no en tabla)
   ============================================================= */
.planes { display: grid; gap: 1rem; margin-top: 1.4rem; }
@media (min-width: 860px) { .planes { grid-template-columns: repeat(3, 1fr); } }
.plan {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  padding: 1.6rem 1.5rem;
}
.plan--destacado { border-color: var(--accent); box-shadow: var(--sombra-2); }
.plan-cod {
  font-family: var(--display); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.plan-precio {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--ink);
  margin-top: .5rem; line-height: 1;
}
.plan-meta { font-size: .8rem; font-weight: 600; color: var(--mute); margin-top: .4rem; }
.plan-lista {
  list-style: none; padding: 0;
  margin: 1.1rem 0 1.4rem; display: grid; gap: .45rem;
  font-size: .9rem; color: var(--ink-soft);
}
.plan-lista li { display: flex; gap: .6rem; }
.plan-lista li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.plan .btn { margin-top: auto; width: 100%; justify-content: center; text-align: center; }

/* Nombre comercial bajo el titular de una ficha */
.hero-nombre {
  margin-top: .7rem; font-family: var(--serif-it); font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--mute);
}

/* Hero de ficha sin imagen: una sola columna, sin hueco a la derecha */
@media (min-width: 960px) {
  .hero-grid:has(> div:only-child) { grid-template-columns: minmax(0, 780px); }
}

/* =============================================================
   25. Página «solicitar»: solo el formulario, sin el resto del sitio
   ============================================================= */
.solo-form { padding-block: clamp(2rem, 6vw, 3.4rem); }
.solo-form .wrap { max-width: 660px; }
.solo-form .form { margin-top: 1.6rem; }
.solo-form-cabecera { text-align: center; }
.solo-form-cabecera h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin-top: .5rem; }
.solo-form-cabecera p { margin-top: .8rem; color: var(--mute); font-size: .96rem; }
.solo-form-marca {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-bottom: 1.4rem;
}
.solo-form-pie {
  margin-top: 1.6rem; text-align: center;
  font-size: .8rem; color: var(--dim);
}
.solo-form-pie a { color: var(--accent); font-weight: 600; }

/* =============================================================
   26. Enlaces legales (21-09): los términos tienen que VERSE
   Antes heredaban el gris del texto y no parecían pulsables.
   ============================================================= */
.enlace-legal,
.form-acepto a,
.form-nota a,
.precio-card .nota a,
.condiciones a,
.faq-item p a,
.solo-form-pie a,
.nota-pie a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(10, 110, 95, .40);
  transition: text-decoration-color .2s var(--ease-out), color .2s var(--ease-out);
}
.enlace-legal:hover,
.form-acepto a:hover,
.form-nota a:hover,
.precio-card .nota a:hover,
.condiciones a:hover,
.faq-item p a:hover,
.solo-form-pie a:hover,
.nota-pie a:hover {
  color: var(--accent-2);
  text-decoration-color: var(--accent);
}

/* Botón «leer» junto a cada casilla de aceptación */
.btn-leer {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700;
  color: var(--accent);
  background: var(--card);
  border: 1px solid rgba(10, 110, 95, .35);
  border-radius: 99px;
  padding: .5rem .95rem;
  transition: background .2s var(--ease-out), border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.btn-leer::after { content: "↗"; font-weight: 700; }
.btn-leer:hover {
  background: rgba(10, 110, 95, .07);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.leer-legal {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin-top: -.2rem;
}

/* Condiciones del servicio en su ficha (21-09) */
.condiciones-ficha { margin-top: 1.2rem; display: grid; gap: .55rem 1.2rem; }
@media (min-width: 640px) { .condiciones-ficha { grid-template-columns: 9rem 1fr; } }
.condiciones-ficha dt {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
}
.condiciones-ficha dd { margin: 0; font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 639px) { .condiciones-ficha dd { margin-bottom: .5rem; } }

/* =============================================================
   27. v5 · Héroe a sangre y secciones cinematográficas
   El nivel de una landing lo pone el primer pantallazo: imagen
   a sangre completa, titular grande y una sola acción.
   ============================================================= */
.hero-full {
  position: relative;
  margin-top: calc(var(--nav-h) * -1 - 1.6rem);
  padding-top: calc(var(--nav-h) + clamp(3.5rem, 8vw, 6.5rem));
  padding-bottom: clamp(4rem, 10vw, 8rem);
  background: var(--tinta);
  overflow: hidden;
  isolation: isolate;
}
.hero-full::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: var(--hero-pos, center);
  filter: grayscale(.30) contrast(1.10) brightness(.94);
}
/* Velo que garantiza el contraste del texto pase lo que pase con la foto */
.hero-full::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(var(--hero-velo, 100deg), rgba(6, 12, 22,.95) 0%, rgba(6, 12, 22,.88) 34%, rgba(6, 12, 22,.42) 62%, rgba(6, 12, 22,.12) 100%),
    linear-gradient(to top, rgba(6, 12, 22,.70), transparent 42%);
}
@media (max-width: 720px) {
  .hero-full::after {
    background: linear-gradient(180deg, rgba(6, 12, 22,.80) 0%, rgba(6, 12, 22,.88) 55%, rgba(6, 12, 22,.96) 100%);
  }
}
.hero-full .wrap { position: relative; display: flex; }
.hero-full-texto { max-width: 46ch; }
/* El texto se va al lado donde la foto está vacía. Lo decide cada página. */
.hero-full[data-lado="derecha"] .wrap { justify-content: flex-end; }
.hero-full[data-lado="derecha"] { --hero-velo: 280deg; }
@media (max-width: 720px) {
  .hero-full .wrap { display: block; }
  .hero-full-texto { max-width: none; }
}
.hero-full h1 { color: var(--sobre-tinta); }
.hero-full h1 em { color: var(--acento-claro); }
.hero-full .kicker { color: var(--acento-claro); }
.hero-full .hero-sub {
  text-wrap: pretty;
  margin-top: 1.3rem;
  color: rgba(238, 244, 247, .84);
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
  line-height: 1.55;
  max-width: 54ch;
}
.hero-full .hero-micro { color: rgba(238, 244, 247, .60); }
.hero-full .hero-micro::before { color: var(--acento-claro); }
.hero-full .btn-ghost {
  color: var(--sobre-tinta);
  background: rgba(238, 244, 247, .08);
  border-color: rgba(238, 244, 247, .28);
}
.hero-full .btn-ghost:hover { background: rgba(238, 244, 247, .16); }

/* Pruebas de confianza bajo el titular */
.hero-avales {
  display: flex; flex-wrap: wrap; gap: .5rem .9rem;
  margin-top: 1.8rem;
  font-size: .82rem; font-weight: 600;
  color: rgba(238, 244, 247, .82);
}
.hero-avales span {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .8rem;
  border: 1px solid rgba(238, 244, 247, .18);
  border-radius: 99px;
  background: rgba(238, 244, 247, .05);
}
.hero-avales span::before { content: "✓"; color: var(--acento-claro); font-weight: 700; }

/* Sección oscura a sangre, para cifras y cierre */
.seccion-tinta {
  --ink: #eef4f7;
  --ink-soft: #ccd9e2;
  --mute: #93a6b6;
  --dim: #7d8fa0;
  --accent: var(--acento-claro);
  --card: rgba(238, 244, 247, .05);
  --card-2: rgba(238, 244, 247, .03);
  --line: rgba(238, 244, 247, .12);
  --line-2: rgba(238, 244, 247, .18);
  background: var(--tinta);
  color: var(--ink-soft);
}
.seccion-tinta .btn-ghost { color: var(--ink); background: rgba(238, 244, 247, .07); }

/* =============================================================
   28. v5 · El servicio principal en portada
   ============================================================= */
.destacado {
  display: grid; gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 960px) { .destacado { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.destacado-etiqueta {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  padding: .4rem .85rem; border-radius: 99px;
}
.destacado h2 { margin-top: 1rem; font-size: clamp(1.9rem, 4.2vw, 3rem); }
.destacado-lista {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: grid; gap: .55rem;
  font-size: .96rem; color: var(--ink-soft);
}
.destacado-lista li { display: flex; gap: .7rem; align-items: flex-start; }
.destacado-lista li::before { content: "✓"; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.destacado-media {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--sombra-2);
  aspect-ratio: 1 / 1;
  background: var(--tinta);
}
.destacado-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) contrast(1.1); }

/* =============================================================
   29. v5 · Planes con lo que incluye cada uno
   ============================================================= */
.plan { position: relative; padding-top: 1.9rem; }
.plan--destacado {
  border-color: var(--accent);
  box-shadow: 0 22px 50px rgba(10, 110, 95, .16);
}
.plan-cinta {
  position: absolute; top: -1px; left: 50%; transform: translate(-50%, -50%);
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent);
  padding: .32rem .85rem; border-radius: 99px;
  white-space: nowrap;
}
.plan-alcance {
  margin-top: .9rem; padding: .7rem .85rem;
  background: var(--accent-soft);
  border-radius: 12px;
  font-size: .86rem; font-weight: 600; color: var(--ink);
}
.plan-incluye {
  list-style: none; padding: 0; margin: 1rem 0 1.4rem;
  display: grid; gap: .42rem;
  font-size: .88rem; color: var(--ink-soft);
}
.plan-incluye li { display: flex; gap: .55rem; align-items: flex-start; }
.plan-incluye li::before { content: "✓"; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.plan-incluye li.no { color: var(--dim); }
.plan-incluye li.no::before { content: "—"; color: var(--dim); }

/* En las páginas con héroe a sangre, la barra va en cristal oscuro:
   sobre la foto, el cristal claro se ve turbio. */
body:has(.hero-full) .nav {
  --ink: #eef4f7;
  --mute: #b2c3d0;
  --line-2: rgba(238, 244, 247, .16);
  background: rgba(13, 26, 43, .62);
  border-color: rgba(238, 244, 247, .16);
  box-shadow: 0 10px 34px rgba(6, 12, 22, .35);
}
@supports (backdrop-filter: blur(18px)) {
  body:has(.hero-full) .nav {
    background: rgba(13, 26, 43, .48);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
  }
}
body:has(.hero-full) .nav .brand-nombre { color: #eef4f7; }
body:has(.hero-full) .nav .brand-grupo { color: rgba(238, 244, 247, .62); }
body:has(.hero-full) .nav-links > a,
body:has(.hero-full) .nav-item > a { color: rgba(238, 244, 247, .86); }
body:has(.hero-full) .nav-links > a:hover,
body:has(.hero-full) .nav-item > a:hover { color: #fff; }
body:has(.hero-full) .nav-burger {
  color: #eef4f7;
  background: rgba(238, 244, 247, .10);
  border-color: rgba(238, 244, 247, .22);
}
body:has(.hero-full) .nav-burger span,
body:has(.hero-full) .nav-burger span::before,
body:has(.hero-full) .nav-burger span::after { background: #eef4f7; }


/* =============================================================
   30. v5 · Micro-interacciones
   Nada de fuegos artificiales: entrada del héroe, deriva lenta de
   la foto y respuesta al puntero. Todo se apaga con reduced-motion.
   ============================================================= */
@keyframes entraHero {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes derivaFoto {
  from { transform: scale(1.06); }
  to   { transform: scale(1.14); }
}

.hero-full .kicker,
.hero-full h1,
.hero-full .hero-sub,
.hero-full .hero-acciones,
.hero-full .hero-avales {
  animation: entraHero .9s var(--ease-out) both;
}
.hero-full h1            { animation-delay: .08s; }
.hero-full .hero-sub     { animation-delay: .18s; }
.hero-full .hero-acciones{ animation-delay: .28s; }
.hero-full .hero-avales  { animation-delay: .38s; }

/* La foto del héroe respira: 20 s de acercamiento imperceptible */
.hero-full::before { animation: derivaFoto 26s var(--ease-soft) alternate infinite; }

/* Las tarjetas de plan responden al puntero */
.plan { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out); }
.plan:hover { transform: translateY(-5px); box-shadow: var(--sombra-2); border-color: var(--accent); }
.plan .btn { transition: transform .25s var(--ease-out); }
.plan:hover .btn { transform: translateY(-1px); }

/* El aval bajo el titular se ilumina al pasar por encima */
.hero-avales span { transition: background .3s var(--ease-out), border-color .3s var(--ease-out); }
.hero-avales span:hover { background: rgba(238, 244, 247, .12); border-color: rgba(238, 244, 247, .34); }

/* El bloque del servicio principal, con su imagen viva */
.destacado-media img { transition: transform .8s var(--ease-out), filter .8s var(--ease-out); }
.destacado:hover .destacado-media img { transform: scale(1.04); filter: grayscale(.2) contrast(1.12); }

@media (prefers-reduced-motion: reduce) {
  .hero-full .kicker, .hero-full h1, .hero-full .hero-sub,
  .hero-full .hero-acciones, .hero-full .hero-avales { animation: none; }
  .hero-full::before { animation: none; }
  .plan, .plan .btn, .destacado-media img, .hero-avales span { transition: none; }
}

/* =============================================================
   31. v6 · Tarjetas de servicio con imagen
   La imagen hace el trabajo de reconocimiento: la persona
   encuentra su situación antes de leer el titular.
   ============================================================= */
.servicios-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  margin-top: 1.6rem;
}
.serv-card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
}
.serv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-2);
  border-color: var(--accent);
}
.serv-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--tinta);
  overflow: hidden;
}
.serv-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.62) contrast(1.14) brightness(.88);
  transition: transform .7s var(--ease-out), filter .7s var(--ease-out);
}
.serv-card:hover .serv-card-media img {
  transform: scale(1.06);
  filter: grayscale(.2) contrast(1.1) brightness(.98);
}
/* Velo inferior: sostiene la píldora del plazo sobre cualquier foto */
.serv-card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6, 12, 22, .55), transparent 55%);
}
.serv-card-plazo {
  position: absolute; z-index: 1; left: .7rem; bottom: .7rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  color: #eef4f7;
  background: rgba(6, 12, 22, .55);
  border: 1px solid rgba(238, 244, 247, .22);
  border-radius: 99px;
  padding: .28rem .7rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.serv-card-cuerpo {
  display: flex; flex-direction: column; flex: 1;
  padding: 1.05rem 1.15rem 1.15rem;
}
.serv-card-cuerpo h3 {
  font-family: var(--sans);
  font-size: 1.02rem; font-weight: 600; line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.serv-card-cuerpo p {
  margin-top: .45rem;
  font-size: .88rem; line-height: 1.5;
  color: var(--mute);
}
.serv-card-pie {
  display: flex; align-items: baseline; justify-content: space-between; gap: .8rem;
  margin-top: auto; padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.serv-card-precio {
  font-family: var(--display);
  font-size: 1.12rem; font-weight: 600;
  color: var(--ink);
}
.serv-card-ir {
  font-size: .8rem; font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  transition: transform .3s var(--ease-out);
}
.serv-card-ir::after { content: " →"; }
.serv-card:hover .serv-card-ir { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .serv-card, .serv-card-media img, .serv-card-ir { transition: none; }
  .serv-card:hover { transform: none; }
  .serv-card:hover .serv-card-media img { transform: none; }
}

/* =============================================================
   32. v8 · El verde del sitio actual (Seba, 22-09)
   Menú blanco y fijo, logo real, un solo verde, nada de «modo noche».
   Estas reglas van al final y mandan sobre las anteriores.
   ============================================================= */
:root {
  --bg:        #ffffff;
  --bg-2:      #f4f9f8;
  --bg-3:      #e8f1ef;
  --card:      #ffffff;
  --card-2:    #fbfdfd;
  --ink:       #204a46;
  --ink-soft:  #2a3a39;
  --mute:      #4f6462;
  --dim:       #7b8f8c;
  --accent:    #31a797;
  --accent-2:  #278a7c;
  --accent-soft: rgba(49, 167, 151, 0.10);
  --glass:     rgba(255, 255, 255, 0.97);
  --line:      rgba(32, 74, 70, 0.12);
  --line-2:    rgba(32, 74, 70, 0.18);
  --sombra:    0 12px 30px rgba(32, 74, 70, 0.07);
  --sombra-2:  0 24px 56px rgba(32, 74, 70, 0.12);
  --tinta:       #204a46;
  --tinta-2:     #1a3d3a;
  --sobre-tinta: #ffffff;
  --acento-claro: #3addca;
  --nav-h: 74px;
}
body::before, body::after { display: none; }
body { background: #fff; }
.topbar { display: none; }

/* menú: barra blanca de borde a borde, fija, sin cristal ni flotación */
body:has(.hero-full) .nav { --ink: #204a46; --mute: #4f6462; --line-2: rgba(32, 74, 70, .18); }
.nav, body:has(.hero-full) .nav {
  top: 0; width: 100%; border-radius: 0; margin: 0;
  background: #fff; border: 0; border-bottom: 1px solid #e3ecea;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .06);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.nav-inner { width: var(--w); margin-inline: auto; }
.nav.is-solid, body:has(.hero-full) .nav.is-solid { box-shadow: 0 4px 16px rgba(32, 74, 70, .10); background: #fff; }
.brand { gap: 12px; }
.brand-ico { height: 46px; width: auto; display: block; }
.brand-txt { height: 24px; width: auto; display: block; position: relative; top: 1px; }
@media (max-width: 760px) { .brand-ico { height: 38px; } .brand-txt { height: 20px; } }
.footer .brand-ico { height: 40px; } .footer .brand-txt { height: 21px; filter: brightness(0) invert(1); }
.nav-links > a, .nav-item > a, body:has(.hero-full) .nav-links > a, body:has(.hero-full) .nav-item > a { color: var(--ink); }
.nav-links > a:hover, .nav-item > a:hover, body:has(.hero-full) .nav-links > a:hover, body:has(.hero-full) .nav-item > a:hover { color: var(--accent); }
.nav-item > a::after { color: var(--accent); }
.nav-cta, .nav-mobile-cta { background: var(--accent); color: #fff; border-radius: 8px; }
.nav-cta:hover { background: var(--accent-2); }
body:has(.hero-full) .nav-burger { background: transparent; }
body:has(.hero-full) .nav-burger span, body:has(.hero-full) .nav-burger span::before, body:has(.hero-full) .nav-burger span::after { background: var(--ink); }

/* botones: verde plano, esquinas suaves */
.btn { border-radius: 8px; }
.btn-primary { background: var(--accent); box-shadow: none; }
.btn-primary:hover { background: var(--accent-2); box-shadow: none; }
.btn-ghost { background: #fff; color: var(--accent); border: 2px solid var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-2); border-color: var(--accent-2); }
.btn-wa { background: #25d366; box-shadow: none; }
.btn-wa:hover { background: #1ebe5a; }
.section-head--centro { text-align: center; margin-inline: auto; max-width: 760px; }
.section-head--centro .lead { margin-inline: auto; }

/* héroes de foto (portada e informes): velo verde petróleo, no azul noche */
.hero-full::after {
  background:
    linear-gradient(var(--hero-velo, 100deg), rgba(10, 36, 33, .94) 0%, rgba(10, 36, 33, .86) 34%, rgba(10, 36, 33, .42) 62%, rgba(10, 36, 33, .14) 100%),
    linear-gradient(to top, rgba(10, 36, 33, .70), transparent 42%);
}
@media (max-width: 860px) { .hero-full::after { background: linear-gradient(180deg, rgba(10, 36, 33, .78) 0%, rgba(10, 36, 33, .86) 55%, rgba(10, 36, 33, .95) 100%); } }

/* portada del servicio de investigación digital */
.hero-dv5 {
  position: relative; color: #fff; text-align: center;
  background: linear-gradient(rgba(16, 44, 40, .22), rgba(16, 44, 40, .34)), var(--hero-img) center / cover no-repeat;
  padding-block: clamp(3.4rem, 8vw, 5.6rem) clamp(3rem, 7vw, 4.6rem);
  min-height: min(560px, 78vh); display: grid; place-items: center;
}
.hero-dv5-texto { max-width: 860px; margin-inline: auto; }
.hero-tag { display: inline-block; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.3rem; }
.hero-eyebrow { font: 600 clamp(.85rem, 1.6vw, 1.15rem)/1.3 var(--sans); letter-spacing: .02em; text-transform: uppercase; color: var(--acento-claro); margin: 0 0 .8rem; }
.hero-dv5 h1 { color: #fff; font-size: clamp(2rem, 5.2vw, 3.9rem); line-height: 1.08; margin: 0 0 1.8rem; max-width: none; text-wrap: balance; }
.hero-dv5 .hero-acciones { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 0; }
.hero-dv5 .btn { padding: 1rem 1.7rem; font-size: 1.02rem; }
.hero-datos { display: flex; gap: .6rem 2rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; font-size: .95rem; font-weight: 500; color: #e8f2f0; }
.hero-datos span::before { content: "✓ "; color: var(--acento-claro); font-weight: 700; }
@media (max-width: 760px) { .hero-dv5 .btn { width: 100%; } .hero-datos { font-size: .9rem; gap: .5rem 1.2rem; } }

/* planes: verde plano */
.plan { border: 2px solid #d9e6e3; border-radius: 14px; background: #fff; }
.plan:hover { border-color: var(--accent); }
.plan--destacado { border-color: var(--accent); box-shadow: 0 12px 34px rgba(32, 74, 70, .14); background: #fff; }
.plan-cod { color: var(--accent); }
.plan-precio { color: var(--ink); }
.plan-alcance { background: #eef6f4; color: var(--ink); border-radius: 8px; font-size: .92rem; }
.plan-incluye li::before { color: var(--accent); }
.planes-nota { text-align: center; margin: 1.8rem auto 0; color: var(--mute); font-size: .95rem; max-width: 760px; }
.planes-nota a { color: var(--accent); font-weight: 700; }

/* qué recibes: iconos sobre blanco */
.recibes { background: var(--bg-2); }
.recibes-grid { display: grid; gap: 1.1rem; }
@media (min-width: 720px) { .recibes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .recibes-grid { grid-template-columns: repeat(3, 1fr); } }
.rc { background: #fff; border: 1px solid #dfeae7; border-radius: 14px; padding: 1.5rem 1.4rem; display: flex; flex-direction: column; gap: .7rem; }
.rc-ico { width: 46px; height: 46px; border-radius: 12px; background: #e6f4f1; display: grid; place-items: center; }
.rc-ico svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rc h3 { margin: 0; font: 700 1.08rem/1.25 var(--sans); color: var(--ink); }
.rc p { margin: 0; color: #43544f; font-size: .95rem; line-height: 1.5; }
.entrega { margin-top: 1.6rem; background: var(--ink); color: #fff; border-radius: 14px; padding: 1.3rem 1.6rem; display: flex; gap: 1rem 2.2rem; flex-wrap: wrap; justify-content: center; align-items: center; font-weight: 600; font-size: .98rem; }
.entrega span::before { content: "✓ "; color: var(--acento-claro); }
.noincluye { margin: 1.2rem auto 0; text-align: center; color: #5a6b68; font-size: .92rem; max-width: 900px; }
.noincluye strong { color: var(--ink); }
.noincluye a { color: var(--accent); font-weight: 600; }

/* cómo funciona: 4 pasos */
.pasos-dv { display: grid; gap: 1.4rem; position: relative; }
@media (min-width: 900px) {
  .pasos-dv { grid-template-columns: repeat(4, 1fr); }
  .pasos-dv::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px; background: #cfe3df; }
}
.pasodv { position: relative; text-align: center; padding: 0 .6rem; }
.pasodv-num { width: 68px; height: 68px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); color: var(--accent); font: 700 1.5rem/1 var(--display); display: grid; place-items: center; margin: 0 auto 1rem; position: relative; z-index: 1; }
.pasodv h3 { margin: 0 0 .45rem; font: 700 1.08rem/1.25 var(--sans); color: var(--ink); }
.pasodv p { margin: 0; color: #43544f; font-size: .95rem; line-height: 1.5; }
.pasodv small { display: block; margin-top: .6rem; color: var(--accent); font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.pasosdv-cta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 2.4rem; }
@media (max-width: 760px) {
  .pasodv { display: grid; grid-template-columns: 56px 1fr; gap: 0 1rem; text-align: left; align-items: start; }
  .pasodv-num { width: 56px; height: 56px; font-size: 1.25rem; margin: 0; grid-row: 1 / 4; }
  .pasodv h3, .pasodv p, .pasodv small { grid-column: 2; }
  .pasosdv-cta .btn { width: 100%; }
}
.faq-lista--2col { max-width: none; }
@media (min-width: 900px) { .faq-lista--2col { grid-template-columns: 1fr 1fr; } }
.faq-item { background: #fff; }

/* home · cómo funciona + qué recibes en un solo flujo */
.flujo { display: grid; gap: 1.6rem; margin-top: .6rem; align-items: start; }
@media (min-width: 960px) { .flujo { grid-template-columns: 1fr 1.15fr; gap: 2.4rem; } }
.flujo-pasos { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 1.5rem; }
.flujo-pasos::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: #cfe3df; }
.fp { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: start; position: relative; }
.fp-num { width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); color: var(--accent); font: 700 1.15rem/1 var(--display); display: grid; place-items: center; position: relative; z-index: 1; }
.fp h3 { margin: .55rem 0 .3rem; font: 700 1.08rem/1.25 var(--sans); color: var(--ink); display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.fp p { margin: 0; color: #43544f; font-size: .95rem; line-height: 1.5; }
.fp-tag { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: .2rem .55rem; border-radius: 999px; }
.flujo-informe { background: #fff; border: 1px solid #dfeae7; border-radius: 16px; padding: 1.7rem 1.6rem; box-shadow: var(--sombra); }
.flujo-informe > h3 { margin: .3rem 0 1.2rem; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.25; color: var(--ink); }
.flujo-informe ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.fi { display: grid; grid-template-columns: 46px 1fr; gap: .9rem; align-items: start; }
.fi h4 { margin: .15rem 0 .2rem; font: 700 1rem/1.3 var(--sans); color: var(--ink); }
.fi p { margin: 0; color: #43544f; font-size: .92rem; line-height: 1.5; }

/* home · separador onda + malla entre el destacado y los servicios */
.separador-onda { position: relative; height: clamp(70px, 8vw, 120px); background: #fff; margin-bottom: -1px; overflow: hidden; }
.separador-onda > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.separador-malla { position: absolute; right: 6%; top: 4%; width: clamp(220px, 34vw, 520px); height: auto; opacity: .75; }
#servicios.section { padding-top: clamp(1.6rem, 4vw, 3rem); }
@media (max-width: 760px) { .separador-malla { right: -4%; width: 62vw; } }

/* v8: fuera la niebla/grano de fondo (teñía todo el sitio de gris-verde). Blanco limpio. */
.malla, .malla::before, .malla::after { display: none; }
#principal.section { background: #fff; }
.separador-onda { z-index: 1; }

/* marca: candado real + nombre en la tipografía del sitio */
.brand-nombre { font-family: var(--display); font-weight: 700; font-size: 1.28rem; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; line-height: 1; }
.brand-ico { height: 40px; }
@media (max-width: 760px) { .brand-nombre { font-size: 1.1rem; } .brand-ico { height: 34px; } }
.footer .brand-nombre { color: #fff; }
.footer .brand-ico { height: 36px; }

body:has(.hero-full) .nav .brand-nombre { color: var(--ink); }
.footer .brand-nombre { color: #fff; }

/* Qué trae el informe: solo los títulos de sus secciones (reunión 29-09) */
.recibes-grid--secciones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
@media (min-width: 720px) { .recibes-grid--secciones { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .recibes-grid--secciones { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.rc--titulo { flex-direction: row; align-items: center; gap: .75rem; padding: 1rem 1rem; }
.rc--titulo .rc-ico { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; }
.rc--titulo .rc-ico svg { width: 20px; height: 20px; }
.rc--titulo h3 { font-size: .98rem; }
/* en celular el ícono va sobre el título: «Recomendaciones» no cabe al lado */
@media (max-width: 719px) { .rc--titulo { flex-direction: column; align-items: flex-start; gap: .55rem; padding: .9rem; } }

/* Formulario de pago en bloques (29-09): tus datos · lo que deseas investigar · declaración */
.form-pago { gap: 1.1rem; }
.form-bloque {
  margin: 0; min-width: 0;
  display: grid; gap: .95rem;
  border: 1px solid var(--line); border-radius: 16px;
  padding: 1.15rem 1.15rem 1.25rem;
  background: var(--card-2);
}
.form-bloque legend {
  padding: 0 .45rem; margin-left: -.2rem;
  font-family: var(--display); font-size: 1.1rem; font-weight: 600; color: var(--ink);
}
.form-ayuda { margin: -.35rem 0 0; font-size: .84rem; line-height: 1.5; color: var(--mute); }
.form label small { font-weight: 400; color: var(--dim); }
.form-bloque textarea { min-height: 90px; }

/* Donaciones (30-09): montos del aporte y datos de la transferencia */
.montos-titulo { margin-top: 1.1rem; font-weight: 600; color: var(--ink); font-size: .95rem; }
.montos { display: flex; flex-wrap: wrap; gap: .55rem; margin: .7rem 0 .9rem; }
.monto {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 6.2rem; padding: .62rem .95rem; border-radius: 8px;
  background: #fff; color: var(--accent); border: 2px solid var(--accent);
  font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.monto:hover { background: var(--accent-soft); color: var(--accent-2); border-color: var(--accent-2); }
/* en pagar.php los montos son radios: el elegido queda relleno */
.form label.monto { display: inline-flex; gap: 0; margin: 0; font-size: .98rem; font-weight: 700; color: var(--accent); position: relative; }
.form label.monto:has(input:checked) { color: #fff; }
.monto input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.monto:has(input:checked) { background: var(--accent); color: #fff; }
.monto:has(input:focus-visible) { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.datos-banco { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 1rem 0 .9rem; font-size: .95rem; }
.datos-banco dt { color: var(--mute); }
.datos-banco dd { margin: 0; font-weight: 600; color: var(--ink); }
@media (max-width: 420px) { .monto { min-width: calc(50% - .3rem); } }

/* Donaciones v2 (30-09, propuesta «B · comunidad» + ilustraciones de la C):
   franjas pastel por sección, íconos en círculos de color e ilustraciones planas */
.don-hero .hero-grid { align-items: center; }
.don-ilustracion img { width: 100%; height: auto; display: block; border-radius: 24px; }
.don-banda { position: relative; }
.don-banda--menta   { background: #effaf7; }
.don-banda--durazno { background: #fdf3ec; }
.don-banda--lavanda { background: #f4f1fb; }
.don-banda .section-head--centro { margin-inline: auto; text-align: center; }
.don-banda .section-head--centro .lead { margin-inline: auto; }
.don-tarjeta { border-color: transparent; box-shadow: 0 10px 30px rgba(32, 74, 70, .07); }
.don-tarjeta h3 { margin-top: .9rem; }
.don-tarjeta p { margin-top: .5rem; }
.don-tarjeta--foto { padding: 0 0 1.5rem; overflow: hidden; }
.don-tarjeta--foto img { width: 100%; height: auto; display: block; background: #fff; }
.don-tarjeta--foto h3, .don-tarjeta--foto p { padding-inline: 1.5rem; }
.don-tarjeta--foto h3 { margin-top: .4rem; }
.don-ico {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
}
.don-ico svg { width: 26px; height: 26px; }
.don-ico--menta   { background: #dcf3ed; color: #1f7a6c; }
.don-ico--durazno { background: #fde3d6; color: #c2553d; }
.don-ico--lavanda { background: #e7e1f7; color: #5b4a9e; }
.don-via .kicker { display: block; margin-top: .9rem; }
.don-via h3 { margin-top: .3rem; }
.btn svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: .35rem; }
.don-cierre-caja {
  max-width: 760px; margin-inline: auto; text-align: center;
  background: #204a46; color: #e7f3f1; border-radius: 28px;
  padding: clamp(2rem, 5vw, 3.2rem) clamp(1.3rem, 4vw, 3rem);
}
.don-cierre-caja h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-top: 1rem; }
.don-cierre-caja h2 em { color: #f9d56e; }
.don-cierre-caja p { margin: .9rem auto 1.5rem; max-width: 56ch; color: #cfe6e2; }
.don-ico--grande { width: 64px; height: 64px; background: #f28c6b; color: #fff; }
.don-ico--grande svg { width: 32px; height: 32px; }

/* Legal en negro (Seba 01-10-2026): términos, condiciones y privacidad van SIEMPRE en
   letra negra, no en los colores de la marca. Solo cambia el texto; botones y menú no. */
.pagina-legal, .pagina-legal h1, .pagina-legal h2, .pagina-legal h3, .pagina-legal h4,
.pagina-legal p, .pagina-legal li, .pagina-legal td, .pagina-legal th, .pagina-legal dt, .pagina-legal dd,
.pagina-legal .kicker, .pagina-legal em, .pagina-legal strong, .pagina-legal small,
.pagina-legal .hero-sub, .pagina-legal .lead, .pagina-legal .condiciones { color: #000; }
.pagina-legal a:not(.btn):not(.btn-leer) { color: #000; text-decoration: underline; }
.pagina-legal .kicker::before, .pagina-legal .kicker::after { background: #000; }

/* =============================================================
   Aviso de cookies (Ley 21.719) — lo crea initCookies() en main.js
   Javi 07-10-2026, modelo ficscompany (skill dutchysites, templates/aviso-cookies)
   ============================================================= */
.aviso-cookies {
  position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%);
  z-index: 95; width: min(680px, calc(100% - 11rem));
  display: flex; align-items: center; gap: 1rem 1.4rem; flex-wrap: wrap;
  background: var(--card); color: var(--ink-soft);
  border: 1px solid var(--line-2); border-radius: 18px;
  box-shadow: 0 18px 44px rgba(13, 26, 43, 0.18);
  padding: 1rem 1.2rem;
  font-size: .86rem; line-height: 1.5;
}
.aviso-cookies[hidden] { display: none; }
.aviso-cookies p { flex: 1 1 260px; margin: 0; }
.aviso-cookies a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.aviso-cookies-botones { display: flex; gap: .6rem; flex: 0 0 auto; }
.aviso-cookies .btn { padding: .6rem 1.3rem; font-size: .86rem; min-width: 7.2rem; justify-content: center; }
.enlace-cookies {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px;
}
.enlace-cookies:hover { color: var(--accent); }
/* /privacidad#cookies: que el título no quede bajo el menú fijo */
#cookies { scroll-margin-top: calc(var(--nav-h) + 2rem); }
@media (max-width: 760px) {
  .aviso-cookies { width: calc(100% - 1.6rem); bottom: .8rem; padding: .95rem 1rem; }
  .aviso-cookies-botones { width: 100%; }
  .aviso-cookies .btn { flex: 1 1 0; min-width: 0; }
  /* el botón flotante de WhatsApp sube sobre el aviso */
  .con-aviso-cookies .wa-fab { bottom: calc(var(--aviso-h, 0px) + 1.4rem); }
}
@media print { .aviso-cookies { display: none !important; } }

/* Preguntas frecuentes: la pregunta va como encabezado H3 dentro de <summary> (OC-10 y OC-11, Difusor; aplicado el 13-10-2026) */
.faq-item summary .faq-pregunta { font: inherit; color: inherit; letter-spacing: inherit; margin: 0; display: inline; }

/* Normas y fuentes de referencia (OC-20, Difusor; aplicado el 13-10-2026) */
.fuentes-lista { margin: 1rem 0 0; padding-left: 1.1rem; display: grid; gap: .55rem; font-size: .9rem; color: var(--mute); max-width: 820px; }
.fuentes-lista a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
/* El DL 825 del pie se ve como enlace (OC-20) */
.descargo a { text-decoration: underline; text-underline-offset: 2px; }
