/* ============================================================================
   NOMAD · Detailing & Vehicle Care — HOJA DE ESTILOS (maqueta fase 1)
   ----------------------------------------------------------------------------
   Paleta y tipografías tomadas del Manual de Marca del cliente:
     Balsam Green #1F4D3A · Black Brown #161111 · Floral White #FFFDF2
     Moss Green #7EBD55 · Muted Teal #83B18E
   Tipografías: Albeit Grotesk Caps (encabezados, pendiente de entrega) y
   Montserrat (textos). Mientras el cliente entrega Albeit Grotesk, los
   encabezados usan Montserrat en mayúsculas con tracking cerrado.

   Contraste verificado: los botones verde bálsamo usan texto floral blanco
   (9.6:1) y los botones verde musgo usan texto negro marrón (8.4:1).
   El verde de WhatsApp se usa con texto oscuro para cumplir WCAG AA.

   Orden: 1 variables · 2 base · 3 utilidades · 4 botones · 5 formularios
          6 encabezado · 7 secciones · 8 pie · 9 flotantes · 10 animaciones
          11 responsive
============================================================================ */

/* ============================ 1. VARIABLES ============================== */
:root {
  --balsam: #1F4D3A;
  --balsam-dark: #12301F;
  --balsam-deep: #0B1F14;
  --moss: #7EBD55;
  --teal: #83B18E;
  --ink: #161111;
  --floral: #FFFDF2;
  --surface: #FFFFFF;
  --surface-soft: #F4F1E4;

  --text: #3A4145;
  --text-soft: #6B7479;
  --line: #DFE3D6;

  --whatsapp: #25D366;
  --error: #B3261E;
  --success: #1E7A4B;

  --shadow-sm: 0 2px 10px rgba(22, 17, 17, .05);
  --shadow-md: 0 10px 30px rgba(22, 17, 17, .08);
  --shadow-lg: 0 22px 50px rgba(22, 17, 17, .14);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --container: 1180px;
  --t: .25s cubic-bezier(.4, 0, .2, 1);

  --font-body: "Montserrat", "San Francisco", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Montserrat", "San Francisco", -apple-system, "Segoe UI", Arial, sans-serif;
  --track-head: .01em;
  --track-caps: .09em;
}

/* ============================ 2. BASE =================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--floral);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: var(--track-head);
}
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); text-transform: uppercase; letter-spacing: .005em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); text-transform: uppercase; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
a { color: var(--balsam); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--moss); outline-offset: 2px; border-radius: 4px; }

/* ============================ 3. UTILIDADES ============================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.container--narrow { max-width: 800px; }

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

.icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.2em; }
.desktop-only { display: none; }

.eyebrow {
  display: inline-block;
  font-size: .74rem; font-weight: 800; letter-spacing: var(--track-caps);
  text-transform: uppercase; color: var(--moss); margin: 0 0 .7em;
}
.eyebrow--light { color: var(--moss); }

.note { font-size: .84rem; color: var(--text-soft); }
.note--light { color: rgba(255, 253, 242, .66); }
.note--center { text-align: center; margin-top: 1.6em; }
.optional { font-weight: 500; color: var(--text-soft); font-size: .85em; }

/* ============================ 4. BOTONES ================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .78em 1.4em; font-family: var(--font-head);
  font-weight: 700; font-size: .9rem; letter-spacing: .02em; line-height: 1.2;
  border: 2px solid transparent; border-radius: var(--radius-pill);
  cursor: pointer; text-decoration: none; white-space: nowrap; text-transform: uppercase;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: none; }
.btn--lg { padding: .92em 1.7em; font-size: .96rem; }
.btn--icon { padding: .7em 1em; }
.btn--primary { background: var(--balsam); color: var(--floral); box-shadow: 0 8px 20px rgba(31, 77, 58, .28); }
.btn--primary:hover { background: var(--balsam-dark); }
.btn--dark { background: var(--ink); color: var(--floral); }
.btn--dark:hover { background: #000; }
.btn--whatsapp { background: var(--whatsapp); color: #0B2A16; box-shadow: 0 8px 20px rgba(37, 211, 102, .3); }
.btn--whatsapp:hover { background: #1EBE5B; }
.btn--outline { background: transparent; border-color: var(--floral); color: var(--floral); }
.btn--outline:hover { background: rgba(255, 253, 242, .12); }
.btn--outline-dark { background: transparent; border-color: var(--balsam); color: var(--balsam); }
.btn--outline-dark:hover { background: rgba(31, 77, 58, .07); }
.btn--ghost { background: transparent; color: var(--balsam); }
.btn--ghost:hover { background: rgba(31, 77, 58, .07); }
.btn--plain { background: transparent; color: var(--balsam); padding-inline: .6em; }
.btn--plain:hover { background: rgba(31, 77, 58, .07); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }

/* ============================ 5. FORMULARIOS ============================ */
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label, .field__label { font-weight: 700; font-size: .86rem; color: var(--ink); margin-bottom: .4em; letter-spacing: .01em; }
.field-row { display: grid; gap: 0 16px; grid-template-columns: 1fr; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  font: inherit; font-size: .95rem; color: var(--ink); background: var(--surface);
  padding: .72em .95em; border: 2px solid var(--line); border-radius: var(--radius-sm);
  width: 100%; transition: border-color var(--t), box-shadow var(--t);
}
input:focus, select:focus, textarea:focus { border-color: var(--moss); box-shadow: 0 0 0 4px rgba(126, 189, 85, .16); outline: none; }
textarea { resize: vertical; min-height: 96px; }
select {
  appearance: none; padding-right: 2.6em;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-soft) 50%), linear-gradient(135deg, var(--text-soft) 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 15px) 50%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.help { font-size: .8rem; color: var(--text-soft); margin: .4em 0 0; }
.field-error { font-size: .8rem; font-weight: 700; color: var(--error); margin: .35em 0 0; }
.field-error:empty { display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.checkbox { display: flex; gap: .65em; align-items: flex-start; font-size: .87rem; margin: .4em 0; }
.checkbox input { width: 19px; height: 19px; margin-top: .22em; accent-color: var(--balsam); flex: none; }
.notice {
  display: flex; gap: .6em; align-items: flex-start; background: var(--surface-soft);
  border-left: 4px solid var(--moss); padding: .85em 1em; border-radius: var(--radius-sm);
  font-size: .84rem; margin: .6em 0 1.2em;
}
.notice .icon { color: var(--balsam); margin-top: .15em; }
.form-message { font-weight: 700; margin: .8em 0 0; min-height: 1.2em; }
.form-message.is-success { color: var(--success); }
.form-message.is-error { color: var(--error); }

/* ============================ 6. ENCABEZADO ============================= */
.demo-banner {
  display: flex; align-items: center; justify-content: center; gap: .6em;
  position: relative; padding: .5em 2.8em .5em 1em;
  background: var(--moss); color: #17300C;
  font-size: .78rem; font-weight: 700; text-align: center; letter-spacing: .02em;
}
.demo-banner__dot { width: 8px; height: 8px; border-radius: 50%; background: #2F5C14; flex: none; animation: pulse 1.8s ease-in-out infinite; }
.demo-banner__close { position: absolute; right: .7em; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: #17300C; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 253, 242, .95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); transition: box-shadow var(--t);
}
.site-header.is-stuck { box-shadow: var(--shadow-md); }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: .65em; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 42px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: var(--font-head); font-size: 1.32rem; font-weight: 900; letter-spacing: .12em; color: var(--ink); }
.brand__text small { font-size: .56rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: var(--balsam); }
.site-header__actions { display: flex; align-items: center; gap: .55em; margin-left: auto; }

.nav { display: none; }
.nav__list { display: flex; gap: 2px; }
.nav__list a { display: block; padding: .55em .8em; border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; font-size: .88rem; }
.nav__list a:hover { background: rgba(31, 77, 58, .07); color: var(--balsam); text-decoration: none; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 2px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--balsam); cursor: pointer; font-size: 1.25rem;
}
.nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--floral); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md); padding: 10px 22px 20px;
}
.nav.is-open .nav__list { flex-direction: column; gap: 2px; }
.nav.is-open .nav__list a { padding: .8em .5em; border-bottom: 1px solid var(--line); border-radius: 0; }

/* ============================ 7. SECCIONES ============================== */
.section { padding: 64px 0; }
.section--tight { padding: 34px 0; }
.section--soft { background: var(--surface-soft); }
.section--brand { background: linear-gradient(155deg, var(--balsam-deep), var(--balsam) 60%, #2C6B4F); color: rgba(255, 253, 242, .88); }
.section--brand h2, .section--brand h3 { color: var(--floral); }
.section--dark { background: linear-gradient(165deg, var(--balsam-deep), #143726); color: rgba(255, 253, 242, .85); }
.section--dark h2, .section--dark h3 { color: var(--floral); }
.section--accent { background: var(--moss); color: #17300C; }
.section--accent h2 { color: #10260A; }
.section--accent .section__intro { color: #1D3A0F; }

.section__head { max-width: 760px; margin-bottom: 42px; }
.section__intro { font-size: 1.03rem; }
.section__intro--light { color: rgba(255, 253, 242, .78); }
.grid { display: grid; gap: 22px; }

/* --- Hero --- */
.hero { position: relative; padding: 46px 0 26px; background: linear-gradient(180deg, #F7F4E7, var(--floral)); overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px; border-radius: 50%; background: rgba(126, 189, 85, .12); pointer-events: none; }
.hero__inner { display: grid; gap: 38px; position: relative; }
.hero__lead { font-size: 1.08rem; max-width: 56ch; }
.highlight { color: var(--balsam); position: relative; white-space: nowrap; }
.highlight::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .3em; background: rgba(126, 189, 85, .35); border-radius: 4px; z-index: -1; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8em; margin: 1.7em 0 1.5em; }
.hero__actions .btn--outline { border-color: var(--balsam); color: var(--balsam); }
.hero__actions .btn--outline:hover { background: rgba(31, 77, 58, .08); }
.hero__facts { display: flex; flex-wrap: wrap; gap: .5em 1.5em; font-size: .86rem; font-weight: 700; color: var(--ink); }
.hero__facts li { display: flex; align-items: center; gap: .45em; }
.hero__facts .icon { color: var(--balsam); }
.hero__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 52px; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px 14px; text-align: center; box-shadow: var(--shadow-sm); }
.facts__value { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 900; color: var(--balsam); text-transform: uppercase; line-height: 1.15; }
.facts__label { font-size: .8rem; color: var(--text-soft); font-weight: 600; }

/* --- Promesas --- */
.promises { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.promises li { display: flex; gap: .85em; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); }
.promises .icon { color: var(--moss); font-size: 1.7rem; width: 1.7em; height: 1.7em; }
.promises strong { display: block; color: var(--ink); font-size: .95rem; }
.promises span { font-size: .85rem; }

/* --- Filosofía --- */
.philosophy { max-width: 760px; }
.philosophy__text { font-size: 1.12rem; }
.philosophy__claim { font-family: var(--font-head); font-size: clamp(1.1rem, 2.6vw, 1.6rem); font-weight: 800; color: var(--moss); margin: 1.4em 0 0; text-transform: uppercase; letter-spacing: .02em; }

/* --- Servicios --- */
.grid--services { grid-template-columns: 1fr; }
.service-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 22px; box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--moss); }
.service-card--featured { border-color: var(--balsam); box-shadow: var(--shadow-md); }
.service-card__badge {
  position: absolute; top: -12px; left: 22px; background: var(--balsam); color: var(--floral);
  font-size: .68rem; font-weight: 800; letter-spacing: var(--track-caps); text-transform: uppercase;
  padding: .4em .9em; border-radius: var(--radius-pill);
}
.service-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--radius-md); background: rgba(126, 189, 85, .18); color: var(--balsam); font-size: 1.6rem; margin-bottom: 14px; }
.service-card__price { font-family: var(--font-head); font-size: 1.55rem; font-weight: 900; color: var(--balsam); margin: .1em 0 .5em; }
.service-card__price small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--text-soft); }
.service-card__best { display: flex; gap: .5em; align-items: flex-start; font-size: .84rem; font-weight: 700; color: var(--balsam); background: rgba(126, 189, 85, .14); border-radius: var(--radius-sm); padding: .6em .8em; margin-bottom: 1.1em; }
.service-card ul { margin-bottom: 1.4em; }
.service-card li { display: flex; gap: .55em; align-items: flex-start; font-size: .89rem; margin-bottom: .45em; }
.service-card li .icon { color: var(--moss); margin-top: .22em; }
.service-card__duration { font-size: .82rem; color: var(--text-soft); margin-bottom: 1.1em; }
.service-card__limit { font-size: .8rem; color: var(--text-soft); border-left: 3px solid var(--line); padding-left: .8em; margin-bottom: 1.2em; }
.service-card .btn { margin-top: auto; width: 100%; }

.addons { margin-top: 46px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow-sm); }
.addons__title { font-size: 1.05rem; }
.addons__list { display: grid; gap: .6em 1.4em; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 1em 0 1.2em; }
.addons__list li { display: flex; gap: .55em; align-items: flex-start; font-size: .89rem; }
.addons__list .icon { color: var(--moss); margin-top: .22em; }
.addons__list span { color: var(--text-soft); font-size: .84rem; display: block; }

/* --- Galería / comparador --- */
.filters { display: flex; flex-wrap: wrap; gap: .5em; margin-bottom: 26px; }
.filters button {
  font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; cursor: pointer;
  padding: .55em 1.1em; border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 253, 242, .32); background: rgba(255, 253, 242, .08); color: var(--floral);
  transition: background var(--t), color var(--t);
}
.filters button:hover { background: rgba(255, 253, 242, .18); }
.filters button[aria-pressed="true"] { background: var(--floral); color: var(--balsam); border-color: var(--floral); }

.grid--work { grid-template-columns: 1fr; }
.work-card { background: rgba(255, 253, 242, .06); border: 1px solid rgba(255, 253, 242, .14); border-radius: var(--radius-lg); overflow: hidden; }
.work-card.is-hidden { display: none; }
.compare { position: relative; --pos: 50%; overflow: hidden; background: #08170F; }
.compare__frame { position: relative; aspect-ratio: 4 / 3; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__after { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--floral); box-shadow: 0 0 12px rgba(0, 0, 0, .5); pointer-events: none; }
.compare__handle::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: var(--floral); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.compare__handle::before { content: "⇄"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; font-size: 1.05rem; font-weight: 800; color: var(--balsam); }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; }
.compare input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 46px; height: 100%; cursor: ew-resize; }
.compare input[type="range"]::-moz-range-thumb { width: 46px; height: 100%; border: 0; background: transparent; cursor: ew-resize; }
.compare:focus-within { outline: 3px solid var(--moss); outline-offset: 2px; }
.compare__label { position: absolute; bottom: 10px; z-index: 3; pointer-events: none; background: rgba(8, 23, 15, .82); color: var(--floral); font-size: .68rem; font-weight: 800; letter-spacing: var(--track-caps); text-transform: uppercase; padding: .3em .7em; border-radius: var(--radius-pill); }
.compare__label--before { left: 10px; }
.compare__label--after { right: 10px; }
.work-card__info { padding: 18px 20px; }
.work-card__info h3 { font-size: 1rem; margin-bottom: .35em; }
.work-card__meta { display: flex; flex-wrap: wrap; gap: .4em 1.1em; font-size: .8rem; color: rgba(255, 253, 242, .7); }
.work-card__meta span { display: inline-flex; align-items: center; gap: .35em; }

/* --- Pasos --- */
.steps { display: grid; gap: 20px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 22px; box-shadow: var(--shadow-sm); }
.steps__num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 12px; background: var(--balsam); color: var(--floral); font-family: var(--font-head); font-weight: 900; font-size: 1.05rem; }
.steps li h3 { font-size: 1rem; margin-bottom: .3em; }
.steps li p { margin: 0; font-size: .89rem; }

/* --- Asistente de solicitud --- */
.request { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.progress { display: flex; flex-wrap: wrap; gap: .3em .7em; padding: 16px 20px; background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.progress__step { display: flex; align-items: center; gap: .5em; font-size: .78rem; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: .03em; }
.progress__step::after { content: "›"; margin-left: .35em; color: var(--line); }
.progress__step:last-child::after { content: ""; }
.progress__num { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); font-size: .74rem; font-weight: 800; }
.progress__step.is-active { color: var(--balsam); }
.progress__step.is-active .progress__num { background: var(--moss); border-color: var(--moss); color: #17300C; }
.progress__step.is-done .progress__num { background: var(--balsam); border-color: var(--balsam); color: var(--floral); }

.request__body { display: grid; }
.request__form { padding: 28px 22px; }
.step-panel { display: none; }
.step-panel.is-visible { display: block; animation: fadeUp .3s ease both; }
.step-panel__title { margin-bottom: 1.1em; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.service-options { display: grid; gap: 12px; margin-bottom: 22px; }
.service-option {
  position: relative; display: flex; gap: 14px; align-items: flex-start; cursor: pointer;
  border: 2px solid var(--line); border-radius: var(--radius-md); padding: 16px;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.service-option:hover { border-color: var(--moss); background: rgba(126, 189, 85, .05); }
.service-option input { position: absolute; opacity: 0; pointer-events: none; }
.service-option__mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; margin-top: .2em; position: relative; transition: border-color var(--t); }
.service-option__mark::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--balsam); transform: scale(0); transition: transform var(--t); }
.service-option input:checked ~ .service-option__mark { border-color: var(--balsam); }
.service-option input:checked ~ .service-option__mark::after { transform: scale(1); }
.service-option input:focus-visible ~ .service-option__mark { outline: 3px solid var(--moss); outline-offset: 2px; }
.service-option:has(input:checked) { border-color: var(--balsam); background: rgba(31, 77, 58, .05); }
.service-option__body { flex: 1; }
.service-option__body strong { display: block; color: var(--ink); font-size: .97rem; }
.service-option__body p { margin: .2em 0 .55em; font-size: .85rem; }
.service-option__meta { display: flex; flex-wrap: wrap; gap: .3em 1.1em; font-size: .8rem; font-weight: 700; color: var(--text-soft); }
.service-option__price { color: var(--balsam); font-family: var(--font-head); font-weight: 900; }

.condition-options { display: grid; gap: 10px; }
.condition-option { position: relative; display: flex; gap: .8em; align-items: flex-start; cursor: pointer; border: 2px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px; transition: border-color var(--t), background var(--t); }
.condition-option:hover { border-color: var(--moss); }
.condition-option input { position: absolute; opacity: 0; pointer-events: none; }
.condition-option input:checked ~ .condition-option__mark { border-color: var(--balsam); }
.condition-option input:checked ~ .condition-option__mark::after { transform: scale(1); }
.condition-option:has(input:checked) { border-color: var(--balsam); background: rgba(31, 77, 58, .05); }
.condition-option__mark { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; margin-top: .2em; position: relative; transition: border-color var(--t); }
.condition-option__mark::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--balsam); transform: scale(0); transition: transform var(--t); }
.condition-option strong { display: block; color: var(--ink); font-size: .93rem; }
.condition-option span { font-size: .83rem; }

.windows { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.window {
  font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; text-align: center;
  padding: .8em .5em; border: 2px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); transition: all var(--t);
}
.window small { display: block; font-size: .74rem; font-weight: 600; color: var(--text-soft); }
.window:hover:not(:disabled) { border-color: var(--moss); background: rgba(126, 189, 85, .07); }
.window.is-selected { background: var(--balsam); border-color: var(--balsam); color: var(--floral); }
.window.is-selected small { color: rgba(255, 253, 242, .8); }
.window:disabled { opacity: .45; cursor: not-allowed; }
.windows__empty { grid-column: 1 / -1; padding: 18px; text-align: center; background: var(--surface-soft); border-radius: var(--radius-md); font-size: .88rem; }

.request__nav { display: flex; gap: .7em; justify-content: space-between; margin-top: 1.7em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.request__nav #btn-next, .request__nav #btn-submit { margin-left: auto; }

.summary { background: var(--balsam-deep); color: rgba(255, 253, 242, .9); padding: 28px 22px; }
.summary__title { color: var(--floral); font-size: 1rem; }
.summary__list { margin: 0 0 1em; }
.summary__list > div { display: flex; justify-content: space-between; gap: 1em; padding: .55em 0; border-bottom: 1px dashed rgba(255, 253, 242, .18); font-size: .85rem; }
.summary__list dt { color: rgba(255, 253, 242, .6); margin: 0; }
.summary__list dd { margin: 0; font-weight: 700; color: var(--floral); text-align: right; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; margin: 1.2em 0 .6em; font-size: .9rem; }
.summary__total strong { font-family: var(--font-head); font-size: 1.4rem; font-weight: 900; color: var(--floral); }
.summary__note { font-size: .78rem; color: rgba(255, 253, 242, .6); margin: 0; }

.confirmation { padding: 44px 22px; text-align: center; }
.confirmation__icon { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: rgba(30, 122, 75, .12); color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; }
.confirmation__lead { font-weight: 700; color: var(--ink); margin-top: 1.4em; }
.confirmation__next { max-width: 560px; margin: 0 auto 1.6em; text-align: left; counter-reset: next; }
.confirmation__next li { position: relative; padding-left: 2.2em; margin-bottom: .6em; font-size: .9rem; counter-increment: next; }
.confirmation__next li::before { content: counter(next); position: absolute; left: 0; top: .1em; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--balsam); color: var(--floral); font-size: .74rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.confirmation .summary__list { max-width: 540px; margin: 0 auto 1.6em; text-align: left; }
.confirmation .summary__list > div { border-bottom: 1px dashed var(--line); }
.confirmation .summary__list dt { color: var(--text-soft); }
.confirmation .summary__list dd { color: var(--ink); }
.confirmation__actions { display: flex; flex-wrap: wrap; gap: .7em; justify-content: center; margin-bottom: 1.2em; }

/* --- Área de servicio --- */
.area { display: grid; gap: 36px; }
.areas { display: grid; gap: 10px; margin: 1.5em 0; }
.areas li { display: flex; align-items: center; gap: .7em; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 16px; font-weight: 700; color: var(--ink); }
.areas .icon { color: var(--moss); }
.areas span { font-weight: 500; color: var(--text-soft); font-size: .85rem; margin-left: auto; }
.area__map img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* --- Pilares educativos --- */
.grid--pillars { grid-template-columns: 1fr; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 22px; box-shadow: var(--shadow-sm); }
.pillar h3 { font-size: .98rem; text-transform: none; letter-spacing: 0; }
.pillar p { margin: 0; font-size: .88rem; }
.pillar__tag { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--moss); margin-bottom: .5em; }

/* --- Reseñas --- */
.grid--reviews { grid-template-columns: 1fr; }
.review { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 22px; box-shadow: var(--shadow-sm); }
.review__stars { display: flex; gap: 2px; color: var(--moss); margin-bottom: .8em; }
.review p { font-size: .93rem; font-style: italic; }
.review__author { margin-top: auto; font-size: .82rem; font-weight: 700; color: var(--text-soft); }

/* --- FAQ --- */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__btn { display: flex; align-items: center; justify-content: space-between; gap: 1em; width: 100%; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--ink); padding: 1.15em 0; }
.accordion__btn .icon { color: var(--moss); transition: transform var(--t); }
.accordion__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.accordion__panel { overflow: hidden; height: 0; transition: height var(--t); }
.accordion__panel p { padding: 0 0 1.2em; margin: 0; font-size: .9rem; }

/* --- Opt-in --- */
.optin { display: grid; gap: 24px; align-items: center; }
.optin h2 { font-size: 1.4rem; }
.optin p { margin: 0; }
.optin__form { display: flex; flex-wrap: wrap; gap: .6em; }
.optin__form input { flex: 1 1 240px; border-color: transparent; }
.optin__form .form-message { flex: 1 0 100%; color: #10260A; }
.optin__form .form-message.is-error { color: #5A1500; }

/* --- Contacto --- */
.contact { display: grid; gap: 36px; }
.contact__list { display: grid; gap: 14px; margin: 1.5em 0; }
.contact__list li { display: flex; gap: .8em; align-items: flex-start; }
.contact__list .icon { color: var(--balsam); font-size: 1.3rem; width: 1.3em; height: 1.3em; margin-top: .15em; }
.contact__list strong { display: block; color: var(--ink); font-size: .85rem; }
.contact__list a, .contact__list span { font-size: .93rem; }
.socials { display: flex; gap: .6em; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-soft); color: var(--balsam); font-size: 1.2rem; transition: background var(--t), color var(--t), transform var(--t); }
.socials a:hover { background: var(--balsam); color: var(--floral); transform: translateY(-2px); text-decoration: none; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 22px; box-shadow: var(--shadow-md); }

/* ============================ 8. PIE =================================== */
.site-footer { background: var(--balsam-deep); color: rgba(255, 253, 242, .72); padding: 58px 0 26px; }
.site-footer h3 { color: var(--floral); font-size: .82rem; letter-spacing: var(--track-caps); text-transform: uppercase; margin-bottom: 1.1em; }
.site-footer__inner { display: grid; gap: 34px; }
.site-footer__brand img { width: 200px; height: auto; }
.site-footer__brand p { font-size: .86rem; margin: 1.1em 0; }
.site-footer__nav ul, .site-footer__contact ul { display: grid; gap: .5em; font-size: .87rem; }
.site-footer a { color: rgba(255, 253, 242, .72); }
.site-footer a:hover { color: var(--floral); }
.socials--footer a { background: rgba(255, 253, 242, .1); color: var(--floral); }
.socials--footer a:hover { background: var(--moss); color: #17300C; }
.site-footer__legal { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255, 253, 242, .14); display: flex; flex-wrap: wrap; gap: .5em 1.6em; justify-content: space-between; font-size: .79rem; }
.site-footer__legal p { margin: 0; }
.site-footer__demo { color: var(--moss); }

/* ============================ 9. FLOTANTES ============================== */
.floating { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: flex; flex-direction: column; gap: 10px; }
.floating__btn { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: var(--shadow-lg); transition: transform var(--t), background var(--t); }
.floating__btn:hover { transform: scale(1.08); text-decoration: none; }
.floating__btn .icon { width: 1.5em; height: 1.5em; }
.floating__btn--sms { background: var(--balsam); color: var(--floral); }
.floating__btn--sms:hover { background: var(--balsam-dark); }
.floating__btn--wa { background: var(--whatsapp); color: #0B2A16; }

.events { position: fixed; right: 18px; bottom: 92px; z-index: 80; width: min(350px, calc(100vw - 36px)); max-height: 58vh; overflow: auto; background: #0C1A12; color: #D9E6DC; border: 1px solid rgba(255, 253, 242, .16); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); font-size: .77rem; }
.events__head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid rgba(255, 253, 242, .12); position: sticky; top: 0; background: #0C1A12; }
.events__head button { background: none; border: 0; color: #D9E6DC; font-size: 1.2rem; cursor: pointer; line-height: 1; }
.events__status { margin: 0; padding: 10px 14px; border-bottom: 1px solid rgba(255, 253, 242, .08); color: var(--moss); }
.events__list { padding: 6px 14px 10px; }
.events__list li { display: flex; gap: .6em; align-items: baseline; padding: 6px 0; border-bottom: 1px solid rgba(255, 253, 242, .07); }
.events__list code { color: #9FD87A; font-size: .75rem; }
.events__list time { margin-left: auto; color: rgba(255, 253, 242, .45); font-size: .7rem; }
.events__clear { width: 100%; background: rgba(255, 253, 242, .08); border: 0; color: #D9E6DC; padding: 8px; cursor: pointer; font: inherit; }
.events-toggle { position: fixed; right: 18px; bottom: 92px; z-index: 79; display: inline-flex; align-items: center; gap: .4em; background: #0C1A12; color: #D9E6DC; border: 1px solid rgba(255, 253, 242, .2); border-radius: var(--radius-pill); padding: .5em .95em; font: inherit; font-size: .77rem; cursor: pointer; }
.events-toggle span { background: var(--moss); color: #17300C; border-radius: var(--radius-pill); padding: 0 .5em; font-weight: 800; }

/* ============================ 10. ANIMACIONES =========================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================ 11. RESPONSIVE ============================ */
@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row--3 { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .grid--work { grid-template-columns: repeat(2, 1fr); }
  .desktop-only { display: inline; }
}

@media (min-width: 780px) {
  .section { padding: 88px 0; }
  .hero { padding: 66px 0 34px; }
  .hero__inner { grid-template-columns: 1.02fr .98fr; align-items: center; gap: 50px; }
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .grid--pillars { grid-template-columns: repeat(3, 1fr); }
  .grid--reviews { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .request__body { grid-template-columns: 1.55fr 1fr; }
  .area { grid-template-columns: 1fr 1fr; align-items: center; }
  .contact { grid-template-columns: 1fr 1.05fr; align-items: start; }
  .optin { grid-template-columns: 1fr 1fr; }
  .site-footer__inner { grid-template-columns: 1.7fr 1fr 1fr 1.1fr; }
  .nav.is-open { position: static; box-shadow: none; border: 0; padding: 0; }
}

@media (min-width: 1020px) {
  .nav { display: block; margin-left: 14px; }
  .menu-toggle { display: none; }
  .grid--services { grid-template-columns: repeat(4, 1fr); }
  .grid--work { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .section__head { margin-bottom: 54px; }
}

@media print {
  .site-header, .floating, .events, .events-toggle, .demo-banner, .filters { display: none !important; }
  .section--dark, .section--brand, .section--accent, .summary, .site-footer { background: #fff !important; color: #000 !important; }
  .section--dark h2, .section--dark h3, .work-card__info h3, .summary__title, .summary__list dd, .summary__total strong { color: #000 !important; }
}
