/* ===================================================================
   WAHOO SWIMMING CLUB — Design tokens
   Colores tomados del logo: coral del pez + turquesa del agua
=================================================================== */
:root {
  --ink: #2E86C4;
  --ink-soft: #3AA0E3;
  --text-dark: #16384f;
  --teal: #3AA0E3;
  --teal-bright: #6FC3F0;
  --teal-deep: #2E86C4;
  --coral: #FF8A00;
  --coral-deep: #E67600;
  --coral-light: #FFC78A;
  --pale-blue: #E4F2FC;
  --sand: #FBEEDD;
  --white: #FFFFFF;

  --font-display: "Anton", sans-serif;
  --font-body: "Work Sans", sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--sand);
  color: var(--text-dark);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--teal);
}

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
  margin: 0;
}

h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--text-dark); }
h3 { font-size: 1.3rem; color: var(--text-dark); }

p { margin: 0 0 1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-coral {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 6px 0 var(--coral-deep);
}
.btn-coral:hover { box-shadow: 0 8px 0 var(--coral-deep); }

.btn-outline {
  background: transparent;
  border-color: var(--sand);
  color: var(--sand);
}
.btn-outline:hover { background: rgba(255,255,255,0.08); }

.btn-teal {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 6px 0 var(--teal-deep);
}

/* ---------------- NAV ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 3px solid var(--coral);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
}
.nav-brand span {
  font-family: var(--font-display);
  color: var(--sand);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--sand);
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--coral);
  transition: width 0.2s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; color: var(--sand); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ink);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
    border-bottom: 3px solid var(--coral);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------------- WAKE DIVIDER (signature element) ---------------- */
.wake {
  width: 100%;
  height: 60px;
  display: block;
  overflow: visible;
}
.wake path {
  fill: none;
  stroke: var(--teal);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: stroke-dashoffset 1.4s cubic-bezier(.4,.7,.3,1);
}
.wake.in-view path { stroke-dashoffset: 0; }
.wake.bright path { stroke: var(--coral); }

/* ---------------- HERO ---------------- */
.hero {
  background: var(--ink);
  color: var(--sand);
  position: relative;
  overflow: hidden;
  padding: 90px 0 40px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: var(--white);
}
.hero h1 .hl { color: var(--coral); }
.hero .lead {
  font-size: 1.15rem;
  max-width: 46ch;
  color: #CFE9EC;
  margin: 20px 0 30px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badge {
  justify-self: center;
  width: min(320px, 80%);
  border-radius: 50%;
  background: var(--white);
  padding: 18px;
  box-shadow: 0 0 0 8px rgba(0,166,199,0.25);
}
.hero-mascot {
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  width: min(360px, 85%);
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.25));
}
.hero-stripes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image: repeating-linear-gradient(-35deg, var(--teal-bright) 0 6px, transparent 6px 40px);
}

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-badge { width: 200px; }
}

/* ---------------- SECTION GENERIC ---------------- */
.section { padding: 70px 0; }
.section.on-ink { background: var(--ink); color: var(--sand); }
.section.on-ink h2 { color: var(--white); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: inherit; opacity: 0.85; }

/* ---------------- ABOUT ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.stat-row { display: flex; gap: 32px; margin-top: 24px; flex-wrap: wrap; }
.stat b { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--coral); }
.stat span { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------------- PROGRAMS ---------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: 18px;
  padding: 28px;
  border: 1px solid rgba(11,42,51,0.08);
  box-shadow: 0 10px 30px rgba(11,42,51,0.06);
}
.card .tag {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.card ul { padding-left: 18px; margin: 14px 0; }
.card li { margin-bottom: 6px; }
.card .price {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--coral-deep);
  margin: 10px 0 4px;
}
.card .price small {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  opacity: 0.6;
  text-transform: none;
}

/* ---------------- SCHEDULE PILLS ---------------- */
.schedule-location { margin-bottom: 36px; }
.schedule-location:last-child { margin-bottom: 0; }
.schedule-location-title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.schedule-location-sub {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 16px;
}
.schedule-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.pill {
  background: #FCE29A;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow: 0 6px 0 #E3B94A;
}
.pill small {
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.75;
  margin-left: 6px;
}

/* ---------------- SCHEDULE TABLE ---------------- */
.schedule {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(11,42,51,0.06);
}
.schedule th, .schedule td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(11,42,51,0.08);
  font-size: 0.95rem;
}
.schedule th {
  background: var(--ink);
  color: var(--sand);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.schedule tr:last-child td { border-bottom: none; }

/* ---------------- TESTIMONIALS ---------------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.testi {
  background: rgba(255,255,255,0.06);
  border-left: 3px solid var(--coral);
  padding: 22px 24px;
  border-radius: 4px 14px 14px 4px;
}
.testi p { font-style: italic; opacity: 0.9; }
.testi b { color: var(--teal-bright); font-style: normal; }

/* ---------------- CTA BAND ---------------- */
.cta-band {
  background: linear-gradient(120deg, var(--coral) 0%, var(--coral-deep) 100%);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { opacity: 0.95; max-width: 60ch; margin: 14px auto 26px; }

/* ---------------- FOOTER ---------------- */
footer {
  background: var(--ink);
  color: var(--sand);
  padding: 50px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}
footer h4 {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  color: var(--teal-bright);
  margin-bottom: 12px;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 8px; opacity: 0.9; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  font-size: 0.82rem;
  opacity: 0.7;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------- PAYMENTS PAGE ---------------- */
.pay-hero {
  background: var(--ink);
  color: var(--white);
  padding: 70px 0 50px;
  text-align: center;
}
.pay-hero .eyebrow { color: var(--coral); }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.plan {
  background: var(--white);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(11,42,51,0.07);
  border-top: 6px solid var(--teal);
  display: flex;
  flex-direction: column;
}
.plan.featured { border-top-color: var(--coral); position: relative; }
.plan.featured::before {
  content: "Más popular";
  position: absolute;
  top: -14px; right: 20px;
  background: var(--coral);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
}
.plan .price { font-family: var(--font-display); font-size: 2.3rem; color: var(--text-dark); margin: 10px 0; }
.plan .price small { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; opacity: 0.6; }
.plan ul { padding-left: 18px; margin: 16px 0; flex-grow: 1; }
.plan li { margin-bottom: 8px; font-size: 0.94rem; }
.plan .btn { justify-content: center; margin-top: 10px; }

/* ---------------- PAY PANELS (inscripción / mensualidad) ---------------- */
.pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pay-panel {
  background: var(--white);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(11,42,51,0.07);
  border-top: 6px solid var(--teal);
  display: flex;
  flex-direction: column;
}
.pay-panel .tag {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.pay-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  opacity: 0.65;
  margin: 14px 0 6px;
}
.pay-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(11,42,51,0.15);
  background: var(--sand);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1.1em), calc(100% - 15px) calc(1.1em);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

@media (max-width: 820px) {
  .pay-grid { grid-template-columns: 1fr; }
}

.paynote {
  background: rgba(31,165,184,0.08);
  border: 1px dashed var(--teal);
  border-radius: 14px;
  padding: 22px 26px;
  font-size: 0.92rem;
  margin-top: 40px;
}
.paynote b { color: var(--teal); }

.alt-pay {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.alt-pay .item {
  flex: 1;
  min-width: 220px;
  background: var(--white);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 8px 20px rgba(11,42,51,0.05);
}
