:root {
    --primary: #002d5a;
    --accent: #f39200;
    --white: #ffffff;
    --bg-light: #f4f7f9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; color: var(--primary); background: var(--bg-light); overflow-x: hidden; }

/* --- FONDO DINÁMICO --- */
.bg-dynamic-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -5;
    background: #f0f4f8; overflow: hidden;
}
.bg-orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.22; animation: moveOrbs 25s infinite alternate ease-in-out; }
.orb-1 { width: 800px; height: 800px; background: var(--primary); top: -10%; left: -10%; }
.orb-2 { width: 600px; height: 600px; background: var(--accent); bottom: -10%; right: -5%; }
.orb-3 { width: 400px; height: 400px; background: #00a8e8; top: 40%; left: 40%; opacity: 0.1; }

@keyframes moveOrbs { 0% { transform: translate(0, 0); } 100% { transform: translate(50px, 30px); } }

.bg-grid { position: absolute; width: 100%; height: 100%; background-image: radial-gradient(rgba(0, 45, 90, 0.05) 1.5px, transparent 1.5px); background-size: 40px 40px; }

/* --- HEADER --- */
.navbar { position: fixed; top: 0; width: 100%; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); z-index: 2000; padding: 12px 0; box-shadow: 0 2px 20px rgba(0,0,0,0.05); }
.nav-container { width: 90%; max-width: 1200px; margin: auto; display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 900; font-size: 1.2rem; cursor: pointer; color: var(--primary); }
.logo span { color: var(--accent); }

/* Ajuste logo Footer */
.footer-logo { color: white !important; }

.nav-links { display: flex; list-style: none; align-items: center; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--primary); font-weight: 700; font-size: 0.8rem; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); }
.vota-btn { background: var(--accent); color: white !important; padding: 10px 20px; border-radius: 50px; text-transform: uppercase; font-size: 0.75rem !important; }

.mobile-menu-btn { display: none; background: none; border: none; color: var(--primary); font-size: 1.6rem; cursor: pointer; z-index: 2100; }

/* --- SECCIONES --- */
.section-padding { padding: 45px 15px; }
.header-group { text-align: center; margin-bottom: 25px; }
.hero-container, .content-wrapper { max-width: 850px; margin: 0 auto; border-radius: 20px; overflow: hidden; background: white; transition: 0.5s; box-shadow: 0 10px 40px rgba(0,0,0,0.08); }
.hero-banner, .optimized-img { width: 100%; display: block; }
.alt-bg { background: rgba(255,255,255,0.4) !important; backdrop-filter: blur(5px); border-radius: 40px; }
.section-title { font-size: 1.8rem; font-weight: 900; }
.accent-line { width: 45px; height: 4px; background: var(--accent); margin: 10px auto; border-radius: 5px; }
.subtitle { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 700; }

/* --- FOOTER --- */
.main-footer { background: var(--primary); color: white; padding: 50px 0 30px; margin-top: 40px; }
.footer-container { width: 90%; max-width: 1200px; margin: auto; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; gap: 20px; }

.brand-column { flex: 2; }
.links-column { flex: 1; text-align: right; }

.footer-tagline { margin-top: 10px; font-size: 0.9rem; opacity: 0.8; max-width: 300px; }
.social-icons-footer { display: flex; gap: 15px; margin-top: 15px; }
.social-icons-footer a { color: white; font-size: 1.3rem; transition: 0.3s; }
.social-icons-footer a:hover { color: var(--accent); transform: translateY(-3px); }

.links-column h4 { color: var(--accent); font-size: 0.9rem; margin-bottom: 15px; }
.footer-nav { list-style: none; }
.footer-nav a { color: white; text-decoration: none; opacity: 0.8; font-size: 0.85rem; line-height: 2; transition: 0.3s; }
.footer-nav a:hover { color: var(--accent); opacity: 1; }

.footer-bottom { text-align: center; margin-top: 20px; }
.footer-line { height: 1px; background: rgba(255,255,255,0.1); margin-bottom: 20px; }
.legal-text { font-size: 0.8rem; opacity: 0.7; }

/* --- MODAL QR --- */
.overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,45,90,0.96); z-index: 3000; justify-content: center; align-items: center; padding: 20px; }
.overlay.active { display: flex; }
.overlay-container { width: 100%; max-width: 500px; position: relative; }
.expanded-qr { width: 100%; border-radius: 20px; border: 6px solid var(--accent); background: white; padding: 15px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.close-overlay { position: absolute; top: -50px; right: 0; color: white; font-size: 45px; cursor: pointer; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .nav-links { position: fixed; top: 0; right: -100%; height: 100vh; width: 85%; background: var(--bg-light); flex-direction: column; justify-content: center; align-items: center; gap: 30px; transition: 0.5s; box-shadow: -10px 0 30px rgba(0,0,0,0.1); z-index: 2050; }
    .nav-links.active { right: 0; }
    .footer-grid { flex-direction: column; text-align: center; align-items: center; }
    .brand-column, .links-column { text-align: center; }
    .footer-tagline { margin: 10px auto; }
    .social-icons-footer { justify-content: center; }
}

.social-side-bar { position: fixed; right: 0; top: 60%; transform: translateY(-50%); width: 75px; background: white; padding: 10px; border-radius: 15px 0 0 15px; z-index: 1500; text-align: center; cursor: pointer; box-shadow: -5px 0 20px rgba(0,0,0,0.1); }
.qr-float { width: 100%; border-radius: 5px; }
.social-side-bar p { font-size: 0.5rem; font-weight: 900; color: var(--accent); margin-top: 5px; }
.progress-bar { position: fixed; top: 0; left: 0; height: 4px; background: var(--accent); z-index: 3000; width: 0%; transition: 0.1s; }
.reveal { opacity: 0; transform: translateY(20px); transition: 0.8s; }
.reveal.active { opacity: 1; transform: translateY(0); }