/* --- CONFIGURACIÓN GENERAL --- */
:root {
    --primary: #e74c3c; /* Rojo mexicano */
    --secondary: #f1c40f; /* Amarillo acento */
    --dark: #2c3e50;
    --light: #ecf0f1;
    --glass: rgba(255, 255, 255, 0.15); /* Efecto vidrio */
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden; /* Ocultamos el scroll nativo feo */
}

/* --- NAVEGACIÓN --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

.brand {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-links a:hover { opacity: 1; text-decoration: underline; }

/* --- CONTENEDOR SCROLL SNAP --- */
.contenedor-scroll {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.seccion {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* --- FONDO PARALLAX --- */
.fondo-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    filter: brightness(0.4); /* Oscurece la imagen para leer el texto */
    transform: scale(1.1); /* Zoom ligero para efecto */
}

/* --- TARJETA DE CRISTAL (GLASSMORPHISM) --- */
.contenido {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 700px;
    width: 90%;
    padding: 50px;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px); /* Desenfoque del fondo */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* --- TEXTOS --- */
h1 { font-size: 3.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
h2 { font-size: 2.5rem; font-weight: 300; margin-bottom: 10px; }
p { font-size: 1.2rem; line-height: 1.8; font-weight: 300; opacity: 0.9; }

.separador {
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: 10px auto 30px auto;
    border-radius: 2px;
}

.logo-principal {
    max-width: 200px;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.btn-scroll {
    display: inline-block;
    margin-top: 30px;
    color: white;
    text-decoration: none;
    border: 1px solid white;
    padding: 10px 30px;
    border-radius: 30px;
    transition: all 0.3s;
}

.btn-scroll:hover { background: white; color: black; }

/* --- FORMULARIO MODERNO --- */
.formulario-pro {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    text-align: left;
}

.input-group {
    position: relative;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 1rem;
    outline: none;
    border-radius: 5px 5px 0 0;
    transition: all 0.3s;
}

.input-group label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: rgba(255,255,255,0.6);
    pointer-events: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

/* Animación del input cuando se escribe */
.input-group input:focus, .input-group input:valid,
.input-group textarea:focus, .input-group textarea:valid {
    background: rgba(255,255,255,0.2);
    border-bottom-color: var(--primary);
}

.input-group input:focus ~ label, .input-group input:valid ~ label,
.input-group textarea:focus ~ label, .input-group textarea:valid ~ label {
    top: -10px;
    left: 0;
    font-size: 0.8rem;
    color: var(--secondary);
}

.btn-enviar {
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-enviar:hover { background: #c0392b; }

/* --- ANIMACIÓN DE ENTRADA --- */
.animate-up {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .contenido { padding: 30px; }
    .nav-links { display: none; } /* Ocultar menú en móvil para simplificar */
    .navbar { justify-content: center; }
}