/* Escuela Rítmica Santa Cruz — línea "azul marino + rosa" (tema oscuro) */

:root {
  --bg: oklch(23% 0.06 258);
  --ink: oklch(20% 0.03 260);
  --ink-soft: oklch(42% 0.02 260);
  --ink-light: oklch(95% 0.01 250);
  --ink-light-soft: oklch(74% 0.02 250);
  --accent: oklch(55% 0.21 350);
  --accent-deep: oklch(28% 0.09 260);
  --accent2: oklch(62% 0.14 240);
  --accent2-soft: oklch(93% 0.02 240);
  --surface: oklch(94% 0.015 250);
  --card: oklch(99% 0.004 250);
  --card-dark: oklch(30% 0.05 258);
  --card-shadow: 0 10px 32px oklch(10% 0.06 260 / 0.35);
  --white: oklch(100% 0 0);
  --line: oklch(88% 0.015 250);

  --font-display: 'Fredoka', ui-rounded, 'Segoe UI', sans-serif;
  --font-body: 'Nunito Sans', ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent2); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 640px) {
  .container { padding: 0 40px; }
}
@media (min-width: 1024px) {
  .container { padding: 0 56px; }
}

/* ---------- Header / nav ---------- */

.site-header {
  padding: 20px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
}
.brand:hover { color: var(--accent); }

.brand-icon {
  flex-shrink: 0;
  border-radius: 50%;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.15;
}

.nav-toggle-checkbox { display: none; }

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  cursor: pointer;
}
.nav-toggle-label span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-light);
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  color: var(--ink-light);
}
.nav-link:hover, .nav-link.active { color: var(--accent); }

@media (max-width: 767px) {
  .nav-toggle-label { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 12px;
    background: var(--card);
    border-radius: 18px;
    box-shadow: var(--card-shadow);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px;
    display: none;
    z-index: 20;
  }
  .site-nav .nav-link {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--ink);
  }
  .site-nav .nav-link:hover, .site-nav .nav-link.active {
    background: var(--surface);
  }
  .nav-toggle-checkbox:checked ~ .site-nav { display: flex; }
}

/* ---------- Buttons / badges ---------- */

.btn-primary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  background: var(--accent);
  color: var(--white);
  padding: 15px 30px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 0 var(--accent-deep);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { color: var(--white); filter: brightness(1.03); }

.badge {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  color: var(--accent2);
  background: var(--accent2-soft);
  padding: 8px 18px;
  border-radius: 100px;
  display: inline-block;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 30%;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    oklch(16% 0.05 260 / 0.94) 0%,
    oklch(16% 0.05 260 / 0.82) 38%,
    oklch(16% 0.05 260 / 0.35) 65%,
    oklch(16% 0.05 260 / 0.08) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
  padding: 72px 0;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  margin: 20px 0 16px;
  color: var(--white);
}

.hero p {
  font-size: 17px;
  line-height: 1.7;
  color: oklch(90% 0.015 250);
  margin: 0 0 8px;
}

.hero p strong {
  color: var(--accent2);
}

.hero .countdown-label {
  color: oklch(78% 0.015 250);
}

@media (max-width: 640px) {
  .hero-media::after {
    background: oklch(14% 0.04 260 / 0.86);
  }
  .hero-content { padding: 56px 0; }
}

/* ---------- Countdown ---------- */

.countdown {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 20px 0 28px;
  flex-wrap: wrap;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
}
.countdown-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 42px);
  color: var(--accent2);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.countdown-sep {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 32px);
  color: var(--line);
  line-height: 1;
  align-self: center;
  margin-top: -14px;
}
.countdown-done {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent-deep);
  font-size: 18px;
  margin: 0;
}

/* ---------- Info strip ---------- */

.info-grid {
  padding-top: 40px;
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--card-shadow);
}

.info-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.info-card svg { flex-shrink: 0; margin-top: 2px; }

.info-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-light-soft);
}
.info-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink-light);
  margin-top: 4px;
}
.info-value a { color: var(--accent2); }
.info-value a:hover { color: var(--accent); }

.info-link {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent2);
  margin-top: 8px;
}
.info-link:hover { color: var(--accent); }

/* ---------- Horarios ---------- */

.section { padding-bottom: 48px; }

.section-title {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 20px;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.group-card.last { grid-column: 1 / -1; }

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

.group-card {
  background: var(--card-dark);
  padding: 28px;
}

.group-card:nth-child(odd):not(.last) {
  border-top-left-radius: 26px;
}

.group-card:nth-child(even):not(.last) {
  border-top-right-radius: 26px;
}

.group-card.last {
  border-bottom-left-radius: 26px;
  border-bottom-right-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.group-card.last h3 { font-size: 32px; }
.group-card.last .last-details { text-align: right; }

@media (max-width: 640px) {
  .group-card.last { flex-direction: column; align-items: flex-start; }
  .group-card.last .last-details { text-align: left; }
}

.group-card .eyebrow {
  font-weight: 800;
  font-size: 13px;
  color: var(--accent2);
  letter-spacing: .02em;
}
.group-card h3 {
  font-size: 20px;
  margin: 8px 0 12px;
  color: var(--ink-light);
}
.group-card .time {
  font-weight: 700;
  color: var(--ink-light-soft);
  font-size: 16px;
}
.group-card .time + .time { margin-top: 4px; }

/* ---------- Circulares teaser / band ---------- */

.band {
  background: var(--card-dark);
  border-radius: 26px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.band h3 { font-size: 20px; color: var(--ink-light); margin-bottom: 12px; }
.band ul { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.9; color: var(--ink-light-soft); }
.band-link { font-weight: 800; font-size: 15px; color: var(--accent2); white-space: nowrap; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--accent-deep);
  color: var(--white);
  padding: 40px 0;
  border-radius: 32px 32px 0 0;
  margin-top: 24px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-inner a { color: var(--white); }
.footer-inner a:hover { color: var(--accent2-soft); }
.footer-brand-block { display: flex; align-items: center; gap: 16px; }
.footer-logos { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.footer-logos img { height: 40px; width: auto; }
.footer-brand { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.footer-sub { font-size: 13px; margin-top: 6px; opacity: .8; }
.footer-contact { font-size: 14px; line-height: 1.9; opacity: .95; }

/* ---------- Page header (non-home pages) ---------- */

.page-hero {
  padding: 24px 0 40px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 38px); color: var(--accent); }
.page-hero p { color: var(--ink-light-soft); font-size: 16px; margin: 10px auto 0; max-width: 620px; }

/* ---------- Gallery (masonry) ---------- */

.gallery-grid {
  column-count: 1;
  column-gap: 18px;
  padding-bottom: 56px;
}
@media (min-width: 640px) { .gallery-grid { column-count: 2; } }
@media (min-width: 1024px) { .gallery-grid { column-count: 3; } }

.gallery-photo {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  break-inside: avoid;
  border: none;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  cursor: zoom-in;
}
.gallery-photo img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .3s ease;
}
.gallery-photo:hover img { transform: scale(1.03); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: oklch(15% 0.03 260 / 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 48px;
  z-index: 100;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px oklch(0% 0 0 / 0.45);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: oklch(100% 0 0 / 0.15);
  border: none;
  color: var(--white);
  border-radius: 100px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: oklch(100% 0 0 / 0.3);
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lightbox { padding: 16px; }
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; }
}

/* ---------- Circulares page ---------- */

.circular-card {
  background: var(--card);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--card-shadow);
}
.circular-card .eyebrow {
  font-weight: 800;
  font-size: 13px;
  color: var(--accent2);
  margin-bottom: 8px;
  display: block;
}
.circular-card h2 { font-size: 21px; color: var(--accent-deep); margin-bottom: 16px; }
.circular-card h3 { font-size: 17px; margin: 20px 0 10px; }
.circular-card p, .circular-card li { color: var(--ink-soft); font-size: 15px; line-height: 1.8; }
.circular-card ul { padding-left: 20px; margin: 0 0 12px; }
.circular-card .highlight {
  background: var(--surface);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 15px;
  color: var(--ink);
}
.circular-card .highlight strong { color: var(--accent-deep); }

/* ---------- Formulario ---------- */

.form-section {
  background: var(--card);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--card-shadow);
}
.form-section h2 { font-size: 20px; color: var(--accent-deep); margin-bottom: 8px; }
.form-section .section-note { color: var(--ink-soft); font-size: 14px; margin: 0 0 24px; }

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.form-field .hint { font-weight: 400; color: var(--ink-soft); }

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="date"],
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-field textarea { resize: vertical; min-height: 90px; font-family: var(--font-body); }

.radio-group { display: flex; gap: 24px; flex-wrap: wrap; }
.radio-option { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.radio-option input { width: 18px; height: 18px; accent-color: var(--accent); }

.legal-note {
  background: var(--surface);
  border-radius: 14px;
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 20px;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-light-soft);
  margin-bottom: 28px;
}
.checkbox-field input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.checkbox-field a { color: var(--accent2); }

.honeypot-field { position: absolute; left: -9999px; top: -9999px; }

.form-notice {
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 14px;
}
.form-notice.is-error { background: oklch(94% 0.08 25); color: oklch(38% 0.15 25); }

/* ---------- Legal page ---------- */

.legal-content {
  max-width: 760px;
  background: var(--card);
  border-radius: 28px;
  padding: 40px;
  margin-bottom: 64px;
  box-shadow: var(--card-shadow);
}
@media (max-width: 640px) {
  .legal-content { padding: 28px 24px; }
}
.legal-content h2 { font-size: 19px; color: var(--accent-deep); margin: 32px 0 12px; }
.legal-content p { color: var(--ink-soft); font-size: 15px; line-height: 1.8; margin: 0 0 16px; }
.legal-content ul { color: var(--ink-soft); font-size: 15px; line-height: 1.8; }

/* ---------- Utility ---------- */

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