/* ===================================================================
   Zuin Looks — Hoja de estilos
   Paleta cálida (crema / nude / mocha), sin rosa. Serif elegante + sans.
   Para cambiar la identidad, editá solo las variables de :root.
=================================================================== */

:root {
  /* Paleta — monocromática elegante, basada en el logo (serif blanco sobre gris).
     Los nombres (cream/sand/nude/mocha) se mantienen por compatibilidad,
     pero ahora representan grises fríos y grafito. */
  --cream: #F4F4F3;      /* fondo claro principal */
  --sand: #ECECEB;       /* secciones alternas */
  --nude: #D8D7D6;       /* fondos de media / placeholders */
  --mocha: #636269;      /* acento monocromo: eyebrows, meta, links, bordes */
  --mocha-dark: #45454B; /* hover de acentos */
  --ink: #242428;        /* texto principal + botones primarios (casi negro frío) */
  --ink-soft: #3D3D43;   /* hover de botón primario */
  --muted: #7A7980;      /* texto secundario */
  --logo-gray: #858589;  /* gris del fondo del logo */
  --white: #ffffff;
  --line: #E3E2E1;       /* bordes */
  --wpp: #25D366;        /* verde WhatsApp (se mantiene por reconocimiento) */

  /* Tipografía */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Medidas */
  --container: 1140px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 12px 34px rgba(26, 26, 30, 0.12);
  --shadow-sm: 0 4px 16px rgba(26, 26, 30, 0.08);
  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  padding-top: var(--header-h);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  letter-spacing: 0.3px;
}

p { margin: 0 0 1rem; }

/* ---------- Intro de carga ---------- */
.page-intro {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 28px;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 36%),
    linear-gradient(135deg, var(--logo-gray), #55555b 48%, var(--ink) 100%);
  pointer-events: none;
  animation: pageIntroOut 2.25s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.page-intro-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  transform-origin: center;
  animation: pageIntroMark 1.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.page-intro-logo {
  display: block;
  width: clamp(86px, 17vw, 132px);
  aspect-ratio: 1 / 1;
  border-radius: clamp(14px, 2.6vw, 22px);
  background: url("../assets/logo_zuin.png") center / contain no-repeat;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.25);
}
.page-intro-line {
  width: clamp(76px, 20vw, 150px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
  transform-origin: center;
  animation: pageIntroLine 1.1s ease 0.28s both;
}
.page-intro-text {
  margin-top: -4px;
  font-size: clamp(0.64rem, 1.7vw, 0.76rem);
  font-weight: 500;
  letter-spacing: clamp(3px, 0.8vw, 6px);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  animation: pageIntroText 1.1s ease 0.42s both;
}
@keyframes pageIntroOut {
  0%, 72% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes pageIntroMark {
  0% { opacity: 0; transform: translateY(12px) scale(0.92); filter: blur(8px); }
  45%, 100% { opacity: 1; transform: translateY(0) scale(1); filter: none; }
}
@keyframes pageIntroLine {
  0% { opacity: 0; transform: scaleX(0); }
  100% { opacity: 1; transform: scaleX(1); }
}
@keyframes pageIntroText {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}
.container-narrow { max-width: 760px; }

.section { padding: 92px 0; }
.section-alt { background: var(--sand); }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 54px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 12px;
}
.section-lead { color: var(--muted); font-size: 1.05rem; }
.section-actions { text-align: center; margin-top: 44px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--mocha);
  margin: 0 0 14px;
}
.eyebrow-light { color: rgba(255, 255, 255, 0.85); }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 50px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ink-soft); }

.btn-outline { background: transparent; color: var(--mocha); border-color: var(--mocha); }
.btn-outline:hover { background: var(--mocha); color: var(--white); }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(133, 133, 137, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(126, 126, 130, 0.98);
  border-bottom-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(26, 26, 30, 0.14);
}
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.92));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logo {
  height: 48px;
  width: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  position: relative;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--white); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav a:hover::after,
.nav a.is-active::after {
  opacity: 0.6;
  transform: scaleX(1);
}
.nav a.is-active { color: var(--white); }
.nav .nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--white); color: var(--logo-gray); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (rediseño: el wordmark del logo como protagonista) ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background: radial-gradient(125% 100% at 50% 0%, #3c3c43 0%, #2a2a30 48%, #1c1c21 100%);
  overflow: hidden;
}
/* Halo sutil detrás del wordmark */
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80vw;
  height: 80vw;
  max-width: 940px;
  max-height: 940px;
  transform: translate(-50%, -56%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 62%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 860px; }

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.74rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 30px;
}

/* Wordmark recreado con el diseño del logo */
.hero-mark {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.94;
  margin: 0 0 28px;
}
.hero-mark-line {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(3.6rem, 13vw, 8.4rem);
  letter-spacing: 0.04em;
}
.hero-mark-look { letter-spacing: 0.2em; padding-left: 0.2em; } /* como en el logo */
/* La "Z" enmarcada en un cuadro */
.hero-mark-z {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.14em;
  border: 0.05em solid rgba(255, 255, 255, 0.95);
  box-sizing: border-box;
}

.hero-tagline {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin: 0 auto 34px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
/* En el hero oscuro, el CTA primario va en blanco para que resalte */
.hero .btn-primary { background: var(--white); color: var(--ink); }
.hero .btn-primary:hover { background: rgba(255, 255, 255, 0.88); }

/* Indicador de scroll */
.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  width: 28px;
  height: 62px;
  transform: translateX(-50%);
  border: 0;
  opacity: 0.82;
}
.hero-scroll::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.08));
  transform: translateX(-50%);
}
.hero-scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(-50%);
  animation: heroScroll 1.9s ease-in-out infinite;
}
@keyframes heroScroll {
  0%   { opacity: 0; transform: translate(-50%, 0); }
  35%  { opacity: 1; }
  75%  { opacity: 0; transform: translate(-50%, 28px); }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll span { animation: none; }
}

/* ---------- Cursos ---------- */
.cursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}
.curso-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.curso-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.curso-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--nude);
}
/* El media va en absoluto y llena el marco: así TODAS las cards tienen
   exactamente el mismo tamaño 16:9, sea video, imagen o iframe. */
.curso-video,
.curso-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}
iframe.curso-video { object-fit: fill; } /* el iframe no recorta: ocupa todo el marco */

/* Estado de carga / vacío / error de la grilla de cursos */
.cursos-status {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}
.curso-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(24, 24, 28, 0.74);
  color: var(--white);
  font-size: 0.66rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  z-index: 2;
}
.curso-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--mocha);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.2s ease, background 0.2s ease;
}
.curso-play:hover { transform: scale(1.08); background: var(--white); }
.curso-play.is-hidden { display: none; }

/* Estado cuando el adelanto todavía no fue subido */
.curso-media.is-unavailable .curso-play { display: none; }
.curso-media.is-unavailable::after {
  content: "Adelanto próximamente";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
}

.curso-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.curso-meta {
  display: flex;
  gap: 14px;
  font-size: 0.74rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mocha);
  margin-bottom: 10px;
}
.curso-titulo { font-size: 1.6rem; margin-bottom: 8px; }
.curso-desc { color: var(--muted); font-size: 0.96rem; margin-bottom: 20px; }
.curso-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.curso-precio { font-family: var(--serif); font-size: 1.7rem; color: var(--ink); }
.curso-btn { padding: 11px 20px; font-size: 0.72rem; }

/* La card de la grilla es un link a la página del curso */
a.curso-card { color: inherit; text-decoration: none; }
.curso-link {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--mocha);
}
/* Play decorativo sobre la portada (la card entera es el link) */
.curso-play-static { pointer-events: none; background: rgba(255, 255, 255, 0.85); }
.curso-card:hover .curso-play-static { transform: scale(1.08); background: var(--white); }

/* =================== PÁGINA DE DETALLE DEL CURSO =================== */
.detail-section-wrap { padding-top: 44px; }
.detail-back {
  display: inline-block;
  color: var(--mocha);
  font-size: 0.84rem;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}
.detail-back:hover { text-decoration: underline; }

.detail-head { margin-bottom: 26px; }
.detail-title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 8px; }
.detail-cat { color: var(--muted); font-size: 0.95rem; margin: 0; }
.detail-cat strong { color: var(--ink); font-weight: 500; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.detail-col { min-width: 0; }

.detail-player {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 36px;
}

.detail-block { margin-bottom: 34px; }
.detail-h2 {
  font-size: 1.55rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.detail-rich p { color: var(--muted); }
.detail-list { list-style: none; margin: 0; padding: 0; }
.detail-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--muted);
}
.detail-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--mocha);
  font-weight: 600;
}

/* Sidebar de precio / compra */
.detail-side { position: sticky; top: calc(var(--header-h) + 20px); }
.detail-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px 24px;
}
.detail-precio {
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--ink);
  margin-bottom: 18px;
  line-height: 1.1;
}
.detail-precio span {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
  margin-left: 4px;
}
.detail-cta { display: block; width: 100%; text-align: center; }
.detail-facts {
  list-style: none;
  margin: 22px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}
.detail-facts li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.92rem;
  padding: 7px 0;
}
.detail-facts li span { color: var(--muted); }
.detail-facts li strong { color: var(--ink); font-weight: 500; text-align: right; }

.detail-instructor { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.detail-instructor-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mocha);
  margin-bottom: 10px;
}
.detail-instructor-row { display: flex; align-items: center; gap: 12px; }
.detail-instructor-row img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.detail-instructor-row strong { font-weight: 500; }

.detail-notfound { text-align: center; padding: 60px 0; }
.detail-notfound p { color: var(--muted); margin-bottom: 22px; }

@media (max-width: 880px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
}

/* ---------- Sobre la dueña ---------- */
.sobre-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.sobre-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.sobre-text .section-title { text-align: left; margin-bottom: 18px; }
.sobre-text p { color: var(--muted); }
.sobre-text .btn { margin-top: 12px; }

/* ---------- Testimonios ---------- */
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.testimonio {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.testimonio blockquote {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
}
.testimonio figcaption { color: var(--mocha); font-size: 0.85rem; letter-spacing: 1px; }

/* ---------- Galería ---------- */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.galeria-item {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
}
.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.galeria-item:hover img { transform: scale(1.06); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--ink);
  text-align: left;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--mocha);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.faq-icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-icon::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: scaleY(0); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a p { padding: 0 4px 22px; margin: 0; color: var(--muted); }

/* ---------- Scroll polish ---------- */
body.reveal-ready .scroll-reveal {
  transition: opacity 0.72s cubic-bezier(0.2, 0.7, 0.2, 1), translate 0.72s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.72s ease, box-shadow 0.25s ease, transform 0.25s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, translate;
}
body.reveal-ready .scroll-reveal:not(.is-visible) {
  opacity: 0;
  translate: 0 28px;
  filter: blur(8px);
}
body.reveal-ready .scroll-reveal.reveal-from-left:not(.is-visible) { translate: -30px 0; }
body.reveal-ready .scroll-reveal.reveal-from-right:not(.is-visible) { translate: 30px 0; }
body.reveal-ready .scroll-reveal.is-visible {
  opacity: 1;
  translate: 0 0;
  filter: none;
}
body.reveal-ready .footer-bottom.scroll-reveal,
body.reveal-ready .footer-bottom.scroll-reveal:not(.is-visible) {
  opacity: 1;
  translate: 0 0;
  filter: none;
  transition: none;
}

/* ---------- Footer ---------- */
.footer {
  overflow: hidden;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  padding-top: 64px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-bottom: 48px;
}
.footer-brand { max-width: 320px; }
.footer-logo { height: 56px; width: auto; border-radius: 10px; margin-bottom: 16px; }
.footer-brand p { color: rgba(255, 255, 255, 0.6); }
.footer-addr { font-size: 0.86rem; color: rgba(255, 255, 255, 0.45); }
.footer-map {
  flex: 1 1 340px;
  max-width: 430px;
}
.footer-map h3,
.footer-contact h3 { font-size: 1.4rem; margin-bottom: 14px; color: var(--white); }
.footer-map-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 190px;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}
.footer-map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(0.95) brightness(0.9);
}
.footer-contact ul { list-style: none; margin: 0; padding: 0; }
.footer-contact li { margin-bottom: 8px; }
.footer-contact a { color: rgba(255, 255, 255, 0.78); transition: color 0.2s ease; }
.footer-contact a:hover { color: var(--mocha); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 16px;
}
.footer-bottom p { margin: 0; }
.footer-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}
.footer-admin-link svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}
.footer-admin-link:hover,
.footer-admin-link:focus-visible {
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.58);
  outline: none;
}
.footer-admin-link:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16);
}

/* ---------- WhatsApp flotante ---------- */
.wpp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wpp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease;
}
.wpp-float:hover { transform: scale(1.08); }

/* Scroll offset por header sticky */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ===================================================================
   Responsive
=================================================================== */
@media (max-width: 860px) {
  .sobre-inner { grid-template-columns: 1fr; gap: 32px; }
  .sobre-media { max-width: 420px; margin: 0 auto; }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero {
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
  }

  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 999;
    background: var(--logo-gray);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 22px 24px;
  }
  .nav li { width: 100%; }
  .nav a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
  .nav a::after { display: none; }
  .nav .nav-cta { border: none; padding: 14px 0; }
}

@media (max-width: 480px) {
  .galeria-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero {
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
  }
  .curso-foot { flex-direction: column; align-items: flex-start; }
  .curso-btn { width: 100%; text-align: center; }
}

/* Accesibilidad: respetar preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .page-intro {
    animation: pageIntroOut 0.55s ease forwards;
  }
  .page-intro-card,
  .page-intro-line,
  .page-intro-text {
    animation: none;
  }
}
