/* =========================================
   1. VARIABLES & CONFIGURACIÓN BASE
   ========================================= */
:root {
    /* COLORES CORPORATIVOS */
    --navy-deep: #0B1C33;    /* Azul Medianoche (Fondo Hero/Footer) */
    --navy-light: #1A3A5E;   /* Azul Secundario */
    --brand-red: #D32F2F;    /* Rojo Marca (Acentos/Botones) */
    --brand-red-hover: #B71C1C;
    
    /* COLORES NEUTROS */
    --white: #FFFFFF;
    --off-white: #F8FAFC;    
    --text-main: #334155;    /* Gris oscuro para texto normal */
    --text-light: #64748B;   /* Gris medio para textos secundarios */
    
    /* EFECTOS VISUALES */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 8px;           /* Bordes redondeados sutiles */
    
    /* TIPOGRAFÍA */
    --font-stack: 'Manrope', sans-serif;
}

/* RESETEO BÁSICO */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-stack);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* TIPOGRAFÍA GLOBAL */
h1, h2, h3, h4 { color: var(--navy-deep); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
a { text-decoration: none; transition: all 0.3s ease; }
img { width: 100%; height: auto; display: block; object-fit: cover; }
ul { list-style: none; }

/* UTILIDADES DE SECCIÓN */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }
.section { padding: 100px 0; position: relative; }

/* FONDO GRIS AZULADO */
.bg-light { background-color: #F0F2F5; } 

.bg-dark { background-color: var(--navy-deep); color: var(--white); }
.text-center { text-align: center; }

/* ENCABEZADOS DE SECCIÓN */
.section-header { text-align: center; margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
.section-header p { color: var(--text-light); font-size: 1.1rem; }
.divider { width: 60px; height: 4px; background: var(--brand-red); margin: 0 auto 20px auto; border-radius: 2px; }

/* =========================================
   2. NAVBAR (BARRA DE NAVEGACIÓN)
   ========================================= */
.navbar {
    background: var(--white);
    height: 90px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15); 
}

.nav-flex { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.brand img { height: 60px; width: auto; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link {
    color: var(--navy-deep);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

/* Efecto Hover en Menú */
.nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--brand-red); transition: 0.3s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--brand-red); }

.btn-nav {
    background: var(--navy-deep);
    color: var(--white) !important;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
}
.btn-nav:hover { background: var(--brand-red); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.mobile-toggle { display: none; font-size: 1.5rem; color: var(--navy-deep); cursor: pointer; }

/* =========================================
   3. HERO SECTION Y HEADER INTERNO
   ========================================= */
.hero {
    height: 85vh; 
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--navy-deep);
}

.page-header {
    height: 50vh;           
    min-height: 400px;      
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: -1px;       
}

.overlay-header {
    position: relative;
    z-index: 2;
    padding: 20px;
    background: rgba(0,0,0,0.3); 
    border-radius: 8px;
    backdrop-filter: blur(2px);
}

.overlay-header h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}
.overlay-header p {
    font-size: 1.2rem;
    color: #E2E8F0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(11, 28, 51, 0.85), rgba(11, 28, 51, 0.7)); 
    z-index: 1;
}

.hero-bg img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: overlay; opacity: 0.5; }

.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; margin: 0 auto; color: var(--white); }

.badge {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 24px;
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: #CBD5E1; 
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns { display: flex; gap: 15px; justify-content: center; }

.btn-primary {
    background: var(--brand-red);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.4);
}
.btn-primary:hover { background: var(--brand-red-hover); transform: translateY(-3px); }

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 700;
    transition: 0.3s;
}
.btn-outline:hover { background: var(--white); color: var(--navy-deep); border-color: var(--white); }

/* =========================================
   4. SISTEMA DE COLUMNAS & CARDS
   ========================================= */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

/* Tarjetas de Servicios */
.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
    transition: all 0.4s ease;
}
.card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }

/* AQUÍ ESTÁ EL CAMBIO (De 260px a 320px) */
.card-img { 
    height: 320px; /* <--- ESTO ES LO QUE CAMBIA EL TAMAÑO */
    overflow: hidden; 
    position: relative; 
}

.card-img img { transition: transform 0.6s ease; width: 100%; height: 100%; object-fit: cover; }
.card:hover .card-img img { transform: scale(1.1); }

.card-body { padding: 32px; }
.card-body h3 { font-size: 1.35rem; margin-bottom: 12px; }
.card-body p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 20px; }

.link-more { color: var(--brand-red); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; display: flex; align-items: center; gap: 5px; }
.link-more:hover { gap: 10px; }

/* Imagen con Marco Decorativo */
.image-wrapper { position: relative; padding: 20px; }
.img-frame { position: relative; z-index: 2; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }

.img-frame::before {
    content: ''; position: absolute; top: -20px; left: -20px;
    width: 100px; height: 100px;
    border-top: 5px solid var(--brand-red);
    border-left: 5px solid var(--brand-red);
    z-index: 1;
}

/* =========================================
   5. DETALLES: TEXTOS Y LISTAS
   ========================================= */
.subtitle { color: var(--brand-red); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; display: block; margin-bottom: 15px; }

.check-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-main);
}
.check-list i { color: var(--brand-red); font-size: 1.1rem; }

.link-arrow { color: var(--navy-deep); font-weight: 800; display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 0.95rem; border-bottom: 2px solid var(--brand-red); padding-bottom: 2px; }
.link-arrow:hover { gap: 15px; color: var(--brand-red); }

/* Estadísticas */
.stats-row { display: flex; gap: 40px; margin-top: 30px; border-top: 1px solid #E2E8F0; padding-top: 30px; }
.stat-number { font-size: 2.5rem; color: var(--brand-red); line-height: 1; margin-bottom: 5px; }
.stat-label { font-size: 0.9rem; color: var(--text-light); font-weight: 600; }

/* =========================================
   6. TESTIMONIOS (Diseño Oscuro)
   ========================================= */
.quote-icon { font-size: 3rem; color: var(--brand-red); margin-bottom: 30px; opacity: 0.3; }
.testimonial-text { font-size: 1.8rem; font-weight: 700; line-height: 1.4; color: var(--white); margin-bottom: 40px; font-style: italic; }

.testimonial-author { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.author-img {
    width: 200px; height: 200px; 
    border-radius: 50%;
    border: 4px solid var(--brand-red);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    object-fit: cover;
}
.author-role { color: #94A3B8; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* =========================================
   7. FOOTER A1
   ========================================= */
footer { background: var(--navy-deep); color: #94A3B8; padding: 80px 0 30px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; margin-bottom: 60px; }

.footer-logo-small { width: 60px; border-radius: 8px; margin-bottom: 20px; }
.footer-desc { margin-bottom: 25px; line-height: 1.7; }
.footer h4 { color: var(--white); margin-bottom: 25px; font-size: 1.1rem; }

.contact-list li { display: flex; gap: 15px; margin-bottom: 20px; }
.contact-list i { color: var(--brand-red); font-size: 1.2rem; margin-top: 4px; }
.contact-list span { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.7; margin-bottom: 2px; }
.contact-list a, .contact-list p { color: var(--white); font-weight: 600; font-size: 1rem; }

.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #94A3B8; transition: 0.3s; }
.footer-links a:hover { color: var(--brand-red); padding-left: 5px; }

.social-icons a { 
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; background: rgba(255,255,255,0.05);
    border-radius: 50%; color: var(--white); margin-right: 10px; transition: 0.3s; font-size: 1.1rem;
}
.social-icons a:hover { background: var(--brand-red); transform: translateY(-3px); }

.copyright { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; }

/* WhatsApp Flotante */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    background: #25D366; color: white;
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 2000; animation: pulse 2s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* =========================================
   8. ANIMACIONES Y RESPONSIVE
   ========================================= */
.fade-in, .reveal-left, .reveal-right { opacity: 0; transition: all 1s ease; }
.fade-in { transform: translateY(30px); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }

.visible { opacity: 1; transform: translate(0); }

/* MÓVIL (Max 900px) */
@media (max-width: 900px) {
    .navbar { height: 70px; }
    .nav-links { display: none; } 
    
    .nav-links.active {
        display: flex; flex-direction: column; position: absolute;
        top: 70px; left: 0; width: 100%; background: var(--white);
        padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-top: 1px solid #eee;
    }
    
    .mobile-toggle { display: block; }
    .hero h1 { font-size: 2.5rem; }
    .hero-btns { flex-direction: column; }
    .btn-primary, .btn-outline { width: 100%; justify-content: center; }
    
    .overlay-header h1 { font-size: 2rem; }
    .page-header { height: 40vh; min-height: 300px; }

    .grid-2, .grid-3, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .img-frame::before { display: none; } 
    .testimonial-text { font-size: 1.3rem; }
}

/* =========================================
   9. SECCIÓN MEDIOS DE PAGO Y RUC (COMPACTA)
   ========================================= */

/* Cuadrícula de tarjetas */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.payment-card {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 1px solid #E2E8F0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.payment-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-red);
}

/* Logos para JPG (con truco de transparencia) */
.payment-logo {
    height: 35px; /* Altura compacta */
    width: auto;
    object-fit: contain;
    margin: 0 auto 15px auto;
    display: block;
    mix-blend-mode: multiply; /* TRUCO: Hace transparente el fondo blanco del JPG */
}

.payment-info { color: var(--text-main); font-size: 0.9rem; }

/* Líneas de cuenta */
.account-group {
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 8px;
    margin-bottom: 8px;
}
.account-group:last-child { border: none; padding: 0; margin: 0; }

.account-label {
    display: block;
    font-size: 0.7rem;
    color: #64748B;
    font-weight: 800;
    text-transform: uppercase;
}

.account-number {
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
    color: var(--navy-deep);
    font-weight: 700;
}

/* RUC EN EL FOOTER */
.ruc-text {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.2);
}

/* =========================================
   10. SECCIÓN MARCAS ALIADAS (Estilo JPG)
   ========================================= */
.brands-section {
    padding: 60px 0;
    /* El fondo blanco se maneja desde el HTML, pero por si acaso */
    background-color: #FFFFFF; 
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}

.brands-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 30px;
}

.brand-logo {
    height: 50px; 
    width: auto;
    object-fit: contain;
    
    /* EFECTOS PARA JPG */
    mix-blend-mode: multiply; 
    opacity: 0.6; 
    filter: grayscale(100%); 
    transition: all 0.3s ease;
    cursor: pointer;
}

.brand-logo:hover {
    opacity: 1; 
    filter: grayscale(0%);
    transform: scale(1.1);
}

@media (max-width: 600px) {
    .brands-grid { gap: 30px; }
    .brand-logo { height: 35px; }
}
/* =========================================
   11. MODIFICACIONES DE CONTRASTE (NUEVO)
   ========================================= */

/* Fondo Azul Oscuro para secciones */
.bg-navy-section {
    background-color: var(--navy-deep);
    color: var(--white);
    position: relative;
    z-index: 1;
}

/* Ajuste de textos dentro de la sección oscura */
.bg-navy-section h2 { color: var(--white); }
.bg-navy-section p { color: #CBD5E1; } /* Gris claro para leer bien */
.bg-navy-section .divider { background: var(--brand-red); }

/* Las tarjetas se mantienen blancas para que resalten */
.bg-navy-section .card {
    box-shadow: 0 15px 40px rgba(0,0,0,0.3); /* Sombra más fuerte */
}
.bg-navy-section .card h3 { color: var(--navy-deep); } /* Título tarjeta oscuro */
.bg-navy-section .card p { color: var(--text-light); } /* Texto tarjeta gris */

/* Fondo Gris más notable para Logística */
.bg-gray-bold {
    background-color: #E2E8F0; /* Un gris más oscurito que el anterior */
}