/* =========================================================
   CATÁLOGO — CAPA PREMIUM (v2)
   Se carga DESPUÉS de catalog.css y solo pisa reglas dentro de
   body.cat-v2, para no afectar las otras 8 páginas que también
   usan catalog.css (post-public, pedidos, platforms, search,
   vip, reset-password, contacto, ayuda).
   ========================================================= */

body.cat-v2 .sidebar-area {
    /* Evita que Chrome reajuste solo el scroll del sidebar cuando
       la fuente Outfit termina de cargar después del primer pintado. */
    overflow-anchor: none;
}

body.cat-v2 {
    --font-display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
    --radius-lg: 20px;
    --shadow-cinematic: 0 20px 50px -15px rgba(0, 0, 0, 0.8);
}

/* =========================================================
   FONDO GENERAL — más profundidad
   ========================================================= */
body.cat-v2 {
    background: radial-gradient(circle at 15% 0%, #0d1e3f 0%, #08152f 45%, #060d1e 100%);
}

body.cat-v2::before {
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 32%),
        radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.16), transparent 38%),
        radial-gradient(circle at 50% 40%, rgba(243, 206, 19, 0.04), transparent 45%);
}

/* =========================================================
   TIPOGRAFÍA DE MARCA
   ========================================================= */
body.cat-v2 .logo-text,
body.cat-v2 .slider-title,
body.cat-v2 .section-title,
body.cat-v2 .tab-btn,
body.cat-v2 .auth-nav-btn,
body.cat-v2 .vip-link,
body.cat-v2 .banner-title,
body.cat-v2 .vip-tag-large,
body.cat-v2 .widget-title {
    font-family: var(--font-display);
}

body.cat-v2 .logo-text {
    font-size: 26px;
    letter-spacing: 0.5px;
}

/* =========================================================
   HEADER
   ========================================================= */
body.cat-v2 .main-header {
    background: rgba(8, 13, 26, 0.78);
    border-bottom: 1px solid transparent;
    position: relative;
}

body.cat-v2 .main-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.55), transparent);
}

body.cat-v2 .search-box {
    border-radius: 999px;
    background-color: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

body.cat-v2 .search-box input {
    padding: 9px 6px 9px 18px;
    width: 240px;
}

body.cat-v2 .search-box button {
    border-radius: 0 999px 999px 0;
    padding: 0 16px;
}

body.cat-v2 .search-box:focus-within {
    box-shadow: 0 0 0 4px var(--accent-glow), 0 6px 20px rgba(14, 165, 233, 0.18);
}

body.cat-v2 .auth-nav-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, #0369a1 100%);
    border: 1px solid transparent;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.28);
}

body.cat-v2 .auth-nav-btn:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-color) 100%);
    box-shadow: 0 8px 22px rgba(14, 165, 233, 0.4);
    transform: translateY(-1px);
}

body.cat-v2 .auth-nav-btn.logged-in {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.28);
}

/* =========================================================
   CARRUSEL DE ESTRENOS — elevado a hero secundario
   ========================================================= */
body.cat-v2 .slider-section {
    background: linear-gradient(150deg, rgba(14, 165, 233, 0.1) 0%, rgba(19, 28, 46, 0.55) 55%, rgba(19, 28, 46, 0.25) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    padding: 22px 22px 26px;
    box-shadow: var(--shadow-cinematic);
}

body.cat-v2 .slider-title {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.cat-v2 .slider-arrow {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

body.cat-v2 .slider-item {
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

body.cat-v2 .slider-item::after {
    content: '\f04b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    background: linear-gradient(0deg, rgba(8, 13, 26, 0.75) 0%, rgba(8, 13, 26, 0.15) 55%, transparent 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

body.cat-v2 .slider-item:hover::after {
    opacity: 1;
}

body.cat-v2 .slider-item:hover {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55), 0 0 22px var(--accent-glow);
}

/* =========================================================
   TABS DE FILTRO
   ========================================================= */
body.cat-v2 .horizontal-tabs {
    background-color: rgba(19, 28, 46, 0.6);
    border-radius: var(--radius-lg);
}

body.cat-v2 .tab-btn {
    font-weight: 800;
    border-radius: 999px;
}

body.cat-v2 .tab-btn.active {
    box-shadow: 0 6px 18px var(--accent-glow);
}

/* =========================================================
   TARJETAS DEL GRID
   ========================================================= */
body.cat-v2 .post-card {
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

body.cat-v2 .post-card:hover {
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55), 0 0 22px var(--accent-glow);
}

body.cat-v2 .post-card-title {
    font-family: var(--font-display);
    font-weight: 700;
}

/* =========================================================
   BADGE "ESTRENO" / "EN EMISIÓN" — píldora completa + ícono
   ========================================================= */
body.cat-v2 .premiere-tag {
    border-radius: 999px;
    padding: 4px 10px 4px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: cat-v2-pulse 2.4s ease-in-out infinite;
}

body.cat-v2 .premiere-tag::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f005'; /* estrella */
    font-size: 8px;
}

body.cat-v2 .onair-tag::before {
    content: '\f2f1'; /* señal en vivo */
}

@keyframes cat-v2-pulse {
    0%, 100% { box-shadow: 0 2px 10px rgba(239, 68, 68, 0.45); }
    50% { box-shadow: 0 2px 16px rgba(239, 68, 68, 0.75); }
}

body.cat-v2 .onair-tag {
    animation: cat-v2-pulse-blue 2.4s ease-in-out infinite;
}

@keyframes cat-v2-pulse-blue {
    0%, 100% { box-shadow: 0 2px 10px rgba(14, 165, 233, 0.45); }
    50% { box-shadow: 0 2px 16px rgba(14, 165, 233, 0.75); }
}

/* =========================================================
   FRANJA TÉCNICA SOBRE LA CARÁTULA — vidrio esmerilado
   ========================================================= */
body.cat-v2 .tech-bottom {
    background: linear-gradient(to top, rgba(5, 9, 18, 0.85) 0%, rgba(5, 9, 18, 0.55) 60%, transparent 100%);
    backdrop-filter: blur(3px);
}

body.cat-v2 .tech-quality {
    font-family: var(--font-display);
}

/* =========================================================
   BLOQUE DE TÍTULO DEBAJO DE LA CARÁTULA
   ========================================================= */
body.cat-v2 .post-details {
    padding: 14px;
}

body.cat-v2 .type-pill {
    border-radius: 999px;
    font-weight: 900;
}

body.cat-v2 .title-season-line {
    font-family: var(--font-display);
}

/* =========================================================
   TOOLTIP AL HACER HOVER — vidrio esmerilado + botón de link
   ========================================================= */
body.cat-v2 .post-tooltip {
    background: rgba(6, 10, 20, 0.82);
    backdrop-filter: blur(10px);
}

body.cat-v2 .tooltip-header {
    font-family: var(--font-display);
    font-size: 14px;
}

body.cat-v2 .share-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

body.cat-v2 .tooltip-more-link {
    font-family: var(--font-display);
    font-weight: 700;
}

/* =========================================================
   SIDEBAR — jerarquía visual (VIP primero)
   ========================================================= */
body.cat-v2 .standard-box {
    border-radius: var(--radius-lg);
}

body.cat-v2 .vip-card {
    padding: 4px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(253, 224, 71, 0.5), rgba(243, 206, 19, 0.15));
    box-shadow: 0 14px 32px rgba(243, 206, 19, 0.18);
}

body.cat-v2 .vip-link {
    border-radius: calc(var(--radius-lg) - 4px);
    padding: 18px 14px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.3px;
}

body.cat-v2 .social-card {
    padding: 14px 16px;
}

body.cat-v2 .social-icon {
    width: 38px;
    height: 38px;
    font-size: 19px;
}

body.cat-v2 .social-text strong {
    font-size: 13px;
}

body.cat-v2 .benefits-banner {
    border: 1px solid rgba(14, 165, 233, 0.22);
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.1) 0%, var(--bg-card) 100%);
}

body.cat-v2 .widget-title {
    position: relative;
    padding-left: 12px;
}

body.cat-v2 .widget-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 4px;
    width: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

/* =========================================================
   RESPONSIVE — se replican los cortes de catalog.css
   ========================================================= */
@media (max-width: 1200px) {
    body.cat-v2 .slider-section {
        padding: 16px 16px 20px;
    }
}

@media (max-width: 768px) {
    body.cat-v2 .search-box input {
        width: 160px;
    }
    body.cat-v2 .slider-item::after {
        font-size: 16px;
    }
}
