/* ============================================
clases.css — Estilos de la página de clases
   ============================================ */

/* ── HEADER IMAGEN ── */
.sec-header-img {
  width: 100%;
  line-height: 0;
}

.sec-header-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── TABS NAV ── */
.clases-tabs-section {
  background: var(--color-fondo);
}

.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--color-borde);
  background: var(--color-fondo);
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  padding: 20px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #666;
  font-family: var(--fuente-cuerpo);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transicion);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.tab-btn i {
  font-size: 16px;
}

.tab-btn:hover {
  color: var(--color-blanco);
  background: var(--color-fondo-alt);
}

.tab-btn.activo {
  color: var(--color-rojo);
  border-bottom-color: var(--color-rojo);
  background: var(--color-fondo-alt);
}

/* ── TAB CONTENIDO ── */
.tab-contenido {
  display: none;
}

.tab-contenido.activo {
  display: block;
}

/* ── TAB FONDO CON IMAGEN ── */
.tab-fondo {
  position: relative;
  width: 100%;
  padding-bottom: 71%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0;
}

.tab-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 0;
}

/* Texto tabs normales */
.tab-texto {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  z-index: 1;
  width: 45%;
  padding: 20px 48px;
}

.tab-texto h3 {
  font-family: var(--fuente-titulo);
  font-size: 22px;
  color: var(--color-rojo);
  letter-spacing: 4px;
  margin-bottom: 24px;
}

.tab-texto p {
  margin-bottom: 14px;
  color: #ccc;
}

.tab-destacado {
  color: var(--color-rojo) !important;
  font-size: 14px;
  letter-spacing: 1px;
  margin-top: 8px;
  font-style: italic;
}

/* ── TAB SHOWS — layout especial ── */
.tab-shows-inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}

.tab-shows-inner .tab-texto {
  position: static;
  transform: none;
  width: 45%;
  padding: 0;
}

/* ── CARRUSEL ── */
.carrusel-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 40%;
}

.carrusel-slide {
  width: 100%;
  height: 380px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(192, 20, 26, 0.25);
  position: relative;
}

.carrusel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  transition: opacity 0.5s ease;
}

.carrusel-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid var(--color-rojo-suave);
  color: var(--color-blanco);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transicion);
  z-index: 2;
}

.carrusel-btn:hover {
  background: var(--color-rojo);
  border-color: var(--color-rojo);
}

.carrusel-prev { left: -18px; }
.carrusel-next { right: -18px; }

.carrusel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  width: 100%;
}

.carrusel-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #333;
  cursor: pointer;
  transition: var(--transicion);
}

.carrusel-dot.activo {
  background: var(--color-rojo);
  box-shadow: 0 0 6px var(--color-rojo);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .tab-fondo {
    padding-bottom: 0;
    min-height: 500px;
    background-position: right center;
  }

  .tab-texto {
    width: 70%;
    padding: 40px 24px;
  }

  .tab-shows-inner {
    padding: 32px 24px;
  }

  .tab-shows-inner .tab-texto {
    width: 100%;
  }

  .carrusel-container {
    width: 100%;
  }

  .carrusel-slide {
    height: 260px;
  }

  .carrusel-prev { left: 8px; }
  .carrusel-next { right: 8px; }
}

@media (max-width: 480px) {
  .tab-shows-inner {
    position: static;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .tab-shows-inner .tab-texto {
    position: static;
    transform: none;
    width: 100%;
    padding: 0;
  }

#tab-shows .tab-fondo {
  padding-bottom: 0;
  min-height: auto;
  background-image: url('../assets/img/fondos/fondos-varios-03.svg') !important;
  background-size: cover;
  background-position: center;
}

  #tab-shows .tab-overlay {
    display: none;
  }

  .carrusel-container {
    width: 100%;
  }

  .carrusel-slide {
    height: 220px;
  }
}