/* =============================================================
   ENDELEA — hoja de estilos
   Índice:
   1. Tokens        2. Reset y base     3. Utilidades
   4. Tipografía    5. Componentes      6. Secciones
   7. Efectos       8. Responsive       9. Reduced motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Fondo cálido tipo papel — base de todo el sitio */
  --bg:        #FBF8F2;
  --bg-alt:    #F3EEE1;
  --surface:   #FFFFFF;

  /* Texto */
  --ink:       #16233A;
  --ink-soft:  #3E4A5E;
  --ink-mute:  #6B7686;
  --cream:     #FBF8F2;

  /* Marca */
  --blue:       #1D5FA8;
  --blue-deep:  #0F2D52;
  --blue-tint:  #E7F0FA;
  --orange:     #D9640A;
  --orange-tint:#FCEBDD;
  --green:      #4C8A33;
  --green-tint: #EAF3E3;
  --gold:       #C6870A;
  --gold-tint:  #FBF0D9;
  --teal:       #0E7C86;
  --teal-tint:  #E2F2F3;

  --line: rgba(22,35,58,0.12);
  --shadow-sm: 0 2px 10px rgba(15,45,82,0.08);
  --shadow-md: 0 14px 34px rgba(15,45,82,0.14);
  --shadow-lg: 0 26px 60px rgba(15,45,82,0.20);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Baloo 2", var(--sans);

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 84px;
}

/* =============================================================
   2. Reset y base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.08; font-weight: 700; }
ul { list-style: none; padding: 0; }
::selection { background: var(--gold); color: var(--blue-deep); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =============================================================
   3. Utilidades
   ============================================================= */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.2rem; background: var(--blue-deep); color: var(--cream);
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.2em; height: 1.2em; flex-shrink: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .6rem;
}
.eyebrow-on-dark { color: var(--gold); }

.section-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); max-width: 20ch; }
.section-title em { color: var(--blue); font-style: normal; }
.section-title.on-dark { color: var(--cream); }
.section-title.on-dark em { color: var(--gold); }

.section-lead { max-width: 56ch; color: var(--ink-soft); font-size: 1.08rem; margin-top: .9rem; }
.section-lead.on-dark { color: rgba(251,248,242,0.82); }

.section-head { max-width: 780px; margin-bottom: 3rem; }

/* Revelado suave al hacer scroll — el contenido ya es visible sin JS.
   html.no-js se retira en cuanto el navegador ejecuta JS (ver <head>). */
.reveal { opacity: 1; transform: none; }
html:not(.no-js) .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
html:not(.no-js) .reveal.is-visible { opacity: 1; transform: none; }

/* =============================================================
   4. Tipografía / botones base
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  font-size: .98rem;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background-color .3s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-deep); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--blue); }
.btn-whatsapp { background: #21A150; color: #fff; }
.btn-whatsapp:hover { background: #1a8843; box-shadow: var(--shadow-md); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }

/* =============================================================
   5. Componentes
   ============================================================= */

/* --- Navegación --- */
.nav {
  position: sticky; top: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(251,248,242,0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
@supports not (backdrop-filter: blur(1px)) {
  .nav { background: rgba(251,248,242,0.96); }
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); background: rgba(251,248,242,0.94); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-brand { display: flex; align-items: center; height: 100%; }
.nav-brand img { height: 58px; width: auto; }

.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a {
  font-family: var(--display); font-weight: 600; font-size: .98rem; color: var(--ink-soft);
  position: relative; padding: .3rem 0;
  transition: color .25s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--blue); transition: right .3s var(--ease-out);
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-actions .btn-whatsapp span { display: none; }
.nav-toggle {
  display: flex; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--line);
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-mobile {
  position: fixed; inset: var(--nav-h) 0 auto 0;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 0;
  padding: .5rem 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
}
.nav-mobile.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-mobile a { padding: .9rem 0; font-family: var(--display); font-weight: 600; border-bottom: 1px solid var(--line); }
.nav-mobile .btn { margin-top: 1rem; width: 100%; }

/* --- Tarjetas <details> reutilizables (Sobre nosotros / Talleres) --- */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

.value-cards { display: grid; gap: 1.1rem; margin-top: 2.6rem; }
.value-card {
  background: var(--surface); border-radius: var(--radius-md); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.value-card summary {
  display: flex; align-items: center; gap: .9rem; padding: 1.3rem 1.5rem;
}
.value-card summary .icon { color: var(--blue); width: 1.5rem; height: 1.5rem; }
.value-card-title { font-family: var(--display); font-weight: 700; font-size: 1.12rem; flex: 1; }
.value-card summary .chev { color: var(--ink-mute); transition: transform .3s var(--ease-out); }
.value-card[open] summary .chev { transform: rotate(180deg); }
.value-card-body { padding: 0 1.5rem 1.5rem 3.9rem; display: grid; gap: .9rem; color: var(--ink-soft); }

/* =============================================================
   6. Secciones
   ============================================================= */

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-block: calc(var(--nav-h) + 2rem) 4rem;
  overflow: clip;
  background: linear-gradient(180deg, #FDFBF6 0%, var(--bg) 60%);
}
.hero-blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: .35;
  animation: blobDrift 22s var(--ease-soft) infinite alternate;
}
.blob-blue   { width: 480px; height: 480px; background: var(--blue);   top: -140px; right: -120px; }
.blob-orange { width: 340px; height: 340px; background: var(--orange); bottom: -80px; left: -100px; animation-delay: -6s; }
.blob-green  { width: 280px; height: 280px; background: var(--green);  bottom: 10%; right: 8%; animation-delay: -12s; }
@keyframes blobDrift {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(-30px, 25px) scale(1.12); }
}

.hero-motif { position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%); width: min(900px, 130vw); z-index: 0; pointer-events: none; }

.hero-inner {
  position: relative; z-index: 1;
  display: grid; gap: 3rem;
  align-items: center;
}
.hero-copy { max-width: 640px; }
.hero-title { font-size: clamp(2.4rem, 5.6vw, 4rem); color: var(--ink); }
.hero-title em { color: var(--blue); font-style: normal; }
.hero-sub { margin-top: 1.3rem; font-size: 1.15rem; color: var(--ink-soft); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero-values { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.6rem; }
.hero-values li {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 700; font-size: .95rem; color: var(--blue-deep);
}
.hero-values .icon { color: var(--gold); width: 1.3rem; height: 1.3rem; }

.hero-figure { position: relative; justify-self: center; max-width: 340px; margin-inline: auto; }
.hero-figure img {
  display: block;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--surface);
}
.hero-figure-caption {
  position: absolute; bottom: -1.1rem; left: 50%; transform: translateX(-50%);
  background: var(--surface); padding: .6rem 1.1rem; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: .82rem; color: var(--blue-deep);
  box-shadow: var(--shadow-md); white-space: nowrap;
}

.scroll-cue {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); box-shadow: var(--shadow-sm); color: var(--blue);
  animation: bob 2.6s ease-in-out infinite;
  z-index: 1;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* --- Divisores tipo ola --- */
.wave-divider { position: relative; z-index: 1; line-height: 0; margin-top: -1px; }
.wave-divider svg { width: 100%; height: 60px; display: block; }
.wave-cream-to-white path { fill: var(--surface); }
.wave-white-to-blue path { fill: var(--blue-deep); }

/* --- SOBRE NOSOTROS --- */
.about { background: var(--surface); padding-block: 5rem 6rem; }
.about-intro { max-width: 640px; margin-bottom: 3rem; }
.about-grid { display: grid; gap: 3rem; align-items: start; }
.about-text { display: grid; gap: 1.15rem; font-size: 1.05rem; color: var(--ink-soft); }
.about-text strong { color: var(--ink); }
.pull-quote {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--blue);
  border-left: 4px solid var(--gold); padding-left: 1.2rem; margin-block: .3rem;
}
.about-photo { justify-self: center; width: 100%; max-width: 320px; }
.about-photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* --- TALLERES --- */
.programs { background: linear-gradient(180deg, var(--surface) 0%, var(--bg-alt) 100%); padding-block: 6rem; }

.schedule {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem;
  margin-bottom: 3.5rem;
}
.schedule-head { display: flex; align-items: center; margin-bottom: 1.2rem; }
.schedule-day-head {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--blue-deep);
}
.schedule-day-head .icon { color: var(--gold); }
.schedule-grid { display: grid; gap: .9rem; }
.schedule-col {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem .9rem; display: grid; gap: .5rem; align-content: start;
  transition: box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
}
.schedule-col.is-today { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.schedule-day {
  font-family: var(--display); font-weight: 700; font-size: .92rem; color: var(--ink);
  padding-bottom: .35rem; border-bottom: 1px dashed var(--line);
}
.schedule-col.is-today .schedule-day { color: var(--blue); }
.schedule-slot { font-size: .82rem; font-weight: 600; border-radius: 10px; padding: .5rem .6rem; line-height: 1.35; }
.schedule-slot span { display: block; font-weight: 500; font-size: .8rem; opacity: .85; margin-top: .1rem; }
.schedule-col-weekend { background: var(--teal-tint); }

.c-blue   { background: var(--blue-tint);   color: var(--blue-deep); }
.c-orange { background: var(--orange-tint); color: var(--orange); }
.c-green  { background: var(--green-tint);  color: var(--green); }
.c-gold   { background: var(--gold-tint);   color: var(--gold); }
.c-teal   { background: var(--teal-tint);   color: var(--teal); }

.program-grid { display: grid; gap: 1.4rem; }
.program-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .35s var(--ease-out), transform .35s var(--ease-out);
}
.program-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.program-card summary {
  padding: 1.8rem 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  position: relative;
  border-top: 5px solid transparent;
}
.program-card.c-blue summary   { border-top-color: var(--blue); }
.program-card.c-orange summary { border-top-color: var(--orange); }
.program-card.c-green summary  { border-top-color: var(--green); }
.program-card.c-gold summary   { border-top-color: var(--gold); }
.program-card.c-teal summary   { border-top-color: var(--teal); }

.program-badge {
  font-family: var(--display); font-weight: 700; font-size: .78rem;
  color: var(--gold); text-transform: uppercase; letter-spacing: .04em;
}

.program-head { display: flex; align-items: center; gap: 1rem; }
.program-head-text { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }

.program-icon {
  flex-shrink: 0;
  width: 3rem; height: 3rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.program-card.c-blue .program-icon   { background: var(--blue-tint);   color: var(--blue); }
.program-card.c-orange .program-icon { background: var(--orange-tint); color: var(--orange); }
.program-card.c-green .program-icon  { background: var(--green-tint);  color: var(--green); }
.program-card.c-gold .program-icon   { background: var(--gold-tint);   color: var(--gold); }
.program-card.c-teal .program-icon   { background: var(--teal-tint);   color: var(--teal); }
.program-icon .icon { width: 1.5rem; height: 1.5rem; }

.program-title { font-family: var(--display); font-weight: 700; font-size: 1.28rem; }
.program-meta { font-size: .86rem; font-weight: 600; color: var(--ink-mute); }
.program-teaser { color: var(--ink-soft); font-size: .98rem; }
.program-toggle {
  display: inline-flex; align-items: center; gap: .4rem; width: fit-content;
  font-family: var(--display); font-weight: 700; font-size: .88rem; color: var(--blue);
}
.program-toggle .chev { transition: transform .3s var(--ease-out); }
.program-card[open] .program-toggle .chev { transform: rotate(180deg); }

.program-body { padding: 0 1.8rem 2rem; display: grid; gap: 1.1rem; color: var(--ink-soft); }
.program-blocks { display: grid; gap: .7rem; }
.program-blocks strong { color: var(--ink); }
.program-note {
  background: var(--bg-alt); border-radius: var(--radius-sm); padding: 1rem 1.1rem;
  font-size: .95rem;
}
.program-closing { font-family: var(--display); font-weight: 700; color: var(--blue); font-size: 1.02rem; }

.chip-list { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip-list li {
  background: var(--bg-alt); border-radius: 999px; padding: .45rem .95rem;
  font-size: .88rem; font-weight: 600; color: var(--ink-soft);
}

/* --- GALERÍA --- */
.gallery { background: var(--blue-deep); padding-block: 6rem; }
.gallery-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(2, 1fr);
}
.gallery-item {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 4 / 5;
  display: flex; align-items: flex-end;
}
.gallery-item-real { width: 100%; text-align: left; box-shadow: var(--shadow-lg); cursor: zoom-in; }
.gallery-item-real img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.gallery-item-real:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(15,20,30,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox figure { position: relative; max-width: min(900px, 92vw); max-height: 88vh; }
.lightbox img { max-height: 76vh; width: auto; margin-inline: auto; border-radius: var(--radius-sm); display: block; }
.lightbox figcaption { color: var(--cream); text-align: center; margin-top: 1rem; font-family: var(--display); font-weight: 600; max-width: 60ch; margin-inline: auto; }
.lightbox-close {
  position: absolute; top: 1.4rem; right: 1.4rem;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(251,248,242,0.12); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.lightbox-close:hover { background: rgba(251,248,242,0.22); }

/* Carrusel lateral: flechas y puntos de navegación */
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(251,248,242,0.12); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  z-index: 2; transition: background-color .25s var(--ease-out);
}
.lightbox-arrow:hover { background: rgba(251,248,242,0.22); }
.lightbox-arrow[hidden] { display: none; }
.lightbox-prev { left: -4px; }
.lightbox-prev .icon { transform: rotate(180deg); }
.lightbox-next { right: -4px; }
@media (min-width: 720px) {
  .lightbox-prev { left: -60px; }
  .lightbox-next { right: -60px; }
}
.lightbox-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.1rem; }
.lightbox-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(251,248,242,0.35);
  transition: background-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.lightbox-dot.is-active { background: var(--gold); transform: scale(1.25); }

/* --- CONTACTO --- */
.contact { background: var(--bg); padding-block: 6rem; }
.contact-grid { display: grid; gap: 3rem; align-items: start; }
.contact-list { display: grid; gap: 1.3rem; margin-top: 2.2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .icon { color: var(--blue); width: 1.4rem; height: 1.4rem; margin-top: .15rem; }
.contact-list div { display: flex; flex-direction: column; gap: .1rem; }
.contact-list a { font-weight: 700; color: var(--ink); transition: color .2s var(--ease-out); }
.contact-list a:hover { color: var(--blue); }
.contact-list span { color: var(--ink-mute); font-size: .92rem; }
.contact-cta { margin-top: 2.2rem; }

.social-list { display: flex; gap: .8rem; margin-top: 1.6rem; flex-wrap: wrap; }

.social-link { display: block; border-radius: 999px; }

.social-badge {
  position: relative;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .6rem 1.15rem; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--line);
  font-family: var(--display); font-size: .85rem; font-weight: 700; color: var(--ink-mute);
  overflow: hidden;
  transition: color .35s var(--ease-out), border-color .35s var(--ease-out),
              box-shadow .35s var(--ease-out), transform .4s var(--ease-bounce);
}

/* Relleno de color que "sube" desde abajo al pasar el cursor */
.social-badge::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--social-grad, linear-gradient(135deg, var(--blue), var(--teal)));
  transform: translateY(105%);
  transition: transform .45s var(--ease-out);
}

.social-badge .icon,
.social-badge .social-label { position: relative; }
.social-badge .icon {
  color: currentColor; width: 1.15rem; height: 1.15rem;
  transition: transform .45s var(--ease-bounce);
}

.social-link:hover .social-badge,
.social-link:focus-visible .social-badge {
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 14px 26px -10px var(--social-shadow, rgba(29,95,168,.45));
}
.social-link:hover .social-badge::before,
.social-link:focus-visible .social-badge::before {
  transform: translateY(0);
}
.social-link:hover .social-badge .icon,
.social-link:focus-visible .social-badge .icon {
  transform: scale(1.2) rotate(-6deg);
}

.social-link-instagram .social-badge { --social-grad: linear-gradient(135deg, var(--orange), var(--gold)); --social-shadow: rgba(217,100,10,.4); }
.social-link-tiktok .social-badge    { --social-grad: linear-gradient(135deg, var(--blue), var(--teal));   --social-shadow: rgba(29,95,168,.4); }

.contact-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); min-height: 340px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* --- FOOTER --- */
.footer { background: var(--blue-deep); color: rgba(251,248,242,0.85); padding-top: 4rem; }
.footer-inner { display: grid; gap: 2.4rem; padding-bottom: 2.6rem; border-bottom: 1px solid rgba(251,248,242,0.14); }
.footer-brand img { height: 68px; width: auto; margin-bottom: .7rem; }
.footer-brand p { font-family: var(--display); font-weight: 700; color: var(--gold); font-size: .92rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.1rem 1.6rem; align-content: start; }
.footer-links a { font-weight: 600; font-size: .95rem; transition: color .2s var(--ease-out); }
.footer-links a:hover { color: var(--gold); }
.footer-contact { display: grid; gap: .6rem; font-size: .95rem; }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom {
  padding-block: 1.4rem 2rem; font-size: .82rem; color: rgba(251,248,242,0.55);
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; }
.footer-legal a { color: rgba(251,248,242,0.75); transition: color .2s var(--ease-out); }
.footer-legal a:hover { color: var(--gold); }
@media (min-width: 720px) {
  .footer-bottom { justify-content: space-between; }
}

/* =============================================================
   7. Efectos
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  .scroll-cue { animation: none; }
}

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .hero-actions { flex-wrap: nowrap; }
}

@media (min-width: 720px) {
  .about-grid { grid-template-columns: 1.3fr 1fr; }
  .schedule-grid { grid-template-columns: repeat(3, 1fr); }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1.1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-actions .btn-whatsapp span { display: inline; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }

  .hero-inner { grid-template-columns: 1.15fr .85fr; }
  .hero-figure { justify-self: end; max-width: 380px; }

  .schedule-grid { grid-template-columns: repeat(6, 1fr); }
  .schedule-col-weekend { background: var(--teal-tint); }

  .program-grid { grid-template-columns: repeat(3, 1fr); }
  .program-card:first-child { grid-column: span 3; }
  .program-card:first-child summary {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem 2rem;
  }
  .program-card:first-child .program-head { flex: 0 0 auto; }
  .program-card:first-child .program-teaser { flex: 1 1 260px; }
  .program-card:first-child .program-toggle { flex: 0 0 auto; }
}

@media (min-width: 1280px) {
  .hero-title { font-size: 4.4rem; }
  .about-photo { max-width: 380px; }
}

/* =============================================================
   9. Reduced motion (solo lo intrusivo)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html:not(.no-js) .reveal { transition-duration: .25s; }
}

/* =============================================================
   10. Páginas legales (Aviso legal / Privacidad / Cookies)
   ============================================================= */
.legal-hero {
  background: linear-gradient(180deg, #FDFBF6 0%, var(--bg) 100%);
  padding-block: calc(var(--nav-h) + 2.6rem) 2.8rem;
}
.legal-hero .section-title { max-width: 32ch; }
.legal-updated { margin-top: .9rem; color: var(--ink-mute); font-size: .9rem; }

.legal { background: var(--surface); padding-block: 3.5rem 6rem; }
.legal-content {
  max-width: 720px; margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.3rem;
  color: var(--ink-soft); font-size: 1.02rem;
}
.legal-content h2 {
  font-size: 1.3rem; color: var(--blue-deep);
  margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
}
.legal-content section:first-of-type h2 { margin-top: 0; padding-top: 0; border-top: none; }
.legal-content h3 { font-size: 1.05rem; color: var(--ink); margin-top: .4rem; }
.legal-content p, .legal-content li { line-height: 1.7; }
.legal-content ul { display: grid; gap: .5rem; padding-left: 1.3rem; list-style: disc; }
.legal-content strong { color: var(--ink); }
.legal-content a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal-content .legal-box {
  background: var(--bg-alt); border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem; font-size: .96rem;
  display: grid; gap: .35rem;
}
.legal-content .legal-pending { color: var(--orange); font-weight: 700; }

.legal-table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.legal-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.legal-table th, .legal-table td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { background: var(--bg-alt); font-family: var(--display); color: var(--ink); }
.legal-table tr:last-child td { border-bottom: none; }

.legal-back { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--display); font-weight: 700; color: var(--blue); margin-top: 2.5rem; }
.legal-back .icon { transform: rotate(180deg); width: 1.1rem; height: 1.1rem; }

/* =============================================================
   11. Aviso de cookies
   ============================================================= */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 800;
  max-width: 640px; margin-inline: auto;
  background: var(--blue-deep); color: var(--cream);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1.3rem 1.4rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem;
  transform: translateY(140%);
  transition: transform .45s var(--ease-out);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1 1 260px; font-size: .88rem; line-height: 1.55; color: rgba(251,248,242,.88); margin: 0; }
.cookie-banner a { color: var(--gold); font-weight: 700; }
.cookie-banner-actions { display: flex; gap: .7rem; flex: 0 0 auto; }
.cookie-banner .btn-primary { background: var(--gold); color: var(--blue-deep); }
.cookie-banner .btn-primary:hover { background: #DDA420; }
