@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format('woff2');
}

:root {
    /* Identidad index */
    --color-tema: #000000;
    --fondo-body: #F5F5F7; 
    
    /* Colores fondo suaves */
    --hover-nave: #E3C2FF;
    --hover-inst: #CBFFCB;
    --hover-rend: #FFCBCB;
    --hover-pc: #C1E7FF;
    --hover-sist: #E0E0E0;
    --hover-tools: #cef9ff;

    /* Colores sombra fuertes */
    --shadow-nave: #9d4edd;
    --shadow-inst: #00b300;
    --shadow-rend: #ff4500;
    --shadow-pc: #0068B5;
    --shadow-sist: #666666;
    --shadow-tools: #00b5cd;

    /* Estilos generales */
    --texto-negro: #111111;
    --texto-gris: #666666;
}

/* Reset y Estructura */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

html,
body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    background-color: var(--fondo-body);
    color: var(--color-tema);
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Cabecera */
header {
    width: 100%;
    padding-top: 4vh;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.hero-content {
    left: 10px;
    margin-bottom: 5vh;
}

.head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 5rem
}

/* Título */
.h1-nexo {
    font-size: 8rem; 
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -3px;
    margin: 0;
    text-transform: uppercase;
    color: #000;
    text-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #666;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-left: 5px;
}

/* Logo */
.nexo-logo {
    width: 256px;
    height: 256px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nexo-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.15));
}

.nexo-logo:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Grid Botones */
main {
    width: 100%;
    max-width: 1400px; 
    padding: 0 20px;
    margin-bottom: 4rem;
}

main ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 30px;
    width: 100%;
}

.hero-badge {
    background-color: var(--color-tema);
    color: var(--fondo-body);
    padding: 6px 18px;
    display: flex;
    border-radius: 12px;
    width: 200px;
    place-content: center;
    margin-bottom: 3vh; 
}

.hero-content {
    align-items: center;
    justify-content: center;
    place-content: center;
}

.boton-contenedor {
    display: flex;
    justify-content: center;
}

.boton-enlace {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 260px; 
    height: 220px;
    background: #ffffff;
    text-decoration: none;
    color: #000;
    border: 3px solid #000000; 
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    position: relative;
}

.buttons-icons {
    width: 100px; 
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: grayscale(100%); 
    transition: filter 0.2s, transform 0.2s;
}

.buttons-icons-pc {
    width: 155px; 
    height: 155px;
    object-fit: contain;
    filter: grayscale(100%); 
    transition: filter 0.2s, transform 0.2s;
    margin-bottom: -0.8rem;
}

.buttons-icons-pc.p-pc {
    margin-bottom: 10vh;
}

.navegadores-texto-p {
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    text-align: center;
    margin-bottom: 1.9rem;
}

/* Texto Botones */
.navegadores-texto {
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    text-align: center;
}

/* Efectos Hover */
.boton-enlace:hover {
    transform: translate(-6px, -6px); 
    background-color: #fff; 
}

.boton-enlace:active {
    transform: translate(0, 0);
    box-shadow: 0 0 0 transparent;
}

.boton-enlace:hover .buttons-icons,
.boton-enlace:hover .buttons-icons-pc {
    filter: grayscale(0%);
    transform: scale(1.15); 
}

/* Colores Específicos */
.nave-hover:hover { 
    background-color: var(--hover-nave); 
    box-shadow: 10px 10px 0px var(--shadow-nave); 
    border-color: #000;
}

.pc-hover:hover { 
    background-color: var(--hover-pc); 
    box-shadow: 10px 10px 0px var(--shadow-pc); 
    border-color: #000;
}

.installer-hover:hover { 
    background-color: var(--hover-inst); 
    box-shadow: 10px 10px 0px var(--shadow-inst); 
    border-color: #000;
}

.rendimiento-hover:hover { 
    background-color: var(--hover-rend); 
    box-shadow: 10px 10px 0px var(--shadow-rend); 
    border-color: #000;
}

.sistemas-hover:hover { 
    background-color: var(--hover-sist); 
    box-shadow: 10px 10px 0px var(--shadow-sist); 
    border-color: #000;
}

.tools-hover:hover { 
    background-color: var(--hover-tools); 
    box-shadow: 10px 10px 0px var(--shadow-tools); 
    border-color: #000;
}

/* Redes Sociales */
.social-media {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    font-weight: 800;
    padding: 10px 20px;
    border: 2px solid #000;
    border-radius: 50px;
    background: #fff;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1); 
    transition: transform 0.2s, box-shadow 0.2s;
}

.social-item:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0px #000; 
    color: #000;
}

.social-icon {
    width: 24px;
    height: 24px;
}

/* Marca de Agua */
.aside-img {
    width: 300px;
    position: fixed;
    bottom: -20px;
    right: -20px;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

/* Footer */
footer {
    width: 100%;
    background: #fff;
    padding: 3rem 1rem;
    text-align: center;
    border-top: 3px solid #000;
    margin-top: auto;
}

.footer-copyright {
    font-weight: 800;
    margin-bottom: 1rem;
}

.legal-links a {
    color: #666;
    text-decoration: none;
    font-weight: 600;
    margin: 0 5px;
}

.separator {
    color: #ccc;
}

/* Cookies y Alertas */
#cookie-banner.cookie-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px; 
    max-width: 450px;
    margin: 0 auto;
    background: #fff;
    padding: 25px; 
    border: 3px solid #000; 
    box-shadow: 10px 10px 0px rgba(0,0,0,0.2);
    display: none;
    z-index: 10000;
}

.cookie-text {
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.cookie-btn {
    padding: 10px 25px;
    font-weight: 900;
    cursor: pointer; 
    border: 2px solid #000;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.cookie-btn.accept {
    background: #000;
    color: #fff;
}

.cookie-btn.reject {
    background: #fff;
    color: #000;
}

#inapp-warning.inapp-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 99999; 
    align-items: center;
    justify-content: center;
    color: white;
}

.inapp-content {
    text-align: center;
    padding: 20px;
    max-width: 90%;
}

.inapp-close {
    margin-top: 30px;
    padding: 12px 30px;
    background: #008cff;
    border: 2px solid #fff;
    color: #fff;
    font-weight: 900;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
}

/* AdSense */
.adsbygoogle {
    display: block;    
    min-height: 250px;
    max-width: 980px;
    background: #f0f0f0; 
    margin: 2rem auto;
}

.adsbygoogle[data-ad-status="filled"] {
    background: transparent;
}

@media (max-width: 1024px) {
    main ul {
        gap: 20px; 
    }
    .boton-enlace {
        width: 220px;
        height: 190px;
    }
}

@media (max-width: 768px) {
    /* Header */
    .head {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 1rem;
    }
    
    .title-container { 
        order: 1; 
        text-align: center; 
        width: 100%;
    }
    
    .h1-nexo { 
        font-size: 5rem; 
        line-height: 1;
    } 
    
    .nexo-logo {
        order: 2; 
        width: 160px;
        height: 160px;
        margin: 0 auto; 
    }

    /* Cuerpo principal flexible */
    main { 
        padding: 0 10px; 
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Lista botones movil */
    main ul {
        display: flex;
        flex-wrap: wrap;       
        justify-content: center; 
        gap: 15px;             
        width: 100%;
        padding: 0;
        margin: 20px auto;
    }

    /* Celda boton movil */
    .boton-contenedor {
        width: calc(50% - 8px); 
        display: flex;
        justify-content: center;
        max-width: 13rem;
        max-height: 12rem;
    }

    .boton-enlace {
        width: 100%;       
        height: auto;      
        aspect-ratio: 1/1; 
        padding: 10px;
        border-width: 2px;
        border-radius: 15px;
    }

    .boton-enlace:hover {
        transform: none; 
    }

    /* Ajuste iconos movil */
    .buttons-icons, .buttons-icons-pc {
        width: 80px;
        height: 80px;
        margin-bottom: 5px;
    }

    .buttons-icons-pc {
        width: 125px; 
        height: 125px;
        object-fit: contain;
        filter: grayscale(100%); 
        transition: filter 0.2s, transform 0.2s;
        margin-bottom: -0.8rem;
    }

    .navegadores-texto {
        font-size: 1.3em;
    }

    /* Redes sociales y legales movil */
    .social-media { 
        gap: 10px; 
        flex-wrap: wrap; 
        width: 100%;
    }
    
    .social-item { 
        font-size: 0.8rem; 
        padding: 8px 15px; 
        width: auto;
    }

    .legal-links { 
        flex-direction: column; 
        gap: 8px; 
    }
    .separator {
        display: none;
    }

    /* Corrección publicidad movil */
    .adsbygoogle, 
    div[style*="max-width: 900px"] {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: flex;
        justify-content: center;
    }
}

/* Modo oscuro */
.theme-switch-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99;
    transform: scale(1);
    opacity: 0; 
    animation: fadeInBtn 0.5s forwards 0.5s;
}

@keyframes fadeInBtn { 
    to {
        opacity: 1;
    } 
}

/* Diseño boton sol luna */
.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;
}

/* Estado dia */
.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;
}

/* Estado noche */
.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;
}

/* Ajuste movil pequeño */
@media (max-width: 400px) {
    .theme-switch-wrapper {
        transform: scale(0.85);
        top: 15px;
        right: 15px;
    }
}

/* Variables modo oscuro */
body.dark-mode {
    /* Bases */
    --fondo-body: #18181b;         
    --fondo-tarjeta: #27272a;      
    --texto-negro: #f4f4f5;        
    --texto-gris: #a1a1aa;         
    --gris-borde-h1: #3f3f46;         
    --gris-fondo-boton: #27272a;
    --color-tema: #ffffff;
    
    /* Hovers index */
    --hover-index-nave: #2e1065;
    --hover-index-inst: #064e3b;
    --hover-index-rend: #7c2d12;
    --hover-index-pc: #1e3a8a;
    --hover-index-sist: #3f3f46;

    /* Sombras neon */
    --shadow-nave: #a855f7;
    --shadow-inst: #22c55e;
    --shadow-rend: #f97316;
    --shadow-pc: #3b82f6;
    --shadow-sist: #d4d4d8;
}

/* Reglas visuales globales oscuro */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3, 
body.dark-mode .h1-nexo,
body.dark-mode .nav-anchor,
body.dark-mode footer,
body.dark-mode .footer-copyright,
body.dark-mode .legal-links a,
body.dark-mode .cookie-text,
body.dark-mode .nav-anchor-right {
    color: var(--texto-negro) !important;
}

body.dark-mode footer {
    background-color: var(--fondo-body) !important;
    border-top-color: #333 !important;
}

/* Tarjetas index oscuro */
body.dark-mode .boton-enlace {
    background-color: var(--fondo-tarjeta) !important;
    border-color: #52525b !important;
    box-shadow: 8px 8px 0px #000000 !important; 
    color: #fff !important;
}

/* Hovers con color oscuro */
body.dark-mode .boton-enlace.nave-hover:hover {
    background-color: var(--hover-index-nave) !important;
    border-color: var(--shadow-nave) !important;
    box-shadow: 10px 10px 0px var(--shadow-nave) !important;
}

body.dark-mode .boton-enlace.pc-hover:hover {
    background-color: var(--hover-index-pc) !important;
    border-color: var(--shadow-pc) !important;
    box-shadow: 10px 10px 0px var(--shadow-pc) !important;
}

body.dark-mode .boton-enlace.installer-hover:hover {
    background-color: var(--hover-index-inst) !important;
    border-color: var(--shadow-inst) !important;
    box-shadow: 10px 10px 0px var(--shadow-inst) !important;
}

body.dark-mode .boton-enlace.rendimiento-hover:hover {
    background-color: var(--hover-index-rend) !important;
    border-color: var(--shadow-rend) !important;
    box-shadow: 10px 10px 0px var(--shadow-rend) !important;
}

body.dark-mode .boton-enlace.sistemas-hover:hover {
    background-color: var(--hover-index-sist) !important;
    border-color: var(--shadow-sist) !important;
    box-shadow: 10px 10px 0px var(--shadow-sist) !important;
}

body.dark-mode .boton-enlace.tools-hover:hover {
    background-color: #004f59 !important;
    border-color: #00a7bd !important;
    box-shadow: 10px 10px 0px #00a7bd !important;
}

/* Iconos siempre blancos oscuro */
body.dark-mode .buttons-icons, 
body.dark-mode .buttons-icons-pc,
body.dark-mode .social-icon {
    filter: grayscale(100%) brightness(0) invert(1) !important;
    opacity: 0.9;
}

/* Hover iconos oscuro */
body.dark-mode .boton-enlace:hover .buttons-icons,
body.dark-mode .boton-enlace:hover .buttons-icons-pc {
    filter: grayscale(100%) brightness(0) invert(1) !important;
    transform: scale(1.15);
    opacity: 1;
}

/* Extras oscuro */
body.dark-mode .social-item {
    background-color: var(--fondo-tarjeta) !important;
    border-color: #52525b !important;
    color: #fff !important;
    box-shadow: 4px 4px 0px #000 !important;
}

body.dark-mode .social-item:hover {
    background-color: #3f3f46 !important;
    border-color: #fff !important;
}

body.dark-mode .hero-badge {
    background-color: #f4f4f5 !important;
    color: #000000 !important;
    border: 1px solid #fff !important;
}

body.dark-mode .adsbygoogle {
    background: transparent !important;
    box-shadow: none !important;
}

/* Parche antisecuestro AdSense */
.inapp-text a, 
.inapp-text google-revocation-link,
.inapp-text .google-auto-placed {
    pointer-events: none !important;
    text-decoration: none !important;
    color: inherit !important;
    background: none !important;
    cursor: default !important;
}

/* Ajuste Android PC */
@media screen and (min-width: 1024px) {
    .android-container-fix {
        width: 100%; 
        max-width: 900px;
    }
    .boton-enlace.android-hover {
        width: 100%;
        flex-direction: row; 
        gap: 20px;
    }
}

/* Parche antisecuestro AdSense */
.alerta-rrss .texto-seguro a, 
.alerta-rrss .texto-seguro google-revocation-link,
.alerta-rrss .texto-seguro .google-auto-placed {
    pointer-events: none !important;
    text-decoration: none !important;
    color: inherit !important;
    background: none !important;
    cursor: default !important;
}

/* Ajuste Android PC */
@media screen and (min-width: 1024px) {
    .boton-enlace.android-hover {
        grid-column: span 2; 
        width: 100% !important; 
        max-width: 900px; 
        flex-direction: row; 
        gap: 20px;
    }
}