/* ============================================
   GUDAS STUDIO - Design System & Styles
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Dancing+Script:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors */
  --primary: #0D7377;
  --primary-light: #11999E;
  --primary-dark: #095355;
  --primary-glow: rgba(13, 115, 119, 0.4);

  --bg-dark: #0A0A0A;
  --bg-section: #111111;
  --bg-card: #1A1A1A;
  --bg-card-hover: #222222;
  --bg-overlay: rgba(0, 0, 0, 0.65);
  --bg-glass: rgba(255, 255, 255, 0.05);

  --text-primary: #FFFFFF;
  --text-secondary: #B0B0B0;
  --text-muted: #666666;

  --accent-gold: #D4A574;
  --accent-warm: #E8956A;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(13, 115, 119, 0.5);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-script: 'Dancing Script', cursive;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50%;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(13, 115, 119, 0.3);

  /* Layout */
  --max-width: 1400px;
  --header-height: 80px;
  --announcement-height: 38px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: calc(var(--announcement-height) + var(--header-height));
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.5rem); }

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.script-text {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--primary-light);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section--alt {
  background-color: var(--bg-section);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section__subtitle {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--primary-light);
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
  display: block;
}

.section__title {
  margin-bottom: var(--space-sm);
}

.section__desc {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.flex {
  display: flex;
  align-items: center;
}

.flex--between {
  justify-content: space-between;
}

.flex--center {
  justify-content: center;
}

.flex--column {
  flex-direction: column;
}

.text-center { text-align: center; }
.text-left { text-align: left; }

/* --- Announcement Bar --- */
.announcement-bar {
  background: var(--primary);
  padding: 10px 0;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  overflow: hidden;
  height: var(--announcement-height);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.announcement-bar.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.announcement-bar__inner {
  display: flex;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
  gap: 4rem;
}

.announcement-bar__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.announcement-bar__item::after {
  content: '✦';
  opacity: 0.6;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: var(--announcement-height);
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 var(--space-lg);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: top 0.4s ease, background 0.35s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.35s ease;
  background: transparent;
}

.header.announcement-hidden {
  top: 0;
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo img {
  height: 58px;
  width: auto;
  transition: var(--transition-base);
}

.header__logo:hover img {
  transform: scale(1.05);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  position: relative;
  padding: 0.5rem 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-light);
  transition: var(--transition-base);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--primary-light);
}

.nav__cta {
  background: var(--primary);
  color: var(--text-primary);
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: var(--transition-base);
  border: 2px solid var(--primary);
}

.nav__cta:hover {
  background: transparent;
  color: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1002;
  background: none;
  border: none;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-base);
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: calc(-1 * (var(--announcement-height) + var(--header-height)));
  padding-top: calc(var(--announcement-height) + var(--header-height));
}

.hero__video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.6) 70%,
    rgba(10, 10, 10, 1) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--space-lg);
}

.hero__logo {
  width: 280px;
  margin: 0 auto var(--space-lg);
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.hero__title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

.hero__subtitle {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--primary-light);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
}

.hero__cta-group {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.6s forwards;
  opacity: 0;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 1s ease 0.8s forwards, bounce 2s ease-in-out infinite 1.5s;
  opacity: 0;
}

.hero__scroll-indicator span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
}

.hero__scroll-indicator .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary-light), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.3; }
}

/* --- Hero Location --- */
.hero__location {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 2;
  animation: fadeInUp 1s ease 0.8s forwards;
  opacity: 0;
}

.hero__location span {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

/* --- Page Hero (subpages) --- */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  margin-top: calc(-1 * (var(--announcement-height) + var(--header-height)));
  padding-top: calc(var(--announcement-height) + var(--header-height));
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(10, 10, 10, 0.9) 100%
  );
}

.page-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.page-hero__subtitle {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 1rem;
  color: var(--primary-light);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn--primary {
  background: var(--primary);
  color: var(--text-primary);
  border-color: var(--primary);
}

.btn--primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  transform: translateY(-3px);
}

.btn--large {
  padding: 1.2rem 3rem;
  font-size: 1rem;
}

.btn--small {
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem;
}

.btn__icon {
  font-size: 1.1em;
  transition: var(--transition-fast);
}

.btn:hover .btn__icon {
  transform: translateX(3px);
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-base);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md), 0 0 30px rgba(13, 115, 119, 0.15);
}

.card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.card:hover .card__image img {
  transform: scale(1.08);
}

.card__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
}

.card:hover .card__image-overlay {
  opacity: 1;
}

.card__badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: var(--primary);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.card__content {
  padding: var(--space-md);
}

.card__tag {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary-light);
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
  display: block;
}

.card__title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card__meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* --- Dance Styles Carousel --- */
.styles-carousel {
  position: relative;
}

.styles-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.styles-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.styles-carousel__viewport.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.styles-carousel__viewport.dragging,
.styles-carousel__viewport.dragging * {
  user-select: none;
}

.styles-carousel__track {
  display: flex;
  gap: var(--space-md);
  width: max-content;
  padding: 0.5rem 0.25rem 1rem;
}

.styles-carousel__item {
  flex: 0 0 auto;
  width: clamp(230px, 24vw, 290px);
}

.styles-carousel__item[aria-hidden="true"] {
  pointer-events: none;
}

.styles-carousel__item .card__image {
  aspect-ratio: 3/4;
}

.styles-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-primary);
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-base);
}

.styles-carousel__btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

.styles-carousel__btn--prev { left: -24px; }
.styles-carousel__btn--next { right: -24px; }

@media (max-width: 768px) {
  .styles-carousel__btn {
    display: none;
  }

  .styles-carousel__item {
    width: clamp(190px, 68vw, 250px);
  }
}

/* --- Glass Card --- */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: var(--transition-base);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

/* --- Stats Section --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
}

.stat {
  text-align: center;
  padding: var(--space-md);
}

.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat__label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about__image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about__image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about__text h2 {
  margin-bottom: var(--space-sm);
}

.about__text p {
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
}
/* --- Guía de Niveles - Acordeón --- */
.niveles-section {
  position: relative;
  padding: var(--space-3xl) 0;
  background: var(--bg-dark);
  overflow: hidden;
}

.niveles-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-5deg);
  font-family: var(--font-heading);
  font-size: clamp(10rem, 25vw, 22rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.015);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.niveles-accordion {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.nivel-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-base);
  background: rgba(255, 255, 255, 0.02);
}

.nivel-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.nivel-item.active {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.nivel-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.8rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
}

.nivel-header__left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nivel-header__num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.15);
  min-width: 2.5rem;
}

.nivel-item.active .nivel-header__num {
  color: var(--primary-light);
}

.nivel-header__name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.nivel-header__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nivel-header__tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.nivel-header__icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
  transition: var(--transition-fast);
  line-height: 1;
  width: 1.5rem;
  text-align: center;
}

.nivel-item.active .nivel-header__icon {
  transform: rotate(45deg);
  color: var(--primary-light);
}

.nivel-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.4s ease;
  padding: 0 1.8rem;
}

.nivel-item.active .nivel-body {
  max-height: 500px;
  padding: 0 1.8rem 1.8rem;
}

.nivel-body__layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: center;
}

.nivel-body__img {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.nivel-body__img img {
  width: 100%;
  height: 220px !important;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

.nivel-body__text h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}

.nivel-difficulty {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.nivel-difficulty__label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

.nivel-difficulty__bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.nivel-difficulty__fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}

.nivel-body__text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.nivel-body__text p strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* --- Bienvenidos Section --- */
.bienvenidos-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-secondary);
}

.bienvenidos-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-xl);
  align-items: center;
}

.bienvenidos-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.bienvenidos-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.8rem;
}

.bienvenidos-text p strong {
  color: #fff;
  font-weight: 700;
}

.bienvenidos-cta {
  margin-top: var(--space-sm) !important;
  color: rgba(255, 255, 255, 0.95) !important;
}

.bienvenidos-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 220px;
  height: 220px;
}

.bienvenidos-logo img {
  width: 220px !important;
  height: 220px !important;
  max-width: 220px !important;
  max-height: 220px !important;
  object-fit: contain;
  opacity: 0.9;
  transition: var(--transition-base);
}

.bienvenidos-logo img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* --- Nuestra Historia Section --- */
.historia-section {
  position: relative;
  padding: var(--space-3xl) 0 var(--space-2xl);
  background: var(--bg-primary);
  overflow: hidden;
}

.historia-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-5deg);
  font-family: var(--font-heading);
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}

.historia-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
  z-index: 2;
}

.historia-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
  line-height: 1;
}

.historia-subtitle {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--primary-light);
}

.historia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 2;
}

.historia-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-base);
}

.historia-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(13, 115, 119, 0.3);
  transform: translateY(-3px);
}

.historia-card--full {
  grid-column: 1 / -1;
}

.historia-card p {
  font-size: 0.93rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.6rem;
}

.historia-card p:last-child {
  margin-bottom: 0;
}

.historia-card p strong {
  color: #fff;
  font-weight: 700;
}

.historia-logo {
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}

.historia-logo img {
  height: 60px;
  opacity: 0.4;
  transition: var(--transition-base);
}

.historia-logo img:hover {
  opacity: 0.7;
  transform: scale(1.05);
}

/* --- Valores Acronym (Nosotros Page) --- */
.valores-acronym {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
}

.valores-column {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-base);
}

.valores-column:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md), 0 0 30px rgba(13, 115, 119, 0.1);
}

.valores-column__title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--space-md);
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.valor-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.valor-item:last-child {
  border-bottom: none;
}

.valor-item:hover {
  padding-left: 0.5rem;
}

.valor-letter {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-light);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(13, 115, 119, 0.15);
}

.valor-word {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

/* --- CTA Banner --- */
.cta-banner {
  position: relative;
  padding: var(--space-3xl) 0;
  overflow: hidden;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
}

.cta-banner__bg video,
.cta-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-banner__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 115, 119, 0.85), rgba(10, 10, 10, 0.9));
}

.cta-banner__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-banner__content h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: var(--space-sm);
}

.cta-banner__content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-lg);
}

/* --- Schedule Table --- */
.schedule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.schedule-table thead {
  background: var(--primary-dark);
}

.schedule-table th {
  padding: 1rem 0.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-align: center;
}

.schedule-table td {
  padding: 0.8rem;
  text-align: center;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.schedule-table tbody tr:hover td {
  background: rgba(13, 115, 119, 0.08);
}

.schedule-table .schedule-class {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  margin: 0.2rem 0;
  border-left: 3px solid var(--primary);
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
}

.schedule-class:hover {
  background: var(--bg-card-hover);
  border-left-color: var(--primary-light);
  transform: translateX(3px);
}

.schedule-class__name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.8rem;
}

.schedule-class__time {
  font-size: 0.72rem;
  color: var(--primary-light);
  margin-top: 2px;
}

.schedule-class__instructor {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Schedule Filter Tabs */
.schedule-filters {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.schedule-filter {
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.schedule-filter:hover,
.schedule-filter.active {
  background: var(--primary);
  color: var(--text-primary);
  border-color: var(--primary);
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.gallery-item--tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.1);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 115, 119, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-base);
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__overlay span {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img,
.lightbox video {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 10000;
  background: none;
  border: none;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.lightbox__close:hover {
  color: var(--primary-light);
  transform: rotate(90deg);
}

/* --- Instructor Cards --- */
.instructor-card {
  text-align: center;
  transition: var(--transition-base);
}

.instructor-card:hover {
  transform: translateY(-6px);
}

.instructor-card__image {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0 auto var(--space-sm);
  border: 3px solid var(--border-subtle);
  transition: var(--transition-base);
}

.instructor-card:hover .instructor-card__image {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.instructor-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructor-card__name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.instructor-card__role {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary-light);
  font-size: 0.8rem;
}

/* --- Contact / Map Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.9rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Gift Subscription Selector --- */
.gift-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.gift-plan {
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
}

.gift-plan:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.gift-plan.selected {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.gift-plan__check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: transparent;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.gift-plan.selected .gift-plan__check {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.gift-plan__name {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-light);
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.gift-plan__price {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.2rem;
}

.gift-plan__unit {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.gift-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.gift-step {
  text-align: center;
  padding: var(--space-md);
}

.gift-step__num {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-sm);
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.gift-step__title {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.gift-step__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .gift-plans,
  .gift-steps {
    grid-template-columns: 1fr;
  }
}

/* Map Container */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  height: 100%;
  min-height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: brightness(0.85) contrast(1.1) saturate(0);
}

.contact-info {
  margin-top: var(--space-lg);
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.contact-info__icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info__text h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.contact-info__text p {
  font-size: 0.85rem;
}

/* --- Footer --- */
.footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__brand img {
  height: 45px;
  margin-bottom: var(--space-sm);
}

.footer__brand p {
  font-size: 0.9rem;
  max-width: 300px;
}

.footer__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.footer__links li {
  margin-bottom: 0.6rem;
}

.footer__links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer__links a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.footer__social {
  display: flex;
  gap: 0.8rem;
  margin-top: var(--space-sm);
}

.footer__social a {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-base);
}

.footer__social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer__bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
}

.timeline__item {
  position: relative;
  margin-bottom: var(--space-xl);
  padding-left: var(--space-lg);
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  background: var(--primary);
  border: 3px solid var(--bg-dark);
  z-index: 1;
}

.timeline__year {
  font-family: var(--font-heading);
  color: var(--primary-light);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.timeline__title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.timeline__desc {
  font-size: 0.95rem;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--left {
  transform: translateX(-50px);
}

.reveal--left.visible {
  transform: translateX(0);
}

.reveal--right {
  transform: translateX(50px);
}

.reveal--right.visible {
  transform: translateX(0);
}

.reveal--scale {
  transform: scale(0.9);
}

.reveal--scale.visible {
  transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Keyframe Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* --- Decorative Elements --- */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--primary-light));
  margin: 0 auto var(--space-md);
  border-radius: 2px;
}

.teal-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--primary-light);
  border-radius: var(--radius-full);
  margin: 0 0.5rem;
}

/* --- Responsive Design --- */
@media (max-width: 1200px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
}

@media (max-width: 992px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-lg);
    transition: var(--transition-base);
    z-index: 1001;
  }

  .header__nav.open {
    right: 0;
  }

  .nav__link {
    font-size: 1.5rem;
    font-weight: 700;
  }

  .menu-toggle {
    display: flex;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item--wide {
    grid-column: span 1;
    aspect-ratio: 1;
  }

  .nivel-body__layout {
    grid-template-columns: 1fr;
  }

  .nivel-body__img img {
    height: 180px;
  }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 1.5rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 5rem;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .hero__logo {
    width: 200px;
  }

  .hero__cta-group {
    flex-direction: column;
    align-items: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .schedule-table {
    display: block;
    overflow-x: auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-hero {
    background-attachment: scroll;
  }

  .valores-acronym {
    grid-template-columns: 1fr;
  }

  .about-grid[style*="direction: rtl"] {
    direction: ltr !important;
  }

  .historia-grid {
    grid-template-columns: 1fr;
  }

  .historia-card--full {
    grid-column: auto;
  }

  .bienvenidos-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .bienvenidos-logo {
    width: 160px;
    height: 160px;
    margin: 0 auto;
  }

  .bienvenidos-logo img {
    width: 160px !important;
    height: 160px !important;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: 100svh;
  }
}

/* --- Utility: Hidden --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Video Container --- */
.video-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.video-container video {
  width: 100%;
  display: block;
}

.video-container__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: var(--transition-base);
}

.video-container__play::after {
  content: '▶';
  font-size: 3rem;
  color: white;
  transition: var(--transition-base);
}

.video-container:hover .video-container__play {
  background: rgba(13, 115, 119, 0.4);
}

.video-container:hover .video-container__play::after {
  transform: scale(1.2);
}

/* --- Merch Page --- */
.merch-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: var(--space-xl);
}

.merch-filter {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.65rem 1.6rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: var(--transition-base);
}

.merch-filter:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.merch-filter.active {
  background: var(--primary);
  color: var(--text-primary);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(13, 115, 119, 0.3);
}

.merch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.merch-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
}

.merch-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md), 0 0 30px rgba(13, 115, 119, 0.15);
}

.merch-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  background: var(--primary);
  color: var(--text-primary);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.merch-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #111;
}

.merch-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition-slow);
  padding: 1rem;
}

.merch-card:hover .merch-card__image img {
  transform: scale(1.08);
}

.merch-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition-base);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1rem;
}

.merch-card:hover .merch-card__overlay {
  opacity: 1;
}

.merch-card__zoom {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.merch-card__body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.merch-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.merch-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.merch-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #25D366;
  color: #fff;
  cursor: pointer;
  border: none;
  transition: var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.merch-card__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: var(--transition-fast);
}

.merch-card__btn:hover::before {
  opacity: 1;
}

.merch-card__btn:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
  color: #fff;
}

.merch-card__btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.merch-cta-btn {
  margin-top: var(--space-lg);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Merch responsive */
@media (max-width: 1024px) {
  .merch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .merch-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .merch-filters {
    gap: 0.5rem;
  }

  .merch-filter {
    padding: 0.5rem 1.2rem;
    font-size: 0.75rem;
  }

  .merch-card__body {
    padding: 1rem;
  }

  .merch-card__title {
    font-size: 0.95rem;
  }

  .merch-card__desc {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .merch-grid {
    grid-template-columns: 1fr;
  }
}
