/* Brand / tokens */
:root{
  --brand-primary:#d4af37; /* Dorado */
  --brand-accent:#d4af37;
  --ink:#ffffff;           /* Texto principal blanco */
  --muted:#e0e0e0;         /* Texto secundario blanco tenue */
  --surface:#080836;       /* Fondo de las cards */
  --border:#1a1a50;        /* Bordes suaves azul oscuro */
}

/* Tipografía: usa Montserrat si ya la traes en tu proyecto */
.cb-section, .cb-section * {
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Sección */
.cb-section {
  padding: 48px 16px;
}
.cb-section-header {
  max-width: 1100px;
  margin: 0 auto 16px;
}
.cb-section-header h2 {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  color: var( --surface); /* título sección en dorado */
}
.cb-section-sub {
  margin: 0;
  opacity: .85;
  color: var(--border);
}

/* Carrusel */
.cb-carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  padding: 36px 0 24px;
}
.cb-track {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  height: 500px;
}

/* Card base (ancha y alta) */
.cb-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(95%, 380px);
  transform: translateX(-50%);
  transition: transform 500ms ease, opacity 500ms ease, z-index 0s step-end;
  opacity: 0;
  z-index: 0;
  outline: none;
}
.cb-card:focus-visible .cb-card-inner {
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand-primary) 40%, transparent);
}

.cb-card-inner {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 18px 60px;
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
  height: 100%;
  color: var(--ink);
}

/* Título */
.cb-title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 700;  /* negritas */
  line-height: 1.3;
  color: var(--ink);
}

/* Imagen vertical entre título y duración */
.cb-media{
  width: 100%;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 14px 0;
  border: 1px solid color-mix(in oklab, var(--brand-primary) 35%, var(--border));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
.cb-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.9);
}

/* Metadatos: sesiones/horas */
.cb-meta {
  margin: 6px 0 8px;
  font-size: .95rem;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cb-chip{
  background: rgba(212,175,55,0.15);
  border: 1px solid var(--brand-primary);
  color: var(--ink);
  padding: 4px 8px;
  border-radius: 999px;
}

/* Dirigido a */
.cb-dirigido {
  margin: 0;
  font-size: .95rem;
  color: var(--ink);
  opacity: .95;
}


/* Posiciones (sólo 3 visibles) */
.cb-card.pos-center {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
  z-index: 3;
}
.cb-card.pos-left {
  transform: translateX(calc(-50% - 300px)) translateY(12px) scale(.92);
  opacity: .55;
  z-index: 2;
}
.cb-card.pos-right {
  transform: translateX(calc(-50% + 300px)) translateY(12px) scale(.92);
  opacity: .55;
  z-index: 2;
}
.cb-card.pos-out {
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* Estado pausado: mostrar overlay en la central */
.cb-carousel.paused .cb-card.pos-center .cb-hover {
  opacity: 1;
}

/* Borde/acento de marca al pasar por la central */
.cb-card.pos-center .cb-card-inner{
  border-color: var(--brand-primary);
  box-shadow: 0 14px 26px rgba(0,0,0,.4),
              0 0 0 1px color-mix(in oklab, var(--brand-primary) 25%, transparent);
}

/* Botones de navegación */
.cb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 44px;
  width: 44px;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.8); /* dorado */
  background: rgba(8,8,54,0.6); /* azul oscuro translúcido */
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: background 150ms ease, transform 150ms ease;
  backdrop-filter: blur(3px);
}
.cb-nav-left {
  left: 6px;
}
.cb-nav-right {
  right: 6px;
}
.cb-nav:hover {
  background: rgba(212,175,55,0.9);
  color: #080836;
  transform: translateY(-50%) scale(1.03);
}
.cb-nav:active {
  transform: translateY(-50%) scale(0.98);
}

/* móvil: hacerlas más pequeñas y bajarlas un poco */
@media (max-width: 640px) {
  .cb-nav {
    height: 38px;
    width: 38px;
    top: 54%;
  }
}


/* Responsive pequeña */
@media (max-width: 640px) {
  .cb-track { height: 520px; }
  .cb-card.pos-left {
    transform: translateX(calc(-50% - 220px)) translateY(14px) scale(.9);
  }
  .cb-card.pos-right {
    transform: translateX(calc(-50% + 220px)) translateY(14px) scale(.9);
  }
}
