/* ========================================
   VARIABLES Y CONFIGURACIÓN BASE
   ======================================== */
:root {
    --primary-color: #0253ac;
    --secondary-color: #009fe3;
    --green-light: #03e0c9;
    --green-dark: #04d3be;
    --orange: #fe9135;
    --purple: #ba81e5;
    --white: #ffffff;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-muted: #6c757d;
    --gradient-primary: linear-gradient(135deg, #0253ac 0%, #0369d9 100%);
    --gradient-secondary: linear-gradient(135deg, #17d597 0%, #0eb67a 100%);
    --gradient-saeevaluacion: linear-gradient(135deg, #f0f7ff 50%, #5ea1ff9c 100%);
    --gradient-saepagos: linear-gradient(135deg, #f4fdfc 50%, #0eb67b81 100%);
    --gradient-saeweb: linear-gradient(135deg, #f0faff 50%, #009fe380 100%);
    --gradient-general: linear-gradient(to right, #0D47A1 0%, #0D47A1 45%, #1278C8 70%, #08A6E1 100%);
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    /* ACTUALIZADO */
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   PRELOADER
   ======================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 120px;
    margin-bottom: 30px;
    animation: pulse-logo 2s infinite ease-in-out;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(2, 83, 172, 0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-logo {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Page Reveal */
body.loading {
    overflow: hidden;
}

/* Ensure content is visible by default to avoid issues if JS fails */
.main-content-wrapper {
    opacity: 1;
    visibility: visible;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    /* ACTUALIZADO */
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    background: #ffffff;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color) !important;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-logo {
    height: 62px;
    width: auto;
    transition: var(--transition);
}

.navbar-brand i {
    color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* Botón Comunidad SAE */
.btn-comunidad {
    background: var(--gradient-primary);
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #fff !important;
    text-decoration: none;
    transition: var(--transition);
}

.btn-comunidad:hover {
    opacity: 0.9;
    color: #fff !important;
}

/* Chevron icons in nav */
.nav-chevron {
    font-size: 0.7rem;
    transition: transform 0.25s ease;
    vertical-align: middle;
}

.nav-chevron--white {
    color: #fff;
}

.has-megamenu:hover .nav-chevron,
.has-megamenu.open .nav-chevron {
    transform: rotate(180deg);
}

/* ========================================
   MEGA-MENU
   ======================================== */
.has-megamenu {
    position: relative;
}

/* The dropdown panel */
.megamenu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 280px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.13);
    z-index: 1050;
    padding: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateX(-50%) translateY(-6px);
}

/* Wide variant for Servicios (2-col grid) */
.megamenu--wide {
    min-width: 480px;
}

/* 3-column variant for Servicios full list */
.megamenu--wide3col {
    min-width: 850px;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    display: none;
    flex-direction: row !important;
    flex-wrap: wrap;
    padding: 1rem;
    gap: 0;
}

.has-megamenu:hover .megamenu--wide3col,
.has-megamenu.open .megamenu--wide3col {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.megamenu__col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 0.5rem;
}

.megamenu__col--divider {
    border-left: 1px solid #f0f0f0;
    padding-left: 0.75rem;
    margin-left: 0.5rem;
}

/* Footer "Ver todos" */
.megamenu__footer {
    width: 100%;
    border-top: 1px solid #f0f0f0;
    padding: 0.75rem 1rem 0.25rem;
    margin-top: 0.5rem;
    text-align: center;
}

.megamenu__view-all {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--blue-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.2s ease;
}

.megamenu__view-all:hover {
    color: var(--blue-dark);
    gap: 0.6rem;
}

/* Comunidad SAE: right-aligned */
.megamenu--comunidad {
    min-width: 300px;
    left: auto;
    right: 0;
    transform: none;
    transform: translateY(-6px);
}

/* Bridge gap: invisible padding so cursor doesn't leave hover zone */
.megamenu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
}

/* Show state */
.has-megamenu:hover .megamenu,
.has-megamenu.open .megamenu {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.has-megamenu:hover .megamenu--comunidad,
.has-megamenu.open .megamenu--comunidad {
    transform: translateY(0);
}

/* Header label inside Comunidad dropdown */
.megamenu__header {
    padding: 0.6rem 0.75rem 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
}

/* Inner container */
.megamenu__inner {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* 2-column grid for Servicios */
.megamenu__inner--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

/* Each item row */
.megamenu__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--dark-color);
    transition: background 0.18s ease;
}

.megamenu__item:hover {
    background: #f0f5ff;
    color: var(--primary-color);
}

/* Comunidad item: space-between to push arrow right */
.megamenu__item--comunidad {
    justify-content: flex-start;
}

.megamenu__item--comunidad .megamenu__arrow {
    margin-left: auto;
    font-size: 0.8rem;
    color: #bbb;
    transition: color 0.18s ease, transform 0.18s ease;
}

.megamenu__item--comunidad:hover .megamenu__arrow {
    color: var(--primary-color);
    transform: translateX(3px);
}

/* Icon box */
.megamenu__icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    color: #fff;
}

.megamenu__icon-box--blue {
    background: var(--primary-color);
}

.megamenu__icon-box--teal {
    background: var(--green-dark);
}

.megamenu__icon-box--orange {
    background: var(--orange);
}

/* Text block */
.megamenu__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.megamenu__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.2;
}

.megamenu__sub {
    font-size: 0.75rem;
    color: #888;
    line-height: 1.3;
}

/* ---- MOBILE: stack inside collapse ---- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        max-height: calc(100dvh - 70px);
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
    }

    .megamenu {
        position: static;
        transform: none !important;
        box-shadow: none;
        border-radius: 8px;
        background: #f8f9fa;
        opacity: 1;
        pointer-events: auto;
        display: none;
        padding: 0.25rem 0.5rem;
        margin: 0.25rem 0 0.5rem 0.5rem;
    }

    .has-megamenu.open .megamenu {
        display: block;
    }

    .megamenu--wide {
        min-width: unset;
    }

    .megamenu__inner--grid {
        grid-template-columns: 1fr;
    }

    .megamenu--comunidad {
        right: auto;
    }

    .megamenu--wide3col {
        min-width: unset;
        flex-direction: column;
    }

    .megamenu__col--divider {
        border-left: none;
        border-top: 1px solid #e8e8e8;
        padding-left: 0;
        margin-left: 0;
        padding-top: 0.25rem;
        margin-top: 0.25rem;
    }

    .nav-link--dropdown {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .btn-comunidad {
        margin-top: 0.5rem;
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    position: relative;
    background: var(--gradient-general);
    color: white;
    padding-top: 94px;
    overflow: hidden;
}

/* Barra verde superior */
.hero-top-bar {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    background: #17d597;
    padding: 15px 0;
    z-index: 2;
    font-size: 0.95rem;
    font-weight: 500;
    animation: slideDown 0.6s ease-out;
}

.arrow-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #0b224e;
    /* Dark navy blue */
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    transition: var(--transition);
}

.hero-top-bar a:hover .arrow-circle {
    transform: scale(1.1);
    background-color: var(--primary-color);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-top-bar p {
    margin-bottom: 0;
    letter-spacing: 0.3px;
}

.hero-top-bar a {
    color: white !important;
    text-decoration: underline !important;
    transition: var(--transition);
    font-weight: 00;
}

.hero-top-bar a:hover {
    opacity: 0.9;
}

/* Badge del hero - ESPACIO REDUCIDO */
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}


/* Animated Background Blobs */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.65;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 450px;
    height: 450px;
    background: rgba(8, 166, 225, 0.35);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.blob-2 {
    width: 550px;
    height: 550px;
    background: rgba(8, 166, 225, 0.25);
    top: 20%;
    right: -10%;
    animation-delay: 5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: rgba(13, 71, 161, 0.5);
    bottom: -5%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* Hero Content */
.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-row {
    min-height: calc(100vh - 120px);
    padding-top: 1rem;
    padding-bottom: 10px;
}

.hero-img-col {
    display: block;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(90deg, #00d4ff 0%, #00ffcc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.hero-buttons .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.hero-multidevices {
    max-width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    transition: transform 0.4s ease;
}

.hero-multidevices:hover {
    transform: translateY(-10px) scale(1.03);
}

.btn-light {
    background: white;
    border: none;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
    background: white;
    color: var(--primary-color);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    /*box-shadow: 0 4px 15px #0054a74b;*/
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px #1188ff77;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Carousel Wrapper */
.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    z-index: 5;
}

.hero-carousel {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 2.5rem;
    padding-bottom: 5.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.hero-carousel-inner {
    position: relative;
    height: 280px;
}

.hero-carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(40px) scale(0.95);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    filter: blur(5px);
}

.hero-carousel-item.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    visibility: visible;
    filter: blur(0);
}

.hero-carousel-card {
    text-align: center;
}

.carousel-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 1.5rem;
    color: white;
}

.hero-carousel-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.hero-carousel-card p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.carousel-preview-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.carousel-preview-dots span {
    width: 40px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

/* Controls: Indicators & Nav */
.hero-carousel-controls {
    position: absolute;
    bottom: 2rem;
    left: 2.5rem;
    right: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-carousel-indicators {
    display: flex;
    gap: 8px;
    align-items: center;
}

.indicator {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s ease;
}

.indicator.active {
    width: 30px;
    height: 10px;
    background: white;
    border-radius: 5px;
}

.hero-carousel-nav {
    display: flex;
    gap: 12px;
}

.nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.1);
}

.floating-element {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: morphing 8s infinite ease-in-out;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes morphing {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

/* Hero Wave Divider */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 70px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 2rem;
    animation: bounce 2s infinite;
    opacity: 0.7;
    cursor: pointer;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes bounce-y {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* ========================================
   TRUSTED BY SECTION
   ======================================== */
.trusted-section {
    overflow: hidden;
    background: white;
}

.logos-carousel {
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
}

.logos-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    min-width: 150px;
    opacity: 0.7;
    transition: var(--transition);
}

.logo-item:hover {
    opacity: 1;
    transform: scale(1.1);
}

.logo-item span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-reverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Segunda pista oculta en desktop */
.logos-track--reverse {
    display: none;
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
    background: linear-gradient(180deg, #0055ae 100%, #00a0df 100%);
    position: relative;
    overflow: hidden;
}

.stats-section .section-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 2.8rem;
    color: #17d597;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services-section {
    background: #f4f6f8;
}

.services-main-title {
    font-size: 36px;
    font-weight: 680;
    color: var(--dark-color);
    line-height: 1.3;
    margin-bottom: 0.75rem;
    padding-top: 45px;
}

.services-main-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

/* New card style */
.svc-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.75rem 1.5rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-top: 8px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.svc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Color variants — top border on desktop */
.svc-card--blue-dark {
    border-top-color: var(--primary-color);
}

.svc-card--green-light {
    border-top-color: var(--green-light);
}

.svc-card--blue-light {
    border-top-color: var(--secondary-color);
}

.svc-card--purple {
    border-top-color: var(--purple);
}

.svc-card--orange {
    border-top-color: var(--orange);
}

/* Icon wrap — cuadrado con color de fondo */
.svc-card__icon-wrap {
    width: 54px;
    min-width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.svc-card__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    color: #fff !important;
}

/* Background color per variant */
.svc-card--blue-dark .svc-card__icon-wrap {
    background: var(--primary-color);
}

.svc-card--blue-light .svc-card__icon-wrap {
    background: var(--secondary-color);
}

.svc-card--green-light .svc-card__icon-wrap {
    background: var(--green-light);
}

.svc-card--purple .svc-card__icon-wrap {
    background: #9b59b6;
}

.svc-card--orange .svc-card__icon-wrap {
    background: var(--orange);
}

/* Body: title + descs */
.svc-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.svc-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 0 0.5rem;
    line-height: 1.35;
}

.svc-card__desc {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.65;
    margin-bottom: 0.5rem;
    flex-grow: 1;
}

.svc-card__desc--highlight {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
    flex-grow: 0;
}

/* Link: shows text "Conocer más" on desktop, arrow on mobile */
.svc-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.svc-card__link:hover {
    color: #0369d9;
}

.svc-link-arrow {
    display: none;
}

.svc-link-label {
    display: inline;
}

/* ── MÓVIL & TABLET: layout de lista ───────────────────── */
@media (max-width: 991px) {
    .svc-card {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        border-top: none;
        border-radius: 12px;
        border: 1px solid rgba(0, 0, 0, 0.07);
        height: auto;
    }

    .svc-card:hover {
        transform: none;
    }

    /* Icono: cuadrado redondeado con color sólido */
    .svc-card__icon-wrap {
        width: 54px;
        min-width: 54px;
        height: 54px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0;
    }

    .svc-card--blue-dark .svc-card__icon-wrap {
        background: var(--primary-color);
    }

    .svc-card--green-light .svc-card__icon-wrap {
        background: var(--green-light);
    }

    .svc-card--blue-light .svc-card__icon-wrap {
        background: var(--secondary-color);
    }

    .svc-card--purple .svc-card__icon-wrap {
        background: #9b59b6;
    }

    .svc-card--orange .svc-card__icon-wrap {
        background: var(--orange);
    }

    .svc-card__icon-wrap .svc-card__icon {
        font-size: 1.4rem;
        color: #fff !important;
    }

    /* Contenido central */
    .svc-card__body {
        flex: 1;
        min-width: 0;
    }

    .svc-card__title {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }

    .svc-card__desc {
        font-size: 0.8rem;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .svc-card__desc--highlight {
        display: none;
    }

    /* Flecha derecha */
    .svc-card__link {
        flex-shrink: 0;
        margin-top: 0;
        font-size: 1.1rem;
    }

    .svc-link-label {
        display: none;
    }

    .svc-link-arrow {
        display: inline;
    }

    .svc-card--blue-dark .svc-card__link {
        color: var(--primary-color);
    }

    .svc-card--green-light .svc-card__link {
        color: var(--green-light);
    }

    .svc-card--blue-light .svc-card__link {
        color: var(--secondary-color);
    }

    .svc-card--purple .svc-card__link {
        color: #9b59b6;
    }

    .svc-card--orange .svc-card__link {
        color: var(--orange);
    }
}

/* CTA button */
.btn-services-cta {
    background: var(--gradient-primary);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    border: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.btn-services-cta:hover {
    background: var(--gradient-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 83, 172, 0.35);
}

/* Keep old classes available (used nowhere now but avoids 404 on cached pages) */
.service-card {
    display: none;
}

/* ========================================
   QUOTE SECTION
   ======================================== */
.quote-section {
    background: linear-gradient(180deg, #0055ae 100%, #00a0df 100%);
    color: white;
}

.quote-text {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.6;
    position: relative;
    padding: 2rem 0;
}

.quote-icon {
    position: absolute;
    top: -20px;
    left: -40px;
    font-size: 4rem;
    opacity: 0.5;
    color: var(--white-color);
}

.quote-author {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-top: 1.5rem;
    font-style: italic;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.author-position {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ========================================
   CONTACT CTA SECTION
   ======================================== */
.contact-cta-section {
    position: relative;
    background: #0b224e;
    padding: 100px 0;
    overflow: hidden;
}

.section-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 34, 78, 0.85) 0%, rgba(2, 83, 172, 0.7) 100%);
    z-index: 1;
}

.cta-card {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    color: white;
    z-index: 2;
}

.cta-content {
    position: relative;
    z-index: 3;
    padding: 4rem;
}

.cta-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: white;
    line-height: 1.1;
}

.cta-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-features {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.cta-feature i {
    font-size: 1.4rem;
}

.cta-btn-contact {
    display: inline-block;
    background: var(--gradient-secondary);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1rem 3rem;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(14, 182, 122, 0.4);
}

.cta-btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(14, 182, 122, 0.5);
    color: white;
}

.cta-btn-contact:active {
    transform: translateY(-1px);
}

/* Contact Form */
.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 16px;
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(2, 83, 172, 0.1);
}

.contact-form .btn-primary {
    padding: 1rem;
    font-size: 1.05rem;
    border-radius: 12px;
    margin-top: 1rem;
}

/* Form Validation Styles */
.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: none;
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.25rem;
}

.form-control.is-invalid~.invalid-feedback {
    display: block;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: linear-gradient(180deg, #0055ae 100%, #00a0df 100%);
    color: rgba(255, 255, 255, 0.8);
}

.footer-brand {
    color: white;
    font-size: 1.75rem;
    font-weight: 800;
}

.footer-logo {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-brand i {
    color: var(--secondary-color);
}

.footer-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--secondary-color);
    font-size: 1.125rem;
    margin-top: 0.25rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal-link:hover {
    color: var(--secondary-color);
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* ---- Tablet (768px – 991px) ---- */
@media (max-width: 991px) {

    /* Navbar */
    .navbar-logo {
        height: 50px;
    }

    .navbar {
        padding: 0.6rem 0;
    }

    /* Más margen lateral en tablet */
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero-section {
        padding-top: 70px;
        text-align: left;
        background: linear-gradient(to bottom, #0D47A1 0%, #0D47A1 45%, #1278C8 70%, #08A6E1 100%);
    }

    .map-section {
        background: linear-gradient(to bottom, #0D47A1 0%, #08A6E1 50%, #0D47A1 100%) !important;
    }

    .hero-top-bar {
        position: relative;
        top: auto;
        font-size: 0.85rem;
        padding: 14px 0;
    }

    .hero-top-bar p {
        font-size: 0.85rem;
    }

    .hero-row {
        padding-top: 2rem;
        padding-bottom: 0.5rem;
        min-height: auto;
    }

    .hero-badge {
        margin: 0 0 1.25rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
        margin: 0 !important;
        text-align: center;
    }

    .hero-img-col {
        display: block !important;
        margin-top: 1.5rem;
        text-align: center;
    }

    /* Flecha debajo de la imagen en tablet */
    .scroll-indicator {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        text-align: center;
        padding: 1rem 0 1.5rem;
        animation: bounce-y 2s infinite;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-carousel-wrapper {
        max-width: 450px;
        margin: 3rem auto 0;
    }

    /* Stats 2x2 on tablets */
    .stats-section .row>div {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .stat-number {
        font-size: 3rem;
    }

    /* Services */
    .services-main-title {
        font-size: 1.6rem;
        padding-top: 20px;
    }

    .services-main-subtitle {
        font-size: 0.92rem;
    }

    /* Quote */
    .quote-text {
        font-size: 1.5rem;
        padding: 1.5rem 0;
    }

    .quote-icon {
        position: static;
        display: block;
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    /* CTA */
    .cta-title {
        font-size: 2rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    .contact-cta-section {
        padding: 70px 0;
    }

    /* Footer */
    .footer-logo {
        height: 60px;
    }
}

/* ---- Phone (≤767px) ---- */
@media (max-width: 767px) {

    /* Navbar */
    .navbar-logo {
        height: 42px;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-collapse {
        padding: 1rem 0;
    }

    .nav-link {
        padding: 0.6rem 0.5rem !important;
        font-size: 0.95rem;
    }

    /* Más margen lateral en todo el sitio en móvil */
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* Hero */
    .hero-row {
        padding-top: 1.5rem;
        padding-bottom: 0.5rem;
        min-height: auto;
    }

    .hero-section {
        padding-top: 60px;
        background: linear-gradient(to bottom, #0D47A1 0%, #0D47A1 40%, #1278C8 68%, #08A6E1 100%);
        text-align: left;
    }

    .map-section {
        background: linear-gradient(to bottom, #0D47A1 0%, #08A6E1 50%, #0D47A1 100%) !important;
    }

    .hero-top-bar {
        font-size: 0.78rem;
        padding: 12px 0;
    }

    .hero-top-bar p {
        font-size: 0.78rem;
        line-height: 1.5;
    }

    .hero-badge {
        margin: 0 0 1.25rem;
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .hero-title {
        font-size: 1.85rem;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.25rem !important;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 !important;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        text-align: center;
    }

    /* Imagen de dispositivos visible en móvil/tablet */
    .hero-img-col {
        margin-top: 1.5rem;
        text-align: center;
        display: block !important;
    }

    .hero-img-col .hero-multidevices {
        max-width: 90%;
        filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
    }

    /* Flecha debajo de la imagen en móvil */
    .scroll-indicator {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        text-align: center;
        padding: 1rem 0 1.5rem;
        animation: bounce-y 2s infinite;
    }

    .hero-carousel-wrapper {
        margin-top: 4rem;
        max-width: 100%;
    }

    .hero-carousel {
        padding: 1.5rem;
        padding-bottom: 4.5rem;
    }

    .hero-carousel-inner {
        height: auto;
        min-height: 250px;
    }

    .hero-carousel-item {
        position: relative;
        transform: none !important;
    }

    .hero-carousel-card h3 {
        font-size: 1.5rem;
    }

    .hero-carousel-controls {
        left: 1.5rem;
        right: 1.5rem;
        bottom: 1.5rem;
    }

    /* Sections general */
    .section-title {
        font-size: 1.55rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    /* Stats */
    .stats-section .row>div {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2.4rem;
    }

    .stat-label {
        font-size: 0.82rem;
    }

    /* Services */
    .services-main-title {
        font-size: 1.35rem;
        padding-top: 10px;
    }

    .services-main-subtitle {
        font-size: 0.88rem;
    }


    .btn-services-cta {
        font-size: 0.9rem;
        padding: 0.75rem 2rem;
    }

    /* Quote */
    .quote-text {
        font-size: 1.2rem;
        padding: 1rem 0;
    }

    .quote-icon {
        position: static;
        display: block;
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .quote-author {
        font-size: 0.95rem;
        margin-top: 1rem;
    }

    /* CTA */
    .cta-card {
        padding: 0;
        border-radius: 20px;
    }

    .cta-content {
        padding: 2.5rem 1.25rem;
        text-align: center;
    }

    .cta-title {
        font-size: 1.6rem;
    }

    .cta-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .cta-features {
        align-items: center;
    }

    .cta-feature {
        font-size: 0.95rem;
    }

    .contact-cta-section {
        padding: 50px 0;
    }

    .cta-btn-contact {
        font-size: 1rem;
        padding: 0.85rem 2rem;
    }

    /* Contact Form */
    .contact-form {
        margin-top: 2rem;
        padding: 1.25rem;
    }

    /* Footer */
    .footer {
        text-align: left;
    }

    .footer-logo {
        height: 55px;
    }

    .footer-brand {
        display: flex;
        justify-content: flex-start;
    }

    .social-links {
        justify-content: flex-start;
    }

    .footer-title {
        margin-top: 0.5rem;
        font-size: 1.1rem;
    }

    .footer-contact li {
        justify-content: flex-start;
        text-align: left;
    }

    .footer-description {
        font-size: 0.9rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
}

/* ========================================
   ANIMATIONS & UTILITIES
   ======================================== */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #023d80;
}

/* ========================================
   MAP SECTION
   ======================================== */
.map-section {
    background: var(--gradient-general);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.map-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.map-layout {
    display: flex;
    gap: 0;
    align-items: stretch;
    min-height: 480px;
}

.map-info-panel {
    flex: 0 0 340px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 24px 0 0 24px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-panel-eyebrow {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #03e0c9;
    margin-bottom: 8px;
}

.map-panel-state {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.2;
}

.map-panel-region {
    font-size: .85rem;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 28px;
    font-weight: 500;
}

.map-counter-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}

.map-counter-number {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.map-counter-plus {
    font-size: 2rem;
    font-weight: 800;
    color: #03e0c9;
}

.map-counter-label {
    font-size: .88rem;
    color: rgba(255, 255, 255, .65);
    font-weight: 500;
    margin-bottom: 28px;
    line-height: 1.4;
}

.map-panel-divider {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #03e0c9, transparent);
    border: none;
    border-radius: 3px;
    margin: 16px 0;
}

.map-panel-hint {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
    margin: 0;
}

.map-panel-total {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.map-panel-stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.map-panel-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #03e0c9;
    flex-shrink: 0;
}

.map-panel-stat-text {
    font-size: .82rem;
    color: rgba(255, 255, 255, .7);
    line-height: 1.4;
}

.map-panel-stat-text strong {
    color: #fff;
    font-weight: 700;
}

.map-svg-panel {
    flex: 1;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-left: none;
    border-radius: 0 24px 24px 0;
    padding: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-svg-panel object {
    width: 100%;
    height: auto;
    max-height: 480px;
    display: block;
}

#venezuelaMapContainer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#venezuelaMapContainer svg {
    width: 100%;
    height: auto;
    max-height: 480px;
    display: block;
    background: transparent;
}

#venezuelaMapContainer svg rect {
    display: none;
}

#venezuelaMapContainer svg path,
#venezuelaMapContainer svg polygon,
#venezuelaMapContainer svg circle,
#venezuelaMapContainer svg ellipse {
    fill: rgba(255, 255, 255, .7);
    stroke: rgba(2, 83, 172, .25);
    stroke-width: 1;
    transition: fill .3s, stroke .2s, stroke-width .2s, filter .3s;
}

#venezuelaMapContainer svg path.ve-state {
    cursor: pointer;
}

#venezuelaMapContainer svg path.ve-state.hovered {
    fill: rgba(255, 255, 255, .92);
    stroke: rgba(3, 224, 201, .6);
    stroke-width: 1.5;
}

#venezuelaMapContainer svg path.ve-state.selected {
    fill: #fff;
    stroke: #03e0c9;
    stroke-width: 2.5;
    filter: drop-shadow(0 0 8px rgba(3, 224, 201, .5));
}

.state-tooltip {
    position: absolute;
    background: #fff;
    color: #111;
    font-size: .82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
    z-index: 10;
    white-space: nowrap;
}

.state-tooltip.visible {
    opacity: 1;
}

.map-legend {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .6);
    font-size: .78rem;
    font-weight: 500;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-dot.active-dot {
    background: rgba(255, 255, 255, .88);
}

.legend-dot.inactive-dot {
    background: rgba(255, 255, 255, .2);
}

.map-instruction {
    text-align: center;
    margin-top: 10px;
    font-size: .78rem;
    color: rgba(255, 255, 255, .4);
}

@media (max-width: 992px) {

    /* Trusted by: dos carruseles apilados */
    .logos-carousel {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        padding: 20px 0;
    }

    .logos-track--reverse {
        display: flex;
        animation: scroll-reverse 30s linear infinite;
    }

    .map-layout {
        flex-direction: column;
        min-height: auto;
    }

    .map-info-panel {
        flex: none;
        border-radius: 24px 24px 0 0;
        padding: 40px 24px;
        text-align: left;
        border-bottom: none;
    }

    .map-svg-panel {
        border-left: 1px solid rgba(255, 255, 255, .1);
        border-top: none;
        border-radius: 0 0 24px 24px;
        padding: 10px 20px 30px;
    }

    .map-counter-wrap {
        justify-content: flex-start;
    }

    .map-panel-divider {
        margin: 20px 0;
    }

    .map-panel-stat {
        justify-content: flex-start;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .map-counter-number {
        font-size: 3.5rem;
    }

    .map-info-panel {
        padding: 32px 18px;
    }

    .map-panel-state {
        font-size: 1.8rem;
    }

    .map-legend {
        flex-wrap: wrap;
    }

    .map-counter-label {
        text-align: left;
    }
}

/* ============================================
   REVIEWS CAROUSEL
   ============================================ */
.reviews-carousel-container {
    position: relative;
}

.reviews-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding-bottom: 4px;
}

.reviews-track::-webkit-scrollbar {
    display: none;
}

.review-card {
    flex: 0 0 calc(33.333% - 0.84rem);
    scroll-snap-align: start;
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: 1px solid #ebebeb;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--av-bg, #1a73e8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.review-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #202124;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-google-logo {
    flex-shrink: 0;
}

.review-stars {
    display: flex;
    gap: 2px;
    color: #FBBC04;
    font-size: 0.95rem;
}

.review-text {
    color: #5f6368;
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

.reviews-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.75rem;
}

.reviews-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #495057;
    font-size: 1rem;
    line-height: 1;
}

.reviews-nav-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(2, 83, 172, 0.15);
}

.reviews-nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.reviews-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.reviews-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ced4da;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: all 0.25s;
}

.reviews-dot.active {
    background: var(--primary-color);
    width: 22px;
    border-radius: 4px;
}

@media (max-width: 991px) {
    .review-card {
        flex: 0 0 calc(50% - 0.625rem);
    }
}

@media (max-width: 575px) {
    .review-card {
        flex: 0 0 100%;
    }
}

/* =============================================
   Why SAE Section — Problema > Solución > Beneficios
   ============================================= */

.why-sae-section {
    background: #f4f7ff;
    position: relative;
    overflow: hidden;
}

/* El container flota sobre las formas */
.why-sae-section > .container {
    position: relative;
    z-index: 1;
}

/* Base para todos los decorativos */
.why-sae-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

/* Grilla de puntos — top-left */
.why-sae-deco--dots {
    top: 36px;
    left: 36px;
    width: 130px;
    height: 110px;
    background-image: radial-gradient(circle, rgba(2, 83, 172, 0.45) 2.2px, transparent 2.2px);
    background-size: 14px 14px;
    animation: wsae-float-y 6s ease-in-out infinite;
}

/* Círculo sólido azul — left, vertical center */
.why-sae-deco--circle-sm {
    left: -20px;
    top: 36%;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 40px rgba(2, 83, 172, 0.35);
    animation: wsae-float-diag 7s ease-in-out infinite 0.8s;
}

/* Gran círculo celeste — bottom-left */
.why-sae-deco--circle-lg {
    left: -120px;
    bottom: -160px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #c8daff 0%, #d8e8ff 40%, transparent 72%);
    animation: wsae-float-lg 10s ease-in-out infinite 0.3s;
}

/* Anillo (solo borde) — top-right */
.why-sae-deco--ring {
    right: -70px;
    top: -70px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 32px solid rgba(2, 83, 172, 0.18);
    background: transparent;
    animation: wsae-float-ring 8s ease-in-out infinite 1.2s;
}

/* --- Keyframes de flotado --- */
@keyframes wsae-float-y {
    0%, 100% { transform: translateY(0px); }
    50%      { transform: translateY(-16px); }
}

@keyframes wsae-float-diag {
    0%, 100% { transform: translate(0px, 0px); }
    50%      { transform: translate(10px, -18px); }
}

@keyframes wsae-float-lg {
    0%, 100% { transform: translate(0px, 0px); }
    50%      { transform: translate(-14px, -22px); }
}

@keyframes wsae-float-ring {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    50%      { transform: translate(-12px, 14px) scale(1.05); }
}

/* =============================================
   Asistencia + Distribuidor Section
   ============================================= */

.asistencia-section {
    background: #fff;
}

/* --- Tarjetas base --- */
.asist-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    border-radius: 16px;
    padding: 1.75rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.asist-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Contacto — fondo azul suave */
.asist-card--contact {
    background: #eef4ff;
    border: 1.5px solid #d0e3fb;
}

/* Centro de ayuda — fondo verde suave */
.asist-card--help {
    background: #edfdf4;
    border: 1.5px solid #b2edce;
}

/* Distribuidor — fondo azul sólido, layout horizontal extendido */
.asist-card--distribuidor {
    background: var(--primary-color);
    border: none;
    align-items: center;
    height: auto;
}

/* --- Iconos --- */
.asist-card__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.asist-card__icon--blue  { background: var(--primary-color); color: #fff; }
.asist-card__icon--green { background: #0b9b6a; color: #fff; }
.asist-card__icon--white { background: rgba(255,255,255,0.18); color: #fff; font-size: 1.75rem; }

/* --- Cuerpo --- */
.asist-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.asist-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
    line-height: 1.3;
}

.asist-card__title--green { color: #0b7a53; }
.asist-card__title--white { color: #fff; font-size: 1.2rem; }

.asist-card__desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.asist-card__desc--white { color: rgba(255,255,255,0.82); }

/* --- Botones --- */
.asist-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin-top: 0.6rem;
    width: fit-content;
}

.asist-btn--blue {
    background: var(--primary-color);
    color: #fff;
}

.asist-btn--blue:hover {
    background: #024189;
    color: #fff;
    filter: brightness(1.1);
}

.asist-btn--green {
    background: #0b9b6a;
    color: #fff;
}

.asist-btn--green:hover {
    color: #fff;
    filter: brightness(1.12);
}

.asist-btn--white {
    background: #fff;
    color: var(--primary-color);
    border-radius: 10px;
    padding: 0.6rem 1.5rem;
    font-size: 0.92rem;
    margin-top: 0;
}

.asist-btn--white:hover {
    background: #f0f5ff;
    color: var(--primary-color);
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .asist-card--distribuidor {
        flex-direction: column;
        align-items: flex-start;
    }

    .asist-btn--white {
        margin-top: 0.5rem;
    }
}

/* Badge */
.why-sae-badge {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #d0e4fb;
    border-radius: 50px;
    padding: 0.4rem 1.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.why-sae-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1.28;
    margin-bottom: 1rem;
}

.why-sae-brand {
    color: var(--primary-color);
}

.why-sae-underline {
    width: 56px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    margin: 0 auto;
}

/* --- Grid: tarjetas + flechas --- */
.psb-grid {
    display: flex;
    align-items: center;
    gap: 0;
}

/* --- Tarjetas --- */
.psb-card {
    flex: 1;
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.07);
    position: relative;
    overflow: hidden;
    min-width: 0;
    align-self: stretch;
}

.psb-card__header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Ícono circular */
.psb-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.psb-card__icon--problem  { background: #d63031; color: #fff; }
.psb-card__icon--solution { background: var(--primary-color); color: #fff; }
.psb-card__icon--benefit  { background: #0b9b6a; color: #fff; }

/* Título + línea bajo el título */
.psb-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
}

.psb-card__title--problem  { color: #d63031; }
.psb-card__title--solution { color: var(--primary-color); }
.psb-card__title--benefit  { color: #0b9b6a; }

.psb-card__line {
    height: 2px;
    width: 36px;
    border-radius: 2px;
}

.psb-card__line--problem  { background: #d63031; }
.psb-card__line--solution { background: var(--primary-color); }
.psb-card__line--benefit  { background: #0b9b6a; }

/* Ícono decorativo en la esquina inferior */
.psb-card__deco {
    display: none;
}

/* --- Lista --- */
.psb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.psb-list__item {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: var(--text-color);
    line-height: 1.5;
}

.psb-list__item i {
    font-size: 0.82rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.psb-list__item--problem  i { color: #d63031; }
.psb-list__item--solution i { color: var(--primary-color); }
.psb-list__item--benefit  i { color: #0b9b6a; }

/* --- Flechas entre tarjetas --- */
.psb-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    flex-shrink: 0;
}

.psb-arrow__btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(2, 83, 172, 0.35);
    flex-shrink: 0;
}

/* --- CTA --- */
.why-sae-cta {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.85rem 2.75rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 28px rgba(2, 83, 172, 0.35);
    transition: var(--transition);
}

.why-sae-cta:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(2, 83, 172, 0.45);
}

.why-sae-cta-sub {
    font-size: 0.88rem;
    color: #0b9b6a;
    font-weight: 500;
    margin-top: 0.6rem;
    margin-bottom: 0;
}

.why-sae-cta-sub i {
    font-size: 0.82rem;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .why-sae-deco {
        display: none;
    }

    .psb-grid {
        flex-direction: column;
        gap: 0;
    }

    .psb-card {
        width: 100%;
        border-radius: 16px;
    }

    .psb-arrow {
        padding: 0.6rem 0;
    }

    .psb-arrow__btn {
        transform: rotate(90deg);
    }
}