/* ══════════════════════════════════════════════════════════
   1. HEADER FIJO
   ══════════════════════════════════════════════════════════ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-xl) 0;
  z-index: 100;
  transition: background var(--transition-base), border-color var(--transition-base), padding var(--transition-base);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: #24292a;
  border-bottom-color: #ffffff0f;
  padding-top: 0;
  padding-bottom: 0;
}

.site-header__logo-udaondo {
  height: 80px;
  width: auto;
  transition: height var(--transition-base);
}

.site-header.scrolled .site-header__logo-udaondo {
  height: 42px;
}

.site-header__logo-temporadas {
  height: 22px;
  width: auto;
  opacity: 0.85;
}

/* ── Botón volver en header (solo mobile, solo cuando panel abierto) ── */
.site-header__back {
  display: none;
  position: absolute;
  left: var(--space-lg);
  align-items: center;
  gap: var(--space-sm);
  background: none;
  border: none;
  color: #ffffffe6;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: var(--space-sm) 0;
  transition: color var(--transition-base);
}

.site-header__back:hover {
  color: #ffffff;
}

.site-header__back-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.site-header__back-icon--arrow {
  display: none;
}

/* ══════════════════════════════════════════════════════════
   2. HERO
   ══════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  height: 97vh;
  min-height: 520px;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  animation: heroZoom 8s ease-out forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.04);
  }

  to {
    transform: scale(1);
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: var(--space-2xl);
}

.hero__logo-temporadas {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  animation: fadeIn 700ms 200ms ease forwards;
}

/* ── Utilidades responsive ── */
.only-mobile {
  display: none;
}

@media (max-width: 768px) {
  .only-desktop {
    display: none;
  }

  .only-mobile {
    display: inline;
  }
}

/* ── Hero Intro — sección de texto y CTA bajo el hero ── */
.hero-intro {
  background: #4b5456;
  padding: clamp(24px, 5vw, 64px) clamp(24px, 7vw, 96px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 64px);
}

.hero-intro__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.hero-intro__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.8125rem);
  font-weight: 450;
  font-style: normal;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #ffffff;
}

.hero-intro__sub {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 2.8vw, 2.375rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.2;
  letter-spacing: 0;
  color: #ffffffcc;
}

.btn-inscripcion {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(200px, 42vw, 590px);
  height: clamp(52px, 5.5vw, 82px);
  padding: 0;
  background: #ffffff;
  color: #4b5456;
  font-family: var(--font-ui);
  font-size: clamp(1rem, 2.5vw, 2.375rem);
  font-weight: 450;
  font-style: normal;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: none;
  border-radius: 60px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-base), color var(--transition-base);
}

.btn-inscripcion:hover {
  background: #ffffffe0;
}

/* ══════════════════════════════════════════════════════════
   3. LAYOUT BODY — grid de dos columnas
   ══════════════════════════════════════════════════════════ */

.layout-body {
  display: grid;
  grid-template-columns: var(--menu-width) 1fr;
  align-items: start;
  background: #dcdede;
}


/* ══════════════════════════════════════════════════════════
   4. COLUMNA IZQUIERDA — menú
   ══════════════════════════════════════════════════════════ */

.menu-col {
  position: relative;
  top: auto;
  height: auto;
  overflow: visible;
  background: #fdfdfd;
  border-right: 1px solid #00000014;
}

.menu-col::-webkit-scrollbar {
  width: 4px;
}

.menu-col::-webkit-scrollbar-track {
  background: transparent;
}

.menu-col::-webkit-scrollbar-thumb {
  background: #00000026;
  border-radius: 2px;
}

.menu-list {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.menu-item__arrow {
  display: none;
}

.menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: var(--space-md) var(--space-lg) var(--space-md) clamp(24px, 7vw, 96px);
  border: none;
  border-bottom: 1px solid #4B5456;
  background: transparent;
  font-family: 'Neue Haas Grotesk Display Pro', var(--font-ui);
  font-size: clamp(0.875rem, 1.6vw, 1.75rem);
  font-weight: 450;
  font-style: normal;
  line-height: 2.2;
  letter-spacing: 0;
  text-transform: uppercase;
  vertical-align: middle;
  color: #1a1a1a;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-base);
}

.menu-item:hover {
  background: #0000000a;
}

.menu-item.active {
  background: #dcdede;
  font-weight: 400;
}


/* ══════════════════════════════════════════════════════════
   5. COLUMNA DERECHA — contenido
   ══════════════════════════════════════════════════════════ */

.content-col {
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
  background: #FDFDFD;
  scrollbar-width: thin;
  scrollbar-color: #00000026 transparent;
}

.content-col::-webkit-scrollbar {
  width: 3px;
}

.content-col::-webkit-scrollbar-track {
  background: transparent;
}

.content-col::-webkit-scrollbar-thumb {
  background: #00000026;
  border-radius: 99px;
}

.content-col::-webkit-scrollbar-thumb:hover {
  background: #0000004d;
}

/* ── Section panels ── */
.section-panel {
  display: none;
}

.section-panel.active {
  display: block;
  animation: fadeIn 300ms ease both;
}

/* ── Botón volver (solo mobile, vive dentro de cada section HTML) ── */
.section-back {
  display: none;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: #24292a;
  color: #ffffffe6;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: color var(--transition-base);
}

.section-back:hover {
  color: #ffffff;
}

.section-back__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   6. SECTION HERO INTERNO
   ══════════════════════════════════════════════════════════ */

.section-hero {
  position: relative;
  height: clamp(220px, calc(100vh - var(--header-height)), 567px);
  overflow: hidden;
  background: #dcdede;
}

.section-hero__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 0;
}

.section-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 55%,
      rgba(0, 0, 0, 0.10) 78%,
      rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
  z-index: 1;
}

.section-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 clamp(16px, 4vw, 64px) var(--space-lg);
  z-index: 2;
}

.section-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
  text-align: center;
  color: #f5f5f5;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.20);
}

/* ══════════════════════════════════════════════════════════
   7. SECTION BODY — contenedor de contenido
   ══════════════════════════════════════════════════════════ */

.section-body {
  padding: var(--space-2xl);
  background: #dcdede;
}

/* ══════════════════════════════════════════════════════════
   8. PRÓXIMAMENTE
   ══════════════════════════════════════════════════════════ */

.coming-soon-view {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #fdfdfd;
}

.coming-soon-view__hero {
  position: relative;
  height: clamp(220px, calc(100vh - var(--header-height)), 567px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding-bottom: var(--space-lg);
}

.coming-soon-view__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.6) saturate(0.85);
}

.coming-soon-view__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, 7rem);
  font-weight: 400;
  line-height: 115%;
  letter-spacing: 0;
  text-align: center;
  color: #DCDEDE;
  text-transform: uppercase
}

.coming-soon-view__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-2xl);
  background: #fdfdfd;
}

.coming-soon-view__text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.75rem);
  font-weight: 450;
  line-height: 220%;
  letter-spacing: 0;
  text-align: center;
  color: #383D3F;
}

/* ══════════════════════════════════════════════════════════
   9. FOOTER
   ══════════════════════════════════════════════════════════ */

.site-footer {
  background: #24292a;
  padding: var(--space-2xl) var(--space-3xl);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
  border-top: 1px solid #ffffff0f;
}

.site-footer__logos {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  flex-shrink: 0;
  height: 47.70px;
  opacity: 1;
}

.site-footer__logos img {
  height: 100%;
  width: auto;
  transition: opacity var(--transition-base);
}

@media (min-width: 769px) and (max-width: 1200px) {
  .site-footer__logos img {
    height: 60%;
  }
}

.site-footer__logos img:hover {
  opacity: 0.9;
}

.site-footer__text {
  font-family: 'Neue Haas Grotesk Display Pro', var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
  color: #DCDEDE;
  text-align: left;
}

/* ══════════════════════════════════════════════════════════
   10a. RESPONSIVE — TABLET ESTRECHA (769px–900px)
   ══════════════════════════════════════════════════════════ */

@media (min-width: 769px) and (max-width: 900px) {

  /* Hero intro: apila en columna para evitar que el botón aplaste el texto */
  .hero-intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(16px, 3vw, 24px);
  }

  .btn-inscripcion {
    width: 70%;
    max-width: 400px;
  }

  /* Menú: reduce el padding izquierdo que usa 7vw (muy grande en columnas angostas) */
  .menu-item {
    padding-left: var(--space-lg);
  }

  /* Footer: reduce padding lateral y gap para que los logos no se salgan */
  .site-footer {
    padding: var(--space-2xl) var(--space-xl);
    gap: var(--space-lg);
  }

  .site-footer__logos {
    gap: var(--space-lg);
    flex-shrink: 1;
  }
}

/* ══════════════════════════════════════════════════════════
   10. RESPONSIVE — MOBILE (≤768px)
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* Layout: una sola columna */
  .layout-body {
    grid-template-columns: 1fr;
    background: #fdfdfd;
  }

  /* Menú: columna estática, mismo estilo que desktop + flecha */
  .menu-col {
    position: static;
    height: auto;
    overflow: visible;
    border-right: none;
  }

  .menu-item {
    font-size: 16px;
    height: 42px;
    min-height: unset;
  }

  .menu-item__arrow {
    display: block;
    margin-left: auto;
    flex-shrink: 0;
    width: 11px;
    height: 11px;
    transform: rotate(-90deg);
  }

  /* Columna de contenido: colapsa en mobile (los paneles son position:fixed) */
  .content-col {
    height: 0;
    min-height: 0;
    overflow: hidden;
  }

  /* Bloquear scroll del body cuando panel abierto */
  body.panel-open {
    overflow: hidden;
    --header-height: 52px;
  }

  /* Header: logo y padding reducidos en mobile */
  .site-header {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }

  .site-header__logo-udaondo {
    height: 42px;
  }

  /* Header: fondo claro cuando panel abierto */
  body.panel-open .site-header {
    background: #dcdede;
    border-bottom-color: transparent;
    padding-top: 0;
    height: 52px;
  }

  body.panel-open .site-header__back {
    display: flex;
    color: #24292a;
  }

  body.panel-open .site-header__back:hover {
    color: #000000;
  }

  body.panel-open .site-header__logo-udaondo {
    display: none;
  }

  body.panel-open .site-header__back-text {
    display: none;
  }

  body.panel-open .site-header::after {
    display: none;
  }

  body.panel-open .site-header__back-icon--svg {
    display: none;
  }

  body.panel-open .site-header__back-icon--arrow {
    display: block;
    transform: rotate(90deg);
  }

  /* Section panels: overlay full-screen en mobile */
  .section-panel {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #dcdede;
    display: none;
  }

  .section-panel.is-open {
    display: block;
    animation: fadeIn 220ms ease both;
  }

  /* Botón volver: vive en el header, se oculta dentro del panel */
  .section-back {
    display: none;
  }

  .section-body {
    padding: var(--space-lg);
  }

  /* Section hero interno: altura reducida en mobile */
  .section-hero {
    height: clamp(220px, 40vh, 320px);
  }

  /* Hero logo reducido en mobile */
  .hero__logo-temporadas {
    height: 36px;
  }

  /* Hero principal en mobile */
  .hero {
    height: 65vh;
    min-height: 420px;
  }

  .hero__content {
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
  }

  .hero__title {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
  }

  /* Hero intro en mobile: apilado y centrado */
  .hero-intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(20px, 6vw, 40px) clamp(16px, 5vw, 32px);
    gap: clamp(16px, 4vw, 24px);
    background: #24292A;
  }

  .hero-intro__title {
    font-size: clamp(1.125rem, 5vw, 1.6rem);
  }

  .hero-intro__sub {
    font-size: 1rem;
  }

  .btn-inscripcion {
    width: 100%;
    max-width: 360px;
    font-size: clamp(0.75rem, 3vw, 0.875rem);
  }

  /* Próximamente: padding compacto en mobile */
  .coming-soon-view__body {
    padding: 32px var(--space-lg);
  }

  /* Footer en mobile */
  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-xl);
    padding: var(--space-2xl) var(--space-lg);
  }

  .site-footer__logos {
    height: auto;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    order: 1;
  }

  .site-footer__logos img {
    height: auto;
    width: auto;
    max-height: 36px;
  }

  .site-footer__text {
    font-size: var(--text-sm);
    text-align: center;
    order: 2;
  }
}

.site-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.site-header.scrolled::after {
  display: none;
}

@media (min-width: 769px) {
  .content-col {
    display: block;
  }

  .section-back {
    display: none;
  }
}

/* ══════════════════════════════════════════════════════════
   11. SCROLL REVEAL
   ══════════════════════════════════════════════════════════ */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════════════════════
   12. SKIP NAVIGATION LINK
   ══════════════════════════════════════════════════════════ */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: #1a1a1a;
  color: #ffffff;
  padding: var(--space-xs) var(--space-sm);
  z-index: 1000;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  letter-spacing: 0.08em;
}

.skip-link:focus {
  top: 0;
}

/* ══════════════════════════════════════════════════════════
   13. REDUCCIÓN DE MOVIMIENTO
   ══════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}