@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700;800;900&display=swap');

/* --- CONFIGURACIÓN GENERAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #0056b3; /* Azul corporativo sólido */
    --secondary-color: #28a745; /* Verde financiero / WhatsApp */
    --dark-color: #1a2530;
    --light-color: #f8f9fa;
    --text-color: #495057;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.6;
}

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

/* --- HEADER & NAVBAR --- */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

/* Aplicamos la fuente a h2 y a span al mismo tiempo con !important */
.logo h2,
.logo h2 span {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800;
    font-size: 2.2rem;
    white-space: nowrap;
    color: var(--primary-color); 
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 22px;
    white-space: nowrap;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

.btn-nav {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-nav:hover {
    background-color: #218838;
}

/* --- HERO SECTION CON TU IMAGEM LOCAL --- */
.hero {
    background: linear-gradient(rgba(26, 37, 48, 0.70), rgba(26, 37, 48, 0.80)), 
                url('banner.jpeg') no-repeat center 15%/cover;
    height: 72vh;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero-content {
    max-width: 780px; /* Ajusta según el ancho deseado */
    margin-left: 40px;
    text-align: left;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* --- ESTILO LLAMATIVO OPTIMIZADO PARA FONDO OSCURO/AZUL --- */
.highlight-text {
    /* Color blanco sólido brillante */
    color: #FFFFFF;
    font-weight: 900;
    
    /* Sombra profunda + aura plateada/blanca */
    text-shadow: 0 9px 35px rgba(0, 0, 0, 0.95), 0 0 20px rgba(255, 255, 255, 0.7);
    display: inline-block;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 14px 32px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-primary:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* --- SECCIÓN SERVICIOS (TARJETAS) --- */
.services {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: var(--light-color);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.card.featured {
    border-top: 4px solid var(--primary-color);
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.card.featured .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    padding: 2px 14px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 20px;
    text-transform: uppercase;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card.featured i {
    color: var(--primary-color);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* --- SECCIÓN BENEFICIOS --- */
.benefits {
    background-color: var(--light-color);
    padding: 80px 20px;
}

.benefits-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.benefits-text {
    flex: 1;
    min-width: 300px;
}

.benefits-text h2 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.benefits-text ul {
    list-style: none;
}

.benefits-text ul li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.benefits-text ul i {
    color: var(--primary-color);
    margin-right: 10px;
}

.benefits-stats {
    flex: 1;
    display: flex;
    gap: 20px;
    justify-content: center;
    min-width: 300px;
}

.stat-box {
    background: #fff;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex: 1;
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* --- SECCIÓN CLIENTES (NUEVA) --- */
.clients {
    padding: 80px 20px;
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
    margin-top: 30px;
}

.client-logo {
    width: 100%;
    max-width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.client-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* --- SECCIÓN CONTACTO OPTIMIZADA --- */
.contact {
    padding: 80px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-top: 25px;
    font-size: 1.1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.contact-cta-box {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    text-align: center;
}

.contact-cta-box i.wp-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-cta-box h3 {
    font-size: 1.6rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.contact-cta-box p {
    color: #6c757d;
    margin-bottom: 25px;
}

.btn-whatsapp-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background-color: var(--primary-color);
    color: #fff;
    padding: 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.btn-whatsapp-large:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* --- GLOBITO FLOTANTE DE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background-color 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
    color: #FFF;
}

/* --- FOOTER --- */
footer {
    background-color: var(--dark-color);
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}

/* --- 📱 CORRECCIÓN RESPONSIVA PARA MÓVILES --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px 10px;
    }
    
    nav {
        width: 100%;
    }

    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    nav ul li {
        margin-left: 0;
        margin: 0 8px;
    }

    nav ul li a {
        font-size: 0.95rem;
    }

    .btn-nav {
        padding: 6px 14px;
    }

    .hero {
        height: auto;
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .contact {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* --- SECCIÓN ALIADOS ESTRATÉGICOS (MARQUESINA ANIMADA) --- */

.partners {
    padding: 60px 0;
    background-color: rgb(54, 100, 142);
    color: #ffffff;
    overflow: hidden;
    border-bottom: 1px solid #e9ecef;
}

.partners .section-title h2,
.partners .section-title p {
    color: #ffffff;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 30px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 50px;
    animation: scrollRight 20s linear infinite;
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

.partner-logo {
    width: 220px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0%);
    }
}