/* ARREGLO SAFARI: Forzar modo oscuro en UI del navegador */
:root {
    color-scheme: dark;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Arreglo para Safari (franjas blancas) */
html {
    background-color: #0a0a0a;
    scroll-padding-top: 20px;
    height: 100%; /* Asegurar altura completa */
    overscroll-behavior-y: none; /* Evitar rebote */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #000000; /* Fallback más oscuro */
    color: #e8e8e8;
    position: relative;
    min-height: 100vh; /* Asegurar altura mínima */
}

/* ============================================
    NUEVO FONDO (PARTICLES.JS) - CORREGIDO
============================================ */

#particles-js {
    position: fixed; /* Lo deja fijo en el fondo */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1; /* Detrás del contenido */
    /* MODIFICADO: Fondo más oscuro */
    background: linear-gradient(180deg, #000000 0%, #080808 100%);
}

/* Hero */
.hero {
    /* MODIFICADO: Restaurado position relative y z-index para visibilidad */
    position: relative;
    z-index: 10; 
    min-height: 100vh;
    display: flex; 
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%; 
}

.hero-content {
    max-width: 900px;
    /* Ya no necesita position relative aquí */
}

.greeting {
    font-size: 20px;
    color: #a8a8a8;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
    font-weight: 300;
}

/* Gradiente plateado más oscuro */
.hero h1 {
    font-size: 80px;
    font-weight: 600;
    margin-bottom: 30px;
    background: linear-gradient(120deg, #e0e0e0 20%, #a8a8a8 40%, #d8d8d8 50%, #a8a8a8 60%, #e0e0e0 80%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 1s ease 0.2s backwards, silverShine 5s ease-in-out infinite;
    line-height: 1.1;
    letter-spacing: -2px;
    text-shadow: 0 0 30px rgba(170, 170, 170, 0.3); /* Sombra acorde */
}

@keyframes silverShine {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%; 
    }
}

.hero p {
    font-size: 20px;
    color: #b4b4b4;
    margin-bottom: 50px;
    line-height: 1.8;
    animation: fadeInDown 1s ease 0.4s backwards;
    font-weight: 300;
}

.disclaimer-note {
    font-size: 16px;
    color: #9a9a9a;
    margin-bottom: 40px;
    font-style: italic;
    animation: fadeInDown 1s ease 0.5s backwards;
    font-weight: 300;
}

/* Efecto cristal VISIBLE en botones secundarios */
.cta-button {
    display: inline-block;
    padding: 16px 40px;
    color: #e8e8e8;
    text-decoration: none;
    border-radius: 980px;
    font-weight: 400;
    font-size: 16px;
    transition: all 0.3s;
    animation: fadeInUp 1s ease 0.6s backwards;
    margin: 0 8px;
    cursor: pointer; 
    
    background: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%); 
    
    transform: translateZ(0);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.15); 
    transform: translateY(-2px) translateZ(0); /* Mantener aceleración */
    border-color: rgba(255, 255, 255, 0.3);
}

/* Gradiente plateado más oscuro (sin efecto cristal) */
.cta-primary {
    background: linear-gradient(120deg, #e0e0e0 20%, #a8a8a8 40%, #d8d8d8 50%, #a8a8a8 60%, #e0e0e0 80%);
    background-size: 300% 300%;
    color: #0a0a0a; 
    border: none;
    font-weight: 500;
    animation: fadeInUp 1s ease 0.6s backwards, silverShine 5s ease-in-out infinite;
    -webkit-backdrop-filter: none; 
    backdrop-filter: none; 
}

.cta-primary:hover {
    background: linear-gradient(120deg, #e0e0e0 20%, #a8a8a8 40%, #d8d8d8 50%, #a8a8a8 60%, #e0e0e0 80%);
    background-size: 300% 300%;
    background-position: 80% 50%; 
    box-shadow: 0 10px 30px rgba(170, 170, 170, 0.3); 
    color: #000000;
    border: none; 
}

/* Features */
.features {
    /* MODIFICADO: Restaurado position relative y z-index */
    position: relative;
    z-index: 10;
    padding: 120px 5%;
    background: transparent; 
    display: block; 
}

.section-title {
    text-align: center;
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: -1px;
    /* Ya no necesita position relative aquí */
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #b4b4b4;
    margin-bottom: 80px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    /* Ya no necesita position relative aquí */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Efecto Cristal VISIBLE */
.feature-card {
    -webkit-backdrop-filter: blur(40px) saturate(160%);
    backdrop-filter: blur(40px) saturate(160%); 
    
    background: rgba(255, 255, 255, 0.08); 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    box-shadow: none; 
    
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; 
    overflow: hidden;

    transform: translateZ(0);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(192, 192, 192, 0.1) 50%,
        transparent 70%
    );
    animation: cardShine 6s linear infinite;
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover::before {
    opacity: 1;
}

@keyframes cardShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.feature-card:hover {
    transform: translateY(-8px) translateZ(0); 
    border-color: rgba(255, 255, 255, 0.25); 
    background: rgba(255, 255, 255, 0.12); 
    box-shadow: none;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
    filter: grayscale(30%);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 500;
}

.feature-card p {
    color: #b4b4b4;
    line-height: 1.7;
    font-size: 15px;
    font-weight: 300;
}

/* Versions */
.versions {
    /* MODIFICADO: Restaurado position relative y z-index */
    position: relative;
    z-index: 10;
    padding: 60px 5%;
    display: block; 
}

.versions-header {
    text-align: center;
    margin-bottom: 40px;
    /* Ya no necesita position relative aquí */
}

.versions-header h2 {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 500;
}

.versions-header p {
    color: #b4b4b4;
    font-size: 15px;
    font-weight: 300;
}

.versions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

/* Efecto Cristal VISIBLE */
.version-card {
    -webkit-backdrop-filter: blur(40px) saturate(160%);
    backdrop-filter: blur(40px) saturate(160%);
    
    background: rgba(255, 255, 255, 0.08); 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    box-shadow: none;

    border-radius: 20px;
    padding: 30px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; 
    overflow: hidden;

    transform: translateZ(0);
}

.version-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(192, 192, 192, 0.1),
        transparent
    );
    transition: left 0.6s;
}

.version-card:hover::after {
    left: 100%;
}

.version-card:hover {
    transform: translateY(-5px) translateZ(0); 
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.version-badge {
    display: none;
}

.version-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 500;
}

.version-features {
    list-style: none;
    margin: 0;
    text-align: left;
}

.version-features li {
    padding: 8px 0;
    color: #b4b4b4;
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    font-weight: 300;
}

.version-features li::before {
    content: '•';
    color: #a8a8a8;
    font-weight: bold;
    margin-right: 12px;
    font-size: 18px;
}

/* About (Transparencia) */
.about {
    /* MODIFICADO: Restaurado position relative y z-index */
    position: relative;
    z-index: 10;
    padding: 120px 5%;
    background: transparent; 
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    /* Ya no necesita position relative aquí */
}

.about-content h3 {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 20px;
    margin-top: 40px;
    font-weight: 500;
}

.about-content h3:first-of-type {
    margin-top: 0;
}

.about-content p {
    color: #b4b4b4;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 300;
}

/* ============================================
   INICIO DE CAMBIOS - Arreglo de Listas 
============================================ */

/*
  Esta regla arregla las listas que NO son la de Privacidad
  (ej. "Términos de Uso de Servicios de Terceros")
*/
.about-content ul {
    list-style: none;
    margin: 20px 0;
    padding-left: 0; /* Asegurar que no haya padding de lista */
}

.about-content li {
    color: #b4b4b4;
    padding: 8px 0;
    
    position: relative; /* Añadido para posicionar la viñeta */
    padding-left: 20px; /* Espacio para la viñeta */

    line-height: 1.7;
    font-weight: 300;
}

.about-content li::before {
    content: '•';
    color: #a8a8a8;
    font-size: 18px;
    
    position: absolute; /* Posicionamiento absoluto */
    left: 0;
    top: 8px; /* Ajuste vertical (coincide con el padding-top del li) */
}

/* ============================================
   FIN DE CAMBIOS - Arreglo de Listas 
============================================ */


.about-content a {
    color: #c0c0c0;
    text-decoration: none;
    transition: opacity 0.3s;
    border-bottom: 1px solid rgba(192, 192, 192, 0.3);
}

.about-content a:hover {
    opacity: 0.7;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.tech-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    color: #b4b4b4;
    font-size: 13px;
    font-weight: 300;
}


/* ============================================
   INICIO DE CAMBIOS - Caja de Aviso 
============================================ */

/* Efecto Cristal quitado a petición tuya en el chat anterior
  para que no sea un "cuadro feo" 
*/
.disclaimer-box {
    /* Se quitó -webkit-backdrop-filter y backdrop-filter */
    
    background: transparent; /* Fondo transparente */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Borde sutil */
    box-shadow: none;
    
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;

    transform: translateZ(0);
}

/* ============================================
   FIN DE CAMBIOS - Caja de Aviso 
============================================ */

.disclaimer-box h4 {
    color: #e8e8e8;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 500;
}

.disclaimer-box p {
    color: #b4b4b4;
    font-weight: 300;
}

/* Footer */
footer {
    position: relative;
    z-index: 10; 
    padding: 60px 5%;
    text-align: center;
    color: #b4b4b4;
    
    -webkit-backdrop-filter: blur(40px) saturate(160%);
    backdrop-filter: blur(40px) saturate(160%);
    background: rgba(255, 255, 255, 0.05); 
    border-top: 1px solid rgba(255, 255, 255, 0.15); 

    transform: translateZ(0);
}

footer p {
    margin: 10px 0;
    font-size: 14px;
    font-weight: 300;
}

/* Estilo para enlace en footer (con cursor) */
footer a {
    color: #c0c0c0;
    text-decoration: none;
    border-bottom: 1px solid rgba(192, 192, 192, 0.3);
    transition: opacity 0.3s;
    cursor: pointer; 
}

footer a:hover {
    opacity: 0.7;
}


/* Animaciones base */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 48px;
    }

    .section-title {
        font-size: 36px;
    }

    .versions-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-button {
        display: block;
        margin: 10px auto;
    }
    
    .tech-list {
        flex-direction: column; 
        align-items: stretch; 
        gap: 10px; 
    }

    .tech-item {
        text-align: center; 
    }
    
    /* Ajuste para padding en cajas de cristal en móvil */
    .feature-card,
    .version-card,
    .disclaimer-box {
        padding: 20px;
    }
}

/* ============================================
Reglas de JS para Pestañas
============================================
*/

/* *** ELIMINADO *** (Todas las reglas de .showing-terminos y display:none han sido eliminadas) */