/* ==========================================================================
   tujardineroenleon.com - Sistema de diseno
   Paleta en marrones: corteza + ocre + arena. Firma visual: anillos de tronco.
   Acento unico: ocre (#C8923A), siempre con tinta oscura encima (blanco sobre
   ocre se queda en 2,9:1 y no pasa AA). Verde solo en el boton de WhatsApp.
   Radios: botones e inputs 8px, tarjetas 16px, pastillas full.
   ========================================================================== */

/* --- 0. Tipografias propias ------------------------------------------------
   Public Sans (texto) y Schibsted Grotesk (titulos) servidas desde el propio dominio:
   variables, solo subconjuntos latin y latin-ext (el sitio es en espanol). Licencia SIL OFL 1.1,
   redistribuible. Sin Google Fonts: no se envia la IP del visitante a Google antes del
   consentimiento y se elimina una peticion que bloqueaba el primer pintado.
   Las dos principales (latin) se precargan en el <head> para evitar saltos de maquetacion. */
@font-face {
  font-family: "Public Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/publicsans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Public Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/publicsans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("/assets/fonts/schibsted-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("/assets/fonts/schibsted-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  /* Marca */
  --corteza-900: #2A211E;
  --corteza-800: #3B2722;   /* hover del principal */
  --corteza-700: #4E342E;   /* principal */
  --ocre-500:    #C8923A;   /* acento unico */
  --ocre-600:    #BB893B;   /* hover: aclarado para que la tinta oscura siga en AA */
  --ocre-300:    #E3B565;   /* ocre legible sobre fondos oscuros */
  --arena-100:   #F3EBE0;

  /* Verde de WhatsApp, con tinta oscura */
  --wa:      #25D366;
  --wa-dark: #1CB558;
  --wa-ink:  #07301C;

  /* Superficies y texto (modo claro) */
  --bg:           #FFFFFF;
  --bg-alt:       var(--arena-100);
  --bg-deep:      var(--corteza-700);
  --surface:      #FFFFFF;
  --line:         #E6DCCF;
  --line-strong:  #CDBFAE;
  --text:         #2A211E;
  --text-muted:   #6B5E58;
  --head:         var(--corteza-700);
  --link:         var(--corteza-700);
  --text-on-dark: #F3EBE0;
  --muted-on-dark:#D9CBBB;

  --accent:       var(--ocre-500);
  --accent-hover: var(--ocre-600);
  --accent-ink:   #2A211E;
  --accent-soft:  #F7EBD3;
  --focus: #1C4E86;

  --r-sm: 8px;
  --r-md: 16px;
  --r-pill: 999px;

  /* Sombras tintadas en marron, nunca negro puro */
  --shadow-sm: 0 1px 2px rgba(42, 33, 30, .06), 0 2px 8px rgba(42, 33, 30, .05);
  --shadow-md: 0 4px 12px rgba(42, 33, 30, .09), 0 14px 34px rgba(42, 33, 30, .08);

  --wrap: 1200px;
  --gutter: clamp(1.125rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --ease: cubic-bezier(.16, 1, .3, 1);

  --font-display: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #1B1412;
    --bg-alt:       #241A17;
    --bg-deep:      #2D1F1B;
    --surface:      #241A17;
    --line:         #382A25;
    --line-strong:  #54433B;
    --text:         #F3EBE0;
    --text-muted:   #B9A99B;
    --head:         #F3EBE0;
    --link:         var(--ocre-300);
    --accent-soft:  #3A2B1B;
    --focus: #9CC4F2;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

/* --- 2. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

/* Antes de cualquier regla de display: un .btn con hidden se seguiria viendo. */
[hidden] { display: none !important; }

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm);
}

.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: var(--gutter); top: -100px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: .75rem 1.25rem; border-radius: var(--r-sm); font-weight: 700;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: .75rem; }

/* --- 3. Tipografia ------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 700; color: var(--head);
  line-height: 1.1; letter-spacing: -.025em; margin: 0 0 .5em; text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -.016em; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.lead { font-size: clamp(1.1rem, 2.1vw, 1.3rem); line-height: 1.55; color: var(--text-muted); max-width: 58ch; }

.prose > * + * { margin-top: 1.1em; }
.prose a, .link {
  color: var(--link); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px; font-weight: 600;
}
.prose a:hover, .link:hover { text-decoration-thickness: 2px; }

/* --- 4. Layout ----------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
/* Cabecera sticky de 72px: sin esto el ancla queda tapada. */
[id] { scroll-margin-top: 92px; }
.section--tint { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); color: var(--text-on-dark); }
.section--deep h2, .section--deep h3 { color: var(--text-on-dark); }
.section--deep p { color: var(--muted-on-dark); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { color: var(--text-muted); }

/* Los hijos de grid traen min-width:auto; un input de archivos estiraria la
   columna entera y daria scroll horizontal en movil. */
.hero-inner > *, .svc-links > *, .plan > *, .band-grid > *, .detail-grid > *,
.form-grid > *, .zones > *, .step > *, .footer-grid > *, .factors > * { min-width: 0; }

/* --- 5. Botones ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.5rem; border: 1.5px solid transparent; border-radius: var(--r-sm);
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  white-space: nowrap; cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }

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

.btn--outline { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--text); background: var(--surface); }

.btn--on-dark { background: transparent; color: var(--text-on-dark); border-color: rgba(243, 235, 224, .45); }
.btn--on-dark:hover { background: rgba(243, 235, 224, .12); border-color: var(--text-on-dark); }

.btn--wa { background: var(--wa); color: var(--wa-ink); border-color: var(--wa); }
.btn--wa:hover { background: var(--wa-dark); border-color: var(--wa-dark); }

.btn--wide { width: 100%; }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.06rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Canales alternativos: presentes pero sin competir con el boton. */
.otras-vias { margin-top: 1.1rem; font-size: .92rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; }
.otras-vias a { color: var(--link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.otras-vias a:hover { text-decoration-thickness: 2px; }
.otras-vias--dark { color: var(--muted-on-dark); }
.otras-vias--dark a { color: var(--ocre-300); }
.otras-vias--dark a:hover { color: #FFFFFF; }

/* Asterisco de "Pedir presupuesto*". Remite a las condiciones. */
.ast { font-size: .78em; line-height: 1; vertical-align: super; margin-left: .1em; opacity: .9; }
/* El .btn separa sus hijos con gap: el asterisco tiene que quedar pegado a la palabra. */
.btn .ast { margin-left: -.45rem; }
.ast-note {
  margin-top: 1.75rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
  font-size: .88rem; line-height: 1.55; color: var(--text-muted);
}
.ast-note strong { color: var(--text); }
.ast-note a { color: var(--link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* --- 6. Cabecera --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 72px; }
@media (max-width: 900px) { .header-inner { height: 64px; } }

/* Logo: wordmark con la i-desbrozadora.
   "Tu" sin tilde, "enLeón" en ocre oscuro (el ocre claro no llega a AA sobre blanco). */
.brand { display: inline-flex; align-items: baseline; text-decoration: none; flex-shrink: 0; }
/* La "i" de Jardinero es una desbrozadora (ver build.js). Mas alta que una i normal
   y con el disco por debajo de la linea de base, como si el eje llegase al suelo. */
.brand-i { display: inline-block; height: 1.2em; width: .36em; vertical-align: -.24em; margin-inline: .015em; }
.brand-text {
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  letter-spacing: -.04em; line-height: 1; white-space: nowrap; color: var(--head);
}
.brand-text i { font-style: normal; font-weight: 500; }
.brand-text em { font-style: normal; color: #8A5F14; }
@media (prefers-color-scheme: dark) { .brand-text em { color: var(--ocre-300); } }
@media (max-width: 380px) { .brand-text { font-size: 1.3rem; } }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a, .nav button {
  background: none; border: 0; cursor: pointer; padding: .55rem .7rem; border-radius: var(--r-sm);
  font-size: .95rem; font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: .3rem;
  transition: background-color .15s var(--ease);
}
.nav a:hover, .nav button:hover { background: var(--bg-alt); }
.nav a[aria-current="page"] { color: var(--link); }

.nav-chevron { transition: transform .2s var(--ease); }
[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }

.has-menu { position: relative; }
.submenu {
  position: absolute; top: calc(100% + .5rem); left: 0; min-width: 330px; padding: .5rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-md); list-style: none; margin: 0;
}
.submenu a { display: block; padding: .6rem .75rem; border-radius: var(--r-sm); font-size: .95rem; line-height: 1.35; }
.submenu a small { display: block; color: var(--text-muted); font-size: .82rem; font-weight: 400; }

.header-cta { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.header-tel {
  font-weight: 800; text-decoration: none; font-size: .98rem; font-family: var(--font-display);
  display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .75rem; border-radius: var(--r-sm);
}
.header-tel:hover { background: var(--bg-alt); }

.burger { display: none; background: none; cursor: pointer; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); padding: .5rem; }
@media (max-width: 1160px) {
  .nav, .header-cta .btn { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 560px) { .header-tel span { display: none; } }

/* Panel movil */
.mobile-panel { position: fixed; inset: 0; z-index: 100; background: var(--bg); padding: var(--gutter); overflow-y: auto; display: flex; flex-direction: column; gap: .25rem; }
.mobile-panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.mobile-panel a { padding: .85rem 0; text-decoration: none; font-size: 1.05rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-panel a.is-sub { padding-left: 1rem; font-size: .98rem; font-weight: 500; color: var(--text-muted); }
.mobile-panel .btn { margin-top: 1.5rem; border-bottom: 1.5px solid transparent; }

/* --- 7. Hero ------------------------------------------------------------- */
/* Panel de corteza con la seccion de un tronco asomando por la derecha.
   Es la firma del sitio: cada anillo es un ano, ninguno igual a otro. */
.hero { position: relative; overflow: hidden; background: var(--bg-deep); color: var(--text-on-dark); isolation: isolate; }
@media (prefers-color-scheme: dark) { .hero { background: #2D1F1B; } }

.hero-rings {
  position: absolute; z-index: -1; aspect-ratio: 1;
  width: min(135vw, 880px); right: -38%; top: 50%; transform: translateY(-50%);
  background: url("/assets/img/anillos.svg") center / contain no-repeat;
  opacity: .3;
}
@media (min-width: 900px) { .hero-rings { width: 880px; right: -230px; opacity: .8; } }
@media (min-width: 1500px) { .hero-rings { right: -120px; } }

.hero-inner { padding-block: clamp(3.25rem, 8vw, 6.5rem); display: grid; grid-template-columns: 1fr; }
.hero-copy { max-width: 40rem; }
.hero h1 { color: var(--text-on-dark); margin-bottom: .4em; }
.hero .lead { color: var(--muted-on-dark); margin-bottom: 2rem; max-width: 54ch; }
.hero .lead a { color: var(--ocre-300); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.hero .lead a:hover { color: #FFFFFF; }
.hero .btn-row { margin-bottom: .5rem; }

.hero-points { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: .65rem; }
.hero-points li { display: flex; gap: .65rem; align-items: flex-start; font-size: .98rem; color: var(--muted-on-dark); max-width: 44ch; }
.hero-points svg { flex-shrink: 0; margin-top: .28em; color: var(--ocre-300); }

/* Un unico momento orquestado: los anillos crecen desde el centro al cargar. */
@media (prefers-reduced-motion: no-preference) {
  .hero-rings { animation: crece 1.6s var(--ease) both; }
  @keyframes crece {
    from { opacity: 0; transform: translateY(-50%) scale(.86) rotate(-6deg); }
  }
}

/* Variante de hero para paginas de servicio: mas bajo, anillos mas discretos. */
.hero--page .hero-inner { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero--page h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); }
.hero--page .hero-rings { opacity: .22; width: min(120vw, 700px); right: -35%; }
@media (min-width: 900px) { .hero--page .hero-rings { opacity: .6; width: 700px; right: -170px; } }
@media (min-width: 1500px) { .hero--page .hero-rings { right: -60px; } }

/* --- 8. Indice de servicios (enlaces al cluster, sin desarrollarlos) ----- */
.svc-links { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .svc-links { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .svc-links { grid-template-columns: repeat(3, 1fr); } }

.svc-link {
  display: flex; flex-direction: column; gap: .35rem; padding: 1.5rem 1.4rem 1.3rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  text-decoration: none;
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.svc-link:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.svc-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; color: var(--head); }
.svc-desc { font-size: .97rem; color: var(--text-muted); }
.svc-go { margin-top: auto; padding-top: .8rem; font-weight: 700; font-size: .92rem; color: var(--link); display: inline-flex; align-items: center; gap: .35rem; }
.svc-go svg { transition: transform .18s var(--ease); }
.svc-link:hover .svc-go svg { transform: translateX(3px); }

/* --- 9. Presupuestos: dos tiempos ---------------------------------------- */
.plan { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 900px) { .plan { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.plan-card { padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.plan-card h3 { margin-bottom: .6rem; }
.plan-card p { color: var(--text-muted); }
.plan-tag {
  display: inline-block; margin-bottom: 1rem; padding: .3rem .8rem; border-radius: var(--r-pill);
  font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--head);
}
.plan-card--dark { background: var(--corteza-700); border-color: var(--corteza-700); }
.plan-card--dark h3 { color: var(--text-on-dark); }
.plan-card--dark p { color: var(--muted-on-dark); }
.plan-card--dark .plan-tag { background: var(--accent); color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { .plan-card--dark { background: #3B2722; border-color: #3B2722; } }

.factors { margin: 0; border-top: 2px solid var(--line-strong); }
.factors > div { display: grid; gap: .2rem 1.75rem; grid-template-columns: 1fr; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .factors > div { grid-template-columns: minmax(0, 15rem) 1fr; align-items: baseline; } }
.factors dt { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--head); }
.factors dd { margin: 0; color: var(--text-muted); }

/* --- 10. Banda del grupo Leonesa Multiservicios -------------------------- */
.group-band { position: relative; overflow: hidden; isolation: isolate; background: var(--corteza-900); color: var(--text-on-dark); }
.group-band::before {
  content: ""; position: absolute; z-index: -1; aspect-ratio: 1; width: min(120vw, 760px);
  left: -22%; bottom: -55%; background: url("/assets/img/anillos.svg") center / contain no-repeat; opacity: .22;
}
@media (min-width: 900px) { .group-band::before { left: auto; right: -8%; bottom: -60%; opacity: .3; } }
.group-band > .wrap { padding-block: var(--section-y); }

.band-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .band-grid { grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 5vw, 4.5rem); } }

.eyebrow {
  display: flex; align-items: center; gap: .9rem; margin-bottom: 1.35rem;
  font-size: .8rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--ocre-300);
}
.eyebrow::before { content: ""; width: 34px; height: 3px; flex-shrink: 0; background: var(--accent); border-radius: 2px; }

.group-band h2 { color: #FFFFFF; margin-bottom: 1.75rem; }
.group-band p { color: var(--muted-on-dark); }
.group-band p + p { margin-top: 1.1rem; }
.group-band strong { color: #FFFFFF; }
.group-band a:not(.btn) { color: var(--ocre-300); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.group-band a:not(.btn):hover { color: #FFFFFF; }

/* --- 11. Zonas ----------------------------------------------------------- */
.zones { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .zones { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .zones { grid-template-columns: repeat(4, 1fr); } }
.zone-group h3 { font-size: 1rem; margin-bottom: .9rem; padding-bottom: .6rem; border-bottom: 2px solid var(--line-strong); }
.zone-group--wide { grid-column: 1 / -1; }
.zone-pills { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.zone-pills li { padding: .35rem .75rem; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: .88rem; color: var(--text-muted); }

/* --- 12. Preguntas frecuentes -------------------------------------------- */
.faq { max-width: 800px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-family: var(--font-display); font-weight: 700; color: var(--head);
  font-size: clamp(1.02rem, 1.8vw, 1.15rem); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .35rem; top: 1.65rem; width: 11px; height: 11px;
  border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.9rem; }
.faq .faq-body { padding: 0 1.5rem 1.4rem 0; color: var(--text-muted); }
.faq .faq-body p { font-size: .98rem; }
.faq .faq-body a { color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* --- 13. Formulario multipaso -------------------------------------------- */
.form-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 940px) { .form-grid { grid-template-columns: .82fr 1.18fr; } }

.form-shell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(1.35rem, 3vw, 2.25rem); box-shadow: var(--shadow-sm); }

.progress { margin-bottom: 1.75rem; }
.progress-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: .85rem; color: var(--text-muted); margin-bottom: .55rem; }
.progress-meta strong { color: var(--text); font-weight: 700; }
.progress-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.progress-track span { height: 5px; border-radius: var(--r-pill); background: var(--line); transition: background-color .3s var(--ease); }
.progress-track span.is-done { background: var(--accent); }

.fstep { border: 0; padding: 0; margin: 0; min-width: 0; }
.fstep > h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.fstep > .step-hint { font-size: .92rem; color: var(--text-muted); margin-bottom: 1.35rem; }

.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.05rem; }
.field label { font-size: .92rem; font-weight: 700; }
.field .req { color: #8A5F14; }
@media (prefers-color-scheme: dark) { .field .req { color: var(--ocre-300); } }
.field .help { font-size: .84rem; color: var(--text-muted); }

.field input[type="text"], .field input[type="tel"], .field input[type="email"],
.field select, .field textarea, .field input[type="file"] {
  width: 100%; padding: .75rem .85rem; background: var(--bg); color: var(--text);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); transition: border-color .15s var(--ease);
}
.field textarea { min-height: 118px; resize: vertical; min-width: 0; }
.field input[type="file"] { min-width: 0; max-width: 100%; font-size: .92rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); opacity: .9; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-muted); }
.field .error { font-size: .86rem; color: #8C1D18; font-weight: 600; display: none; }
@media (prefers-color-scheme: dark) { .field .error { color: #FFB4AB; } }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #8C1D18; }
@media (prefers-color-scheme: dark) { .field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #FFB4AB; } }
.field.is-invalid .error { display: block; }

.choice-grid { display: grid; gap: .6rem; grid-template-columns: 1fr; margin-bottom: 1.1rem; }
@media (min-width: 520px) { .choice-grid { grid-template-columns: repeat(2, 1fr); } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: block; padding: .8rem .9rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  font-size: .94rem; font-weight: 600; cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.choice input:hover + span { border-color: var(--text-muted); }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.consent { display: flex; gap: .65rem; align-items: flex-start; margin-block: 1.1rem; }
.consent input { margin-top: .3em; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--corteza-700); }
.consent label { font-size: .88rem; color: var(--text-muted); line-height: 1.5; }
.consent a { color: var(--link); font-weight: 600; }
.fstep > .error { display: none; font-size: .86rem; color: #8C1D18; font-weight: 600; }
@media (prefers-color-scheme: dark) { .fstep > .error { color: #FFB4AB; } }

.form-nav { display: flex; gap: .7rem; margin-top: 1.5rem; }
.form-nav .btn { flex: 1; }

/* Trampa antispam: fuera de pantalla, no display:none (algunos bots lo detectan). */
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.form-alert {
  display: none; gap: .6rem; align-items: flex-start; padding: .85rem 1rem; margin-bottom: 1.1rem;
  border-radius: var(--r-sm); font-size: .92rem; background: #FDECEA; border: 1px solid #E9A6A0; color: #8C1D18;
}
@media (prefers-color-scheme: dark) { .form-alert { background: #3A1A18; border-color: #7A3A35; color: #FFB4AB; } }
.form-alert.is-visible { display: flex; }

.form-done { display: none; text-align: center; padding-block: 1.5rem; }
.form-done.is-visible { display: block; }
.form-done svg { color: var(--accent); margin: 0 auto 1rem; }
.form-done h3 { font-size: 1.4rem; }
.form-done p { margin-inline: auto; color: var(--text-muted); }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

.contact-aside > p { color: var(--text-muted); }
.contact-aside dl { margin: 1.75rem 0 0; display: grid; gap: 1.1rem; }
.contact-aside dt { font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .1rem; }
.contact-aside dd { margin: 0; font-size: 1.1rem; }
.contact-aside dd a { font-weight: 700; color: var(--link); text-decoration: none; }
.contact-aside dd a:hover { text-decoration: underline; }

/* --- 14. Boton flotante de WhatsApp -------------------------------------- */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 80;
  display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.1rem; border-radius: var(--r-pill);
  background: var(--wa); color: var(--wa-ink); font-weight: 700; font-size: .95rem; text-decoration: none;
  box-shadow: var(--shadow-md); transition: background-color .18s var(--ease), transform .15s var(--ease);
}
.wa-float:hover { background: var(--wa-dark); }
.wa-float:active { transform: translateY(1px); }
@media (max-width: 520px) { .wa-float .wa-label { display: none; } .wa-float { padding: .9rem; } }

/* --- 15. Pie ------------------------------------------------------------- */
.site-footer { background: var(--corteza-900); color: var(--muted-on-dark); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; margin-bottom: 2.5rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { color: var(--text-on-dark); font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: var(--muted-on-dark); text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.site-footer .brand-text { color: var(--text-on-dark); }
.site-footer .brand-text em { color: var(--ocre-300); }
.footer-about p { font-size: .95rem; margin-top: 1rem; }
.footer-legal {
  border-top: 1px solid rgba(243, 235, 224, .16); padding-top: 1.75rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .86rem;
}
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-credit { border-top: 1px solid rgba(243, 235, 224, .1); margin-top: 1.5rem; padding-top: 1.25rem; font-size: .84rem; max-width: none; }
.footer-credit a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* --- 16. Migas ----------------------------------------------------------- */
.crumbs { padding-top: 1.25rem; font-size: .86rem; color: var(--text-muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: .45rem; color: var(--line-strong); }

/* --- 16b. Paginas de servicio -------------------------------------------- */
.detail-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1.25fr .75fr; } }
.detail-grid > * { min-width: 0; }

/* align-self:start: sin esto la caja se estira a toda la fila y deja hueco bajo el boton. */
.sticky-cta {
  align-self: start; position: sticky; top: 96px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.5rem;
}
.sticky-cta h3 { font-size: 1.15rem; }
.sticky-cta p { font-size: .94rem; color: var(--text-muted); }
.sticky-cta .btn { margin-top: .35rem; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist svg { flex-shrink: 0; margin-top: .3em; color: #8A5F14; }
@media (prefers-color-scheme: dark) { .checklist svg { color: var(--ocre-300); } }

.mini-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: clamp(1.75rem, 4vw, 2.5rem); }
@media (min-width: 700px) { .mini-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mini-grid { grid-template-columns: repeat(3, 1fr); } }
.mini-grid > * { min-width: 0; }
.mini-card { padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.mini-card h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.mini-card p { font-size: .95rem; color: var(--text-muted); margin: 0; }

.price-box { margin-top: 2rem; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); padding: clamp(1.1rem, 3vw, 1.75rem); }
.price-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .35rem 1.5rem; padding-block: .85rem; border-bottom: 1px solid var(--line); }
.price-row:first-of-type { padding-top: 0; }
.price-what { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--head); }
.price-val strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--head); }
.price-val small { color: var(--text-muted); font-size: .85rem; }
.price-note { margin: 1rem 0 0; font-size: .9rem; color: var(--text-muted); }

.cta-strip { background: var(--corteza-700); color: var(--text-on-dark); border-radius: var(--r-md); padding: clamp(1.75rem, 4vw, 3rem); }
@media (prefers-color-scheme: dark) { .cta-strip { background: #3B2722; } }
.cta-strip h2 { color: var(--text-on-dark); margin-bottom: .4rem; }
.cta-strip > p { color: var(--muted-on-dark); margin-bottom: 1.5rem; max-width: 52ch; }
.cta-strip .otras-vias { margin-bottom: 0; }
.ast-note--dark { border-top-color: rgba(243, 235, 224, .18); color: var(--muted-on-dark); }
.ast-note--dark strong { color: #FFFFFF; }
.ast-note--dark a { color: var(--ocre-300); }

/* --- 16c. Guias (blog) ----------------------------------------------------- */
.article-head { max-width: 62rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.article-head h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); margin-bottom: .45em; }
.article-meta { margin: 1.25rem 0 0; font-size: .88rem; color: var(--text-muted); max-width: 70ch; }

.article-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .article-grid { grid-template-columns: minmax(0, 1fr) 19rem; } }
.article-grid > * { min-width: 0; }

.article-body { max-width: 46rem; }
.article-body h2 { margin-top: 2.6rem; font-size: clamp(1.6rem, 3vw, 2.15rem); }
.article-body ul, .article-body ol { padding-left: 1.3rem; display: grid; gap: .7rem; }
.article-body li { padding-left: .2rem; }
.article-body li::marker { color: #8A5F14; font-weight: 700; }
@media (prefers-color-scheme: dark) { .article-body li::marker { color: var(--ocre-300); } }
.article-body p { max-width: none; }

.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: var(--r-md); padding: 1.25rem 1.4rem; margin: 0 0 1.75rem; }
.callout p { margin: 0; max-width: none; }
.callout .callout-title { font-family: var(--font-display); font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--head); margin-bottom: .45rem; }

.toc { border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.4rem; margin: 0 0 1.5rem; background: var(--surface); }
.toc .toc-title { font-family: var(--font-display); font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--head); margin: 0 0 .6rem; }
.toc ol { margin: 0; padding-left: 1.2rem; gap: .35rem; }
.toc a { text-decoration: none; font-weight: 600; color: var(--link); }
.toc a:hover { text-decoration: underline; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); margin-block: 1.25rem; -webkit-overflow-scrolling: touch; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .93rem; line-height: 1.5; }
.table-wrap caption { text-align: left; padding: .9rem 1rem .4rem; font-family: var(--font-display); font-weight: 700; color: var(--head); font-size: .98rem; caption-side: top; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: .75rem 1rem; border-top: 1px solid var(--line); }
.table-wrap thead th { background: var(--bg-alt); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.table-wrap tbody th { font-weight: 700; color: var(--head); width: 28%; }
.table-wrap td { color: var(--text-muted); }

.disclaimer { margin-top: 2.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--text-muted); }

.sources { padding-left: 1.3rem; display: grid; gap: .6rem; max-width: 62rem; font-size: .93rem; }
.sources a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.footer-sub { margin-top: 1.75rem; }

/* --- 17. CTA de refuerzo al cierre de cada modulo ------------------------ */
.cta-inline {
  margin-top: clamp(2rem, 4vw, 2.75rem); display: flex; flex-wrap: wrap; align-items: center;
  gap: 1rem clamp(1.25rem, 3vw, 2rem); padding: 1.15rem clamp(1.15rem, 3vw, 1.6rem);
  background: var(--bg-alt); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r-md);
}
.cta-inline p { flex: 1 1 20rem; margin: 0; color: var(--text); }
.cta-inline .btn { flex: 0 0 auto; }
.section--tint .cta-inline { background: var(--surface); }
.group-band .cta-inline { background: rgba(42, 33, 30, .7); border-color: rgba(243, 235, 224, .22); }
.group-band .cta-inline p { color: var(--text-on-dark); }
@media (max-width: 560px) { .cta-inline .btn { width: 100%; } }

/* --- 18. Revelado al hacer scroll ---------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); }
  .reveal.is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
}

/* --- 19. Impresion ------------------------------------------------------- */
@media print {
  .site-header, .wa-float, .site-footer, .form-shell, .hero-rings { display: none; }
  body { background: #fff; color: #000; }
}

/* Validez del presupuesto, bajo las tres tarjetas de la home */
.validity { margin: -.25rem 0 clamp(2rem, 4vw, 3rem); font-size: .98rem; color: var(--text-muted); max-width: none; }
.validity strong { color: var(--head); }

/* --- Tarjeta de cookies (la monta consent.js) ------------------------------ */
/* Abajo a la izquierda, para no pelearse con el boton de WhatsApp (abajo a la derecha). */
.cookie-card {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 95;
  width: min(30rem, calc(100vw - 2rem));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 10px 40px rgba(42, 33, 30, .22), 0 2px 8px rgba(42, 33, 30, .12);
  overflow: hidden;
}
.cookie-top {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem;
  padding: .9rem 1rem; border-bottom: 1px solid var(--line); background: var(--bg-alt);
}
.cookie-brand .brand-text { font-size: 1rem; }
.cookie-titulo { margin: 0; text-align: center; font-size: 1rem; font-weight: 700; letter-spacing: -.012em; color: var(--text); }
.cookie-x { display: inline-flex; padding: .35rem; cursor: pointer; background: none; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); color: var(--text); }
.cookie-x:hover { background: var(--surface); border-color: var(--text); }
.cookie-cuerpo { padding: 1.1rem 1rem .25rem; }
.cookie-cuerpo p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--text); }
.cookie-cuerpo a { color: var(--link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cookie-panel { padding: .75rem 1rem 0; display: grid; gap: .5rem; }
.cookie-opcion { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-alt); }
.cookie-opcion strong { display: block; font-size: .92rem; }
.cookie-opcion small { display: block; font-size: .82rem; color: var(--text-muted); line-height: 1.4; }
.cookie-opcion input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; margin-top: .15rem; accent-color: var(--corteza-700); cursor: pointer; }
.cookie-fija { font-size: .8rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; margin-top: .15rem; }
.cookie-botones { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1rem; }
.cookie-botones .btn { flex: 1 1 auto; padding: .7rem 1rem; font-size: .93rem; }
.cookie-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1rem; padding: 0 1rem 1rem; font-size: .78rem; }
.cookie-legal a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 560px) {
  .cookie-card { left: .5rem; right: .5rem; bottom: .5rem; width: auto; }
  .cookie-botones .btn { flex: 1 1 100%; }
}

/* --- Paginas legales ------------------------------------------------------- */
.legal { max-width: 72ch; }
.legal h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); margin-top: 2.2rem; }
.legal ul { padding-left: 1.3rem; display: grid; gap: .55rem; }
.legal li::marker { color: #8A5F14; }
@media (prefers-color-scheme: dark) { .legal li::marker { color: var(--ocre-300); } }
.legal p { max-width: none; }
