/* ==========================================================================
   1. RESET, TIPOGRAFÍA Y VARIABLES GLOBALES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --brand-navy: #0f2b5c;
    --brand-blue: #2563eb;
    --brand-blue-hover: #1d4ed8;
    --brand-cyan: #0284c7;
    --brand-yellow: #f59e0b;
    --brand-light-bg: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --border-color: #e2e8f0;
    --shadow-subtle: 0 10px 30px -5px rgba(15, 43, 92, 0.08);
    --shadow-hover: 0 20px 35px -5px rgba(30, 64, 175, 0.15);
    --transition: all 0.25s ease-in-out;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff !important;
    color: var(--text-dark) !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}


/* ==========================================================================
   2. SISTEMA DE LAYOUT FLEXIBLE (REEMPLAZO NATIVO BOOTSTRAP)
   ========================================================================== */

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.row>* {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    width: 100%;
}

.g-4 {
    gap: 1.5rem 0;
}

.gy-4 {
    row-gap: 1.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.d-flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.align-items-center {
    align-items: center;
}

.align-items-end {
    align-items: flex-end;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.h-100 {
    height: 100%;
}

.mt-auto {
    margin-top: auto;
}


/* Columnas Responsive */

@media (min-width: 768px) {
    .col-md-4 {
        width: 33.333333%;
    }
    .col-md-6 {
        width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-2 {
        width: 16.666667%;
    }
    .col-lg-3 {
        width: 25%;
    }
    .col-lg-4 {
        width: 33.333333%;
    }
    .col-lg-5 {
        width: 41.666667%;
    }
    .col-lg-7 {
        width: 58.333333%;
    }
}


/* ==========================================================================
   3. HERO PRINCIPAL & ANIMACIONES AMBIENTALES
   ========================================================================== */

.hero-animated {
    padding: 5rem 0 4.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.ambient-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
    animation: floatOrb 12s infinite ease-in-out alternate;
}

.circle-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
    top: -100px;
    left: -100px;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -20px) scale(1.1);
    }
    100% {
        transform: translate(-20px, 30px) scale(0.95);
    }
}

.slogan-badge-main {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.08);
    color: var(--brand-blue);
    border: 1px solid #bfdbfe;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.05);
}

.hero-title {
    font-size: clamp(2.3rem, 4.2vw, 3.5rem);
    font-weight: 800;
    color: var(--brand-navy);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}


/* ==========================================================================
   4. BOTONES DEL SITIO
   ========================================================================== */

.btn-gtc-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    padding: 0.95rem 1.8rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-gtc-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.4);
}

.btn-gtc-secondary {
    background: #ffffff;
    color: var(--brand-navy) !important;
    padding: 0.95rem 1.6rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid #cbd5e1;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-gtc-secondary:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue) !important;
    background: #f8fafc;
}


/* ==========================================================================
   5. BARRA DE MÉTRICAS OPERATIVAS
   ========================================================================== */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3.5rem;
    padding: 2.25rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-subtle);
}

.metric-card h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 0.2rem;
    letter-spacing: -0.02em;
}

.metric-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 600;
}


/* ==========================================================================
   6. CARDS DE SERVICIOS BROCHURE (B2B + B2C)
   ========================================================================== */

.services-section {
    padding: 5.5rem 0;
    background: var(--brand-light-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.service-card-v2 {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.25rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card-v2:hover {
    border-color: var(--brand-blue);
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.service-icon-box {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #eff6ff;
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}


/* ==========================================================================
   7. SECCIÓN DE NOTICIAS ("LO QUE NO TE PUEDES PERDER")
   ========================================================================== */

.news-section {
    padding: 5.5rem 0;
    background: var(--brand-light-bg);
}

.news-card {
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    transition: var(--transition);
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--brand-blue);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover img {
    transform: scale(1.04);
}


/* ==========================================================================
   8. FOOTER Y MODAL DE INTEGRACIÓN
   ========================================================================== */

footer a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

select:focus {
    outline: none;
    border-color: var(--brand-blue);
}

#locker-modal {
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}