/* ========================================
   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(135deg, #0253ac 50%, #0eb67a 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;
}

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) {
    .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: 110px;
    overflow: hidden;
}

/* Barra verde superior */
.hero-top-bar {
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    background: #17d597;
    padding: 10px 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);
}

/* Ola decorativa inferior */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 100px;
    background: white;
    clip-path: ellipse(75% 100% at 50% 100%);
    z-index: 1;
}

/* 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(60px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: rgba(23, 213, 151, 0.4);
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.2);
    top: 40%;
    right: -15%;
    animation-delay: 5s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: rgba(3, 105, 217, 0.3);
    bottom: 10%;
    left: 30%;
    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-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 .btn {
    padding: 0.875rem 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%;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    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);
    }
}

/* ========================================
   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%);
    }
}

/* ========================================
   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: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.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: 10px;
    padding: 1.75rem 1.5rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-top: 4px 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(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Color variants for top border */
.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 color matches border */
.svc-card--blue-dark .svc-card__icon {
    color: var(--primary-color);
}

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

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

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

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

/* Header: icon + title inline */
.svc-card__header {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}

.svc-card__icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.svc-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
    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: #0253ac;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
    flex-grow: 0;
}

.svc-card__link {
    display: inline-block;
    margin-top: 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0253ac;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* 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);
}

.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;
    }

    .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;
    }

    /* Hero top bar */
    .hero-top-bar {
        font-size: 0.85rem;
        padding: 8px 0;
    }

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

    /* 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;
    }

    /* Hero */
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }

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

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

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

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

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

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

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

    .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;
    }

    .service-card,
    .svc-card,
    .testimonial-card {
        padding: 1.25rem;
    }

    .svc-card__title {
        font-size: 0.95rem;
    }

    .svc-card__desc {
        font-size: 0.82rem;
    }

    .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: center;
    }

    .footer-logo {
        height: 55px;
    }

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

    .social-links {
        justify-content: center;
    }

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

    .footer-contact li {
        justify-content: center;
        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-bottom: 20px;
}

.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;
}

.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) {
    .map-layout {
        flex-direction: column-reverse;
        min-height: auto;
    }
    .map-info-panel {
        flex: none;
        border-radius: 0 0 24px 24px;
        padding: 40px 24px;
        text-align: center;
        border-top: none;
    }
    .map-svg-panel {
        border-left: 1px solid rgba(255,255,255,.1);
        border-bottom: none;
        border-radius: 24px 24px 0 0;
        padding: 30px 20px 10px;
    }
    .map-counter-wrap {
        justify-content: center;
    }
    .map-panel-divider {
        margin: 20px auto;
    }
    .map-panel-stat {
        justify-content: center;
        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: center; }
}