/*
Theme Name: Altius Karate Club
Theme URI: https://monicanieto.com
Author: Mónica Nieto
Author URI: https://monicanieto.com
Description: Tema personalizado para escuelas de karate.
Version: 2.5
Text Domain: altius
Domain Path: /languages
*/

/* ============================================================
   VARIABLES DE MARCA
   ============================================================ */
:root {
  /* Paleta Altius */
  --navy:        #131433;   /* azul marino profundo — fondo principal oscuro */
  --navy-soft:   #1c1e4d;   /* variante para tarjetas sobre navy */
  --navy-line:   rgba(255,255,255,0.08);
  --light:       #e6e6e6;   /* gris claro — fondos secundarios */
  --white:       #ffffff;
  --blue:        #1898d4;   /* azul acento */
  --blue-dark:   #127aab;
  --ink:         #131433;   /* texto sobre fondos claros */
  --muted:       #666a86;   /* texto secundario sobre claro */
  --muted-on-dark: rgba(230,230,230,0.68);

  --font-display: 'Panchang', 'Segoe UI', sans-serif;
  --font-head:    'Panchang', 'Segoe UI', sans-serif;
  --font-body:    'Montserrat', 'Segoe UI', sans-serif;

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

  --transition:      0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --nav-height: 84px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
iframe { border: 0; display: block; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   TIPOGRAFÍA / UTILIDADES DE SECCIÓN
   ============================================================ */
.pre-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  text-align: center;
  margin-bottom: 10px;
}
.pre-title--left { text-align: left; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: var(--ink);
}
.section-title--left { text-align: left; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  max-width: none;
  margin: 0 0 40px;
}
.section-head--split .section-head,
.section-head--split .pre-title,
.section-head--split .section-title { text-align: left; margin: 0; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 3px;
  transition: gap var(--transition), color var(--transition), border-color var(--transition);
}
.link-arrow:hover { gap: 12px; color: var(--blue); border-color: var(--blue); }
.link-arrow--accent { color: var(--blue); border-color: var(--blue); }
.link-arrow span { transition: transform var(--transition); }
.link-arrow:hover span { transform: translateX(3px); }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.15s; }
.reveal:nth-child(3) { transition-delay: 0.25s; }
.reveal:nth-child(4) { transition-delay: 0.35s; }
.reveal:nth-child(5) { transition-delay: 0.45s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal-text { animation: fadeUp 0.9s ease both; }
.reveal-text-delay { animation: fadeUp 0.9s 0.2s ease both; }

/* ============================================================
   BOTONES
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 26px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--blue);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-2px); }

.btn-outline-hero {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 26px;
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background var(--transition);
}
.btn-outline-hero:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 26px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--navy);
  transition: background var(--transition), transform var(--transition);
}
.btn-dark:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }

.btn-nav-cta {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 20px;
  background: var(--blue);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  margin-left: 12px;
  transition: background var(--transition);
  white-space: nowrap;
}
.btn-nav-cta:hover { background: var(--blue-dark); }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--navy-line);
}
.lang-switcher li a {
  display: block;
  padding: 6px 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  transition: color var(--transition);
}
.lang-switcher li a:hover { color: var(--white); }
.lang-switcher li.lang-item-current a { color: var(--blue); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--navy);
  transition: background var(--transition), box-shadow var(--transition);
}
.sticky-top.scroll-reducido,
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.navbar {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.navbar-brand img { width: auto; height: 44px; object-fit: contain; }

.navbar-collapse {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.navbar-nav li a {
  display: block;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  transition: color var(--transition);
}
.navbar-nav li a:hover,
.navbar-nav li.current-menu-item a { color: var(--white); }

.navbar-toggler {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 90px;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.hero-bg img.parallax-img,
.hero-bg video.parallax-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19,20,51,0.55) 0%, rgba(19,20,51,0.55) 40%, rgba(19,20,51,0.96) 100%);
}

.hero-content { position: relative; z-index: 2; padding-top: 140px; max-width: 720px; }

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  margin: 6px 0 20px;
}

.hero-bio {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--muted-on-dark);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.scroll-arrow {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-arrow-chevron {
  display: block;
  width: 14px;
  height: 14px;
  border-right: 2px solid rgba(255,255,255,0.6);
  border-bottom: 2px solid rgba(255,255,255,0.6);
  transform: rotate(45deg);
  animation: bounceDown 1.8s ease-in-out infinite;
}
@keyframes bounceDown {
  0%, 100% { transform: rotate(45deg) translate(0,0); }
  50% { transform: rotate(45deg) translate(4px,4px); }
}

/* ============================================================
   NOSOTROS
   ============================================================ */
.about-section { padding: 100px 0; background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: auto;
}
.about-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-badge {
  position: absolute;
  right: 24px;
  bottom: 24px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.about-badge-num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; }
.about-badge-text { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.9; }

.about-content .pre-title { margin-bottom: 12px; }
.about-content .section-title { margin-bottom: 20px; }

.about-text { color: var(--muted); line-height: 1.8; margin-bottom: 24px; }
.about-text p + p { margin-top: 14px; }

.about-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(19,20,51,0.08);
}

.pillar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--light);
  border-radius: var(--radius-sm);
  transition: transform var(--transition), background var(--transition);
}
.pillar-item:hover { transform: translateY(-2px); background: #dedede; }

.pillar-icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }

.pillar-titulo {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

/* ============================================================
   PROGRAMA — 3 tarjetas (Little Lions / Altius Karate / Moai)
   ============================================================ */
.programs-section { padding: 100px 0; background: var(--navy); }
.programs-section .pre-title { color: var(--blue); }
.programs-section .section-title { color: var(--white); }

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.program-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--navy-soft);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.program-card:hover { transform: translateY(-6px); border-color: rgba(24,152,212,0.4); }

.program-card-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--navy);
}
.program-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.program-card:hover .program-card-media img { transform: scale(1.08); }

.program-card-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.program-card-media-placeholder span { font-size: 3.6rem; opacity: 0.5; }

.program-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 28px;
  background-color: var(--white);
}

.program-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--blue);
  padding: 5px 10px;
  border-radius: 999px;
}

.program-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 14px;
}

.program-edades {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.program-horario {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--navy) !important;
  margin-bottom: 14px;
}
.program-horario::before {
  content: "📅";
  flex-shrink: 0;
  line-height: 1.5;
}
/* Fondo oscuro (tarjetas del home) -> texto claro para que se lea */
.program-card .program-horario,
.programs-section .program-horario {
  color: var(--white);
}

.program-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.program-card p {
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: 18px;

}
.program-card .link-arrow--accent { margin-top: auto; }

.programs-extra {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--navy-line);
}

.programs-extra-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted-on-dark);
  text-align: center;
  margin-bottom: 32px;
}

.programs-extra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.program-card-mini {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: transparent;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.program-card-mini:hover { transform: translateY(-4px); border-color: rgba(24,152,212,0.4); background: rgba(255,255,255,0.02); }

.program-card-mini-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--navy);
}
.program-card-mini-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.program-card-mini:hover .program-card-mini-media img { transform: scale(1.08); }
.program-card-mini-media .program-card-media-placeholder span { font-size: 2.6rem; }

.program-card-mini-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 22px;
  background-color:  var(--white);

}

.program-card-mini .program-icon { font-size: 1.9rem; margin-bottom: 12px; }

.program-card-mini h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
   margin-bottom: 8px;
   color: var(--navy);
}
.program-card-mini p {
  color: var(--muted-on-dark);
  line-height: 1.6;
  font-size: 0.88rem;
  margin-bottom: 12px;
   color: var(--navy);
}
.program-card-mini .link-arrow--accent { margin-top: auto; }

/* ============================================================
   CTA — AGENDA TU CLASE GRATIS
   ============================================================ */
.cta-section {
  padding: 90px 0;
  background: var(--blue);
  text-align: center;
}
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-section .pre-title { color: var(--navy); opacity: 0.75; }
.cta-section .section-title { color: var(--navy); margin-bottom: 16px; }
.cta-texto {
  color: var(--navy);
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: 32px;
  font-size: 1.02rem;
}
.cta-section .btn-dark:hover { background: var(--navy); border-color: var(--navy); transform: translateY(-2px); }

/* ============================================================
   PÁGINA /PROGRAMA — plantilla page-programa.php
   ============================================================ */
.page-hero {
  padding: 180px 0 80px;
  background: var(--navy);
  text-align: center;
}
.page-hero-content { max-width: 640px; margin: 0 auto; }
.page-hero-content .pre-title { color: var(--blue); }
.page-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  margin: 10px 0 18px;
}
.page-hero-content p { color: var(--muted-on-dark); line-height: 1.7; }

.programa-block { padding: 90px 0; background: var(--white); }
.programa-block:nth-of-type(even) { background: var(--light); }

.programa-block-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.programa-block--invertido .programa-block-grid { direction: rtl; }
.programa-block--invertido .programa-block-grid > * { direction: ltr; }

.programa-block-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--navy);
}
.programa-block-media img { width: 100%; height: 100%; object-fit: cover; }

.programa-video-wrap { position: relative; width: 100%; height: 100%; }
.programa-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.programa-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.programa-media-placeholder span { font-size: 5rem; opacity: 0.5; }

.program-icon--inline { display: block; margin-bottom: 12px; }

.program-badge--inline {
  position: static;
  display: inline-block;
  margin-bottom: 12px;
  margin-left: 10px;
}

.program-edades--inline { display: block; margin-bottom: 14px; }
.programa-block-content .program-edades--inline { color: var(--blue); }
.programa-block:nth-of-type(even) .section-title,
.programa-block-content .section-title { color: var(--ink); }

.programa-block-texto { color: var(--muted); line-height: 1.8; margin-bottom: 28px; }
.programa-block-texto p + p { margin-top: 14px; }

/* ============================================================
   PÁGINA /NOSOTROS — plantilla page-nosotros.php
   ============================================================ */
.nosotros-intro { padding: 90px 0; background: var(--white); }
.nosotros-intro-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}
.nosotros-intro-inner p + p { margin-top: 16px; }

.mv-section { padding: 0 0 90px; background: var(--white); }
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.mv-card {
  background: var(--light);
  border-radius: var(--radius-md);
  padding: 40px;
}
.mv-card .section-title { margin-bottom: 16px; font-size: 1.5rem; }
.mv-card p { color: var(--muted); line-height: 1.75; }

.values-section { padding: 90px 0; background: var(--navy); }
.values-section .pre-title { color: var(--blue); }
.values-section .section-title { color: var(--white); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 28px 16px;
  background: var(--navy-soft);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-md);
  transition: transform var(--transition), border-color var(--transition);
}
.value-item:hover { transform: translateY(-4px); border-color: rgba(24,152,212,0.4); }
.value-icon { font-size: 2rem; line-height: 1; }
.value-titulo {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}

.instructors-section { padding: 90px 0; background: var(--white); }
.instructors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.instructor-card { text-align: center; }
.instructor-photo {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
  max-width: 220px;
  margin: 0 auto 12px;
  background: var(--light);
}
.instructor-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.instructor-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}

/* Mini-carrusel (solo cuando el instructor tiene más de 1 foto) */
.instructor-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
}
.instructor-slider-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: none;
}
.instructor-slider-slide.is-active { display: block; }

.instructor-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(19,20,51,0.55);
  color: var(--white);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 2;
}
.instructor-slider-btn:hover { background: var(--blue); }
.instructor-slider-prev { left: 6px; }
.instructor-slider-next { right: 6px; }

.instructor-slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}
.instructor-slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--light);
  transition: background var(--transition), transform var(--transition);
}
.instructor-slider-dot.is-active { background: var(--blue); transform: scale(1.2); }

.instructor-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.instructor-cargo {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.instructor-bio { color: var(--muted); line-height: 1.7; font-size: 0.95rem; }
.instructors-empty-msg { text-align: center; color: var(--muted); margin-top: 32px; }

/* ============================================================
   HAZAÑAS Y MOMENTOS
   ============================================================ */
.gallery-section { padding: 100px 0; background: var(--white); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-card { position: relative; }

.video-thumb-wrap {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy);
  cursor: pointer;
}
.video-thumb-wrap img { transition: transform var(--transition-slow); filter: brightness(0.65); }
.video-card:hover .video-thumb-wrap img { transform: scale(1.06); filter: brightness(0.5); }

/* Caso 4: solo foto, sin video ni detalle -> no es clickeable */
.video-thumb-wrap--static { cursor: default; }
.video-thumb-wrap--static img { filter: brightness(0.85); }
.video-card:hover .video-thumb-wrap--static img { transform: none; filter: brightness(0.85); }

.video-play-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  color: var(--white);
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Caso 3: sin video, con detalle -> abre modal (mismo look que el badge de video) */
.video-expand-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  color: var(--white);
  font-size: 1.1rem;
  opacity: 0.9;
}
button.video-thumb-wrap.js-open-hazana {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
}

.play-btn {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  opacity: 0;
  transition: opacity var(--transition);
}
.play-btn::before {
  content: '';
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  position: absolute;
}
.video-card:hover .play-btn { opacity: 1; }

.video-titulo {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.video-card--placeholder .video-thumb-wrap,
.video-card--placeholder { aspect-ratio: 4/3; border-radius: var(--radius-md); background: var(--light); }

.video-iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}
.video-iframe-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ── Modal de detalle (Hazañas) ────────────────────────────── */
body.modal-open { overflow: hidden; }

.hazana-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(19,20,51,0.82);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition);
}
.hazana-modal-overlay.active { opacity: 1; visibility: visible; }

.hazana-modal-box {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  transform: translateY(16px);
  transition: transform var(--transition);
}
.hazana-modal-overlay.active .hazana-modal-box { transform: translateY(0); }

.hazana-modal-close {
  position: sticky;
  float: right;
  top: 0;
  right: 0;
  margin: -12px -12px 0 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.hazana-modal-close:hover { background: var(--blue); color: var(--white); }

.hazana-modal-inner h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
  clear: both;
}

.hazana-modal-fotos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.hazana-modal-fotos img:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
.hazana-modal-fotos img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.hazana-modal-texto { color: var(--muted); line-height: 1.8; }
.hazana-modal-texto p + p { margin-top: 14px; }

/* ============================================================
   PRÓXIMOS EVENTOS
   ============================================================ */
.calendar-section { padding: 100px 0; background: var(--light); }

.events-list { display: flex; flex-direction: column; gap: 12px; }

.event-row {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--blue);
  box-shadow: 0 2px 10px rgba(19,20,51,0.05);
  transition: transform var(--transition), box-shadow var(--transition);
}
.event-row:hover { transform: translateX(4px); box-shadow: 0 6px 18px rgba(19,20,51,0.09); }

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
}
.event-date .day { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.event-date .month { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-on-dark); margin-top: 2px; }

.event-info h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.event-info p { font-size: 0.9rem; color: var(--muted); }

.events-list--empty { text-align: center; padding: 40px 0; }
.events-empty-msg { color: var(--muted); }

/* ============================================================
   RESEÑAS
   ============================================================ */
.testimonials-section { padding: 100px 0; background: var(--navy); }
.testimonials-section .pre-title { color: var(--blue); }
.testimonials-section .section-title { color: var(--white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--navy-soft);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-md);
  padding: 28px;
}

.testimonial-stars { color: var(--blue); font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 16px; }

.testimonial-text {
  color: var(--white);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
}
.testimonial-name { display: block; font-weight: 600; color: var(--white); font-size: 0.92rem; }
.testimonial-source { display: block; font-size: 0.78rem; color: var(--muted-on-dark); }

/* ============================================================
   UBICACIÓN Y CONTACTO
   ============================================================ */
.location-section { padding: 100px 0; background: var(--white); }

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.location-list { margin: 28px 0 32px; display: flex; flex-direction: column; gap: 20px; }
.location-list li { display: flex; align-items: flex-start; gap: 14px; }
.location-list i { color: var(--blue); font-size: 1.2rem; margin-top: 3px; }
.location-label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--ink); margin-bottom: 2px; }
.location-list li span:last-child { color: var(--muted); font-size: 0.95rem; }

.location-map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3.3;
  background: var(--light);
}
.location-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy); color: var(--muted-on-dark); padding: 80px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--navy-line);
}

.footer-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col--marca .custom-logo { height: auto; max-height: 48px; width: auto; margin-bottom: 16px; }

.footer-tagline { font-size: 0.92rem; line-height: 1.7; max-width: 320px; margin-bottom: 20px; }

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--navy-line);
  border-radius: 50%;
  color: var(--white);
  transition: background var(--transition), border-color var(--transition);
}
.footer-social a:hover { background: var(--blue); border-color: var(--blue); }

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}

.footer-menu li,
.footer-contact li { margin-bottom: 12px; font-size: 0.92rem; }
.footer-menu a { transition: color var(--transition); }
.footer-menu a:hover { color: var(--white); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact i { color: var(--blue); margin-top: 3px; }
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0;
  font-size: 0.8rem;
}
.footer-credit a { color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .navbar-toggler { display: flex; }
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--navy);
    padding: 16px 24px 24px;
  }
  .navbar-nav { flex-direction: column; align-items: flex-start; width: 100%; }
  .btn-nav-cta { margin: 12px 0 0; }

  .about-grid,
  .location-grid,
  .programa-block-grid,
  .mv-grid { grid-template-columns: 1fr; }

  .about-pillars { grid-template-columns: repeat(2, 1fr); }

  .values-grid,
  .instructors-grid { grid-template-columns: repeat(2, 1fr); }

  .programs-extra-grid { grid-template-columns: repeat(1, 1fr); }

  .programs-grid,
  .video-grid,
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-section { padding-bottom: 60px; }
  .hero-content { padding-top: 110px; }

  .about-section,
  .programs-section,
  .gallery-section,
  .calendar-section,
  .testimonials-section,
  .location-section,
  .cta-section,
  .programa-block,
  .nosotros-intro,
  .mv-section,
  .values-section,
  .instructors-section { padding: 64px 0; }

  .programs-grid,
  .video-grid,
  .testimonials-grid,
  .values-grid,
  .instructors-grid { grid-template-columns: 1fr; }

  .about-pillars { grid-template-columns: 1fr !important; margin-top: 40px; padding-top: 32px; }

  .page-hero { padding: 140px 0 56px; }

  .event-row { grid-template-columns: 60px 1fr; }
  .event-action { grid-column: 1 / -1; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-head--split { flex-direction: column; align-items: flex-start; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

::selection { background: var(--blue); color: var(--white); }
