:root {
    --blue-accent: #1b30af; 
    --text-dark: #1a1a1a;
    --title-blue: #1f32ce;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --transition: all 0.3s ease;
    --primary: #00D4FF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }

/* CORRECCIÓN ANCHO PAGINA */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5;
    font-size: 16px;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.1; margin-bottom: 1rem; }
p { line-height: 1.6; margin-bottom: 1.5rem; font-size: 1rem; font-weight: 400; }
a { text-decoration: none; transition: var(--transition); }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }

/* --- 2. UTILIDADES --- */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* MODIFICACIÓN ANCHO ESCRITORIO */
@media (min-width: 1200px) {
    .container {
        padding: 0 160px; 
        max-width: 1400px; 
    }
}

/* Botones */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 30px; border-radius: 999px;
    font-weight: 600; cursor: pointer; border: none; gap: 8px; font-size: 0.9rem;
    transition: var(--transition);
}
.btn-primary {
    background: var(--title-blue); 
    color: #fff;
    box-shadow: 0 4px 15px rgba(31, 50, 206, 0.3);
}
.btn-primary:hover { 
    background: var(--blue-accent);
    box-shadow: 0 6px 20px rgba(31, 50, 206, 0.5); transform: translateY(-2px); 
}

header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 15px 0;
    background: #ffffff; 
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}
header.scrolled { padding: 10px 0; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }

.logo-img { 
    height: 72px; 
    width: auto; object-fit: contain; transition: 0.3s;
    filter: none; 
}

.desktop-menu { display: none; align-items: center; flex-grow: 1; margin-left: 40px; justify-content: space-between; }
.nav-links-group { display: flex; gap: 0; flex-grow: 1; justify-content: space-evenly; padding: 0 40px; }

.nav-link { 
    color: var(--text-dark); 
    font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; 
    transition: color 0.3s ease; 
}
.nav-link:hover { color: var(--blue-accent); }

.mobile-toggle { font-size: 1.5rem; color: #333; cursor: pointer; transition: 0.3s; }

.mobile-menu-overlay {
    position: fixed; top: 0; right: -100%; width: 85%; max-width: 350px; height: 100vh;
    background: #111; z-index: 2000; padding: 80px 30px;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    display: flex; flex-direction: column; gap: 25px;
}
.mobile-menu-overlay.active { right: 0; }
.overlay-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6);
    z-index: 1999; opacity: 0; visibility: hidden; transition: 0.3s;
}
.overlay-backdrop.active { opacity: 1; visibility: visible; }
.mobile-link { color: #fff; font-size: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.mobile-close { position: absolute; top: 25px; right: 25px; font-size: 1.5rem; color: #fff; cursor: pointer; }

@media(min-width: 992px) { 
    .desktop-menu { display: flex; } 
    .mobile-toggle { display: none; } 
    .mobile-menu-overlay, .overlay-backdrop { display: none; }
}


/********* Footer **************/

/* --- FOOTER ACTUALIZADO 4 COLUMNAS --- */
.footer-section { padding: 60px 5% 30px; background: #050505; border-top: 1px solid #111; color: #fff; }
.footer-grid { display: grid; gap: 3rem; grid-template-columns: repeat(4, 1fr); }
.footer-links a { color: #888; font-size: 0.9rem; display: block; margin-bottom: 10px; transition: 0.3s; }
.footer-links a:hover { color: var(--primary); }
.footer-logo { height: 85px; width: auto; filter: none; }

.footer-grid > div:first-child p {
    text-align: justify !important;
}

/* Ajuste: Logo centrado + Texto alineado a la izquierda */
.footer-brand-col { text-align: center; }
.footer-brand-col p { text-align: left; }

.contact-info-item { display: flex; gap: 18px; color: #888; font-size: 0.9rem; margin-bottom: 12px; align-items: start; }
.contact-info-item i { color: #ffffff; }

.footer-legal-row { border-top: 1px solid #222; margin-top: 40px; padding-top: 20px; display: flex; justify-content: center; gap: 30px; }
.footer-legal-row a { color: #888; font-size: 0.85rem; transition: 0.3s; }
.footer-legal-row a:hover { color: var(--primary); }

@media (max-width: 992px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } .footer-legal-row { flex-direction: column; align-items: center; gap: 15px; } }

#back-to-top { position: fixed; right: 30px; bottom: 30px; width: 50px; height: 50px; border-radius: 50%; background: var(--primary); color: #000; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; opacity: 0; pointer-events: none; transition: 0.3s; z-index: 100; }
#back-to-top.show { opacity: 1; pointer-events: auto; }
#wsp-float { position: fixed; bottom: 95px; right: 30px; background: #25D366; color: #fff; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; z-index: 100; transition: 0.3s; }
