/* Soluciones Saludables: bio link. Mobile-first. Colores tomados del logotipo. */
:root {
  --green: #1d7a24;
  --green-light: #1e8226;
  --green-dark: #166019;
  --blue: #0a5ccf;
  --blue-dark: #0a3f94;
  --ink: #12294a;
  --muted: #4a5d78;
  --tint-blue: #eaf3fc;
  --tint-green: #ebf6e8;
  --line: #d3e1f0;
  --paper: #fcfeff;
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.55; color: var(--ink); background: var(--paper); overflow-x: hidden; position: relative; }
/* Fondo: base blanca fría con una sola luz suave que se desplaza despacio y pasa del verde al azul de la marca */
@property --wc { syntax: "<color>"; inherits: true; initial-value: #2e9a35; }
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #f6f9fc; }
.glow { position: absolute; left: 50%; top: 30%; width: max(130vw, 900px); height: max(130vw, 900px); margin: calc(max(130vw, 900px) / -2) 0 0 calc(max(130vw, 900px) / -2); border-radius: 50%; background: radial-gradient(closest-side, rgba(46, 154, 53, .22), rgba(46, 154, 53, 0)); background: radial-gradient(closest-side, color-mix(in srgb, var(--wc) 24%, transparent), transparent); animation: glow-hue 26s ease-in-out infinite alternate, glow-move 34s ease-in-out infinite alternate; will-change: transform; }
@keyframes glow-hue { from { --wc: #2e9a35; } to { --wc: #0a6ee6; } }
@keyframes glow-move { from { transform: translate(-6vw, -3vh) scale(1); } to { transform: translate(6vw, 5vh) scale(1.06); } }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
html { -webkit-tap-highlight-color: transparent; }
a, button, label, select, input { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.modal, .modal:focus, .modal__box:focus, .modal__box:focus-visible { outline: none; }
.ic--fill { fill: currentColor; stroke: none; }
.ic { width: 1.35em; height: 1.35em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 8px; }

/* Hero */
.hero { position: relative; text-align: center; padding: 32px 20px 40px; max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; isolation: isolate; overflow: clip; }
.hero__logo { width: 140px; height: 140px; margin: 0 auto 14px; }
.hero__name { font-size: clamp(1.7rem, 7.4vw, 2.2rem); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; color: var(--blue); }
.hero__name span:last-child { color: var(--green); }

.btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 12px 22px; border-radius: 999px; font-weight: 800; font-size: 1.0625rem; letter-spacing: .01em; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease); }
.btn__ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; flex: none; }
.btn__ic .ic { width: 24px; height: 24px; }
.btn:active { transform: scale(.98); }
.btn--wa { background: linear-gradient(135deg, var(--green-light), var(--green-dark)); color: #fff; width: 100%; margin-inline: auto; box-shadow: 0 8px 20px rgba(22,96,25,.32), inset 0 0 0 2px rgba(255,255,255,.18); }
.btn--wa .btn__ic { color: var(--green); }
.btn--wa:hover { box-shadow: 0 10px 26px rgba(22,96,25,.42), inset 0 0 0 2px rgba(255,255,255,.3); transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--blue-dark); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.btn--light .btn__ic { background: var(--tint-blue); color: var(--blue); }
.btn--light:hover { background: var(--tint-blue); }

.social { display: flex; justify-content: center; gap: 16px; margin: 16px 0 0; }
.hero__desc { margin-top: clamp(28px, 6svh, 48px); max-width: 38ch; color: var(--muted); font-size: 1rem; line-height: 1.55; text-wrap: balance; }
.hero .btn { margin-top: 24px; }
.social a { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: #fff; background: var(--blue); box-shadow: 0 6px 16px rgba(10,92,207,.3), inset 0 0 0 2px rgba(255,255,255,.2); transition: transform .2s var(--ease); }
.social li:first-child a { background: var(--green); box-shadow: 0 6px 16px rgba(22,96,25,.3), inset 0 0 0 2px rgba(255,255,255,.2); }
.social a:hover { transform: translateY(-2px); }
.social .ic { width: 26px; height: 26px; }

/* Secciones */
.sec { padding: 40px 20px; }
.sec > * { max-width: 520px; margin-left: auto; margin-right: auto; }
.sec--tint { background: rgba(255,255,255,.55); backdrop-filter: blur(6px); border-block: 1px solid rgba(10,92,207,.12); }
.sec h2 { font-size: clamp(1.4rem, 6vw, 1.75rem); line-height: 1.2; font-weight: 800; letter-spacing: -.015em; margin-bottom: 24px; text-wrap: balance; text-align: center; }

/* Servicios: filas con regla, no tarjetas idénticas */
.svcs { border-top: 1.5px solid var(--line); }
.svc { display: grid; grid-template-columns: 48px 1fr; gap: 4px 14px; align-items: center; padding: 18px 4px; border-bottom: 1.5px solid var(--line); min-height: 76px; transition: background-color .2s var(--ease); }
.svc:hover, .svc.is-on { background: var(--tint-blue); }
.svc { cursor: pointer; }
.svc__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--tint-green); color: var(--green); grid-row: span 2; }
.svc__ic .ic { width: 26px; height: 26px; }
.svc__t { display: grid; gap: 2px; }
.svc__t strong { font-size: 1.0625rem; line-height: 1.25; }
.svc__t span { color: var(--muted); font-size: .9375rem; line-height: 1.4; }
.svc__go { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; font-size: .9375rem; }
.svc__go .ic { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.svc:hover .svc__go .ic { transform: translateX(4px); }

/* Destinos */
.dests { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.dest { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-weight: 600; line-height: 1.3; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.dest .ic { color: var(--green); width: 1.2em; height: 1.2em; }
.dest:hover { border-color: var(--blue); }
.dest--wide { border-radius: 18px; flex: 1 1 100%; }

.bens { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.bens li { display: grid; justify-items: center; align-content: start; gap: 12px; padding: 26px 14px; background: rgba(255,255,255,.82); text-align: center; }
.ben__ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--tint-blue); color: var(--blue); }
.bens li:nth-child(odd) .ben__ic { background: var(--tint-green); color: var(--green); }
.ben__ic .ic { width: 28px; height: 28px; }
.ben__t { font-weight: 700; line-height: 1.3; font-size: .9875rem; max-width: 16ch; }

/* CTA final: azul comprometido */
.cta { background: var(--blue-dark); color: #fff; text-align: center; padding: 52px 24px 56px; display: grid; justify-items: center; gap: 14px; }
.cta h2 { font-size: clamp(1.6rem, 7vw, 2.1rem); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; max-width: 18ch; text-wrap: balance; }
.cta p { max-width: 34ch; color: #dbe8fb; margin-bottom: 8px; }
.cta .btn { width: 100%; max-width: 360px; }
.cta :focus-visible { outline-color: #fff; }

/* Footer */
.foot { padding: 40px 20px calc(32px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; display: grid; justify-items: center; gap: 14px; text-align: center; font-size: .875rem; color: var(--muted); }
.foot__logo { width: 64px; height: 64px; }
.foot__social { display: flex; gap: 12px; }
.foot__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--blue); border: 1.5px solid var(--line); background: #fff; transition: border-color .2s var(--ease), color .2s var(--ease); }
.foot__social a:hover { border-color: var(--blue); }
.foot__social .ic { width: 20px; height: 20px; }
.foot p { font-size: .8125rem; }
.foot__dev { color: var(--ink); font-weight: 600; }
.foot__dev a { display: inline-block; padding: 12px 0; margin: -12px 0; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.foot__dev a:hover { color: var(--blue-dark); }

/* Formulario de solicitud */
/* Ventana flotante */
html.modal-open { overflow: hidden; }
.modal { border: 0; padding: 0; margin: auto; background: transparent; width: calc(100% - 24px); max-width: 560px; max-height: calc(100dvh - 24px); overflow: visible; color: var(--ink); opacity: 0; transform: translateY(20px) scale(.98); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.modal.is-open { opacity: 1; transform: none; }
.modal::backdrop { background: rgba(8, 28, 60, 0); transition: background .35s var(--ease); }
.modal.is-open::backdrop { background: rgba(8, 28, 60, .52); }
.modal__box { position: relative; max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; padding: 30px 20px 24px; border-radius: 24px; background: #fff; box-shadow: 0 30px 70px -20px rgba(8, 28, 60, .5); }
.modal__close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--tint-blue); color: var(--blue-dark); cursor: pointer; transition: background-color .2s var(--ease), transform .2s var(--ease); }
.modal__close:hover { background: #d6e8fa; }
.modal__close:active { transform: scale(.94); }
.modal__close .ic { width: 22px; height: 22px; }
.booking__head { text-align: center; margin: 0 40px 20px; }
.booking__head h3 { margin: 0 0 4px; font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; color: var(--blue-dark); }
.booking__head p { color: var(--muted); font-size: .9375rem; }
.booking__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.fld { display: grid; gap: 6px; align-content: start; }
.fld label, .fld__lab { font-weight: 700; font-size: .9375rem; }
.time12 { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; border-radius: 14px; }
.seg { display: flex; min-height: 50px; border: 1.5px solid #b9c9dc; border-radius: 14px; overflow: hidden; background: #fff; }
.fld .seg input { position: absolute; opacity: 0; width: 1px; min-height: 0; height: 1px; padding: 0; border: 0; pointer-events: none; }
.seg label { display: grid; place-items: center; padding: 0 14px; min-width: 52px; font-weight: 700; font-size: .9375rem; cursor: pointer; color: var(--muted); transition: background-color .2s var(--ease), color .2s var(--ease); }
.seg label + input + label { border-left: 1.5px solid #b9c9dc; }
.seg input:checked + label { background: var(--blue); color: #fff; }
.seg input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: -3px; }
.time12[aria-invalid="true"] select, .time12[aria-invalid="true"] .seg { border-color: #b3261e; }
.fld input, .fld select { width: 100%; min-height: 50px; padding: 10px 14px; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #b9c9dc; border-radius: 14px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); appearance: none; -webkit-appearance: none; }
.fld select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230a5ccf' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.fld input:focus, .fld select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10,92,207,.16); }
.fld [aria-invalid="true"] { border-color: #b3261e; }
.fld__err { min-height: 0; color: #b3261e; font-size: .875rem; font-weight: 600; }
.booking__send { width: 100%; margin: 22px auto 0; max-width: 420px; border: 0; cursor: pointer; font-family: inherit; }
.booking__note { margin-top: 12px; text-align: center; color: var(--muted); font-size: .8125rem; }

/* Escritorio: adaptación de la composición móvil */
@media (min-width: 760px) {
  .hero { max-width: 640px; }
  .hero .btn { max-width: 400px; }
  .hero__logo { width: 168px; height: 168px; }
  .btn--wa { max-width: 400px; }
  .sec > * { max-width: 920px; }
  .sec { padding: 64px 32px; }
  .svcs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .svcs li:nth-child(2) .svc, .svcs li:nth-child(1) .svc { border-top: 0; }
  .dest--wide { flex: 0 1 auto; }
  .bens { grid-template-columns: repeat(4, 1fr); }
  .modal__box { padding: 36px 32px 30px; }
  .booking__grid { grid-template-columns: 1fr 1fr; }
  .fld--full { grid-column: 1 / -1; }
  .cta { padding: 80px 24px; }
}
@media (max-width: 340px) { .bens { grid-template-columns: 1fr; } .svc__go { font-size: .875rem; } }
@media (prefers-reduced-motion: reduce) {  * { transition: none !important; scroll-behavior: auto !important; } }

/* Preload: dos capas a pantalla completa. Entra el logo sobre la oscura; luego la oscura sube y la clara baja. */
.pre { position: fixed; inset: 0; z-index: 100; pointer-events: none; animation: pre-gone 0s linear 4.9s forwards; }
.pre__light, .pre__dark { position: absolute; inset: 0; will-change: transform; }
.pre__light { background: #eaf3fc; animation: pre-down 1.7s cubic-bezier(.76, 0, .24, 1) 2.9s forwards; }
.pre__dark { display: grid; place-items: center; background: #0a2a5e; animation: pre-up 1.7s cubic-bezier(.76, 0, .24, 1) 2.7s forwards; }
.pre__dark img { width: 150px; height: 150px; padding: 18px; border-radius: 50%; background: #fff; opacity: 0; transform: scale(.9); animation: pre-logo 1.8s var(--ease) .4s forwards; }
@keyframes pre-up { to { transform: translateY(-100%); } }
@keyframes pre-down { to { transform: translateY(100%); } }
@keyframes pre-logo { to { opacity: 1; transform: scale(1); } }
@keyframes pre-gone { to { visibility: hidden; } }

/* Entrada de la página mientras las capas se abren */
.hero > * { animation: rise 1.1s var(--ease) both; animation-delay: calc(3.5s + var(--i, 0) * .14s); }
.hero > :nth-child(1) { --i: 0; } .hero > :nth-child(2) { --i: 1; } .hero > :nth-child(3) { --i: 2; } .hero > :nth-child(4) { --i: 3; } .hero > :nth-child(5) { --i: 4; }
.bg { animation: fade-in 1.6s ease-out 3.3s both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pre { display: none; } .hero > *, .bg { animation: none; } }

/* Scroll: revelado al desplazarse. CSS scroll-driven donde existe; IntersectionObserver como respaldo. */
.progress { position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 50; background: linear-gradient(90deg, var(--green-light), var(--blue)); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: view()) {
  [data-r] { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 65%; }
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  .cta h2 { animation-name: reveal-zoom; animation-range: entry 0% cover 45%; }
  @keyframes reveal { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
  @keyframes reveal-zoom { from { opacity: 0; transform: translateY(40px) scale(.94); } to { opacity: 1; transform: none; } }
  @keyframes grow { to { transform: scaleX(1); } }
}
@supports not (animation-timeline: view()) {
  html.js [data-r] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  html.js [data-r].in { opacity: 1; transform: none; }
  .progress { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-r] { animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }
  .progress { animation: none; } .glow { animation: none; } .modal, .modal::backdrop { transition: none; }
}
.time12 select { padding-left: 14px; padding-right: 32px; background-position: right 10px center; }
@media (max-width: 400px) { .time12 { grid-template-columns: 1fr 1fr; } .time12 .seg { grid-column: 1 / -1; } .seg label { flex: 1; } }

.btn { white-space: nowrap; }
@media (max-width: 340px) { .btn { gap: 8px; padding: 12px 14px; font-size: 1rem; } .btn__ic { width: 34px; height: 34px; } }
