/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-dark: #0a0a0a;
    --bg-secondary: #121212;
    --primary-color: #dc2626; 
    --primary-dark: #b91c1c;
    --accent-gray: #4b5563;
    --text-main: #ffffff;
    --text-muted: #a3a3a3;
    /* Variables de cristal base (para tarjetas) */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shine: rgba(255, 255, 255, 0.15);
    --red-glow-shadow: 0 0 25px rgba(220, 38, 38, 0.4);
    --font-heading: 'Exo 2', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* =========================================
   2. FONDO & EFECTOS GLOBALES (ILUMINADO)
   ========================================= */
.bg-gradient {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://images.unsplash.com/photo-1473341304170-971dccb5ac1e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center fixed;
    background-size: cover;
    
    /* CAMBIO PRINCIPAL: 
       - brightness subió de 0.25 a 0.5 (Mucha más luz)
       - grayscale bajó a 10% (Colores más naturales) 
    */
    filter: brightness(0.5) contrast(1.1) grayscale(10%) hue-rotate(10deg);
    z-index: -3;
}

.bg-orb {
    /* Más opacidad para que las luces se noten más */
    position: fixed; border-radius: 50%; filter: blur(120px); z-index: -2; opacity: 0.45; mix-blend-mode: screen;
}
.orb-red {
    width: 600px; height: 600px; background: var(--primary-color);
    top: -200px; right: -100px; animation: pulseRed 20s infinite alternate;
}
.orb-gray {
    width: 500px; height: 500px; background: #2563eb;
    bottom: -150px; left: -100px; opacity: 0.25; /* Un poco más visible */
    animation: drift 25s infinite alternate-reverse;
}

@keyframes pulseRed { 
    /* La animación ahora ilumina más */
    0% { transform: scale(1); opacity: 0.3; } 
    100% { transform: scale(1.1); opacity: 0.55; } 
}
@keyframes drift { 0% { transform: translate(0,0); } 100% { transform: translate(50px, -50px); } }

/* UTILIDADES GLASS (Tarjetas y Footer) */
.glass-card, .glass-footer {
    background: var(--glass-bg);
    /* Aumenté el blur para mejorar la lectura sobre el fondo más claro */
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
.glass-card { border-radius: 8px; transition: all 0.3s ease; }
.glass-card:hover {
    /* Hover un poco más iluminado */
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--glass-shine);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4), 0 0 15px rgba(220, 38, 38, 0.1);
}
/* =========================================
   3. HEADER & NAV (MODIFICADO CRISTAL CLARO)
   ========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; }

.glass-header { 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    padding: 10px 0;
    
    /* CAMBIO: Fondo Claro Tipo Hielo/Cristal */
    background: rgba(255, 255, 255, 0.25); 
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    
    /* Bordes brillantes */
    border-bottom: 1px solid rgba(255, 255, 255, 0.9);
    border-top: 0px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.15);
}

.nav-container { 
    display: flex; 
    justify-content: space-between; /* CLAVE: Separa Logo a izq y Menú a der */
    align-items: center; 
    width: 100%; 
}

/* ESTILOS DEL LOGO */
.logo {
    flex-shrink: 0;
    margin-right: auto; 
    max-width: 220px;
    display: flex;
    align-items: center;
}

.logo-img {
    height: auto;
    width: 100%;
    max-height: 70px; /* Control de altura */
    display: block;
    filter: none; /* Muestra colores originales (negro/rojo) */
}

/* MENÚ DE NAVEGACIÓN */
#main-nav ul { display: flex; gap: 20px; align-items: center; list-style: none; }

/* CAMBIO: Texto negro forzado para que se vea sobre el fondo claro */
#main-nav a { 
    font-size: 0.85rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    color: #111 !important; /* Texto Oscuro */
    opacity: 0.3;
}
#main-nav a:hover, #main-nav a.active { 
    opacity: 1; 
    color: var(--primary-color) !important; /* Rojo al pasar el mouse */
}

.btn-subscribe { padding: 8px 20px; background: var(--primary-color); border-radius: 4px; color: white !important; font-weight: 700; }
.btn-subscribe:hover { background: var(--primary-dark); }

/* Toggle Móvil (Hamburguesa) en negro */
.mobile-toggle { 
    display: none; 
    font-size: 1.5rem; 
    color: #111 !important; /* Icono negro */
    cursor: pointer; 
}

/* Controles Top */
.top-controls { display: flex; gap: 10px; margin-left: 20px; margin-right: 15px; }
.control-btn {
    /* Fondo oscuro suave para los botones pequeños */
    background: rgba(0, 0, 0, 0.1); 
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #111; /* Icono negro */
    width: 35px; height: 35px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; font-family: var(--font-heading); font-weight: 700; font-size: 0.8rem;
}
.control-btn:hover { background: var(--primary-color); border-color: var(--primary-color); color: white; transform: rotate(15deg); }

/* =========================================
   4. LAYOUT PRINCIPAL
   ========================================= */
.main-layout { padding-top: 25px; padding-bottom: 60px; }

/* Barra Accesos */
.quick-access-bar {
    display: flex; justify-content: space-evenly; align-items: center;
    padding: 10px 15px; margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 4px;
}
.quick-link {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-muted); font-family: var(--font-heading);
    font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    padding: 8px 15px; border-radius: 4px; transition: all 0.3s ease;
}
.quick-link:hover { color: white; background: rgba(255, 255, 255, 0.05); }
.quick-link:hover i { transform: scale(1.1); text-shadow: 0 0 8px var(--primary-color); }
.quick-access-bar .separator { width: 1px; height: 20px; background: rgba(255,255,255,0.15); }

/* Hero */
.hero-section { display: flex; min-height: 450px; margin-bottom: 40px; overflow: hidden; position: relative; border: 1px solid rgba(220, 38, 38, 0.3); }
.hero-content { flex: 1; padding: 50px; display: flex; flex-direction: column; justify-content: center; z-index: 2; background: linear-gradient(to right, rgba(10,10,10,0.95), rgba(10,10,10,0.6)); }
.hero-image { flex: 1.5; background-size: cover; background-position: center; }
.hero-tag { position: absolute; top: 20px; left: 30px; background: var(--primary-color); color: #fff; padding: 5px 25px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; z-index: 3; border-radius: 2px;}
.hero-content h2 { font-size: 2.5rem; margin-bottom: 20px; line-height: 1.1; color: white; text-transform: uppercase;}
.meta-info { margin-bottom: 30px; color: var(--text-muted); font-size: 0.9rem; }
.meta-info i { color: var(--primary-color); margin-right: 5px; }
.meta-info span { margin-right: 15px; }
.btn-glow { display: inline-block; width: fit-content; padding: 12px 35px; background: var(--primary-color); color: white; font-weight: 700; text-transform: uppercase; border-radius: 4px; }
.btn-glow:hover { box-shadow: var(--red-glow-shadow); background: var(--primary-dark); }

/* =========================================
   5. GRILLA DE CONTENIDO & CARRUSEL
   ========================================= */
.content-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 20px;
    width: 100%; max-width: 100%; box-sizing: border-box;
}

/* Header del Número */
.issue-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 25px; margin-bottom: 20px;
    background: rgba(20, 20, 20, 0.6);
    border-left: 4px solid var(--primary-color); border-radius: 8px;
    width: 100%;
}

/* Miniatura Tapa Header */
.issue-cover-mini {
    height: 80px; width: auto; margin-right: 20px; flex-shrink: 0; position: relative;
}
.issue-cover-mini img {
    height: 100%; width: auto; border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease; cursor: pointer;
}
.issue-cover-mini img:hover { transform: scale(1.1) rotate(-2deg); }

.issue-number { display: flex; align-items: center; gap: 10px; }
.pulse-indicator { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 10px #22c55e; animation: pulse 2s infinite; }
.issue-header h2 { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 2px; margin: 0; }
.issue-title { text-align: center; }
.issue-title h1 { font-size: 2rem; line-height: 1; color: white; margin: 0; }
.issue-title span { font-size: 0.7rem; color: var(--primary-color); font-weight: 800; letter-spacing: 3px; }
.issue-actions .btn-icon { background: rgba(255,255,255,0.1); border: none; color: white; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; }

/* Carruseles */
.articles-feed { min-width: 0; width: 100%; position: relative; z-index: 1; }
.mainSwiper { width: 100%; padding-top: 20px; padding-bottom: 50px; overflow: visible; }
.hero-slide { width: 280px !important; height: 400px !important; display: flex; justify-content: center; }

.slide-inner {
    width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden;
    cursor: pointer !important; pointer-events: auto !important;
    border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.6);
    border-radius: 12px; transition: all 0.4s ease;
}
.slide-image { height: 55%; position: relative; overflow: hidden; }
.slide-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.slide-content { padding: 20px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.slide-content h3 { font-size: 1.1rem; margin-bottom: 5px; line-height: 1.2; color: white; }
.slide-content p { font-size: 0.8rem; color: #aaa; }
.read-action { font-size: 0.7rem; color: var(--primary-color); font-weight: 700; margin-top: 10px; display: block; letter-spacing: 1px; }
.category-badge { position: absolute; top: 10px; right: 10px; background: var(--primary-color); color: white; font-size: 0.6rem; padding: 3px 8px; border-radius: 4px; font-weight: 700; }

.ad-slide { justify-content: center; align-items: center; background: #000; }
.full-ad-img { width: 100%; height: 100%; object-fit: contain; }
.ad-overlay { position: absolute; bottom: 10px; font-size: 0.6rem; letter-spacing: 2px; color: #555; }

.swiper-slide-active .slide-inner {
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), 0 0 20px rgba(220, 38, 38, 0.3);
    transform: scale(1.05); background: rgba(20, 20, 20, 0.9);
}
.swiper-button-next, .swiper-button-prev { color: var(--primary-color); text-shadow: 0 0 5px black; transform: scale(0.7); }

/* Banners Row */
.banner-row { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0; }
.mini-banner { position: relative; height: 120px; overflow: hidden; cursor: pointer; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); }
.mini-banner .ad-img { width: 100%; height: 100%; object-fit: fill; transition: transform 0.5s; }
.mini-banner:hover .ad-img { transform: scale(1.05); }

/* =========================================
   6. CARRUSEL VERTICAL
   ========================================= */
.carousel-3d-widget { height: 700px; padding: 10px 0; overflow: hidden; display: flex; flex-direction: column; width: 100%; }
.carousel-3d-widget .widget-header { flex: 0 0 auto; padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; z-index: 20; }
.drag-indicator { font-size: 0.65rem; color: var(--text-muted); background: rgba(0,0,0,0.5); padding: 2px 8px; border-radius: 10px; }
.tower-container .swiper-slide { width: 150px !important; height: 210px !important; left: 50% !important; margin-left: -75px !important; border-radius: 4px; background-color: #000; border: 1px solid rgba(255,255,255,0.05); }
.tower-container .swiper-slide img { width: 100%; height: 100%; object-fit: fill; border-radius: 4px; }
.tower-container .year-badge { position: absolute; top: 10px; right: -10px; background: var(--primary-color); color: white; padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; opacity: 0; transition: all 0.3s; transform: translateX(20px); }
.tower-container .swiper-slide-active .year-badge { opacity: 1; transform: translateX(0); }
.tower-container .swiper-slide-active img { border: 2px solid var(--primary-color); box-shadow: 0 0 35px rgba(220, 38, 38, 0.6); }

/* =========================================
   7. FOOTER
   ========================================= */
.glass-footer { padding: 50px 0 20px; margin-top: 60px; background: rgba(0,0,0,0.8); border-top: 2px solid var(--primary-color); }
.footer-content { display: flex; justify-content: space-between; margin-bottom: 30px; flex-wrap: wrap; gap: 20px; }
.footer-branding h2 { color: white; margin-bottom: 5px; }
.footer-branding p { color: var(--text-muted); font-size: 0.9rem; }
.footer-links ul { display: flex; gap: 20px; list-style: none; }
.footer-links a { color: var(--text-main); font-weight: 600; text-transform: uppercase; font-size: 0.8rem; }
.copyright { text-align: center; font-size: 0.8rem; color: var(--accent-gray); padding-top: 20px; border-top: 1px solid var(--glass-border); }

/* =========================================
   8. RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .content-grid { grid-template-columns: 1fr; } 
    .hero-section { flex-direction: column; }
    .hero-image { flex: none; height: 250px; order: -1; }
    .hero-content { padding: 30px; }
}

@media (max-width: 768px) {
    .logo { max-width: 160px; } /* Ajuste de logo en móvil */
    .nav-container .mobile-toggle { display: block; }
    
    #main-nav { 
        display: none; width: 100%; position: absolute; 
        top: 60px; left: 0; background: #f0f0f0; /* Fondo menú móvil claro */
        border-bottom: 2px solid var(--primary-color); padding: 20px; z-index: 1001;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    #main-nav.active { display: flex; flex-direction: column; }
    #main-nav a { color: #111 !important; } /* Texto móvil negro */
    
    .content-grid { grid-template-columns: 1fr; gap: 20px; } 
    .hero-section { flex-direction: column; min-height: auto; }
    .hero-image { height: 200px; width: 100%; order: -1; }
    .hero-content { padding: 25px; }
    .hero-content h2 { font-size: 1.8rem; }
    .issue-header { flex-direction: column; gap: 10px; text-align: center; }
    .issue-header .issue-title h1 { font-size: 1.8rem; }
    .mainSwiper { padding-bottom: 30px; }
    .hero-slide { width: 240px !important; height: 340px !important; }
    .slide-content h3 { font-size: 1rem; }
    .slide-content p { display: none; }
    .quick-access-bar { flex-direction: column; gap: 10px; padding: 15px; }
    .quick-link { width: 100%; justify-content: center; background: rgba(255,255,255,0.03); }
    .quick-access-bar .separator { display: none; }
    .top-controls { display: none; }
    .banner-row { grid-template-columns: 1fr; gap: 15px; }
    
    .issue-cover-mini { height: 100px; margin-right: 0; margin-bottom: 10px; }
}

/* Animaciones */
.live-dot { display: inline-block; width: 8px; height: 8px; background-color: #fff; border-radius: 50%; margin-right: 5px; box-shadow: 0 0 10px #fff; animation: blink 1.5s infinite; }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }

/* Transition Layer */
.transition-layer { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 10000; pointer-events: none; visibility: hidden; background-color: rgba(0,0,0,0); transition: background-color 0.4s ease; }
.transition-layer.active { visibility: visible; pointer-events: all; background-color: #000; }
.transition-layer img { position: absolute; transition: all 0.7s cubic-bezier(0.65, 0, 0.35, 1); object-fit: cover; box-shadow: 0 20px 50px rgba(0,0,0,0.8); z-index: 10001; transform-origin: center center; }