/* --- NEXUS: PROFESSIONAL DARK UI --- */
/* Designed for Stability, Contrast & Impact */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Identidad Nexus */
    --color-primary: #A8C7FA;   /* Azul Hielo */
    --color-accent: #C6A7FC;    /* Púrpura */
    --color-highlight: #F48FB1; /* Rosa Suave */
    
    /* Superficies */
    --bg-deep: #020202;         /* Negro casi absoluto */
    --bg-surface: rgba(255, 255, 255, 0.03);
    
    /* Textos */
    --text-white: #FFFFFF;
    --text-gray: #A3A3A3;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    /* Fondo radial sutil para dar volumen */
    background-image: radial-gradient(circle at 50% 30%, #0f1218 0%, #000000 70%);
}

/* Scroll bloqueado solo si es necesario por JS, 
   pero por CSS dejamos que fluya si la pantalla es muy pequeña */
body.no-scroll {
    overflow: hidden;
}
@media (max-height: 700px) {
    body.no-scroll { overflow-y: auto; }
}

/* --- FONDO ESTRELLADO (Sutil) --- */
.stars-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 50px 160px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 90px 40px, #ffffff, rgba(0,0,0,0));
    background-size: 200px 200px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

/* --- LAYOUT FLEXIBLE (Arregla el bug del footer) --- */
main {
    flex: 1; /* Ocupa todo el espacio disponible */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
    width: 100%;
}

.slogan-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* --- LOGO & LUZ --- */
.logo-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* La luz detrás del logo */
.logo-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(168, 199, 250, 0.3), rgba(198, 167, 252, 0.1) 60%, transparent 80%);
    filter: blur(40px);
    z-index: -1;
    animation: pulse-light 4s infinite alternate ease-in-out;
}

.nexus-logo-img {
    width: 100%;
    max-width: 500px; /* Tamaño controlado */
    height: auto;
    object-fit: contain;
    /* Animación de entrada */
    opacity: 0;
    transform: translateY(10px);
    animation: fade-in-up 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    /* Sombra sutil para despegarlo del fondo */
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    font-weight: 300;
    margin-bottom: 3.5rem;
    opacity: 0;
    animation: fade-in 0.8s ease forwards 0.3s;
}

/* --- BOTONES (Glass Style) --- */
.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    align-items: center;
    opacity: 0;
    animation: fade-in-up 0.8s ease forwards 0.5s;
}

@media (min-width: 768px) {
    .buttons-container {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
}

.btn {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%;
    max-width: 280px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) { .btn { width: auto; min-width: 200px; } }

/* Botón Primario (Ver Demo) */
.btn-primary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-primary); /* Borde azul al hover */
    box-shadow: 0 0 20px rgba(168, 199, 250, 0.15); /* Glow azul */
    transform: translateY(-2px);
}

.btn-primary i { color: var(--color-primary); }
.btn-primary:hover i { color: #fff; }

/* Botón Secundario (Docs) */
.btn-secondary {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-gray);
}

.btn-secondary:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* --- PLATAFORMAS --- */
.platforms {
    margin-top: 5rem;
    opacity: 0;
    animation: fade-in 1s ease forwards 0.8s;
}

.platforms h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #444;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.icons-grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.icon-item {
    font-size: 1.5rem;
    color: #333;
    transition: all 0.3s ease;
    cursor: default;
}

.icon-item:hover {
    color: var(--text-white);
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* --- FOOTER (Estable) --- */
footer {
    width: 100%;
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0,0,0,0.2);
    font-size: 0.85rem;
    color: #555;
    z-index: 2;
}

/* --- ANIMACIONES --- */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse-light {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.95); }
    100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); }
}

/* --- CURSORES --- */
body, a, button {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23A8C7FA" stroke-width="1.5"><circle cx="12" cy="12" r="6" stroke-opacity="0.8"/></svg>') 12 12, auto;
}
a:hover, button:hover, .btn:hover {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23A8C7FA" stroke="none"><circle cx="12" cy="12" r="4"/></svg>') 12 12, pointer;
}

/* --- MOBILE TWEAKS --- */
@media (max-width: 480px) {
    main { padding: 3rem 1.5rem; }
    .nexus-logo-img { max-width: 85%; }
    .subtitle { font-size: 1rem; margin-bottom: 2.5rem; }
    .platforms { margin-top: 4rem; }
}