:root {
    --azul-bancario: #0a2a5b;
    --azul-brillante: #1e4f9a;
    --azul-electrico: #0056b3;
    --blanco: #ffffff;
    --gris-suave: #f8fafc;
    --oro: #ffc107;
    --oro-dark: #D4AF37;
    --verde-whatsapp: #25D366;
    --verde-exito: #2ecc71;
    --rojo-urgencia: #ff4757;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--blanco); overflow-x: hidden; }

/* ========== ANIMACIONES GLOBALES ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-border {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
}
@keyframes pulse-whatsapp { 
    0%,100% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); } 
    50% { box-shadow: 0 4px 25px rgba(37,211,102,0.8); } 
}
@keyframes blink-urgency {
    0%, 100% { opacity: 1; background: var(--rojo-urgencia); }
    50% { opacity: 0.8; background: #ff6b81; }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-100px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes checkPop {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    80% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* ========== ANIMACIONES DE ENTRADA ========== */
.hero, .targets-container, .calculator-section, 
.testimonials-section, .benefits-section, .faq-section {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}
.targets-container { animation-delay: 0.1s; }
.calculator-section { animation-delay: 0.2s; }
.testimonials-section { animation-delay: 0.3s; }
.benefits-section { animation-delay: 0.4s; }
.faq-section { animation-delay: 0.5s; }

/* ========== WHATSAPP FLOTANTE ========== */
.whatsapp-float {
    position: fixed; bottom: 20px; right: 20px; z-index: 1000;
    background: linear-gradient(135deg, #075E54, #128C7E);
    width: 65px; height: 65px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; color: white; text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3); transition: all 0.3s;
    animation: pulse-whatsapp 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-tooltip {
    position: absolute; right: 75px; background: #333; color: white;
    padding: 5px 12px; border-radius: 20px; font-size: 0.75rem;
    white-space: nowrap; opacity: 0; transition: 0.3s; pointer-events: none;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* ========== NAVBAR ========== */
.navbar {
    background: var(--azul-bancario);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 70px;
}
.logo {
    color: white;
    font-weight: 900;
    font-size: 1.5rem;
    z-index: 1001;
}
.menu-icon {
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1001;
}
.menu-icon:hover { background: rgba(255, 255, 255, 0.1); }
.menu-icon svg { display: block; width: 28px; height: 28px; }
.menu-icon.active svg path { stroke: var(--oro); }
.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    transition: all 0.4s ease;
}
.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
    padding: 8px 0;
}
.nav-links a:hover { color: var(--oro); }
.btn-empleo {
    background: var(--azul-electrico);
    padding: 8px 20px;
    border-radius: 50px;
}
.btn-empleo:hover { background: var(--oro); color: var(--azul-bancario) !important; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .menu-icon { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, var(--azul-bancario), #0d355c);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        transition: right 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0,0,0,0.3);
        padding: 80px 20px 40px;
    }
    .nav-links.show { right: 0; }
    .nav-links a { font-size: 1.1rem; padding: 12px 20px; width: 100%; text-align: center; border-radius: 50px; }
    .nav-links a:hover { background: rgba(212, 175, 55, 0.2); transform: translateX(-5px); }
    .btn-empleo { background: var(--oro); color: var(--azul-bancario) !important; margin-top: 10px; }
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    .menu-overlay.show { opacity: 1; visibility: visible; }
}

/* ========== HERO ========== */
.hero { padding: 130px 5% 60px; text-align: center; background: radial-gradient(circle at center, var(--azul-brillante) 0%, var(--azul-bancario) 100%); color: white; }
.hero-badge { background: var(--oro); color: var(--azul-bancario); display: inline-block; padding: 5px 20px; border-radius: 50px; font-size: 0.75rem; font-weight: bold; margin-bottom: 20px; animation: pulse-border 2s infinite; }
.hero h1 { font-size: 2.5rem; font-weight: 900; margin-bottom: 20px; }
.hero h1 .highlight { color: var(--oro); }
.hero-sub { font-size: 1.1rem; opacity: 0.9; margin-bottom: 30px; }
.trust-badges { display: flex; justify-content: center; gap: 30px; margin-bottom: 40px; flex-wrap: wrap; }
.trust-badges span { background: rgba(255,255,255,0.15); padding: 8px 20px; border-radius: 50px; font-size: 0.85rem; transition: 0.3s; }
.trust-badges span:hover { background: rgba(212,175,55,0.3); transform: translateY(-2px); }

/* ========== TARJETAS ========== */
.targets-container { display: flex; gap: 25px; flex-wrap: wrap; justify-content: center; max-width: 1200px; margin: 0 auto; }
.card { 
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px; cursor: pointer; transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    width: 300px; box-shadow: 0 15px 35px rgba(0,0,0,0.2); 
    overflow: hidden; margin-top: 20px;
    position: relative;
}
.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.card-header { width: 100%; height: 180px; overflow: hidden; position: relative; border-radius: 20px 20px 0 0; }
.card-header img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-header img { transform: scale(1.05); }
.card .badge { position: absolute; top: 15px; left: 15px; background: rgba(255,255,255,0.95); color: var(--azul-electrico); padding: 5px 15px; border-radius: 50px; font-size: 0.7rem; font-weight: 900; z-index: 10; }
.card-body { position: relative; padding: 25px 25px 30px; display: flex; flex-direction: column; }
.featured-badge { 
    background: linear-gradient(90deg, #D4AF37, #FFD700);
    color: #0a2a5b;
    font-weight: 900;
    padding: 6px 18px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(212,175,55,0.4);
    position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
    font-size: 0.7rem; white-space: nowrap;
}
.badge-policia { background: #2196F3; }
.badge-profesor { background: #4CAF50; }
.badge-pensionado { background: #FF9800; }
.card-body h2 { font-size: 1.3rem; margin-bottom: 10px; color: var(--azul-bancario); }
.card-body p { font-size: 0.85rem; line-height: 1.5; color: #4a5568; margin-bottom: 15px; }
.more-info { 
    color: var(--azul-electrico); font-weight: 700; font-size: 0.8rem; 
    text-align: center; margin-top: auto; position: relative; cursor: pointer;
}
.more-info::after {
    content: "🔥 Cupo limitado este mes";
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #0a2a5b;
    color: white;
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
}
.more-info:hover::after { opacity: 1; }

/* ========== TESTIMONIOS ========== */
.testimonials-section { padding: 60px 5%; background: var(--gris-suave); }
.testimonials-header { text-align: center; margin-bottom: 40px; }
.testimonials-header h2 { color: var(--azul-bancario); font-size: 2rem; margin-top: 15px; }
.testimonials-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; max-width: 1200px; margin: 0 auto; }
.testimonial-card { 
    background: white; padding: 25px; border-radius: 15px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: 0.3s;
    position: relative;
    border-left: 4px solid var(--oro-dark);
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.stars { color: var(--oro); margin-bottom: 15px; font-size: 1.1rem; }
.testimonial-card p { color: #4a5568; line-height: 1.6; margin-bottom: 15px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 15px; }
.testimonial-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #0a2a5b;
}
.testimonial-author strong { color: var(--azul-bancario); display: block; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.75rem; color: #7f8c8d; }
.verified-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #e8f5e9;
    color: var(--verde-exito);
    font-size: 0.6rem;
    padding: 3px 8px;
    border-radius: 50px;
}

/* ========== BENEFICIOS ========== */
.benefits-section { padding: 60px 5%; background: white; }
.benefits-header { text-align: center; margin-bottom: 40px; }
.benefits-header h2 { color: var(--azul-bancario); font-size: 2rem; margin-bottom: 10px; }
.benefits-header p { color: #64748b; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; max-width: 1000px; margin: 0 auto; }
.benefit-card { text-align: center; padding: 25px; background: var(--gris-suave); border-radius: 15px; transition: 0.3s; }
.benefit-card:hover { transform: translateY(-5px); background: var(--azul-bancario); color: white; }
.benefit-card strong { font-size: 2.5rem; display: block; margin-bottom: 15px; }
.benefit-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.benefit-card p { font-size: 0.85rem; opacity: 0.8; }

/* ========== CALCULADORA ========== */
.calculator-section { padding: 60px 5%; background: var(--gris-suave); display: flex; justify-content: center; }
.calculator-card { background: white; padding: 30px; border-radius: 25px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); max-width: 600px; width: 100%; text-align: center; }
.calculator-card h2 { color: var(--azul-bancario); margin-bottom: 10px; font-weight: 900; }
.calc-subtitle { color: #64748b; margin-bottom: 25px; font-size: 0.9rem; }
.input-wrapper { width: 100%; max-width: 280px; margin: 0 auto 25px; }
.input-wrapper label { display: block; font-weight: 700; color: var(--azul-brillante); margin-bottom: 10px; }
.currency-input { display: flex; align-items: center; border: 2px solid #e2e8f0; border-radius: 60px; padding: 8px 20px; background: white; transition: all 0.3s; }
.currency-input:focus-within { border-color: var(--oro-dark); box-shadow: 0 0 0 3px rgba(212,175,55,0.2); }
.currency-input span { font-weight: bold; font-size: 1.2rem; }
.currency-input input { border: none; background: transparent; padding: 12px; width: 100%; text-align: center; font-weight: bold; outline: none; font-size: 1rem; }
.table-container { overflow-x: auto; }
.premium-table { width: 100%; font-size: 0.8rem; border-collapse: collapse; }
.premium-table th, .premium-table td { padding: 12px 8px; text-align: center; border-bottom: 1px solid #e2e8f0; }
.premium-table tr { transition: all 0.2s; }
.premium-table tr:hover { background: rgba(212, 175, 55, 0.05); }
.premium-table tr:last-child { background: linear-gradient(90deg, rgba(212,175,55,0.05), rgba(212,175,55,0)); }
.res-val { color: var(--azul-electrico); font-weight: 900 !important; font-size: 1rem; transition: all 0.2s ease-out; }
.btn-cotizar { 
    background: linear-gradient(135deg, var(--verde-exito), #27ae60);
    color: white; border: none; padding: 14px 25px;
    border-radius: 60px; font-weight: 800; font-size: 1rem;
    cursor: pointer; transition: 0.3s; margin-top: 20px; width: 100%;
}
.btn-cotizar:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(46,204,113,0.5); }
.legal-footer { margin-top: 20px; padding-top: 15px; border-top: 1px solid #e2e8f0; }
.legal-footer p { font-size: 0.65rem; color: #9facbe; }

/* ========== FAQ ========== */
.faq-section { padding: 60px 5%; background: var(--gris-suave); display: flex; flex-direction: column; align-items: center; }
.faq-header { text-align: center; margin-bottom: 40px; }
.badge-blue { background: #eef4ff; color: var(--azul-electrico); padding: 5px 15px; border-radius: 50px; font-size: 0.7rem; font-weight: 900; display: inline-block; }
.faq-header h2 { color: var(--azul-bancario); margin: 15px 0 10px; font-size: 2rem; }
.faq-container { max-width: 850px; width: 100%; margin: 0 auto; }
.faq-card { background: white; border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 15px; overflow: hidden; transition: all 0.3s; }
.faq-card:hover { border-color: var(--oro-dark); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.faq-question { padding: 20px 25px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-question h3 { font-size: 1rem; color: var(--azul-bancario); font-weight: 700; }
.faq-icon { font-size: 1.5rem; color: var(--azul-electrico); font-weight: bold; transition: 0.3s; }
.faq-card.active .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.faq-card.active .faq-answer { max-height: 150px; }
.faq-answer p { padding: 0 25px 20px; color: #64748b; line-height: 1.6; }

/* ========== MODALES ========== */
.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.modal-content { background: white; padding: 30px; border-radius: 20px; width: 90%; max-width: 480px; position: relative; animation: fadeInUp 0.3s ease-out; }
.close { position: absolute; right: 20px; top: 10px; font-size: 2rem; cursor: pointer; color: #999; transition: 0.3s; }
.close:hover { color: var(--rojo-urgencia); transform: scale(1.1); }
.modal-content h2 { color: var(--azul-bancario); margin-bottom: 15px; }
.requisitos-box { background: #f0f7ff; padding: 15px; border-radius: 12px; margin: 15px 0; }
.requisitos-box ul { margin-left: 20px; color: #4a5568; font-size: 0.85rem; }
.requisitos-box li { margin: 5px 0; }
.formulario-box { margin: 20px 0; }
.formulario-box h3 { color: var(--azul-bancario); font-size: 0.9rem; margin-bottom: 15px; }
.formulario-box input { width: 100%; padding: 12px; margin-bottom: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 0.9rem; transition: 0.3s; }
.formulario-box input:focus { outline: none; border-color: var(--oro-dark); box-shadow: 0 0 0 3px rgba(212,175,55,0.2); }
.btn-enviar-modal {
    background: linear-gradient(135deg, #075E54, #128C7E);
    color: white; border: none; border-radius: 50px;
    padding: 12px 20px; font-size: 0.9rem; font-weight: 700;
    cursor: pointer; width: 100%; transition: all 0.3s ease;
    margin-top: 10px;
}
.btn-enviar-modal:hover { background: linear-gradient(135deg, #128C7E, #075E54); transform: translateY(-2px); }

/* ========== FOOTER ========== */
.main-footer { background: var(--azul-bancario); padding: 40px 5%; color: white; text-align: center; }
.contact-icons { display: flex; justify-content: center; gap: 30px; margin-bottom: 25px; }
.icon-circle { width: 60px; height: 60px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; transition: 0.3s; }
.icon-circle:hover { background: var(--azul-electrico); transform: translateY(-5px) rotate(360deg); }
.contact-link { text-decoration: none; color: white; font-size: 0.8rem; }
.copy { opacity: 0.7; font-size: 0.75rem; }

/* ========== RESPONSIVE AJUSTES ========== */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .trust-badges { gap: 10px; }
    .trust-badges span { font-size: 0.7rem; padding: 5px 12px; }
    .benefits-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .testimonials-container { grid-template-columns: 1fr; }
    .whatsapp-float { width: 55px; height: 55px; font-size: 1.8rem; }
    .more-info::after { display: none; }
}
@media (max-width: 480px) {
    .benefits-grid { grid-template-columns: 1fr; }
    .card { width: 100%; max-width: 320px; }
    .premium-table th, .premium-table td { font-size: 0.7rem; padding: 8px 3px; }
    .calculator-card { padding: 20px; }
    .hero h1 { font-size: 1.5rem; }
}