/* Variables base de estilos-generales.css */
:root {
    --color-tema: var(--nexo-performance);
    --color-hover: var(--nexo-performance-hover);
    
    /* Variables Específicas de GitHub (Base clara) */
    --gh-block: #24292e; 
    --gh-border-soft: #2f363d;
    --nexo-font: 'Montserrat', sans-serif;

    --fondo-body: var(--fondo-body);
    --texto-negro: var(--texto-negro);
    --color-texto-gris: var(--texto-gris);
    --gris-fondo-btn: var(--gris-fondo-boton);
    --gris-borde-h1: var(--gris-borde-divisor);
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--fondo-body);
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { 
    flex: 1; 
} 

/* Header */
header {
    text-align: center;
    width: 100%;
    margin-top: 5rem;
}

h1 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin: 3rem auto;
    font-size: clamp(2.5rem, 6vw, 4.375rem);
    color: var(--color-tema);
    border-bottom: 2px solid var(--gris-borde-h1);
    width: 60vw;
    display: inline-block;
    padding-bottom: 2vh;
    max-width: 90%;
    text-align: center;
}

.h3-size {
    margin: 2vh 1vh 0.5vh 1vh;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--texto-negro);
}

.header-desc {
    font-size: 1.1rem;
    color: var(--color-texto-gris);
    margin-bottom: 4rem;
    text-align: center;
}

.section-title-h {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 3rem auto 1.5rem auto;
    color: var(--texto-negro) !important;
    text-align: center;
    width: 100%;
}

/* Grid system */
.performance-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 3rem auto; 
    padding: 0 10px;
}

/* Tarjetas */
.armory-card {
    flex: 0 1 220px; 
    height: 180px; 
    max-width: 230px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--fondo-card);
    border: 2px solid var(--borde-card);
    box-shadow: var(--sombra-industrial);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    box-sizing: border-box;
}

.armory-card:hover {
    transform: translate(-3px, -3px);
    background-color: var(--fondo-card-hover, #fff5f0);
    box-shadow: 7px 7px 0px var(--color-tema);
    border-color: var(--color-tema);
}

.card-logo-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 1rem;
    display: block;
}

.card-title {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--texto-negro);
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
    line-height: 1.2;
    text-align: center;
}

.card-desc {
    display: block;
    font-size: 0.9rem;
    color: var(--color-texto-gris);
    font-weight: 500;
    text-align: center;
}

/* GitHub link */
.nexo-github-link {
    position: relative;
    display: flex;
    place-content: center;
    padding: 18px 20px 18px 60px;
    margin: 2rem auto;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    font-family: var(--nexo-font);
    font-weight: 700;
    font-size: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--gh-block);
    border: 2px solid #000000; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
}

.nexo-github-link .gh-icon {
    width: 48px;
    height: 48px;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    fill: #ffffff;
}

.nexo-github-link:hover {
    background-color: var(--gh-border-soft);
    border-color: #4c4b69; 
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 0 20px rgba(47, 62, 71, 0.4);
}

/* Sección Te Podría Interesar */
.nexo-seccion-interes {
    width: 100%;
    margin: 4rem auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.nexo-interes-contenedor {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Botón Universal */
.boton-nexo-universal {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    text-align: center;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.2s;
    background: #fff;
    border: 2px solid #000;
    color: #000;
}

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

.adsbygoogle .google-auto-placed {
    display: none !important;
}

body.dark-mode {
    --color-tema: #ff8c66; /* Naranja Neón */
    --fondo-card-hover: #1a1a1a;
}

body.dark-mode h1 {
    color: var(--color-tema);
    border-bottom-color: #444;
}

body.dark-mode .header-desc {
    color: #aaa;
}

body.dark-mode .h3-size {
    color: #fff;
}

body.dark-mode .armory-card {
    background-color: #27272a;
    border-color: #444;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
    color: #e0e0e0;
}

body.dark-mode .card-title {
    color: #fff;
}

body.dark-mode .card-desc {
    color: #aaa;
}

body.dark-mode .armory-card:hover {
    transform: translate(-3px, -3px);
    border-color: var(--color-tema);
    background-color: #1a1a1a;
    box-shadow: 7px 7px 0px var(--color-tema); /* Sombra sólida */
}

body.dark-mode .card-logo-img,
body.dark-mode .gh-icon {
    filter: grayscale(100%) brightness(0) invert(1) !important;
    opacity: 0.9;
}

/* Mantenemos blanco y aumentamos brillo/escala en hover */
body.dark-mode .armory-card:hover .card-logo-img,
body.dark-mode .nexo-github-link:hover .gh-icon {
    filter: grayscale(100%) brightness(0) invert(1) !important;
    opacity: 1;
}

body.dark-mode .nexo-github-link {
    background-color: #27272a;
    border-color: #444;
    color: #e0e0e0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
}

/* Hover: Caja industrial naranja, icono sigue blanco */
body.dark-mode .nexo-github-link:hover {
    background-color: #1a1a1a;
    border-color: var(--color-tema);
    color: #fff;
    box-shadow: 7px 7px 0px var(--color-tema);
}

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

body.dark-mode .boton-nexo-universal:hover {
    background: var(--color-tema);
    color: #000;
    border-color: var(--color-tema);
    box-shadow: 0 0 15px rgba(255, 140, 102, 0.4);
}

@media (max-width: 1200px) {
    .nexo-github-link {
        font-size: 1.5rem;
        padding: 15px 15px 15px 50px;
        width: 60vw;
    }
    .nexo-github-link .gh-icon {
        width: 32px;
        height: 32px;
        left: 15px;
    }
}

@media (max-width: 768px) {
    body { 
        padding-top: 1rem; 
    }
    h1 { 
        font-size: 2.5rem; 
        width: 95vw; 
        padding-bottom: 3vh; 
        margin: 3rem auto; 
    }

    .performance-grid { 
        gap: 10px; 
        padding: 0 10px;
        justify-content: center;
    }

    .armory-card {
        flex: 0 1 45%; 
        max-width: 165px !important;
        height: auto;
        min-height: 125px;
        padding: 10px;
        margin: 0;
    }

    .card-logo-img { 
        width: 48px; 
        height: 48px; 
        margin-bottom: 8px;
    }
    
    .card-title { 
        font-size: 1rem; 
        margin-bottom: 4px;
    }
    
    .card-desc { 
        font-size: 0.75rem;
        display: none; 
    }

    .nexo-github-link {
        font-size: 1rem;
        padding: 15px 15px 15px 50px;
        width: 85vw;
    }
    .nexo-github-link .gh-icon {
        width: 30px;
        height: 30px;
        left: 15px;
    }
    
    .boton-nexo-universal {
        width: 100%;
        max-width: 300px;
        margin-bottom: 10px;
    }
}