/*
style.css
*/
body, html {
    margin: 0; 
    padding: 0;
    background-color: #0f0f1b; 
    color: #e0e0ff;
    font-family: 'Segoe UI', system-ui, sans-serif;
    overflow-x: hidden;
}

#tsparticles { 
    position: fixed; 
    width: 100%; 
    height: 100%; 
    top: 0; 
    left: 0; 
    z-index: -1; 
}

/* Navbar FIJO y SIEMPRE VISIBLE */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1050 !important;
    background: rgba(15, 15, 30, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4) !important;
    padding: 0.8rem 0 !important;
}

.brand-text { 
    font-weight: 700; 
    color: #ffffff !important; 
    text-decoration: none !important; 
    font-size: 1.25rem; 
    display: inline-flex;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #4FC3F7 !important;
}

/* Compensar espacio del navbar fijo */
.hero-section { 
    padding: 140px 0 80px 0;
    text-align: center; 
    position: relative;
}

.card-stats {
    background: rgba(15, 15, 40, 0.7); 
    backdrop-filter: blur(10px);
    border-radius: 16px; 
    padding: 20px; 
    margin: 15px 0;
    border: 1px solid rgba(79, 195, 247, 0.3); 
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.card-stats:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(79, 195, 247, 0.3);
}

#nosotros, #contacto { 
    background: rgba(10, 10, 25, 0.8);
    padding: 80px 0;
}

.btn-primary {
    background: #4FC3F7;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #29b6f6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 195, 247, 0.4);
}

.form-control, .form-select {
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid rgba(79, 195, 247, 0.4);
    color: white;
}

.form-control::placeholder { 
    color: #aaa; 
}

footer {
    background: rgba(0, 0, 0, 0.4); 
    color: #a0a0d0; 
    padding: 20px 0; 
    margin-top: 60px;
    border-top: 1px solid rgba(79, 195, 247, 0.2);
}

/* Modal SIEMPRE centrado en pantalla (solución definitiva) */
.modal {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1100 !important;
    width: 100% !important;
    height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    outline: 0 !important;
}

.modal-dialog {
    position: relative !important;
    width: auto !important;
    margin: 1.75rem auto !important;
    pointer-events: none !important;
}

.modal-content {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    pointer-events: auto !important;
    background-color: rgba(30, 30, 50, 0.95) !important;
    background-clip: padding-box !important;
    border: 1px solid rgba(79, 195, 247, 0.3) !important;
    border-radius: 0.5rem !important;
    outline: 0 !important;
    backdrop-filter: blur(10px) !important;
}

.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1090 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #000 !important;
}

.modal-backdrop.show {
    opacity: 0.7 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0 60px 0;
    }
    #nosotros, #contacto {
        padding: 60px 0;
    }
    .modal-dialog {
        margin: 1rem auto !important;
    }
}