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

:root {
    --deep-blue: #000033;
    --cyan: #003366;
    --light-blue: #00aaff;
    --text-color: #ffffff;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background-color: var(--deep-blue);
    color: var(--text-color);
    overflow-x: hidden; /* Previene el scroll horizontal */
}

/* =========== CABECERA (HERO SECTION) =========== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--deep-blue), var(--cyan));
    overflow: hidden;
}

#three-js-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    transition: transform 0.5s ease-out;
}

.logo-container {
    margin-bottom: 2rem;
}

.logo-text {
    font-size: 3rem;
    font-weight: bold;
    color: var(--light-blue);
    text-shadow: 0 0 15px var(--light-blue);
}

h1 {
    font-size: 3.5rem;
    margin: 0.5rem 0;
    text-shadow: 0 0 10px rgba(0, 170, 255, 0.5);
}

p {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
}

.status-message {
    margin-top: 2rem;
    display: inline-block;
    padding: 8px 15px;
    background: rgba(0, 51, 102, 0.5);
    border-radius: 20px;
    font-size: 0.9rem;
}

/* =========== SECCIÓN DE CARACTERÍSTICAS =========== */
.features-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 100px 50px;
    flex-wrap: wrap; 
}

.feature-card {
    background: rgba(0, 51, 102, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 170, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 170, 255, 0.2);
}

.icon-placeholder {
    font-size: 3.5rem; 
    margin-bottom: 1rem;
    transition: text-shadow 0.3s ease;
}

.feature-card:hover .icon-placeholder {
    text-shadow: 0 0 20px var(--light-blue);
    animation: float 1.5s ease-in-out infinite;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 400;
}

/* =========== PIE DE PÁGINA (FOOTER) =========== */
.footer-section {
    background-color: var(--deep-blue);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--cyan);
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.5rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.social-links a:hover {
    color: var(--light-blue);
    text-shadow: 0 0 10px var(--light-blue);
}

.footer-info {
    margin-top: 20px;
    opacity: 0.7;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* =========== RESPONSIVIDAD (SIN SCROLL EN MÓVIL) =========== */
@media (max-width: 768px) {
    /* 1. Prevenir el scroll en el body */
    body {
        overflow: hidden;
    }
    
    /* 2. Reposicionar el contenido principal para hacer espacio abajo */
    .hero-content {
        transform: translateY(-15vh); /* Sube el título para dar espacio a los elementos de abajo */
    }

    h1 {
        font-size: 2.5rem;
    }

    p {
        font-size: 1.2rem;
    }
    
    /* 3. Posicionar las características y el footer de forma absoluta en la parte inferior */
    .features-section, .footer-section {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 0;
        background: none; /* Quitamos fondos para que no se superpongan */
        border-top: none;
        z-index: 3;
    }

    /* 4. Compactar las tarjetas de características */
    .features-section {
        display: flex;
        flex-direction: row; /* Hacemos que vuelvan a ser horizontales */
        justify-content: center;
        align-items: center;
        gap: 10px;
        bottom: 80px; /* Las colocamos justo encima del footer */
        padding: 0 10px;
    }

    .feature-card {
        width: auto; /* Ancho automático para que se ajusten */
        padding: 10px;
        border-radius: 10px;
        background: rgba(0, 51, 102, 0.4);
    }
    
    .icon-placeholder {
        font-size: 1.8rem; /* Iconos mucho más pequeños */
        margin-bottom: 5px;
    }

    .feature-card h3 {
        font-size: 0.6rem; /* Texto muy pequeño */
        font-weight: 300;
        display: none; /* Opcional: ocultar el texto si no cabe bien */
    }

    /* 5. Compactar el footer */
    .footer-section {
        bottom: 10px; /* Lo dejamos en la parte más baja */
    }

    .social-links a {
        font-size: 1.2rem;
        margin: 0 10px;
    }
    
    .footer-info {
        display: none; /* Ocultamos la info de copyright para ahorrar espacio */
    }
}