/* ==========================================================================
   Academia de Danza Marisol Valdez — estilos
   Mobile-first. Paleta: rojo, azul y negro del logo de Marisol Valdez.
   ========================================================================== */

:root {
  /* Paleta tomada del logo de Marisol Valdez */
  --azul:         #2E2F90;  /* azul del logo: links, titulares, heroes */
  --azul-oscuro:  #1A1B5C;  /* fondos profundos, footer */
  --azul-claro:   #4A4CC0;  /* hover */
  --rojo:         #EA1E25;  /* rojo del logo: acentos y detalles */
  --rojo-accion:  #D01920;  /* rojo apenas más profundo para botones (contraste AA con texto blanco) */
  --rojo-hover:   #A8131A;
  --fondo:        #FFFFFF;
  --lavanda:      #ECEDF8;  /* fondos suaves (secciones alternas) */
  --lavanda-claro:#D6D8F3;  /* texto secundario sobre fondos oscuros */
  --tinta:        #14142B;  /* texto principal (negro del logo, apenas azulado) */
  --tinta-suave:  #5A5B73;  /* texto secundario */
  --blanco:       #FFFFFF;
  --marca-texto:  rgba(255, 214, 10, .38); /* resaltado de PLACEHOLDERS (no es color de marca) */

  --font-title: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-body:  "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --shadow: 0 6px 24px rgba(26, 27, 92, .12);
  --header-h: 72px;
  --gutter: 1.25rem;
  --max: 1120px;
}

/* Aura Escénica: identidad propia (paleta de la propuesta de marca: beige, tan, rosa, gris azulado y marrón) */
.theme-aura {
  --marron:       #583F36;  /* marrón del logo */
  --tan:          #BEA491;
  --beige:        #DDCEC1;
  --rosa-aura:    #EDBBB1;
  --gris-aura:    #ABB6B9;

  --azul:         var(--marron);   /* las variables base se re-mapean a la paleta Aura */
  --azul-oscuro:  #3F2B25;         /* marrón más profundo (derivado) para fondos */
  --azul-claro:   #7A5A4D;
  --rojo:         var(--tan);
  --rojo-accion:  var(--marron);
  --rojo-hover:   #3F2B25;
  --fondo:        #FBF8F5;
  --lavanda:      #F3EBE4;         /* beige aclarado para secciones alternas */
  --lavanda-claro:var(--beige);
  --tinta:        #2E211C;
  --tinta-suave:  #6E5A52;
  background: var(--fondo);
}
.theme-aura .hero .eyebrow, .theme-aura.section-dark .eyebrow { color: var(--rosa-aura); }
.theme-aura .cols-3 > .card:nth-child(2) { border-top-color: var(--rosa-aura); }
.theme-aura .cols-3 > .card:nth-child(3) { border-top-color: var(--gris-aura); }
.theme-aura .ph-media { border-color: var(--tan); }
.aura-isotipo { width: 96px; height: auto; margin-bottom: 1.25rem; }
.aura-isotipo.sm { width: 64px; }
.logo-title { margin: 0 0 1.25rem; line-height: 0; }
.aura-logo { width: min(100%, 240px); height: auto; }
.aura-logo.sm { width: min(100%, 180px); height: auto; }

/* Cursillo MCD: paleta de su logo (rojo, azul, grises) */
.theme-mcd {
  --azul:         #013396;
  --azul-oscuro:  #0B1F55;   /* azul profundo (derivado) para fondos */
  --azul-claro:   #2A55B8;
  --rojo:         #E82021;
  --rojo-accion:  #D01920;
  --rojo-hover:   #A8131A;
  --lavanda:      #F3F3F3;   /* gris claro de la paleta */
  --lavanda-claro:#D9DEE0;
  --tinta:        #323232;   /* gris oscuro de la paleta */
  --tinta-suave:  #5C6669;
}
.theme-mcd .cols-3 > .card:nth-child(2) { border-top-color: var(--azul); }
.theme-mcd .cols-3 > .card:nth-child(3) { border-top-color: #ABB6B9; }
.mcd-logo.sm { width: min(100%, 200px); margin-inline: 0; }
.mcd-logo { width: min(100%, 380px); height: auto; margin-inline: auto; filter: drop-shadow(0 8px 20px rgba(11, 31, 85, .2)); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--fondo);
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }   /* si el ancho se limita, el alto se ajusta: la imagen nunca se deforma */
a { color: var(--azul); }
a:hover { color: var(--azul-claro); }
:focus-visible { outline: 3px solid var(--rojo); outline-offset: 2px; }

.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;
}
.skip-link {
  position: absolute; left: .5rem; top: -4rem; z-index: 200;
  background: var(--azul); color: var(--blanco); padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: .5rem; color: var(--blanco); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--font-title); font-weight: 800; line-height: 1.15; margin: 0 0 .6em; color: var(--azul-oscuro); }
h1 { font-size: clamp(2.1rem, 7vw, 3.5rem); line-height: 1.08; }
h2 { font-size: clamp(1.65rem, 4.6vw, 2.4rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.eyebrow {
  display: inline-block; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--azul); font-weight: 500; margin-bottom: .8rem;
}
.lead { font-size: 1.2rem; color: var(--tinta-suave); }

/* ---------- Placeholders (visibles a propósito) ---------- */
.ph {
  background: var(--marca-texto);
  border-bottom: 2px dashed #D9A400;
  padding: 0 .2em;
  border-radius: 3px;
}
.hero .ph, .section-dark .ph, .page-hero .ph { color: inherit; background: rgba(255, 214, 10, .22); }
.ph-media {
  position: relative; display: grid; place-items: center; text-align: center;
  aspect-ratio: 4 / 3; width: 100%;
  background: repeating-linear-gradient(45deg, var(--lavanda), var(--lavanda) 14px, var(--fondo) 14px, var(--fondo) 28px);
  border: 2px dashed var(--azul-claro); border-radius: var(--radius);
  color: var(--azul); font-weight: 500; padding: 1rem;
}
.ph-media small { display: block; font-weight: 400; color: var(--tinta-suave); margin-top: .25rem; }
.ph-media.wide { aspect-ratio: 16 / 9; }
.ph-media.tall { aspect-ratio: 3 / 4; }
.ph-media.square { aspect-ratio: 1; }

/* ---------- Fotos y videos reales (reemplazan a .ph-media) ---------- */
.media {
  width: 100%; height: auto; object-fit: cover; border-radius: var(--radius);
  aspect-ratio: 4 / 3; box-shadow: var(--shadow);
}
.media.wide { aspect-ratio: 16 / 9; }
.media.tall { aspect-ratio: 3 / 4; }
.media.square { aspect-ratio: 1; }
.media.ratio-4-5 { aspect-ratio: 4 / 5; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--azul-oscuro); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-card img { width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; background: rgba(10, 10, 30, .62);
  color: var(--blanco); display: grid; place-items: center; font-size: 1.6rem; padding-left: .25rem;
  transition: background .2s, transform .2s;
}
.video-card:hover .video-play { background: var(--rojo-accion); transform: translate(-50%, -50%) scale(1.08); }


/* ---------- Header / navegación ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(46, 47, 144, .14);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 56px; width: auto; }

.nav-toggle {
  display: none; /* solo se muestra si hay JS (ver .js más abajo) */
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 8px;
  align-items: center; justify-content: center;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 24px; height: 2px; background: var(--azul); border-radius: 2px; transition: transform .25s, opacity .25s;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after  { transform: translateY(-7px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .85rem var(--gutter); text-decoration: none; color: var(--tinta); font-weight: 500;
}
.site-nav a:hover { color: var(--azul); }
.site-nav a[aria-current="page"] { color: var(--azul); font-weight: 600; }
.site-nav .nav-cta a { color: var(--blanco); background: var(--rojo-accion); border-radius: 999px; text-align: center; }
.site-nav .nav-cta a:hover { background: var(--rojo-hover); color: var(--blanco); }

/* Con JS: menú desplegable en móvil. Sin JS: el menú queda visible debajo del logo. */
.js .nav-toggle { display: inline-flex; }
.js .site-nav {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--fondo); border-bottom: 1px solid rgba(46, 47, 144, .14);
  padding: .5rem 0 1rem; box-shadow: var(--shadow);
  display: none;
}
.js .site-nav.is-open { display: block; }
.js .site-nav .nav-cta { padding: .5rem var(--gutter) 0; }
.js .site-nav .nav-cta a { padding-inline: 1rem; }
.no-js .header-inner { flex-wrap: wrap; padding-block: .5rem; }
.no-js .site-nav ul { display: flex; flex-wrap: wrap; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; padding: .85rem 1.6rem; border-radius: 999px; text-decoration: none; font-weight: 500;
  border: 2px solid var(--rojo-accion); background: var(--rojo-accion); color: var(--blanco); cursor: pointer; font-size: 1rem; font-family: inherit;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--rojo-hover); border-color: var(--rojo-hover); color: var(--blanco); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--azul); border-color: var(--azul); }
.btn-outline:hover { background: var(--azul); border-color: var(--azul); color: var(--blanco); }
.btn-outline-light { background: transparent; color: var(--blanco); border-color: var(--blanco); }
.btn-outline-light:hover { background: var(--blanco); border-color: var(--blanco); color: var(--azul-oscuro); }
.btn-light { background: var(--fondo); border-color: var(--fondo); color: var(--azul-oscuro); }
.btn-light:hover { background: var(--lavanda); border-color: var(--lavanda); color: var(--azul-oscuro); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

/* ---------- Secciones ---------- */
.section { padding-block: 3.5rem; }
.section-alt { background: var(--lavanda); }
.section-dark { background: var(--azul-oscuro); color: var(--fondo); }
.section-dark h2, .section-dark h3 { color: var(--fondo); }
.section-dark .eyebrow { color: var(--lavanda-claro); }
.section-head { max-width: 640px; margin-bottom: 2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center img { margin-inline: auto; }

.hero {
  background: linear-gradient(160deg, var(--azul-oscuro) 0%, var(--azul) 100%);
  color: var(--fondo); padding-block: 3.5rem 4rem;
}
.hero h1 { color: var(--fondo); }
.hero .eyebrow { color: var(--lavanda-claro); }
.hero .lead { color: var(--lavanda-claro); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-home {
  background:
    linear-gradient(160deg, rgba(26, 27, 92, .88) 0%, rgba(46, 47, 144, .88) 100%),
    url("../img/fachada-academia.jpg") center 38% / cover no-repeat;
}
.hero-home .hero-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; max-width: 760px; margin-inline: auto; }
.hero-home .btn-row { justify-content: center; }
.hero-home .dot-list { justify-content: center; }
.page-hero { background: linear-gradient(160deg, var(--azul-oscuro) 0%, var(--azul) 100%); color: var(--fondo); padding-block: 3rem; }
.page-hero h1 { color: var(--fondo); font-size: clamp(1.9rem, 6vw, 3rem); margin-bottom: .3em; }
.page-hero .eyebrow { color: var(--lavanda-claro); }
.page-hero p { color: var(--lavanda-claro); max-width: 620px; margin: 0; }

.grid { display: grid; gap: 1.25rem; }
.split { display: grid; gap: 2rem; align-items: center; }

.card {
  background: var(--blanco); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem;
  border-top: 4px solid var(--rojo);
}
.card h3 { margin-bottom: .4em; }
.card > :last-child { margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform .2s; }
.card-link:hover { transform: translateY(-3px); color: inherit; }
.more { color: var(--azul); font-weight: 500; }

/* ---------- Cifras ---------- */
.stats { background: var(--lavanda); padding-block: 2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; text-align: center; }
.stat strong { display: block; font-family: var(--font-title); font-weight: 800; font-size: clamp(1.8rem, 7vw, 3rem); line-height: 1; color: var(--azul); }
.stat span { display: block; margin-top: .35rem; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tinta-suave); }

/* ---------- Badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; }
.badge { display: inline-block; background: var(--rojo-accion); color: var(--blanco); border-radius: 999px; padding: .3rem 1rem; font-size: .85rem; font-weight: 500; }
.badge.outline { background: transparent; color: inherit; border: 1.5px solid currentColor; }

/* ---------- Equipo MVC ---------- */
.mvc-logo { width: min(100%, 300px); height: auto; margin-bottom: 1.25rem; }

/* ---------- Carrusel ---------- */
.carousel { position: relative; max-width: 900px; margin-inline: auto; }
.carousel-track {
  position: relative; display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--azul-oscuro); }
.slide .ph-media, .slide .media { border-radius: 0; box-shadow: none; aspect-ratio: 4 / 3; display: grid; }
.slide .media { display: block; }
.slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: .35rem; color: var(--blanco);
  padding: 3rem 1.25rem 1.1rem; background: linear-gradient(to top, rgba(10, 10, 30, .9), rgba(10, 10, 30, 0));
}
.slide .cat {
  justify-self: start; background: var(--rojo-accion); color: var(--blanco); border-radius: 999px;
  padding: .15rem .85rem; font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
.slide .detail { font-size: .95rem; }
.carousel-controls { display: none; align-items: center; justify-content: center; flex-wrap: wrap; row-gap: .5rem; gap: .5rem; margin-top: 1rem; }
.js .carousel-controls { display: flex; }
.carousel-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--lavanda-claro); background: transparent;
  color: var(--blanco); cursor: pointer; font-size: 1.25rem; line-height: 1; font-family: inherit;
}
.carousel-btn:hover { background: var(--blanco); color: var(--azul-oscuro); }
.carousel-toggle { height: 44px; padding: 0 1rem; border-radius: 999px; font-size: .9rem; width: auto; }
.carousel-dots { display: flex; flex-wrap: wrap; justify-content: center; max-width: 200px; }
.carousel-dot { width: 20px; height: 20px; border: 0; background: transparent; padding: 0; cursor: pointer; position: relative; }
.carousel-dot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.carousel-dot[aria-current="true"]::after { background: var(--blanco); }

/* ---------- Carrusel de disciplinas (minimalista: foto + título + botón) ---------- */
.disc-carousel { max-width: none; }
.disc-slide {
  flex: 0 0 62%; scroll-snap-align: start; position: relative; aspect-ratio: 2 / 3;
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
}
.disc-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.disc-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.1rem 1rem; text-align: center;
  background: linear-gradient(to bottom, rgba(10, 10, 30, .62) 0%, rgba(10, 10, 30, 0) 32%, rgba(10, 10, 30, 0) 62%, rgba(10, 10, 30, .78) 100%);
}
.disc-overlay h3 { margin: 0; color: var(--blanco); font-size: 1.05rem; font-weight: 400; }
.disc-overlay h3 strong { font-weight: 800; }
.disc-btn { align-self: center; }
@media (min-width: 560px) { .disc-slide { flex-basis: 280px; } }

/* Carrusel del MVC: fotos en formato vertical (los retratos de acción se ven mejor así, sin recortes agresivos) */
.mvc-news { display: inline-block; margin: .25rem 0 0; padding: .45rem 1.1rem; border-radius: 999px; background: var(--rojo); color: var(--blanco); font-size: .95rem; }
.mvc-news strong { color: inherit; }
.mvc-carousel { max-width: none; }
.mvc-carousel .slide { flex: 0 0 62%; }
.mvc-carousel .slide .media { aspect-ratio: 2 / 3; }
@media (min-width: 560px) { .mvc-carousel .slide { flex-basis: 280px; } }

/* Controles minimalistas del carrusel del MVC: chicos y transparentes */
.mvc-carousel .carousel-controls { gap: .3rem; margin-top: .75rem; }
.mvc-carousel .carousel-btn { width: 24px; height: 24px; font-size: .95rem; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: rgba(255, 255, 255, .8); }
.mvc-carousel .carousel-btn:hover { background: rgba(255, 255, 255, .14); color: var(--blanco); }
.mvc-carousel .carousel-toggle { width: auto; height: 24px; padding: 0 .65rem; font-size: .7rem; }
.mvc-carousel .carousel-dots { max-width: none; flex-wrap: nowrap; }
.mvc-carousel .carousel-dot { width: 16px; height: 16px; }
.mvc-carousel .carousel-dot::after { inset: 5px; background: rgba(255, 255, 255, .28); }
.mvc-carousel .carousel-dot[aria-current="true"]::after { background: rgba(255, 255, 255, .9); }
/* Controles del carrusel sobre fondo claro (los del MVC son para fondo oscuro) */
.disc-carousel .carousel-btn { border-color: var(--azul); color: var(--azul); }
.disc-carousel .carousel-btn:hover { background: var(--azul); color: var(--blanco); }
.disc-carousel .carousel-dot::after { background: rgba(46, 47, 144, .25); }
.disc-carousel .carousel-dot[aria-current="true"]::after { background: var(--azul); }

/* Mismo arreglo, reutilizable para cualquier carrusel de fotos sobre fondo claro (no .section-dark) */
.carousel-light .carousel-btn { border-color: var(--azul); color: var(--azul); }
.carousel-light .carousel-btn:hover { background: var(--azul); color: var(--blanco); }
.carousel-light .carousel-dot::after { background: rgba(46, 47, 144, .25); }
.carousel-light .carousel-dot[aria-current="true"]::after { background: var(--azul); }


/* ---------- Curso de Verano: titular central, grande y veraniego ---------- */
.verano-intro { max-width: 720px; margin: 0 auto 1rem; text-align: center; }
.verano-intro .badges, .verano-intro .btn-row { justify-content: center; }
.title-verano {
  font-family: "Pacifico", "Nunito", cursive; font-weight: 400; color: var(--rojo-accion);
  font-size: clamp(2.8rem, 12vw, 5rem); line-height: 1.15; margin-bottom: .4em; text-wrap: balance;
}

/* ---------- Ventana de datos (cursillo): compacta y llamativa, apoyada sobre el borde del hero ---------- */
.info-strip { margin-top: -2.25rem; position: relative; z-index: 2; }
.info-window {
  max-width: 880px; margin-inline: auto; background: var(--blanco); border-radius: var(--radius);
  border: 2px solid var(--rojo); box-shadow: 0 14px 34px rgba(11, 31, 85, .28); padding: 1.6rem 1.1rem 1.1rem; position: relative;
}
.info-title {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); margin: 0; white-space: nowrap;
  background: var(--rojo); color: var(--blanco); font-size: .8rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: .35rem 1.1rem; border-radius: 999px;
}
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem .9rem; margin: 0; }
.info-grid > div { padding: .45rem .15rem; border-bottom: 1px dashed rgba(0, 0, 0, .14); }
.info-grid dt { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-suave); }
.info-grid dd { margin: .1rem 0 0; font-weight: 700; color: var(--azul-oscuro); line-height: 1.3; }
.info-grid dd a { display: block; color: var(--azul); }
@media (min-width: 720px) {
  .info-window { padding: 1.9rem 1.5rem 1.2rem; }
  .info-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Precios y fechas ---------- */
.date-card { text-align: center; }
.date-card .date-label { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta-suave); }
.date-card .date { display: block; font-family: var(--font-title); font-weight: 800; font-size: clamp(1.4rem, 5vw, 2rem); line-height: 1.15; color: var(--azul); margin: .35rem 0; }
.price-card h3 { font-size: 1.25rem; }
.note-precios { margin: 0 0 1.25rem; font-size: .97rem; color: var(--tinta-suave); }
.horarios { margin-top: 1.2rem; border-top: 1px solid var(--lavanda); }
.horarios summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: .4rem 0; cursor: pointer; list-style: none; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--azul-oscuro); }
.horarios summary::-webkit-details-marker { display: none; }
.horarios summary::after { content: ""; flex: 0 0 auto; width: .55rem; height: .55rem; margin-right: .3rem; border-right: 2px solid var(--azul); border-bottom: 2px solid var(--azul); transform: rotate(45deg); transition: transform .2s ease; }
.horarios[open] summary::after { transform: rotate(-135deg); }
.horarios summary:focus-visible { outline: 3px solid var(--rojo); outline-offset: 2px; border-radius: 6px; }
.horarios .schedule { padding-bottom: .4rem; }
.schedule { list-style: none; margin: 0; padding: 0; }
.schedule li { display: grid; gap: .15rem; padding: .7rem 0; border-bottom: 1px dashed var(--lavanda); }
.schedule li:last-child { border-bottom: 0; padding-bottom: 0; }
.schedule strong { color: var(--azul-oscuro); font-size: .97rem; }
.schedule .sch-row { display: flex; justify-content: space-between; gap: 1rem; color: var(--tinta-suave); font-size: .95rem; }
.schedule .sch-row > span:last-child { white-space: nowrap; }
.price-card h3 .age { display: block; margin-top: .15rem; font-size: .9rem; font-weight: 600; color: var(--azul); }
.tag-mensual { display: inline-block; margin-left: .5rem; padding: .2rem .8rem; border-radius: 999px; background: var(--lavanda); color: var(--azul-oscuro); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.price-card h4 { margin: 1.1rem 0 .2rem; font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--tinta-suave); }
/* Chips de color para distinguir "primer/segundo/tercer año" dentro de cada módulo del cursillo */
.year-chip { display: inline-block; padding: .2rem .85rem; border-radius: var(--radius-pill); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.year-chip.year-1 { background: var(--lavanda); color: var(--azul-oscuro); }
.year-chip.year-2 { background: var(--rojo); color: var(--blanco); }
.year-chip.year-3 { background: var(--azul); color: var(--blanco); }
.price-card h4 { margin: 1.4rem 0 .5rem; }
.price-card h4:first-of-type { margin-top: 0; }

.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed rgba(0, 0, 0, .14); }
.price-list li:last-child { border-bottom: 0; }
.price, .time { font-weight: 600; white-space: nowrap; color: var(--azul); }
.tier { padding: .9rem 0; border-bottom: 1px solid var(--lavanda); }
.tier:last-child { border-bottom: 0; padding-bottom: 0; }
.tier > strong { display: block; color: var(--azul-oscuro); }
.subtitle { margin: 2.5rem 0 1rem; }

/* ---------- Cursos / horarios ---------- */
.course { padding: 0; overflow: hidden; }
.course-head { padding: 1.5rem 1.5rem 1rem; }
.course-head p { color: var(--tinta-suave); margin: 0; }
.course-head .mini { margin-top: .6rem; font-size: .92rem; }
.levels { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--lavanda); }
.levels li { padding: 1rem 1.5rem; border-bottom: 1px solid var(--lavanda); display: grid; gap: .1rem; }
.levels li:last-child { border-bottom: 0; }
.levels strong { color: var(--azul-oscuro); }
.levels span { color: var(--tinta-suave); font-size: .97rem; }
.note { font-size: .95rem; color: var(--tinta-suave); margin-top: 1.5rem; }

/* ---------- Festivales ---------- */
.festival { display: grid; gap: 1.5rem; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.gallery .wide { grid-column: 1 / -1; }
.tag {
  display: inline-block; background: var(--azul); color: var(--fondo); border-radius: 999px;
  padding: .15rem .8rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .8rem;
}

/* ---------- Aura Escénica ---------- */

/* ---------- Formulario ---------- */
.form { background: var(--blanco); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; border-top: 4px solid var(--azul); }
.field { margin-bottom: 1.1rem; }
.field label, .field-label { display: block; font-weight: 500; margin-bottom: .35rem; }
.field .req { color: var(--azul); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; font: inherit; color: var(--tinta);
  background: var(--fondo); border: 1.5px solid #CBCDE6; border-radius: 10px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(46, 47, 144, .2); }
.field textarea { min-height: 140px; resize: vertical; }
.field .hint { font-size: .88rem; color: var(--tinta-suave); margin-top: .3rem; }

/* Listas de opciones del formulario: casillas (varias disciplinas) y botones Sí / No */
.field .check-group { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-top: .9rem; }
.field .radio-group { display: flex; gap: .6rem; margin-top: .9rem; }
.field .check-pill {
  display: flex; align-items: center; gap: .8rem; margin: 0; min-height: 48px; padding: .6rem 1rem; cursor: pointer;
  background: var(--fondo); border: 1.5px solid #CBCDE6; border-radius: 12px; font-size: .95rem; font-weight: 500; line-height: 1.3;
}
.field .radio-group .check-pill { flex: 1 1 0; justify-content: center; font-weight: 600; }
.field .check-pill input { flex: 0 0 auto; width: 1.2rem; height: 1.2rem; margin: 0; padding: 0; accent-color: var(--azul); }
.field .check-pill:has(input:checked) { background: var(--lavanda); border-color: var(--azul); font-weight: 600; }
.field .check-pill:has(input:focus-visible) { outline: 3px solid var(--rojo); outline-offset: 2px; }
.field .input-sm { max-width: 10rem; }
.field-error { color: #8a1c1c; font-size: .88rem; margin-top: .6rem; }
@media (min-width: 560px) { .field .check-group { grid-template-columns: repeat(2, 1fr); } }

/* Honeypot: fuera de pantalla, no display:none (algunos bots lo detectan) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; padding: .9rem 1rem; border-radius: 10px; display: none; }
.form-status.is-ok { display: block; background: #e6f4ea; color: #1e5b32; }
.form-status.is-error { display: block; background: #fdeaea; color: #8a1c1c; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact-list li { margin-bottom: .6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--azul-oscuro); color: var(--lavanda-claro); padding-block: 3rem 1.5rem; }
.site-footer a { color: var(--fondo); }
.site-footer a:hover { color: var(--blanco); text-decoration: underline; }
.footer-logo { width: 190px; height: auto; margin-bottom: 1rem; }
.site-footer h3 { color: var(--fondo); font-size: 1.25rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-bottom { border-top: 1px solid rgba(214, 216, 243, .25); margin-top: 2rem; padding-top: 1.25rem; font-size: .9rem; }

/* ---------- Tablet / escritorio ---------- */
@media (min-width: 720px) {
  .slide .ph-media, .slide .media { aspect-ratio: 16 / 9; }
  :root { --gutter: 2rem; }
  .section { padding-block: 5rem; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .split.reverse > :first-child { order: 2; }
  .hero-grid { grid-template-columns: 1.2fr 1fr; gap: 3rem; }
  .hero { padding-block: 5rem 6rem; }
  .festival { grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .form { padding: 2.25rem; }
}

@media (min-width: 960px) {
  .brand img { height: 60px; }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Menú horizontal fijo (con 8 ítems necesita más ancho; por debajo se usa el menú hamburguesa) */
@media (min-width: 1080px) {
  .js .nav-toggle { display: none; }
  .js .site-nav, .site-nav {
    position: static; display: block; background: transparent; border: 0; box-shadow: none; padding: 0;
  }
  .site-nav ul { display: flex; align-items: center; gap: .25rem; }
  .site-nav a { padding: .5rem .8rem; }
  .js .site-nav .nav-cta, .site-nav .nav-cta { padding: 0 0 0 .5rem; }
  .site-nav .nav-cta a { padding: .55rem 1.3rem; }
  .no-js .header-inner { flex-wrap: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* ==========================================================================
   Buscador "Encuentra tu clase" (Inicio)
   ========================================================================== */
.finder { max-width: 460px; margin: 0 auto; }
.finder label { display: block; margin-bottom: .4rem; font-weight: 600; color: var(--azul-oscuro); text-align: center; }
.finder-row { display: flex; gap: .6rem; }
.finder-row input { flex: 1 1 auto; min-width: 0; min-height: 52px; padding: .6rem 1rem; font: inherit; font-size: 1.2rem; text-align: center; background: var(--fondo); border: 1.5px solid #CBCDE6; border-radius: 12px; }
.finder-row input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(46, 47, 144, .2); }
.finder-row input[aria-invalid="true"] { border-color: #8a1c1c; }
.finder-row .btn { flex: 0 0 auto; min-height: 52px; }
.finder .field-error { text-align: center; }

.finder-result { margin-top: 2rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.bf-title { text-align: center; margin-bottom: 1rem; }
.bf-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; max-width: 680px; margin: 0 auto 1.5rem; padding: .35rem; background: var(--fondo); border-radius: 16px; box-shadow: var(--shadow); }
.bf-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 60px; padding: .5rem .35rem; font: inherit; font-size: .9rem; line-height: 1.2; text-align: center; font-weight: 700; color: var(--azul); background: transparent; border: 0; border-radius: 12px; cursor: pointer; }
.bf-tab small { font-size: .78rem; font-weight: 500; color: var(--tinta-suave); }
.bf-tab[aria-selected="true"] { background: var(--azul); color: var(--blanco); }
.bf-tab[aria-selected="true"] small { color: var(--lavanda-claro); }
.bf-tab:focus-visible { outline: 3px solid var(--rojo); outline-offset: 2px; }

.bf-intro, .bf-hint, .bf-empty { max-width: 680px; margin: 0 auto 1.25rem; text-align: center; color: var(--tinta-suave); }
.bf-hint { margin-top: 1.25rem; font-size: .95rem; }
.bf-cards { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.bf-card { background: var(--fondo); border-radius: var(--radius); border-top: 4px solid var(--rojo); box-shadow: var(--shadow); padding: 1.4rem 1.4rem 1.2rem; }
.bf-head h4 { margin: 0; font-size: 1.35rem; }
.bf-ages { margin: .15rem 0 0; font-weight: 600; color: var(--azul); }
.bf-card h5 { margin: 1.3rem 0 .4rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tinta-suave); }
.bf-list { list-style: none; margin: 0; padding: 0; }
.bf-list li { display: grid; gap: .1rem; padding: .6rem 0; border-bottom: 1px dashed var(--lavanda); }
.bf-list li:last-child { border-bottom: 0; }
.bf-list strong { color: var(--azul-oscuro); }
.bf-list li > span { color: var(--tinta-suave); font-size: .95rem; }
.bf-row { display: flex; justify-content: space-between; gap: 1rem; }
.bf-row > span:last-child { white-space: nowrap; }
.bf-dances { margin: 0; color: var(--tinta); }
.bf-details { margin-top: .8rem; border-top: 1px solid var(--lavanda); }
.bf-details summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; list-style: none; font-weight: 600; color: var(--azul); }
.bf-details summary::-webkit-details-marker { display: none; }
.bf-details summary::after { content: ""; flex: 0 0 auto; width: .55rem; height: .55rem; margin-right: .3rem; border-right: 2px solid var(--azul); border-bottom: 2px solid var(--azul); transform: rotate(45deg); transition: transform .2s ease; }
.bf-details[open] summary::after { transform: rotate(-135deg); }
.bf-details summary:focus-visible { outline: 3px solid var(--rojo); outline-offset: 2px; border-radius: 6px; }
.bf-prices { margin: 0; }
.bf-prices > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--lavanda); }
.bf-prices > div:last-child { border-bottom: 0; }
.bf-prices dt { color: var(--tinta); font-size: .95rem; }
.bf-prices dd { margin: 0; font-weight: 700; color: var(--azul); white-space: nowrap; }
.bf-prices > div:first-child dt { font-weight: 700; }
.bf-prices > div:first-child dd { font-size: 1.15rem; }
.bf-note { margin: .6rem 0 0; font-size: .9rem; color: var(--tinta-suave); }
.bf-start { margin: 1rem 0 0; padding-top: .8rem; border-top: 1px solid var(--lavanda); font-size: .95rem; }
.finder-result .btn-row { justify-content: center; margin-top: 1.5rem; }
@media (min-width: 768px) {
  .bf-cards { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .bf-cards .bf-card:only-child { grid-column: 1 / -1; max-width: 560px; justify-self: center; width: 100%; }
}

/* Filtro por edad del formulario: las opciones ocultas no deben mostrarse aunque el estilo base use display:flex */
.field .check-pill[hidden], .field .check-group[hidden] { display: none; }
.form-legal { margin: 1rem 0 0; font-size: .92rem; color: var(--tinta-suave); }
.form-legal a { font-weight: 600; }
.bf-prices.is-plain > div:first-child dt { font-weight: 400; }
.bf-prices.is-plain > div:first-child dd { font-size: inherit; }

/* Fecha de nacimiento: día / mes / año en una sola fila */
.field .date-row { display: grid; grid-template-columns: 1fr 1.7fr 1.3fr; gap: .6rem; margin-top: .6rem; }
.field .date-row input, .field .date-row select { min-width: 0; text-align: center; text-align-last: center; }
