/* --- 1. Variables y Reseteo --- */
:root {
    --primary-color: #FFC107;
    --background-color: #121212;
    --surface-color: #1E1E1E;
    --text-color: #E0E0E0;
    --text-secondary: #AAAAAA;
    --font-family: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color) !important;
    color: var(--text-color) !important;
    /* Oculta la página hasta que el preloader termine */
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

/* Fondo de superficie reutilizable */
.bg-dark-surface {
    background-color: var(--surface-color);
}

h1, h2, h3, h4, h5, h6 { color: #FFFFFF; font-weight: 600; }
p { color: var(--text-color); }
.text-primary { color: var(--primary-color) !important; }

/* --- 2. Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}
#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}
.preloader-logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    animation: pulsate 1.5s ease-in-out infinite;
}
.preloader-logo span {
    color: var(--primary-color);
}
@keyframes pulsate {
    0% { opacity: 0.5; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.5; transform: scale(0.95); }
}


/* --- 3. Overrides de Bootstrap y Botones --- */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #121212 !important;
    font-weight: 600;
    padding: 10px 24px;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: #ffd040 !important;
    border-color: #ffd040 !important;
    transform: translateY(-3px);
    /* Efecto "Glow" */
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.3);
}

.btn-outline-light {
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
    font-weight: 600;
    padding: 10px 24px;
    transition: all 0.3s ease;
}
.btn-outline-light:hover {
    background-color: #FFFFFF !important;
    color: #121212 !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

/* --- 4. Navbar --- */
.navbar {
    background-color: var(--surface-color) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFFFF !important;
    text-transform: uppercase;
}
.navbar-brand span { color: var(--primary-color); }
.nav-link { color: var(--text-color) !important; font-weight: 500; margin: 0 0.5rem; }
.nav-link.active, .nav-link:hover { color: var(--primary-color) !important; }
.nav-link.btn-contact { color: #121212 !important; padding: 8px 20px !important; border-radius: 50px; }
.nav-link.btn-contact:hover { color: #000 !important; }

/* --- 5. Hero Section (Partículas) --- */
.hero-section {
    min-height: 100vh;
    color: white;
    position: relative;
    overflow: hidden; /* Oculta partículas que se salgan */
}
/* El canvas de tsParticles se pondrá aquí */
#hero-particles {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; /* Detrás del contenido */
}
.hero-content {
    position: relative;
    z-index: 2; /* Encima de las partículas */
    padding: 20px; /* Asegura espacio */
}
.hero-slogan {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero-content h1 { font-weight: 700; }

/* --- 6. Secciones de Servicio --- */
.service-section { padding: 80px 0; }
.service-item { margin-bottom: 4rem; }
.service-item img {
    border-radius: 12px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}
.service-item h3 { color: var(--primary-color); margin-bottom: 1rem; }
.service-item h3 i { margin-right: 10px; }

/* --- 7. Nueva Sección "Proceso" --- */
.process-section {
    padding: 80px 0;
}
.process-step {
    background: var(--surface-color);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid #333;
    transition: all 0.3s ease;
    height: 100%; /* Para que todas las tarjetas midan lo mismo */
}
.process-step:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.process-step .step-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    background: rgba(255, 193, 7, 0.1);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
}
.process-step h4 {
    color: #FFFFFF;
    margin-bottom: 1rem;
}

/* --- 8. CTA Section --- */
.cta-section {
    background-color: var(--surface-color);
    padding: 80px 0;
    margin-top: 40px;
}

/* --- 9. Footer --- */
.main-footer {
    background-color: #000;
    padding-top: 20px;
    padding-bottom: 10px;
    color: var(--text-secondary);
    border-top: 1px solid #333;
}
.footer-left p { color: var(--text-secondary); margin: 0; font-size: 0.9rem; }
.footer-legal-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; }
.footer-legal-links a:hover { color: var(--primary-color); }
.footer-legal-links span { margin: 0 0.5rem; }
.social-links a { color: var(--text-secondary); font-size: 1.5rem; transition: color 0.3s ease; }
.social-links a:hover { color: var(--primary-color); }

/* --- 10. Responsivo --- */
@media (max-width: 768px) {
    .hero-slogan { font-size: 1rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .service-item { text-align: center; }
    .service-item img { margin-bottom: 1.5rem; }
    .footer-left { text-align: center; margin-bottom: 1rem; }
    .social-links { justify-content: center !important; }
    .process-step { margin-bottom: 1.5rem; }
}