/* --- Estilos Generales FinTech --- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0B132B;
    color: #E2E8F0;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Barra de Navegación --- */
header {
    background: rgba(11, 19, 43, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1E293B;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    overflow: visible; /* 🪄 Permite que el logo grande flote elegantemente sin romper la marquesina */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 10px 20px;
}

/* Grupo Izquierdo: Logo y WhatsApp */
.nav-left-group {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

/* Logo Agrandado con colores originales y camuflaje de bordes pixelados */
.logo-container {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 98px !important; 
    width: auto;
    object-fit: contain;
    /* Sombra azul oscura para ocultar el pixelado blanco y potenciar contraste */
    filter: drop-shadow(0px 0px 3px rgba(11, 19, 43, 0.9)) contrast(1.15) saturate(1.1);
}

/* Botón de WhatsApp en Azul Armónico */
.nav-whatsapp {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    color: #38BDF8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.nav-whatsapp:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38BDF8;
    transform: translateY(-2px);
}

.whatsapp-icon {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    fill: #38BDF8 !important;
    flex-shrink: 0;
}

/* Menús Centrales Centrados */
.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 0 20px;
    padding: 0;
    white-space: nowrap;
}

.nav-links li a {
    text-decoration: none;
    color: #94A3B8;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links li a:hover {
    color: #38BDF8;
}

.nav-btn {
    background: #0284C7;
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s;
}

.nav-btn:hover {
    background: #0369A1;
}

/* Eslogan a la Derecha */
.slogan-bar {
    font-size: 0.95rem;
    color: #38BDF8;
    font-weight: 600;
    font-style: italic;
    background: rgba(56, 189, 248, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    white-space: nowrap;
}

/* --- Sección Hero --- */
.hero {
    position: relative;
    background: linear-gradient(rgba(11, 19, 43, 0.35), rgba(11, 19, 43, 0.35)), url('Header_logo.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(1.1) contrast(1.05);
    padding: 130px 20px 110px 20px;
    text-align: center;
    border-bottom: 1px solid #1E293B;
    overflow: hidden;
}

.hero > * { filter: none; }

/* Láser Cyberpunk */
.hero::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.9), transparent);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.9);
    z-index: 2;
    animation: laserScan 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes laserScan {
    0% { top: -10%; }
    50% { top: 100%; }
    100% { top: 100%; }
}

/* Glow animado */
.hero-glow {
    position: absolute;
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 450px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.5) 0%, rgba(14, 165, 233, 0.2) 45%, transparent 75%);
    pointer-events: none;
    z-index: 1;
    animation: pulseGlow 3.5s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.7; transform: translateX(-50%) scale(0.95); }
    100% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    color: #FFFFFF;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.35rem;
    color: #38BDF8;
    font-weight: 600;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: left;
    margin-bottom: 40px;
}

.hero .feature-item {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    padding: 22px;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.1);
    transition: all 0.3s ease;
}

.hero .feature-item:hover {
    border-color: #38BDF8;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.3);
}

/* --- Botones --- */
.btn-primary {
    display: inline-block;
    background: #0EA5E9;
    color: white;
    padding: 12px 28px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #0284C7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

.full-width { width: 100%; }

/* --- Secciones Generales --- */
section { padding: 80px 20px; }
h2 { text-align: center; font-size: 2.2rem; color: #FFFFFF; margin-bottom: 40px; }
.section-desc { text-align: center; color: #94A3B8; max-width: 700px; margin: 0 auto 40px auto; }

/* --- Planes --- */
.plans-section { background-color: #0B132B; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 50px; }
.plan-card { background: #1C2541; padding: 25px; border-radius: 12px; border: 1px solid #3A506B; text-align: center; transition: transform 0.3s ease, border-color 0.3s ease; }
.plan-card:hover { transform: translateY(-5px); border-color: #38BDF8; }
.plan-card h3 { color: #38BDF8; margin-bottom: 10px; }
.plan-target { color: #94A3B8; font-size: 0.9rem; margin: 0; }
.service-scope { background: #1C2541; padding: 35px; border-radius: 12px; border: 1px solid #3A506B; max-width: 900px; margin: 0 auto; }
.service-scope h3 { color: #FFFFFF; margin-bottom: 20px; }
.service-scope ul { color: #94A3B8; padding-left: 20px; }
.service-scope li { margin-bottom: 12px; }

/* --- Soporte --- */
.support-section { background: #1C2541; border-top: 1px solid #3A506B; border-bottom: 1px solid #3A506B; }
.support-box { max-width: 800px; text-align: center; margin: 0 auto; }
.support-box p { color: #94A3B8; font-size: 1.05rem; margin-bottom: 25px; }
.contact-highlights span { background: #0B132B; padding: 10px 20px; border-radius: 8px; border: 1px solid #38BDF8; color: #38BDF8; font-size: 1.1rem; }

/* --- Servicios --- */
.services-section { background-color: #0B132B; }
.service-category { background: #1C2541; padding: 35px; border-radius: 12px; border: 1px solid #3A506B; margin-bottom: 30px; max-width: 950px; margin-left: auto; margin-right: auto; }
.service-category h3 { color: #38BDF8; font-size: 1.4rem; margin-bottom: 20px; }
.service-list { color: #94A3B8; padding-left: 20px; }
.service-list li { margin-bottom: 12px; }
.fiscal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; }
.fiscal-box { background: #0B132B; padding: 25px; border-radius: 8px; border: 1px solid #3A506B; }
.fiscal-box h4 { color: #FFFFFF; margin-top: 0; margin-bottom: 15px; }
.fiscal-box ul { color: #94A3B8; padding-left: 15px; font-size: 0.9rem; margin: 0; }
.fiscal-box li { margin-bottom: 10px; }
.badges-row { display: flex; flex-wrap: wrap; gap: 15px; }
.badge { background: #0B132B; color: #38BDF8; padding: 10px 20px; border-radius: 20px; border: 1px solid #38BDF8; font-weight: 500; }
.insurance-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.step { background: #0B132B; padding: 20px; border-radius: 8px; border: 1px solid #3A506B; }
.step h4 { color: #FFFFFF; margin-top: 0; }
.step p { color: #94A3B8; font-size: 0.9rem; margin-bottom: 0; }

/* --- Quiénes Somos --- */
.about-section { background-color: #1C2541; }
.about-card { background: #0B132B; padding: 30px; border-radius: 12px; border: 1px solid #3A506B; margin-bottom: 30px; }
.about-card h3 { color: #38BDF8; margin-top: 0; }
.about-card p { color: #94A3B8; margin-bottom: 0; }
.mission-vision-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 30px; }
.mv-box { background: #0B132B; padding: 30px; border-radius: 12px; border: 1px solid #3A506B; }
.mv-box h3 { color: #38BDF8; margin-top: 0; }
.mv-box p { color: #94A3B8; margin-bottom: 0; }
.values-box { background: #0B132B; padding: 30px; border-radius: 12px; border: 1px solid #3A506B; margin-bottom: 30px; text-align: center; }
.values-box h3 { color: #38BDF8; margin-top: 0; margin-bottom: 20px; }
.values-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.values-list span { background: #1C2541; color: #E2E8F0; padding: 8px 16px; border-radius: 6px; border: 1px solid #3A506B; font-weight: 500; }
.objectives-box { background: #0B132B; padding: 30px; border-radius: 12px; border: 1px solid #3A506B; }
.objectives-box h3 { color: #38BDF8; margin-top: 0; }
.objectives-box ul { color: #94A3B8; padding-left: 20px; margin-bottom: 0; }
.objectives-box li { margin-bottom: 10px; }

/* --- Cotizador y Contacto --- */
.quote-section, .contact-section { background-color: #0B132B; }
.quote-container, .contact-container { max-width: 700px; background: #1C2541; padding: 40px; border-radius: 12px; border: 1px solid #3A506B; margin: 0 auto; }
.quote-container p { color: #94A3B8; text-align: center; margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: #E2E8F0; font-size: 0.9rem; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; background: #0B132B; border: 1px solid #3A506B; border-radius: 6px; color: #FFFFFF; font-family: 'Inter', sans-serif; box-sizing: border-box; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #38BDF8; }
.contact-info { text-align: center; margin-bottom: 30px; background: #0B132B; padding: 20px; border-radius: 8px; border: 1px solid #3A506B; }
.contact-info p { color: #94A3B8; margin: 5px 0; }
.contact-info a { color: #38BDF8; text-decoration: none; }

/* --- Footer --- */
footer { background-color: #070C1B; color: #64748B; padding: 30px 20px; text-align: center; border-top: 1px solid #1E293B; font-size: 0.85rem; }


/* ==========================================================
   --- OPTIMIZACIÓN MÓVIL (iPhone / iOS) ---
   ========================================================== */
@media (max-width: 950px) { 
    
    header { position: relative !important; }
    
    nav {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 15px 10px;
    }

    /* Orden visual en móvil usando Flex order para conservar la estructura limpia */
    .nav-left-group { order: 1; flex-direction: column !important; justify-content: center; gap: 10px; width: 100%; white-space: normal; }
    .slogan-bar { order: 2; margin-bottom: 5px; white-space: normal; }
    .nav-links { order: 3; display: flex; flex-direction: row; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 12px; padding: 0; margin: 0; width: 100%; white-space: normal; flex: unset; }

    .brand-logo { height: 157px !important; }

    .nav-links li a { font-size: 0.9rem; padding: 4px 6px; }
    .nav-btn { padding: 6px 12px !important; }

    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    section { padding: 45px 12px !important; }

    .service-category, .plans-grid, .fiscal-grid, .insurance-steps, 
    .mission-vision-grid, .service-scope, .about-card, .mv-box, 
    .values-box, .objectives-box, .quote-container, .contact-container {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        padding: 22px 15px !important;
    }

    .fiscal-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .fiscal-box {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 20px 15px !important;
    }

    /* Caja de teléfono en iPhone SE */
    .contact-highlights span {
        display: block !important;
        width: 100%;
        box-sizing: border-box;
        font-size: 0.9rem;
        padding: 15px 10px;
        margin: 0 auto;
    }

    .contact-highlights span a {
        color: #38BDF8 !important;
        text-decoration: none !important;
        font-weight: bold;
    }
}
/* --- Caja Interactiva de Soporte a WhatsApp --- */
.support-wa-box {
    display: inline-block;
    background: #0B132B;
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid #38BDF8;
    color: #38BDF8;
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.2);
    transition: all 0.2s ease-in-out;
}

.support-wa-box:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38BDF8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
    color: #FFFFFF;
}