.home-page {
  min-height: 100vh;
}

/* ── Hero ── */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  color: var(--crema);
  margin-top: -80px; /* sube bajo la navbar transparente */
}

.image-carousel-container {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.image-carousel-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.image-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.image-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.image-carousel-slide.active {
  opacity: 1;
}

.image-carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gradiente cinematográfico */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(15, 53, 39, 0.45) 0%,
      rgba(15, 53, 39, 0.15) 40%,
      rgba(15, 53, 39, 0.8) 100%);
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.hero-text {
  padding: 0 40px 90px;
  max-width: 760px;
  text-align: left;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 120px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--crema);
  margin-bottom: 20px;
  text-shadow: none;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: #e8d4a6;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 237, 224, 0.75);
  margin-bottom: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-subtitle::before {
  content: '';
  width: 40px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.hero-description {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(245, 237, 224, 0.88);
  margin-bottom: 36px;
  max-width: 520px;
  text-shadow: none;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--crema);
  color: var(--tinta);
  border-radius: 2px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: background 0.25s ease, transform 0.25s ease;
  border: 1px solid var(--crema);
  cursor: pointer;
}

.hero-button:hover {
  background: white;
  transform: translateY(-1px);
}

/* Indicadores del carrusel */
.image-carousel-indicators {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.image-carousel-indicator {
  width: 36px;
  height: 2px;
  border-radius: 0;
  border: none;
  background: rgba(245, 237, 224, 0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease;
}

.image-carousel-indicator:hover {
  background: rgba(245, 237, 224, 0.6);
}

.image-carousel-indicator.active {
  background: var(--crema);
}

/* ── Próxima función ── */
.proxima-funcion {
  background: var(--borgo);
  color: var(--crema);
  padding: 0;
  overflow: hidden;
}

/* Cinta animada */
.proxima-funcion-marquee {
  background: rgba(0, 0, 0, 0.18);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(245, 237, 224, 0.15);
}

.proxima-funcion-marquee-track {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 237, 224, 0.7);
  animation: pf-marquee 55s linear infinite;
}

@keyframes pf-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.proxima-funcion-cuenta {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 10px;
  padding: 0 0 20px;
  margin: 0;
  border-bottom: 1px solid rgba(245, 237, 224, 0.2);
  text-align: center;
}

.proxima-funcion-cuenta .pf-pre,
.proxima-funcion-cuenta .pf-post {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 700;
  font-style: italic;
  color: rgba(245, 237, 224, 0.85);
}

.pf-num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  font-style: normal;
  color: #e8d4a6;
  line-height: 1;
  letter-spacing: -0.03em;
}

.proxima-funcion-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 20px 0 32px;
  flex-wrap: wrap;
  text-align: center;
}

.proxima-funcion-fecha {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
  border-right: 1px solid rgba(245, 237, 224, 0.25);
  padding-right: 32px;
  text-align: center;
}

.proxima-funcion-dia {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
}

.proxima-funcion-mes {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 4px;
}

.proxima-funcion-info {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.proxima-funcion-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 4px;
}

.proxima-funcion-titulo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--crema);
  line-height: 1.15;
  margin-bottom: 4px;
}

.proxima-funcion-detalle {
  font-size: 14px;
  opacity: 0.8;
}

.proxima-funcion-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border: 1px solid rgba(245, 237, 224, 0.5);
  color: var(--crema);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.25s ease, border-color 0.25s ease;
  border-radius: 2px;
}

.proxima-funcion-cta:hover {
  background: rgba(245, 237, 224, 0.12);
  border-color: var(--crema);
}

@media (max-width: 600px) {
  .proxima-funcion-cuenta {
    font-size: 1.2rem;
    padding: 20px 0 12px;
  }

  .proxima-funcion-inner {
    gap: 16px;
  }

  .proxima-funcion-fecha {
    border-right: none;
    padding-right: 0;
    flex-direction: row;
    gap: 8px;
    align-items: baseline;
  }

  .proxima-funcion-dia {
    font-size: 32px;
  }

  .proxima-funcion-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ── Sección Historia ── */
.info-section {
  padding: 120px 0;
  background: var(--crema);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 60px;
  align-items: end;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  color: var(--tinta);
  font-weight: 700;
  text-align: left;
}

.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--borgo);
}

.history-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.history-text p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--tinta);
  margin-bottom: 22px;
}

.history-text p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  float: left;
  line-height: 0.85;
  margin-right: 10px;
  margin-top: 6px;
  color: var(--borgo);
}

.history-image {
  position: relative;
}

.history-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

/* ── Sección Presentación ── */
.presentacion-section {
  padding: 120px 0;
  background: var(--crema-dark);
}

.presentacion-section .eyebrow {
  margin-bottom: 12px;
}

.presentacion-section .section-title {
  margin-bottom: 40px;
}

.presentacion-credito {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 36px;
}

.presentacion-credito strong {
  color: var(--tinta);
  font-weight: 600;
}

.presentacion-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--tinta);
  border: 1px solid var(--line);
}

.presentacion-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.presentacion-fallback {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.presentacion-fallback a {
  color: var(--borgo);
  font-weight: 500;
  transition: color 0.2s ease;
}

.presentacion-fallback a:hover {
  color: var(--borgo-dark);
}

/* ── Sección Clases ── */
.classes-section {
  padding: 120px 0;
  background: var(--verde);
  color: var(--crema);
}

.classes-eyebrow {
  color: #e8d4a6;
}

.classes-section .section-title {
  color: var(--crema);
  margin-bottom: 0;
}

.classes-section .section-title em {
  color: #e8d4a6;
}

.classes-section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}

.classes-section-intro p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 28px;
  color: rgba(245, 237, 224, 0.8);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--crema);
  color: var(--tinta);
  border-radius: 2px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: background 0.25s ease, transform 0.25s ease;
  border: 1px solid var(--crema);
}

.cta-button:hover {
  background: white;
  transform: translateY(-1px);
}

/* Video */
.clase-video {
  margin-bottom: 40px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.clase-video iframe,
.clase-video img {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: cover;
}

.clase-video-placeholder {
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(245, 237, 224, 0.04) 0,
      rgba(245, 237, 224, 0.04) 2px,
      transparent 2px,
      transparent 14px
    ),
    linear-gradient(180deg, rgba(245, 237, 224, 0.07), rgba(245, 237, 224, 0.02));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.clase-video-placeholder::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(245, 237, 224, 0.18);
  pointer-events: none;
}

.clase-video-placeholder span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 237, 224, 0.35);
  position: relative;
  z-index: 1;
}

/* Lista de disciplinas */
.clase-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(245, 237, 224, 0.15);
}

.clase-lista li {
  padding: 20px 0 20px 20px;
  border-right: 1px solid rgba(245, 237, 224, 0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.clase-lista li:first-child {
  padding-left: 0;
}

.clase-lista li:last-child {
  border-right: none;
}

.clase-lista-nombre {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--crema);
  font-weight: 700;
  line-height: 1.1;
}

.clase-lista-detalle {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 237, 224, 0.5);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .classes-section-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .clase-lista {
    grid-template-columns: repeat(3, 1fr);
  }

  .clase-lista li:nth-child(3) {
    border-right: none;
  }
}

@media (max-width: 560px) {
  .clase-lista {
    grid-template-columns: 1fr 1fr;
  }

  .clase-lista li:nth-child(odd) {
    padding-left: 0;
  }

  .clase-lista li:nth-child(even) {
    border-right: none;
  }

  .clase-lista li:nth-child(3) {
    border-right: 1px solid rgba(245, 237, 224, 0.1);
  }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-text {
    padding: 0 24px 80px;
  }

  .info-section,
  .classes-section {
    padding: 80px 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .history-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .classes-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    margin-top: -72px;
  }

  .hero-title {
    font-size: clamp(40px, 10vw, 72px);
  }

  .hero-description {
    font-size: 16px;
  }

  .image-carousel-indicators {
    right: 24px;
    bottom: 30px;
  }

  .bullet-list li {
    font-size: 22px;
  }
}
