* {
    box-sizing: border-box;
}

:root {
    --fondo-principal: #08070D;
    --fondo-secundario: #0d0a14;
    --tarjeta: #171222;

    --texto: #F4F0FF;
    --texto-secundario: #D0C5DB;
    --acento: #B86CFF;
    --acento-fuerte: #8A2BE2;

    --borde: #39284D;
}

/*============================================================== GENERAL ==========================================================*/
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100vw;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--fondo-principal);

    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;

    color: var(--texto);
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    
    overflow-x: hidden;
    width: 100%;

    /* ANIMACION FLUIDA ENTRE PAGINAS */
    animation: fadeInPage 0.35s ease-out;
}

h1, h2, h3, strong, b, .btn, nav a, .hero-etiqueta {
    font-weight: 700 !important;
    -webkit-text-stroke: 0.6px currentColor;
}

b, strong {
    font-weight: 700 !important;
}

/*============================================================== HEADER Y MENU (PC) ==============================================================*/
.menu-checkbox, .menu-btn {
    display: none;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 16px 30px;
    background-color: rgba(13, 10, 20, 0.65);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(57, 40, 77, 0.6);
}

header h2 {
    margin: 0;
    margin-right: auto;
    color: var(--acento);
    letter-spacing: 2px;
}

.menu-enlaces {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: 25px;
}

.menu-enlaces a {
    color: var(--texto-secundario);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500 !important;
    transition: color 0.2s ease;
}

.menu-enlaces a:hover {
    color: #FFFFFF;
}

/*============================================================== MENU ==============================================================*/
nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav a {
    color: var(--texto-secundario);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500 !important;
    -webkit-text-stroke: 0px transparent !important;
    text-shadow: none !important;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #FFFFFF;
    transform: none;
    text-shadow: none;
}

/*============================================================== HERO ==============================================================*/
.hero {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;

    gap: 40px;
    padding: 70px 80px 40px;

    background: transparent !important;
}

.hero::before {
    content: "";
    position: absolute;
    top: 15%;
    right: 5%;
    width: 450px;
    height: 450px;
    background: rgba(184, 108, 255, 0.15);
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
}

.hero-texto, .hero-imagen {
    position: relative;
    z-index: 1;
}

.hero-demo-codigo {
    flex-basis: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-top: 90px;
    width: 100%;
}

.demo-info {
    width: 40%;
    max-width: 440px;
}

.descarga-info h3 {
    font-size: 28px;
    color: var(--texto);
    margin-top: 10px;
    margin-bottom: 12px;
    line-height: 1.25;
}

.demo-info p {
    color: var(--texto-secundario);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.demo-puntos {
    list-style: none;
    padding: 0;
    margin: 0;
}

.demo-puntos li {
    color: var(--texto);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.hero-demo-codigo .terminal-contenedor {
    width: 58%;
    max-width: 600px;
    margin: 0; /* Quita márgenes automáticos viejos */
    background-color: #0b0813;
    border: 1px solid var(--borde);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 25px rgba(184, 108, 255, 0.15);
}

.hero-texto {
    width: 38%;
    max-width: 520px;
}

.hero-imagen {
    width: 58%;
    max-width: 850px;
    margin-top: 0;
}

.hero-imagen img {
    width: 100%;
    display: block;

    border: 1px solid var(--borde);
    border-radius: 15px;

    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.40),
        0 0 25px rgba(184, 108, 255, 0.16)
    ;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-imagen img:hover {
    transform: translateY(-4px);

    box-shadow: 
        0 25px 45px rgba(0, 0, 0, 0.45),
        0 0 30px rgba(184, 108, 255, 0.16)
    ;
}

.hero-etiqueta {
    display: inline-block;

    margin-bottom: 10px;
    padding: 6px 12px;

    background-color: rgba(184, 108, 255, 0.10);
    color: var(--acento);

    border: 1px solid var(--borde);
    border-radius: 999px;

    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
}

.hero-texto p {
    color: var(--texto-secundario);
    font-size: 16px;
    line-height: 1.65;
    max-width: 520px;
    margin-bottom: 20px;
    margin-top: 0;
}

.hero-texto h1 {
    font-size: 56px;
    line-height: 1.05;

    margin-top: 0;
    margin-bottom: 10px;

    color: var(--texto);

    letter-spacing: -1px;
}

.hero-texto h2 {
    font-size: 26px;
    line-height: 1.3;

    margin-top: 0;
    margin-bottom: 12px;

    color: var(--acento);

    max-width: 520px;
}

/*============================================================== BOTONES SECCIÓN HERO (MODERNOS) ==========================================================*/
.hero-texto .btn {
    -webkit-text-stroke: 0px transparent !important;
    text-shadow: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Botón Principal de Descargar en verde plano estilo GitHub */
.hero-texto .btn:first-of-type {
    background-color: #238636 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 12px rgba(35, 134, 54, 0.2) !important;
}

@media (hover: hover) {
    .hero-texto .btn:first-of-type:hover {
        background-color: #2ea043 !important;
        border-color: rgba(255, 255, 255, 0.3) !important;
        transform: translateY(-3px) scale(1.01);
        box-shadow: 0 8px 20px rgba(46, 160, 67, 0.35) !important;
    }
}

.hero-texto .btn:first-of-type:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 2px 6px rgba(46, 160, 67, 0.2) !important;
}

.hero-texto .btn + .btn {
    margin-left: 10px;
}

/*============================================================ BOTONES GENÉRICOS ============================================================*/
.btn {
    display: inline-block;
    padding: 15px 32px;
    background-color: var(--acento);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
}

.btn:active {
    transform: translateY(0);
}

.btn-secundario {
    background-color: var(--tarjeta);
    color: var(--texto);
    border: 1px solid var(--borde);
    box-shadow: none;
    transition: all 0.3s ease;
    -webkit-text-stroke: 0px transparent !important;
}

.btn-secundario:hover {
    background-color: rgba(184, 108, 255, 0.15);
    color: #FFFFFF;
    border-color: var(--acento);
    box-shadow: 0 0 15px rgba(184, 108, 255, 0.2);
}

.descarga .btn-descarga {
    background-color: #238636 !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.3) !important;
    border-radius: 8px !important;
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.25),
                inset 0 -2px 0 rgba(0, 0, 0, 0.3) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@media (hover: hover) {
    .descarga .btn-descarga:hover {
        background-color: #2ea043 !important;    
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45),
                    0 0 15px rgba(46, 160, 67, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.35),
                    inset 0 -2px 0 rgba(0, 0, 0, 0.3) !important;
    }
}

.descarga-accion {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.descarga-info {
    font-size: 14px;
    color: var(--texto-secundario);
    opacity: 0.8;
}

.caracteristicas {
    position: relative;
    padding: 30px 25px 60px;
    text-align: center;
    background: transparent !important;
}

.caracteristicas::before {
    content: "";
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 350px;
    background: rgba(138, 43, 226, 0.12);
    border-radius: 50%;
    filter: blur(150px);
    pointer-events: none;
    z-index: 0;
}

.caracteristicas h2, .caracteristicas-contenedor {
    position: relative;
    z-index: 1;
}

.caracteristicas h2 {
    font-size: 42px;
    margin-top: 10px; /* Reducimos el espacio superior del título */
    margin-bottom: 35px;
    letter-spacing: 0.5px;
}

.caracteristicas-contenedor {
    max-width: 1100px;
    margin: 0 auto;

    display: flex;
    justify-content: center;
    gap: 25px;  
}

.caracteristica {
    width: 350px;
    padding: 28px 25px;
    
    background-color: var(--tarjeta); /* Regresamos a tu color original oscuro */
    border: 1px solid rgba(184, 108, 255, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .caracteristica:hover {
        transform: translateY(-4px);
        border-color: rgba(184, 108, 255, 0.8);
        background-color: #110d1a; /* Solo un toque ínfimo de luz */
        box-shadow: 
            0 10px 25px rgba(0, 0, 0, 0.5),
            0 0 25px rgba(184, 108, 255, 0.15);
    }
}

.caracteristica-icono {
    font-size: 36px;
    margin-bottom: 15px;
    display: inline-block;
    padding: 12px;
    background: rgba(184, 108, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(184, 108, 255, 0.2);
}

.caracteristica h3 {
    color: var(--acento);

    margin-top: 0;
    margin-bottom: 14px;
}

.caracteristica p {
    color: var(--texto-secundario);
    line-height: 1.6;
    margin: 0;
    font-size: 15px;
}

.capturas {
    padding: 50px 70px 70px; /* Reducimos padding superior de 60px a 50px */
    background: transparent !important;
    background-image: none !important;
}

.capturas, .requisitos {
    position: relative;
}

.capturas::before {
    content: "";
    position: absolute;
    top: 20%;
    left: -2%;
    width: 500px;
    height: 500px;
    background: rgba(184, 108, 255, 0.08); 
    border-radius: 50%;
    filter: blur(90px); /* Menos desenfoque para que resalte más */
    pointer-events: none;
    z-index: 0;
}

.capturas h2 {
    text-align: center;
    font-size: 42px;
    margin-top: 10px; /* Controlamos el margen superior */
    margin-bottom: 30px;
    color: var(--texto);
}

.capturas-contenedor {
    max-width: 1100px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.captura {
    margin: 0;
    width: 100%;
    overflow: hidden;
    background-color: var(--tarjeta);
    border: 1px solid #49345F;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.20);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.captura figcaption {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--texto);
    text-align: center;
    background-color: rgba(184, 108, 255, 0.08);
    border-top: 1px solid rgba(184, 108, 255, 0.2);
}

.captura:first-child {
    grid-column: 1 / -1;
}

.captura img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.captura:hover {
    transform: translateY(-3px);
    border-color: var(--acento);
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.45),
        0 0 18px rgba(184, 108, 255, 0.18)
    ;
}

.captura:hover img {
    transform: scale(1.02);
}

/*============================================================== REQUISITOS ==========================================================*/
.requisitos {
    position: relative;
    padding: 50px 25px 70px;
    text-align: center;
    background: transparent !important;
}

.requisitos::before {
    content: "";
    position: absolute;
    top: 15%;
    right: -2%;
    width: 500px;
    height: 500px;
    background: rgba(138, 43, 226, 0.08);
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.requisitos h2 {
    font-size: 42px;
    margin-top: 10px;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

.requisitos-contenedor {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}

.requisito {
    position: relative;
    flex: 1;    
    padding: 35px 40px;
    background-color: var(--tarjeta);
    border: 1px solid #49345F;
    border-radius: 16px;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.requisito:hover {
    transform: translateY(-4px);
    border-color: var(--acento);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45),
                0 0 20px rgba(184, 108, 255, 0.18);
}

.requisito-destacado {
    border-color: var(--acento);
    background-color: #130e1d;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(184, 108, 255, 0.15);
}

.requisito-destacado:hover {
    border-color: #d2a8ff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5),
                0 0 25px rgba(184, 108, 255, 0.25);     
}

.etiqueta-recomendado {
    position: absolute;
    top: -12px;
    right: 25px;
    background-color: var(--acento-fuerte);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
}

.requisito h3 {
    color: var(--acento);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
}

.lista-requisitos {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.lista-requisitos li {
    position: relative;
    color: var(--texto-secundario);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 12px 0;
    padding-left: 22px;
}

.lista-requisitos li::before {
    content: "▹";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--acento);
    font-weight: bold;
    font-size: 16px;
}

.lista-requisitos li strong {
    color: #FFFFFF;
    font-weight: 700 !important;
}

/*==================================================================================================================================*/
/*============================================================== DESCARGA ==========================================================*/
.descarga {
    position: relative;
    padding: 60px 40px; /* Reducimos de 90px a 60px */
    text-align: center;
    background-color: #0b0714 !important;
    background-image: none !important;
    border-top: 1px solid var(--borde);
}

.descarga::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 550px;
    height: 350px;
    
    /* Luz equilibrada */
    background: rgba(184, 108, 255, 0.08);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.descarga > * {
    position: relative;
    z-index: 1;
}

.descarga h2 {
    font-size: 42px;
    margin-top: 0;
    margin-bottom: 15px;
}

.descarga p {
    max-width: 700px;
    margin: 0 auto 30px;

    color: var(--texto-secundario);

    font-size: 19px;
    line-height: 1.6;
}

footer {
    padding: 50px 20px 30px;
    background-color: var(--fondo-secundario);
    border-top: 1px solid var(--borde);
}

.footer-contenedor {
    max-width: 1100px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 25px;
    text-align: center;
}

.footer-marca h2 {
    margin: 0 0 8px 0;
    color: var(--acento);
    letter-spacing: 2px;
    text-shadow: 0 0 12px rgba(184, 108, 255, 0.20);
}

.footer-marca p {
    margin: 0;
    color: var(--texto-secundario);
    font-size: 15px;
}

.footer-nav a {
    color:var(--texto-secundario);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--acento);
}

.footer-creditos {
    border-top: 1px solid rgba(57, 40, 77, 0.4);
    width: 100%;
    padding-top: 20px;
}

.footer-creditos p {
    margin: 0;
    color: var(--texto-secundario);
    font-size: 13px;
    opacity: 0.7;
}

/*============================================================== LIGHTBOX ==========================================================*/
.lightbox {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;    
    z-index: 2000;
    align-items: center;
    justify-content: center;
    transform: translate3d(0, 0, 0);
}

.lightbox:target {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 7, 13, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: default;
}

.lightbox-contenido {
    position: relative;
    z-index: 2001;
    max-width: 85vw;
    max-height: 85vh;
    display: inline-block;
    animation: zoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-contenido img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--borde);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8),
                0 0 30px rgba(184, 108, 255, 0.25);
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-cerrar {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 36px;
    height: 36px;
    background-color: #171222;
    color: var(--texto-secundario);
    border: 1px solid var(--acento);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    transition: all 0.2s ease;
    user-select: none;
    z-index: 2002
}

.lightbox-cerrar:hover {
    background-color: rgba(184, 108, 255, 0.2);
    color: #ffffff;
    border-color: var(--acento);
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(184, 108, 255, 0.4);
}

/*=========================================================== TERMINAL C++ ==========================================================*/
.terminal-contenedor {
    flex-basis: 100%;
    width: 100%;
    max-width: 750px;    
    margin: 60px auto 0 auto;
    background-color: #0b0813;
    border: 1px solid var(--borde);    
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6),
                0 0 25px rgba(184, 108, 255, 0.15);
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background-color: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--borde);
}

.terminal-botones {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-rojo { background-color: #ff5f56; }
.dot-amarillo { background-color: #ffbd2e; }
.dot-verde { background-color: #27c93f; }

.terminal-titulo {
    font-size: 12px;
    color: var(--texto-secundario);
    font-family: monospace;
}

/*--- Boton copiar ---*/
.btn-copiar {
    position: relative;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--borde);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    color: var(--texto-secundario);
    transition: all 0.2s ease;
    user-select: none;
}

.btn-copiar:hover {
    background-color: rgba(71, 71, 80, 0.929);
    color: #ffffff;
    border-color: var(--acento);
    transform: translateY(-1px) scale(1.009);
    box-shadow: 0 2px 6px rgba(73, 71, 71, 0.82);
}

.btn-copiar:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(95, 93, 93, 0.82);
}

/*--- Quita Casilla de Seleccion ---*/
.copiar-checkbox {
    display: none;
}

.texto-copiado {
    display: none;
    color: #3fb950;
    font-weight: bold;
}

/*--- Cuando Hace Clic Checkbox Se Marca Y Cambia Textos ---*/ 
.copiar-checkbox:checked ~ .texto-copiar {
    display: none;
}

.copiar-checkbox:checked ~ .texto-copiado {
    display: inline;
}

/*--- CUERPO DE CODIGO COLORES ---*/
.terminal-body {
    padding: 22px 28px;
    font-family: 'Consolas', 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

.terminal-body code {
    counter-reset: numero-linea;
    display: block;
}

.linea {
    display: flex;
    align-items: center;
    min-height: 20px;
}

.linea::before {
    counter-increment: numero-linea;
    content: counter(numero-linea);
    display: inline-block;
    width: 24px;
    margin-right: 16px;
    color: rgba(255, 255, 255, 0.2);
    text-align: right;
    font-size: 11px;
    user-select: none;
}

.cpp-cursor {
    display: inline-block;
    width: 7px;
    height: 15px;
    background-color: var(--acento);
    margin-left: 4px;
    vertical-align: middle;
    animation: parpadeoCursor 1s infinite;
}

.btn-copiar:has(.copiar-checkbox:checked) {
background-color: rgba(184, 108, 255, 0.12) !important;
    border-color: rgba(184, 108, 255, 0.5) !important;
    box-shadow: none !important;
    animation: confirmacionSuave 0.2s ease-out forwards;
}

.btn-copiar:has(.copiar-checkbox:checked) .texto-copiado {
    color: var(--acento) !important;
    text-shadow: none !important;
}

.terminal-body pre {
    margin: 0;
}

.cpp-kwd { /* #include, return */
    color: #ff7b72; 
    font-weight: bold; 
    margin-right: 6px;
}     
.cpp-str { color: #a5d6ff; }                        /* Textos "<iostream>" */
.cpp-type { color: #79c0ff; font-weight: bold;}     /* int */
.cpp-std { color: #79c0ff; }                        /* std:: */
.cpp-out { color: #d2a8ff; }                        /* cout, endl*/
.cpp-func { color: #d2a8ff; }                       /* main */
.cpp-num { color: #79c0ff; }                        /* 0 */

/* Contenedor de usuario logueado */
.user-session-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Estilo del texto de saludo */
.user-welcome {
    color: #00ff88;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

/* Botón de cerrar sesión */
.btn-logout {
    background-color: #28a745;    /* Verde o #dc3545 para rojo */
    color: white !important;
}

/*======================================================== TABLETS Y CELULARES ================================================*/
/*==========================================================     Maximos     ==================================================*/
@media (max-width: 900px) {
    /*---------------------------------------------------- BOTON CERRAR SESION ------------------------------------------------*/
    .user-session-container .btn-logout {
        display: none !important;
    }

    .menu-enlaces .btn-logout-movil {
        color: #ff4444 !important;
        font-weight: 700 !important;
        border-top: 1px solid rgba(255, 68, 68, 0.2);
    }

    /*--------------------------------------------------------- HEADER Y MENÚ MÓVIL ---------------------------------------------------*/
    header {
        position: sticky;
        top: 0;
        display: grid;
        grid-template-columns: 40px 1fr auto;
        align-items: center;
        padding: 12px 15px;
        background-color: rgba(13, 10, 20, 0.95);
        width: 100%;
        box-sizing: border-box;
    }

    header h2 {
        font-size: 20px;
        margin: 0;
        position: static;
        transform: none;
        text-align: center;
        grid-column: 2;
    }

    .menu-btn {
        grid-column: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 38px;
        height: 38px;
        background-color: rgba(138, 43, 226, 0.2);
        border: 1px solid var(--acento);
        padding: 9px 8px;
        border-radius: 8px;
        cursor: pointer;
    }

    .menu-btn span {
        display: block;
        height: 2px;
        width: 100%;
        background-color: #E6C8FF;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .nav-login-btn {
        grid-column: 3;
        margin: 0 !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
        width: auto !important;
        text-decoration: none !important;
        white-space: nowrap;
    }

    .menu-btn, .nav-login-btn {
        position: relative;
        z-index: 1001;
    }

    .menu-enlaces {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #110d1a;
        border-bottom: 1px solid var(--borde);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin: 0;
        padding: 0;

        /* ACORDEON DEL MENU EN CSS */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .menu-checkbox:checked ~ .menu-enlaces {
        max-height: 300px;
    }

    .menu-enlaces a {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        font-size: 15px;
        color: var(--texto-secundario);
        text-decoration: none;
        border-top: 1px solid rgba(255, 255, 255, 0.03);
    }

    /*------------------------------------------------------------ HERO  ------------------------------------------------------*/
    .hero {
        min-height: auto;
        flex-direction: column;
        padding: 50px 20px 45px;
        text-align: center;
    }

    .hero-texto h1 {
        font-weight: 700;
        color: var(--texto);
    }

    .hero-texto p {
        color: var(--texto-secundario);
        font-weight: 400;
    }

    .btn {
        font-weight: 700;
    }

    .hero-texto,
    .hero-imagen {
        width: 100%;
    }

    .hero-imagen {
        width: 100%;
        max-width: 600px;
        margin: 35px auto 0;
    }

    /*--------------------------------------------------------- TERMINAL DE C++ Y DEMO PUNTOS ---------------------------------*/
    .hero-demo-codigo {
        flex-direction: column;
        gap: 30px;
        margin-top: 50px;
        text-align: center;
    }

    .demo-info {
        width: 100%;
        max-width: 100%;
    }

    .hero-demo-codigo .terminal-contenedor {
        width: 100%;
        max-width: 100%;
    }

    /* Diseño Premium de los Puntos de la Terminal en Móvil */
    .demo-puntos {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 25px;
    }

    .demo-puntos li {
        background-color: var(--tarjeta);
        border: 1px solid var(--borde);
        padding: 12px 18px;
        border-radius: 12px;
        font-size: 14px;
        color: var(--texto);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 500;
        text-align: left;
    }

    /*--------------------------------------------------------- SECCIONES GENERALES -------------------------------------------*/
    .caracteristica {
        width: 100%;
        max-width: 380px;
    }

    .caracteristicas-contenedor,
    .requisitos-contenedor {
        flex-direction: column;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    .requisitos-contenedor {
        flex-direction: column;
        gap: 35px;
    }

    .requisito {
        width: 100%;
        max-width: 100%;
    }

    .etiqueta-recomendado {
        right: 20px;
    }

    .caracteristicas h2,
    .capturas h2,
    .requisitos h2,
    .descarga h2 {
        font-weight: 700;
        color: var(--texto);
    }

    .caracteristica h3,
    .requisito h3 {
        font-weight: 700;
    }

    .caracteristica p,
    .requisito p,
    .descarga p {
        color: #D0C5Db;
        font-weight: 400;
    }

    /*--------------------------------------------------------- CAPTURAS Y LIGHTBOX -------------------------------------------*/
    .capturas {
        padding: 60px 20px;
    }

    .capturas-contenedor {
        width: calc(100% - 10px);
        margin: 0 auto;
        max-width: none;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .captura:first-child {
        grid-column: auto;
    }

    .captura {
        width: 100%;
    }

    .captura img {
        width: 100%;
        height: auto;
    }

    /* Solución Lightbox para que no se estire */
    .lightbox-contenido {
        max-width: 95vw;
        max-height: auto;
    }

    .lightbox-contenido img {
        width: 100%;
        height: auto; /* Mantiene proporción real */
        max-height: 80vh;
        border-radius: 8px;
    }

    /* Reposiciona la "X" al alcance del dedo */
    .lightbox-cerrar {
        top: -15px; 
        right: -10px;
        width: 32px;
        height: 32px;
        font-size: 16px;
        background-color: var(--tarjeta);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.9);
    }

    /*--------------------------------------------------------- FOOTER MÓVIL --------------------------------------------------*/
    footer {
        padding: 40px 20px 30px;
        text-align: center;
    }

    .footer-contenedor {
        gap: 20px;
    }

    .footer-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .footer-nav a {
        font-size: 14px;
        padding: 6px 12px;
        background-color: rgba(255, 255, 255, 0.03);
        border-radius: 6px;
        border: 1px solid rgba(57, 40, 77, 0.4);
    }

    /*--------------------------------------------------------- TIPOGRAFÍA MÓVIL ----------------------------------------------*/
    .hero-texto h1 {
        font-size: 40px;
        line-height: 1.1;
    }

    .hero-texto p {
        font-size: 16px;
        line-height: 1.7;
        max-width: 500px;
        margin: 0 auto 30px;
    }

    .caracteristicas h2,
    .capturas h2,
    .requisitos h2,
    .descarga h2 {
        font-size: 34px;
        line-height: 1.2;
    }

    .caracteristica h3,
    .requisito h3 {
        font-size: 21px;
    }

    .requisito h3 {
        min-height: 50px;
    }

    .caracteristica p,
    .requisito p,
    .descarga p {
        font-size: 16px;
        line-height: 1.6;
    }

    .btn {
        font-size: 16px;
        padding: 13px 26px;
    }
}

@media (max-width: 768px) {
    .btn, .btn-secundario, .btn-descarga {
        display: block;
        width: 90%;
        margin: 0 auto 15px auto;
        text-align: center;
        box-sizing: border-box;
    }

    h1 {
        font-size: 2rem;
    }

    .hero-texto .btn + .btn {
        margin-left: auto;
        margin-right: auto;
        margin-top: 15px;
    }
}

@media (max-width: 600px) {
    .header-simple {
        padding: 15px 11px !important;
    }

    .header-simple h2 {
        font-size: 18px;
    }

    .btn-volver {
        font-size: 12px;
        padding: 6px 10px;
    }

    .login-contenedor {
        flex: 1 !important;
        align-items: flex-start !important;
        padding-top: 100px !important;
    }

    .login-contenedor .auth-card {
        padding: 28px 20px;
    }

    .user-session-container {
        gap: 6px;
    }

    .user-welcome {
        max-width: 85px;
        font-size: 0.8rem;
    }

    .nav-login-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .user-welcome {
        max-width: 80px;
        font-size: 0.75rem;
    }
}

/*=============================================================================================================================*/
/*==========================================================     Maximos     ==================================================*/
@media (min-width: 901px) {
    html {
        font-size: 16px;
        overflow-x: hidden;
    }

    body {
        max-width: 1440px;
        margin: 0 auto;
        position: relative;
    }

    header {
        max-width: 1440px;
        margin: 0 auto;
    }
}

/*=====================================================================================================================================================*/
/*============================================================== BOTÓN INICIAR SESIÓN (MENÚ) ==========================================================*/
.nav-login-btn {
    text-decoration: none;
    background-color: #238636 !important;    
    color: #ffffff !important;    
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 6px !important;  
    padding: 8px 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    -webkit-text-stroke: 0px transparent !important;
    text-shadow: none !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;

    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nav-login-btn:hover {
    background-color: #2ea043 !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color:#ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 160, 67, 0.3) !important;
}

.nav-login-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/*============================================================== PÁGINAS LOGIN Y REGISTRO ==========================================================*/
.pagina-login {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--fondo-principal);
}

.header-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
}

.header-simple h2 {
    margin: 0;
    color: var(--acento);
    letter-spacing: 2px;
    font-size: 22px;
}

.login-logo {
    text-decoration: none;
}

.btn-volver {
    color: var(--texto-secundario);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--borde);
    border-radius: 8px;
    transition: all 0.2s ease;
    -webkit-text-stroke: 0px transparent !important;
}

.btn-volver:hover {
    color: #ffffff;
    border-color: var(--acento);
    background-color: rgba(184, 108, 255, 0.1);
    transform: translateX(-2px);
}

.login-contenedor {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-contenedor .auth-card {
    width: 100%;
    max-width: 420px;
    padding: 25px 32px;
    background-color: var(--tarjeta);
    border: 1px solid var(--borde);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6),
                0 0 25px rgba(184, 108, 255, 0.12);
    text-align: center;
}

.login-contenedor .auth-card h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 28px;
    color: var(--texto);
    -webkit-text-stroke: 0px transparent !important;
}

.login-contenedor .auth-card p {
    color: var(--texto-secundario);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}   

.login-contenedor .form-grupo {
    text-align: left;
    margin-bottom: 14px;
}

.login-contenedor .form-grupo label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--texto-secundario);
    margin-bottom: 8px;
    -webkit-text-stroke: 0px transparent !important;
}

.login-contenedor .form-grupo input {
    width: 100%;
    padding: 10px 14px;
    background-color: #0b0813;
    border: 1px solid var(--borde);
    border-radius: 8px;
    color: var(--texto);
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.login-contenedor .form-grupo input:focus {
    border-color: var(--acento);
    box-shadow: 0 0 12px rgba(184, 108, 255, 0.3);
}

/* BOTON DE FORMULARIO INGRESAR Y REGISTRARSE */
.login-contenedor .btn-login {
    width: 100%;
    margin-top: 10px;
    padding: 13px 20px;
    background-color: #238636 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    -webkit-text-stroke: 0px transparent !important;
    text-shadow: none !important;
    box-shadow: 0 4px 12px rgba(35, 134, 54, 0.25);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.login-contenedor .btn-login:hover {
    background-color: #2ea043 !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 160, 67, 0.4);
}

.login-contenedor .btn-login:active {
    transform: translateY(0);
    box-shadow: none !important;
}

.login-contenedor .auth-footer {
    margin-top: 22px;
    font-size: 13.5px;
    color: var(--texto-secundario);
}

.login-contenedor .auth-footer a {
    color: var(--acento) !important;
    text-decoration: none;
    font-weight: 700;
    -webkit-text-stroke: 0px transparent !important;
    transition: color 0.2s ease;
}

.login-contenedor .auth-footer a:hover {
    color: #d2a8ff !important;
    text-decoration: underline;
}

/*=========================================================== ANIMACIONES PAGINAS ===========================================================*/
@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(4px); /* Sube 4px suavemente mientras aparece */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes confirmacionSuave {
    0% { transform: scale(0.96); }
    100% { transform: scale(1); }
}

/*=========================================================== ANIMACIONES ===========================================================*/
@keyframes pulsoCopiar {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 20px rgba(184, 108, 255, 0.7);
    }
    30% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(184, 108, 255, 0.3);
    }
}

@keyframes parpadeoCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/*=========================================================== ANIMACIONES SCROLL ==========================================================*/
.animacion-oculto {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.animacion-mostrar {
    opacity: 1;
    transform: translateY(0);
}