/* Importación de fuente moderna */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700;900&display=swap');

/* Reset y Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000; /* Fondo negro base */
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative; /* Necesario para el pseudo-elemento */
}

/* Pseudo-elemento para la imagen de fondo con superposición */
body::before {
    content: '';
    position: fixed; /* Fija la imagen al scroll de la ventana */
    top: 1rem; /* Alinea verticalmente con el logo del header */
    left: 5%; /* Alinea horizontalmente con el logo del header */
    width: 200px; /* Ancho estimado para que coincida con el logo del header */
    height: 100%;
    /* Ruta a tu imagen */
    background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('https://r.mtdv.me/predictv3_v3_fondo.png');
    background-size: contain; /* Mantiene la proporción de la imagen */
    background-position: left top; /* Posición inicial */
    background-repeat: no-repeat; /* Evita el mosaico */
    opacity: 0.02; /* Reduce la opacidad al 2% para un efecto muy sutil */
    z-index: -1; /* Coloca la imagen detrás del contenido */
    pointer-events: none; /* Asegura que la imagen no interfiera con los clics */
}

/* Estructura General */
header {
    background-color: #000000;
    border-bottom: 2px solid #00FF88;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

main {
    min-height: 80vh;
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

footer {
    background-color: #000000;
    border-top: 1px solid #333;
    padding: 2rem 5%;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* Navegación */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #00FF88;
}

/* Tipografía */
h1, h2, h3 {
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

h1 {
    font-size: 3rem;
    color: #00FF88;
}

h2 {
    font-size: 2rem;
    border-left: 4px solid #00FF88;
    padding-left: 1rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #CCCCCC;
    max-width: 700px;
}

/* Botones */
.btn {
    display: inline-block;
    background-color: #00FF88;
    color: #000000;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

/* Imágenes */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 2rem 0;
}

.logo {
    height: 50px;
    margin: 0;
}

/* Clases específicas para secciones */
.hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 6rem 0;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('img/fondo-inicio.png');
    background-size: cover;
    background-position: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: #111111;
    padding: 2rem;
    border: 1px solid #222;
    transition: border-color 0.3s ease;
}

.card:hover {
    border-color: #00FF88;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    /* Opcional: Ajustar la posición de la imagen de fondo en móvil */
    body::before {
        top: 0.5rem;
        left: 5%;
        width: 150px; /* Tamaño de logo móvil estimado */
    }
}
