/* Estilos Generales - El Nexo */

:root {
    --fondo-body: #F8F8FF;
    --fondo-tarjeta: #ffffff;
    --texto-negro: #111111;
    --texto-gris: #666666;
    --texto-blanco: #ffffff;
    
    /* Componentes Estructurales */
    --gris-borde-divisor: #E0E0E0;
    --gris-fondo-boton: #E0E0E0;
    --gris-claro-deco: #ececeb;
    --borde-negro-fuerte: 2px solid #000000;
    
    /* Paleta Industrial (Sistemas) */
    --iso-plata: #C0C0C0;
    --iso-platino: #E5E4E2;
    --iso-bruma: #DCDCDC;
    --iso-plomo: #848482;
    --iso-fondo-oscuro: #121212; /* Para contrastes */

    /* Branding por Sección */
    /* Performance (Naranja) */
    --nexo-performance: #ff4500;
    --nexo-performance-hover: #ff6a33;
    --gh-block: #333333;
    --gh-border-soft: #515151 ;

    /* Installers (Verde) */
    --nexo-installers: #5bae5b;
    --nexo-installers-hover: #337f33;

    /* Navegadores (Morado) */
    --nexo-navegadores: #4f2ab3;
    --nexo-navegadores-hover: #6830ff;
    --nexo-navegadores-soft: #e9d3ff;

    /* PC Hardware (Azul/Oro) */
    --nexo-pc: #006DB3;
    --nexo-pc-hover: #004a7a;
    --intel-blue: #0068B5;
    --amd-gold: #D4AF37;
    --amd-gold-hover: #b8952e;

    /* Index (Negro) */
    --nexo-index: #000000;

    /* Legales (Gris Oscuro) */
    --nexo-legales: #5f5f5f;
    --nexo-legales-hover: #e1ad29;
    --nexo-legales-soft: #fffdd3;
    --nexo-legales-repo: #a5a5a5;

    /* Alertas y Avisos */
    --warning-bg: #fff3cd;
    --warning-border: #ffeeba;
    --warning-text: #856404;

    /* Colores Específicos de Hover (Index) */
    --hover-index-nave: #e3c2ff;
    --hover-index-pc: #c1e7ff;
    --hover-index-rend: #ffcbcb;
    --hover-index-inst: #cbffcb;
    --hover-index-sist: #c7c7c7;

    /* Variables Estructurales (Mapeo Modo Claro) */
    --fondo-navegacion: #ffffff;       
    --borde-navegacion: #e0e0e0;       
    
    --fondo-boton-nav: #ffffff;        
    --texto-boton-nav: #333333;        
    --borde-boton-nav: #000000;        
    
    --fondo-card: #ffffff;             
    --borde-card: #c1c1c1;             
    --fondo-card-hover: #f9fff9;       
    
    --texto-contraste-hover: #ffffff;  
    --sombra-industrial: 0 5px 15px rgba(0,0,0,0.1);

    /* Variables Starter Pack (Modo Claro) */
    --bg-nav-pack: #fff;
    --bg-nav-pack-hover: linear-gradient(45deg, #FFD700, #FFA500);
    --starter-gradient: linear-gradient(180deg, rgba(255, 215, 0, 0.05) 0%, transparent 100%);
}

.nexo-interes-contenedor {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 10px;
}

.boton-nexo-universal {
    display: flex; 
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    min-width: 160px; 
    padding: 0.8rem 1.2rem;
    background-color: #ffffff;
    color: var(--texto-negro);
    border: 1px solid #d1d5db; 
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.boton-nexo-universal:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
    border-color: transparent;
}

@media (max-width: 768px) {
    .boton-nexo-universal {
        width: 45% !important; 
        min-width: auto;
        font-size: 0.85rem;
    }
}

/* Montserrat - Carga Directa */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/montserrat/v31/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/montserrat/v31/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/montserrat/v31/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Archivo Black - Carga Directa */
@font-face {
    font-family: 'Archivo Black';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/archivoblack/v23/HTxqL289NzCGg4MzN6KJ7eW6CYKF_i7y.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Archivo Black';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/archivoblack/v23/HTxqL289NzCGg4MzN6KJ7eW6CYyF_g.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@media (max-width: 768px) {
    .legal-links {
        flex-direction: column;
    }
    .separator {
        display: none;
    }
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-text {
        text-align: center;
        margin-bottom: 15px;
    }
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    padding: 1.875rem 1.25rem;
    text-align: center;
    box-sizing: border-box;
}

footer {
    width: 100%;
    text-align: center;
    padding: 3rem 1.5rem;
    background-color: #F8F8FF;
    border-top: 0.125rem solid #EEEEEE;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8vh;
    box-sizing: border-box;
}

/* Estándar de espaciados y cabeceras */
h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    margin-bottom: 2vh;
    font-size: 4.375rem;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    margin-top: 4rem;
    margin-bottom: 1.5rem; 
}

h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.armory-card {
    color: var(--texto-negro);
}

/* Comportamiento "Te podría interesar" */
.nexo-bottom-nav {
    margin-top: 8rem; 
    padding: 2rem 0;
}

.nexo-nav-container {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.btn-nexo-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 1.2rem;
    min-width: 160px;
    background-color: #fff;
    color: #000;
    border: 2px solid #000;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

/* Footer Unificado */
footer {
    width: 100%;
    background: #ffffff; 
    padding: 3rem 1rem;
    text-align: center;
    border-top: 3px solid #000000;
    margin-top: auto; 
}

.footer-copyright {
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--texto-negro);
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.legal-links a {
    color: var(--texto-gris);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.legal-links a:hover {
    color: #000;
    text-decoration: underline;
}

.separator {
    color: #ccc;
    user-select: none;
}

.issue-repo {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #a5a5a5;
    margin-bottom: 2.5rem;
    width: 100%;
}

.issue-repo a {
    color: #666666;
    text-decoration: underline;
}

footer {
    width: 100% !important;   
    min-height: 100px;         
    margin: 0 !important;  
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px 0;        
}

.cookie-container {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: #f0f2f5;
    color: #1c1e21;
    box-shadow: 0 -4px 20px rgba(28, 30, 33, 0.15);
    padding: 20px 30px;
    z-index: 10000;
    transition: bottom 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    border-top: 1px solid #d1d5db;
    display: block !important;
}

.cookie-container.active { 
    bottom: 0 !important; 
}

.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.cookie-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #4b5563;
    margin: 0;
    text-align: left;
}

.cookie-text a {
    color: #1c1e21;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid #1c1e21;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 22px;
    border: 2px solid #1c1e21;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif !important;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.cookie-btn.accept {
    background: #374151;
    color: #ffffff;
}

.cookie-btn.accept:hover {
    background: #1c1e21;
}

.cookie-btn.reject {
    background: transparent;
    color: #374151;
}

.cookie-btn.reject:hover {
    background: #e5e7eb;
}

.other-sections-h3 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 4vh;
    margin-bottom: 2vh;
    color: #111111;
    text-align: center;
}

.other-sections {
    margin-top: 2vh;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 4vh;
}

.adsbygoogle {
    display: block;    
    min-height: 160px;
    max-width: 980px;
    background: #ffffff; 
    transition: background 0.3s;
    margin-left: auto;
    margin-right: auto;
}

.adsbygoogle[data-ad-status="filled"] {
    background: transparent;
}

@media (max-width: 768px) {
    .other-sections, 
    .contenedor-botones-inferiores, 
    .bottom-navigation {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;      
        width: 100% !important;
        padding: 0 10px !important;
        margin: 0 auto 4rem auto !important;
    }

    .boton-navegacion,
    .boton-nav-small,
    .button-navegacion-bajo,
    .other-sections .boton-enlace {  
        width: 45% !important;    
        min-width: auto !important; 
        margin: 0 !important;     
        padding: 12px 5px !important;
        font-size: 0.85rem !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        height: auto !important;
        aspect-ratio: auto !important;
    }

    .other-sections-h3, 
    .titulo-navegacion {
        font-size: 1.5rem !important;
        margin-top: 3rem !important;
        width: 100%;
        text-align: center;
    }
}

.theme-switch-wrapper {
    position: fixed;
    top: 25px;
    right: 30px;
    z-index: 999999;
    transform: scale(1.2);
    opacity: 0; 
    animation: fadeInBtn 0.5s forwards 0.5s;
}

@keyframes fadeInBtn {
    to {
        opacity: 1;
    }
}

.toggle {
    position: relative;
    box-sizing: border-box;
}

.toggle input[type="checkbox"] {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}

.toggle label {
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.toggle label:before {
    content: "";
    width: 70px;
    height: 40px; 
    background: #5cacff; 
    border: 2px solid #fff; 
    position: relative;
    display: inline-block;
    border-radius: 20px;
    box-sizing: border-box;
    transition: 0.25s ease-in;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.toggle label:after {
    content: "";
    width: 26px;
    height: 26px;
    position: absolute; 
    left: 7px;
    top: 5px; 
    border-radius: 50%; 
    background: #ffeb00; 
    box-shadow: 0 0 5px rgba(255, 235, 0, 0.8);
    transition: 0.25s ease-in-out;
}

.toggle input[type="checkbox"]:checked + label:before {
    background: #1a1a1a; 
    border-color: #555;
}

.toggle input[type="checkbox"]:checked + label:after {
    background: transparent; 
    box-shadow: inset -8px -5px 0 0 #fff; 
    left: 35px; 
    top: 5px;
}

@media (max-width: 1250px) {
    .theme-switch-wrapper {
        transform: scale(0.8);
        top: 90px; 
        right: 20px;
    }
}

@media (max-width: 768px) {
    .theme-switch-wrapper {
        transform: scale(0.7);
        top: 80px;
        right: 15px;
    }
}   

body.dark-mode {
    --fondo-body: #18181b;         
    --fondo-tarjeta: #27272a;      
    --texto-negro: #f4f4f5;        
    --texto-gris: #a1a1aa;         
    --gris-borde-divisor: #444444; 
    
    --fondo-navegacion: #27272a;   
    --borde-navegacion: #444444;   
    
    --fondo-boton-nav: #18181b;    
    --texto-boton-nav: #e0e0e0;    
    --borde-boton-nav: #555555;    
    
    --fondo-card: #27272a;         
    --borde-card: #444444;         
    
    --texto-contraste-hover: #000000; 
    
    --sombra-industrial: 8px 8px 0px #000000;
}

body.dark-mode h2, 
body.dark-mode h3,
body.dark-mode .h1-nexo,
body.dark-mode footer, 
body.dark-mode .footer-copyright,
body.dark-mode .legal-links a { 
    color: var(--texto-negro) !important; 
}

body.dark-mode footer {
    background-color: var(--fondo-body) !important;
    border-top-color: #333 !important;
}

/* Asegurar imágenes a color siempre por defecto */
body.dark-mode .card-logo-img {
    filter: none !important;
}

.adsbygoogle {
    background: transparent !important;
    box-shadow: none !important;
}

.nexo-seccion-interes {
    width: 100%;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 20px;
    text-align: center;
}

.nexo-interes-titulo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--texto-negro);
}

.nexo-interes-contenedor {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.boton-nexo-universal {
    padding: 12px 24px;
    text-decoration: none;
    text-align: center;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s;
    background: #fff;
    border: 2px solid #000;
    color: #000;
    white-space: nowrap;
}

.boton-nexo-universal:hover {
    background-color: var(--color-tema, #0068B5) !important;
    color: #ffffff !important;
    border-color: var(--color-tema, #0068B5) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(0, 104, 181, 0.3) !important;
}

body.dark-mode .boton-nexo-universal {
    background: #27272a;
    color: #fff;
    border-color: #555;
}

body.dark-mode .boton-nexo-universal:hover {
    background: var(--color-tema, #3b82f6);
    color: #000;
    border-color: var(--color-tema, #3b82f6);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

@media (max-width: 768px) {
    .nexo-seccion-interes {
        margin: 3rem auto;
    }
    
    .nexo-interes-titulo {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .nexo-interes-contenedor {
        gap: 10px;
    }
    
    .boton-nexo-universal {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nexo-interes-titulo {
        font-size: 1.2rem;
    }
    
    .boton-nexo-universal {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

