/*
    CUSTOM STYLES FOR LA DATA
    Based on paleta-colores.html and index.html
*/

:root {
    --color-primary: #FFFF01; /* Amarillo Eléctrico */
    --color-dark: #000000;    /* Negro Absoluto */
    --color-light: #FFFFFF;   /* Blanco Puro */
    --color-secondary-bright: #FDEB03;
    --color-secondary-amber: #FECC1F;
    --font-primary: 'Source Sans 3', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --font-display: 'Alternate Gothic No 2 D', 'Impact', sans-serif;
    --header-height: 88px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-dark);
    color: var(--color-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
}
a:hover {
    color: var(--color-secondary-bright);
}

/* Header */
.site-header {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-primary);
    position: fixed; /* Mantener la cabecera visible en pantalla */
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    /* Raise header above hero z-index: 99999 */
    z-index: 100001 !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.6);
    transition: background 200ms ease, -webkit-backdrop-filter 200ms ease, backdrop-filter 200ms ease;
}

/* Slightly increased vertical padding to match larger header */
.navbar {
    padding-top: 1.15rem;
    padding-bottom: 1.15rem;
}

/* Evitar que el contenido quede oculto tras la cabecera fija */
body { padding-top: var(--header-height); }

.navbar .container-xxl {
    display: grid;
    grid-template-columns: minmax(0,220px) 1fr auto;
    align-items: center;
    gap: 1.25rem;
}

.navbar-brand img {
    /* Allow responsive sizing while preserving aspect ratio */
    max-height: 64px;
    width: auto;
    max-width: 220px;
    min-width: 0;
    display: block;
}

.nav-link {
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--color-light) !important;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary) !important;
    border-bottom-color: var(--color-primary);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid var(--color-light);
    color: var(--color-light);
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.social-link:hover {
    background-color: var(--color-primary);
    color: var(--color-dark);
    border-color: var(--color-primary);
}

/* Sections */
.section {
    padding: 4rem 0;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.badge-brand {
    background-color: var(--color-primary);
    color: var(--color-dark);
    padding: 0.5em 1.25em;
    border-radius: 50px;
    font-family: var(--font-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.hero-section {
    /* Background image + overlay for better contrast */
    background-color: #000;
    background-image: url('/Multimedia/banner-logo.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    color: #fff;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.65) 100%), radial-gradient(ellipse at 70% 30%, rgba(255,255,1,0.05), transparent 40%);
    pointer-events: none;
    z-index: 1;
}
.hero-section .btn,
.hero-section .btn-brand,
.hero-section .btn-outline-light,
.hero-section .header-actions .nav-link {
    position: relative;
    z-index: 9999;
    transform: translateZ(0);
}

@media (max-width: 768px) {
    .site-header { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}

@media (prefers-reduced-motion: reduce) {
    .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(0,0,0,0.9); }
}
.hero-section .btn,
.hero-section .btn-brand,
.hero-section .btn-outline-light,
.hero-section .header-actions .nav-link {
    position: relative;
    z-index: 9999;
    transform: translateZ(0);
}
.hero-section > .container-xxl,
.hero-title,
.hero-lead {
    text-shadow: 
        0 0 30px rgba(255,255,1,0.8),
        0 0 60px rgba(255,255,1,0.6),
        3px 3px 10px rgba(0,0,0,1),
        -2px -2px 10px rgba(0,0,0,1),
        2px -2px 10px rgba(0,0,0,1),
        -2px 2px 10px rgba(0,0,0,1);
    font-weight: 600;
    color: #ffffff;
}
.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
}
.hero-lead {
    text-shadow: 
        0 0 30px rgba(255,255,1,0.8),
        0 0 60px rgba(255,255,1,0.6),
        3px 3px 10px rgba(0,0,0,1),
        -2px -2px 10px rgba(0,0,0,1),
        2px -2px 10px rgba(0,0,0,1),
        -2px 2px 10px rgba(0,0,0,1);
    font-weight: 600;
    color: #ffffff;
}

/* Buttons */
.btn-brand {
    background-color: var(--color-primary);
    color: var(--color-dark);
    border: 2px solid var(--color-primary);
    font-family: var(--font-secondary);
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: background-color 0.3s, color 0.3s;
}
.btn-brand:hover {
    background-color: var(--color-secondary-bright);
    color: var(--color-dark);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--color-light);
    border: 2px solid var(--color-light);
    font-family: var(--font-secondary);
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: background-color 0.3s, color 0.3s;
}
.btn-outline-light:hover {
    background-color: var(--color-light);
    color: var(--color-dark);
}

/* Botones en navbar - padding reducido */
.navbar .btn-brand,
.navbar .btn-outline-light {
    padding: 0.4rem 1.25rem;
    font-size: 0.875rem;
}

@media (max-width: 991px) {
    .navbar .btn-brand,
    .navbar .btn-outline-light {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Article & Interview Cards */
.card-item {
    background-color: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
.card-item h3 {
    color: var(--color-primary);
}
.card-item p {
    color: #bbb;
}
.card-item .coming-soon {
    font-style: italic;
    color: #777;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary-amber));
    padding: 4.5rem 0;
    margin-top: 2.75rem;
    margin-bottom: 2.75rem;
}

/* Mobile menu fallback */
.mobile-menu { position: fixed; inset: var(--header-height) 0 0 0; background: rgba(0,0,0,0.96); color:#fff; z-index:10000; padding:1.25rem; overflow-y:auto; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mobile-menu .nav-link { color:#fff; display:block; padding:0.9rem 0.4rem; }
.mobile-menu .mobile-nav-close { position:absolute; top:0.5rem; right:0.5rem; font-size:1.6rem; background:transparent; border:0; color:#fff; }
.cta-section h2, .cta-section p {
    color: var(--color-dark);
}
.cta-section .btn {
    margin: 0.5rem;
}

/* Advertiser Section */
.advertiser-section {
    background-color: #0A0A0A;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}
.advertiser-section p {
    font-size: 1.1rem;
    color: #ccc;
}

/* Footer */
.site-footer {
    background-color: #0A0A0A;
    color: #fff;
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}
.site-footer .brand__logo,
.site-footer img.brand__logo {
    max-height: 64px;
    width: auto;
    display: inline-block;
}
.site-footer h4 {
    color: var(--color-light);
    font-size: 1rem;
    margin-bottom: 1rem;
}
.site-footer a {
    color: #fff;
    transition: color 0.3s;
}
.site-footer a:hover {
    color: var(--color-primary);
}
.site-footer__bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* freudianDev animated link */
.freudian-dev {
    font-size: 0.9rem;
    font-weight: bold;
    animation: vaporwave-glow 4s ease-in-out infinite;
}

@keyframes vaporwave-glow {
    0%, 100% {
        color: #ff71ce;
        text-shadow: 0 0 5px #ff71ce, 0 0 10px #ff71ce;
    }
    25% {
        color: #01cdfe;
        text-shadow: 0 0 5px #01cdfe, 0 0 10px #01cdfe;
    }
    50% {
        color: #05ffa1;
        text-shadow: 0 0 5px #05ffa1, 0 0 10px #05ffa1;
    }
    75% {
        color: #b967ff;
        text-shadow: 0 0 5px #b967ff, 0 0 10px #b967ff;
    }
}

/* UI tweaks: header padding and generic .je class */
.site-header .navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.je {
    padding: 1.25rem 1rem !important;
}
.brand {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Forzar tamaño del logo del footer a 235x82 px (prioridad) */
.site-footer .brand__logo {
    width: 235px !important;
    height: 82px !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: contain !important;
    display: block !important;
}

/* User Dropdown Menu */
.dropdown-menu {
    background-color: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--color-primary);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(255, 255, 1, 0.1);
}

.dropdown-item {
    color: var(--color-light);
    padding: 0.75rem 1.25rem;
    font-family: var(--font-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 1, 0.1);
    color: var(--color-primary);
}

.dropdown-item.text-danger {
    color: #dc3545 !important;
}

.dropdown-item.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #ff4d5e !important;
}

.dropdown-divider {
    border-top: 1px solid #333;
    margin: 0.5rem 0;
}

.nav-link.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link.dropdown-toggle::after {
    margin-left: 0.25rem;
}

/* Hero lead text con glow effect */
.hero-lead {
    text-shadow: 
        0 0 30px rgba(255,255,1,0.8),
        0 0 60px rgba(255,255,1,0.6),
        3px 3px 10px rgba(0,0,0,1),
        -2px -2px 10px rgba(0,0,0,1),
        2px -2px 10px rgba(0,0,0,1),
        -2px 2px 10px rgba(0,0,0,1);
    font-weight: 600;
    color: #ffffff;
}

/* Hero title con mayor contraste */
.hero-title {
    color: #FFFF01 !important;
    font-size: 3rem !important;
    font-weight: 900 !important;
    text-shadow: 
        0 0 20px rgba(255, 255, 1, 0.5),
        0 0 40px rgba(255, 255, 1, 0.3),
        0 4px 8px rgba(0, 0, 0, 1),
        0 2px 4px rgba(0, 0, 0, 0.9);
    letter-spacing: 2px;
    margin-bottom: 1.5rem !important;
}

@media (max-width: 768px) {
.hero-lead {
    text-shadow: 
        0 0 30px rgba(255,255,1,0.8),
        0 0 60px rgba(255,255,1,0.6),
        3px 3px 10px rgba(0,0,0,1),
        -2px -2px 10px rgba(0,0,0,1),
        2px -2px 10px rgba(0,0,0,1),
        -2px 2px 10px rgba(0,0,0,1);
    font-weight: 600;
    color: #ffffff;
}
    .hero-title {
        font-size: 2rem !important;
    }
}

}

.hero-title,
.hero-lead {
    text-shadow: 
        0 0 30px rgba(255,255,1,0.8),
        0 0 60px rgba(255,255,1,0.6),
        3px 3px 10px rgba(0,0,0,1),
        -2px -2px 10px rgba(0,0,0,1),
        2px -2px 10px rgba(0,0,0,1),
        -2px 2px 10px rgba(0,0,0,1);
    font-weight: 600;
    color: #ffffff;
}

/* Asegurar que el contenido del hero esté sobre el overlay */
.hero-section .container,
.hero-section .hero-content,
.hero-section h1,
.hero-section p,
.hero-section .btn {
    position: relative;
    z-index: 2;
}

/* Background responsive del hero en diferentes breakpoints */
/* Desktop large */
@media (min-width: 1400px) {
    .hero-section {
        background-size: cover;
        background-position: center center;
        min-height: 85vh;
    }
}

/* Desktop */
@media (min-width: 1200px) and (max-width: 1399px) {
    .hero-section {
        background-size: cover;
        background-position: center center;
        min-height: 80vh;
    }
}

/* Laptop */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-section {
        background-size: cover;
        background-position: center 30%;
        min-height: 75vh;
    }
}

/* Tablet landscape */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-section {
        background-size: cover;
        background-position: center 35%;
        min-height: 70vh;
    }
}

/* Tablet portrait */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-section {
        background-size: cover;
        background-position: center 40%;
        min-height: 65vh;
    }
}

/* Mobile large */
@media (min-width: 414px) and (max-width: 575px) {
    .hero-section {
        background-size: cover;
        background-position: 60% center;
        min-height: 60vh;
    }
}

/* Mobile medium */
@media (min-width: 375px) and (max-width: 413px) {
    .hero-section {
        background-size: cover;
        background-position: 60% center;
        min-height: 55vh;
    }
}

/* Mobile small (iPhone SE, etc) */
@media (max-width: 374px) {
    .hero-section {
        background-size: cover;
        background-position: 65% center;
        min-height: 50vh;
    }
}

/* ========================================
   NAVBAR MÓVIL - Solo estilos visuales
   ======================================== */
@media (max-width: 991px) {
    /* Hamburguesa con líneas blancas */
    .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.5);
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    /* X blanca cuando se abre */
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M6 6L24 24M6 24L24 6'/%3e%3c/svg%3e");
    }
    
    /* Fondo negro al menú */
    .navbar-collapse {
        background-color: #000;
    }
    
    /* Links blancos */
    .navbar-collapse .nav-link {
        color: #fff;
    }
}

/* Logo y hamburguesa fijos en móvil */
@media (max-width: 991px) {
    /* Logo fijo a la izquierda */
    .navbar-brand {
        position: relative;
        z-index: 1050;
    }
    
    /* Hamburguesa fija a la derecha */
    .navbar-toggler {
        position: relative;
        z-index: 1050;
    }
    
    /* Menú se expande debajo del header */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1040;
        padding: 1rem;
    }
    
    /* Container del navbar debe ser relativo */
    .navbar > .container-xxl {
        position: relative;
    }
}
