/* ===========================================================================
   7 Días de Nado — hoja de estilos
   Identidad: agua de pileta día/noche, acento coral de boya.
   Display: Archivo. Cuerpo: Inter. Mobile-first.
   =========================================================================== */

:root {
  --agua-profunda: #0a2540;
  --agua-noche:    #061a30;
  --agua:          #1565a6;
  --agua-clara:    #2e9bd6;
  --agua-luz:      #5fb6e6;
  --espuma:        #f5fafd;
  --espuma-2:      #e9f3fa;
  --tinta:         #0c1b2a;
  --gris:          #5a7184;
  --gris-claro:    #8aa0b2;
  --linea:         #d8e6f0;
  --boya:          #ff6a3d;
  --boya-d:        #e8521f;
  --ok:            #1ba37e;
  --low:           #e09020;
  --full:          #b8c6d1;
  --blanco:        #ffffff;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --shadow: 0 18px 50px -22px rgba(10,37,64,.45);
  --shadow-sm: 0 6px 20px -10px rgba(10,37,64,.35);
  --maxw: 1140px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--tinta);
  background: var(--blanco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

/* ── Tipografía utilitaria ──────────────────────────────────────────────── */
.eyebrow, .kicker {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--agua-clara); margin: 0 0 .6rem;
}
.kicker--center { text-align: center; }
.h2 {
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.1; letter-spacing: -.01em; margin: 0 0 1rem; color: var(--agua-profunda);
}
.h2--center { text-align: center; }
.lead { font-size: 1.1rem; color: #2b3d4d; }

/* ── Botones ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: .95rem;
  padding: .75rem 1.3rem; border-radius: 100px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s var(--ease), box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn--solid { background: var(--boya); color: #fff; box-shadow: 0 10px 24px -10px rgba(255,106,61,.7); }
.btn--solid:hover { background: var(--boya-d); transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: currentColor; color: var(--agua-profunda); }
.btn--ghost:hover { background: var(--agua-profunda); color: #fff; }
.btn--lg { padding: .95rem 1.8rem; font-size: 1.02rem; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── Marca ──────────────────────────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--agua); }
.brand__icon { color: var(--agua-clara); display: flex; }
.brand__txt { display: flex; flex-direction: column; line-height: .92; font-family: 'Archivo', sans-serif; }
.brand__txt strong { font-size: 1.2rem; font-weight: 900; letter-spacing: .01em; color: var(--agua-profunda); }
.brand__txt small { font-size: .64rem; font-weight: 800; letter-spacing: .26em; color: var(--agua-clara); }
.brand__tag { font-size: .5rem; font-weight: 700; letter-spacing: .16em; color: var(--gris-claro); font-style: normal; text-transform: uppercase; margin-top: 2px; }
.brand--light { color: #fff; }
.brand--light .brand__txt strong { color: #fff; }
.brand--light .brand__icon { color: var(--agua-luz); }

/* ── Nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--linea);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.nav__links { display: none; gap: 1.4rem; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--agua-profunda); opacity: .82; }
.nav__links a:hover { opacity: 1; color: var(--agua); }
.nav__cta { display: inline-flex; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; color: #eaf4fb; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(95,182,230,.45), transparent 55%),
    radial-gradient(90% 80% at 0% 110%, rgba(46,155,214,.35), transparent 60%),
    linear-gradient(160deg, var(--agua-profunda), var(--agua-noche) 70%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    repeating-linear-gradient(180deg, transparent 0 38px, rgba(255,255,255,.045) 38px 40px);
}
/* OJO: el padding lateral (20px) debe quedar; antes estaba en 0 y el shorthand
   pisaba el padding de .container, dejando el contenido del hero pegado al borde. */
.hero__inner { position: relative; z-index: 1; padding: clamp(3rem, 8vw, 5.5rem) 20px 0; }
.hero__copy { max-width: 640px; }
.hero .eyebrow { color: var(--agua-luz); }
.hero__title { margin: .2rem 0 1.1rem; display: flex; flex-direction: column; }
.hero__big {
  font-family: 'Archivo', sans-serif; font-weight: 900; line-height: .92;
  font-size: clamp(3rem, 13vw, 6.5rem); letter-spacing: -.02em; color: #fff;
}
.hero__big--accent {
  color: transparent; -webkit-text-stroke: 2px var(--agua-luz);
  background: linear-gradient(180deg, var(--agua-luz), var(--agua-clara)); -webkit-background-clip: text; background-clip: text;
}
.hero__lead { font-size: 1.12rem; color: #c4ddee; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero__actions .btn--ghost { color: #fff; }
.hero__actions .btn--ghost:hover { background: #fff; color: var(--agua-profunda); }
.hero__facts {
  position: relative; z-index: 1; list-style: none; margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  padding: 1.4rem 0; display: grid; gap: 1.1rem; border-top: 1px solid rgba(255,255,255,.15);
}
.hero__facts li { display: flex; flex-direction: column; gap: .15rem; }
.fact__k { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 1.05rem; color: #fff; }
.fact__l { font-size: .82rem; color: var(--agua-luz); text-transform: uppercase; letter-spacing: .08em; }

/* ── Secciones ──────────────────────────────────────────────────────────── */
.section { padding: clamp(3.2rem, 8vw, 5.5rem) 0; }
.section--alt { background: var(--espuma); }
.section__grid { display: grid; gap: 2.4rem; }

.bigstats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.bigstats li {
  background: linear-gradient(160deg, var(--agua-profunda), var(--agua)); color: #fff;
  border-radius: var(--r-md); padding: 1.3rem 1rem; text-align: center;
}
.bigstats strong { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: clamp(1.8rem,5vw,2.6rem); display: block; line-height: 1; }
.bigstats span { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--agua-luz); }

/* ── Pasos (estilo modelo: ícono lineal, centrado, sin caja) ─────────────── */
.steps { list-style: none; margin: 2.6rem 0; padding: 0; display: grid; gap: 2.2rem; text-align: center; }
.step { padding: .4rem 1rem; }
.step__icon { color: var(--agua); display: inline-flex; width: 58px; height: 58px; margin-bottom: 1rem; }
.step__icon svg { width: 100%; height: 100%; }
.step h3 { font-family: 'Archivo', sans-serif; font-size: 1.05rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .5rem; color: var(--agua-profunda); }
.step p { margin: 0 auto; max-width: 300px; color: var(--gris); }

/* ── Donaciones ─────────────────────────────────────────────────────────── */
.donate__inner { display: grid; gap: 2rem; align-items: center; }
.donate__note { font-size: .85rem; color: var(--gris-claro); margin-top: .9rem; }
.donate__meter {
  background: linear-gradient(160deg, var(--agua-profunda), var(--agua-noche)); color: #fff;
  border-radius: var(--r-lg); padding: 1.8rem; box-shadow: var(--shadow);
}
.meter__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--agua-luz); }
.meter__amount { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: clamp(2.2rem,7vw,3.2rem); line-height: 1.1; margin: .3rem 0 1rem; }
.meter__bar { height: 12px; border-radius: 100px; background: rgba(255,255,255,.14); overflow: hidden; }
.meter__bar span { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--agua-luz), var(--boya)); transition: width .8s var(--ease); }
.meter__foot { font-size: .85rem; color: #b7d3e6; margin-top: .8rem; }

/* ── Turnos ─────────────────────────────────────────────────────────────── */
.turnos__hint { color: var(--gris); max-width: 620px; margin: .4rem auto 1.6rem; }
.legend { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; margin-bottom: 1.8rem; font-size: .85rem; color: var(--gris); }
.legend__i { display: inline-flex; align-items: center; gap: .45rem; }
.dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.dot--free { background: var(--ok); }
.dot--low  { background: var(--low); }
.dot--full { background: var(--full); }

.grid-loading, .grid-error { text-align: center; color: var(--gris); padding: 3rem 0; }

/* Selector de días — grilla, sin scroll lateral: se ven todos */
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: 1.4rem; }
.day-tab {
  border: 1px solid var(--linea); background: #fff; border-radius: var(--r-sm);
  padding: .55rem .4rem; cursor: pointer; text-align: center; transition: all .15s var(--ease);
}
.day-tab small { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gris-claro); }
.day-tab strong { font-family: 'Archivo', sans-serif; font-size: 1.3rem; color: var(--agua-profunda); display: block; line-height: 1.1; }
.day-tab .day-tab__free { font-size: .66rem; color: var(--ok); font-weight: 600; }
.day-tab.is-active { background: var(--agua-profunda); border-color: var(--agua-profunda); }
.day-tab.is-active small, .day-tab.is-active strong { color: #fff; }
.day-tab.is-active .day-tab__free { color: var(--agua-luz); }

/* Grilla de horas del día */
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.slot {
  border: 1px solid var(--linea); border-radius: var(--r-sm); background: #fff;
  padding: .7rem .8rem; display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem;
  cursor: pointer; transition: all .15s var(--ease); text-align: left; font: inherit;
}
.slot:hover:not(.slot--full) { border-color: var(--agua-clara); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.slot__main { display: flex; flex-direction: column; gap: .15rem; }
.slot__time { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--agua-profunda); line-height: 1; }
.slot__sub { font-size: .72rem; color: var(--gris); }
.slot__cupo { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.slot__cupo b { font-family: 'Archivo', sans-serif; font-size: 1.1rem; }
.slot__cupo span { font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gris-claro); }
.slot--free .slot__cupo b { color: var(--ok); }
.slot--low  { border-color: #f4e2c2; }
.slot--low  .slot__cupo b { color: var(--low); }
.slot--full { background: var(--espuma-2); cursor: not-allowed; opacity: .75; }
.slot--full .slot__cupo b { color: var(--full); }
.slot--full .slot__time { color: var(--gris-claro); }

/* ── Sponsors ───────────────────────────────────────────────────────────── */
.sponsors { list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.sponsor {
  display: flex; align-items: center; justify-content: center; min-height: 84px; padding: 1.1rem 1rem;
  background: #fff; border: 1px solid var(--linea); border-radius: var(--r-md); transition: box-shadow .2s, transform .15s var(--ease);
}
.sponsor:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.sponsor img { max-height: 44px; max-width: 85%; width: auto; object-fit: contain; }
.sponsor__name { font-family: 'Archivo', sans-serif; font-weight: 700; color: var(--gris); font-size: 1rem; text-align: center; line-height: 1.2; }

/* ── Galería ────────────────────────────────────────────────────────────── */
.galeria { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-top: 2.4rem; }
.galeria__item { display: block; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--espuma-2); }
.galeria__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.galeria__item:hover img { transform: scale(1.06); }
.galeria__nota { margin-top: 1.4rem; font-size: .82rem; color: var(--gris-claro); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer { background: var(--agua-profunda); color: #c4ddee; padding: 2.8rem 0; }
.footer__inner { display: grid; gap: 1.4rem; }
.footer__info p { margin: .2rem 0; font-size: .92rem; }
.footer__info a { color: var(--agua-luz); }
.footer__social { display: flex; align-items: center; gap: .9rem; }
.footer__social-l { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--agua-luz); }
.footer__social a { color: #c4ddee; display: inline-flex; transition: color .15s; }
.footer__social a:hover { color: #fff; }
.footer__copy { font-size: .82rem; color: #7fa6c2; margin: 0; }

/* ── Modal ──────────────────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(6,25,48,.6); backdrop-filter: blur(3px); }
.modal__box {
  position: relative; z-index: 1; background: #fff; width: 100%; max-width: 560px;
  border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 1.8rem 1.4rem 1.6rem; box-shadow: var(--shadow);
  max-height: 92vh; overflow-y: auto; animation: slideUp .3s var(--ease);
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal__x { position: absolute; top: .8rem; right: 1rem; border: 0; background: none; font-size: 1.8rem; line-height: 1; color: var(--gris); cursor: pointer; }
.modal__title { font-family: 'Archivo', sans-serif; font-size: 1.5rem; margin: 0 0 .2rem; color: var(--agua-profunda); }
.modal__turno {
  background: var(--espuma); border-left: 3px solid var(--agua-clara); border-radius: 8px;
  padding: .6rem .85rem; font-weight: 600; color: var(--agua); margin: .4rem 0 1.2rem; font-size: .95rem;
}
.form__row { display: grid; gap: .9rem; margin-bottom: .9rem; }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field span { font-size: .82rem; font-weight: 600; color: var(--agua-profunda); }
.field input {
  font: inherit; padding: .7rem .8rem; border: 1.5px solid var(--linea); border-radius: var(--r-sm);
  background: #fff; transition: border-color .15s; color: var(--tinta);
}
.field input:focus { outline: none; border-color: var(--agua-clara); box-shadow: 0 0 0 3px rgba(46,155,214,.15); }
.field input.is-invalid { border-color: var(--boya); }
.form__nota { font-size: .85rem; color: #2b3d4d; background: var(--espuma); border-left: 3px solid var(--agua-clara); border-radius: var(--r-sm); padding: .65rem .8rem; margin: .2rem 0 1rem; }
.form__error { background: #fdece6; color: var(--boya-d); border-radius: var(--r-sm); padding: .65rem .8rem; font-size: .88rem; margin: .2rem 0 1rem; }
.form__actions { display: flex; gap: .7rem; justify-content: flex-end; margin-top: 1rem; flex-wrap: wrap; }
.modal__ok { text-align: center; padding: 1.5rem 0 .5rem; }
.modal__okicon { color: var(--ok); margin-bottom: .6rem; }
.modal__ok h3 { font-family: 'Archivo', sans-serif; font-size: 1.5rem; margin: 0 0 .5rem; color: var(--agua-profunda); }
.modal__ok p { color: var(--gris); margin: 0 auto 1.3rem; max-width: 360px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .hero__facts { grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
  .days { grid-template-columns: repeat(7, 1fr); } /* los 7 días en una fila */
  .slots { grid-template-columns: repeat(3, 1fr); }
  .sponsors { grid-template-columns: repeat(4, 1fr); }
  .form__row { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: auto 1fr auto; align-items: center; }
  .footer__copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; }
}
@media (min-width: 768px) {
  .nav__links { display: flex; }
  .modal { align-items: center; }
  .modal__box { border-radius: var(--r-lg); }
  .section__grid { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .steps { grid-template-columns: repeat(3,1fr); }
  .steps .step + .step { border-left: 1px solid var(--linea); }
  .galeria { grid-template-columns: repeat(4, 1fr); }
  .donate__inner { grid-template-columns: 1.1fr .9fr; }
  .slots { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .nav__cta { display: inline-flex; }
  .slots { grid-template-columns: repeat(6, 1fr); }
}

/* ── Globito flotante de WhatsApp ───────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 20px; right: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -6px rgba(0,0,0,.45);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 30px -6px rgba(0,0,0,.5); }
.wa-float svg { width: 32px; height: 32px; }
@media (min-width: 768px) { .wa-float { bottom: 26px; right: 26px; } }

/* ── Accesibilidad ──────────────────────────────────────────────────────── */
:focus-visible { outline: 3px solid var(--agua-clara); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
