/* ============================
   PANAMERICAN BC — PREMIUM CSS
   ============================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Primary — from the logo's navy blue */
    --navy: #0D1B5E;
    --navy-light: #122470;
    --navy-mid: #1a3388;
    /* Accent — steel blue from the logo's lighter blue */
    --blue: #2E5A9E;
    --blue-bright: #3B72C4;
    /* Accent warm — subtle metallic silver/steel for highlights */
    --accent: #2E5A9E;
    --accent-glow: #4A8AD4;
    --accent-dark: #1E4A8E;
    /* Charcoal gray — from the logo's hexagonal frame */
    --charcoal: #4A4A4A;
    --charcoal-light: #5C5C5C;
    /* Legacy aliases for smooth transition */
    --orange: var(--accent);
    --orange-glow: var(--accent-glow);
    --orange-dark: var(--accent-dark);
    --gold: #6B9BD2;
    --white: #ffffff;
    --off-white: #f4f6fa;
    --gray-100: #eaeff5;
    --gray-200: #d3dbe8;
    --gray-300: #a8b5c8;
    --gray-500: #5e6e82;
    --gray-700: #374050;
    --gray-900: #1a2332;
    --font-primary: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 2px 8px rgba(13, 27, 94, .06);
    --shadow-md: 0 8px 30px rgba(13, 27, 94, .10);
    --shadow-lg: 0 20px 60px rgba(13, 27, 94, .14);
    --shadow-glow: 0 0 40px rgba(46, 90, 158, .25);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.35s cubic-bezier(.4, 0, .2, 1);
    --transition-slow: 0.6s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Logo Image ---------- */
.logo-img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
    /* White on dark hero */
    transition: var(--transition);
}

.navbar.scrolled .logo-img {
    height: 42px;
    filter: none;
    /* TRUE LOGO COLORS on light background */
}

.footer-logo-img {
    height: 60px;
    filter: brightness(0) invert(1) opacity(.85);
    /* Keep white for dark footer */
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.8;
    overflow-x: hidden;
    overflow-y: hidden;
    /* Oculto por el preloader */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

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

/* ---------- Section Headers ---------- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--orange), var(--orange-glow));
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 6px 20px;
    border-radius: 30px;
    margin-bottom: 18px;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 580px;
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(135deg, var(--orange), var(--orange-glow), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
    transition: .5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(46, 90, 158, .35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(46, 90, 158, .5);
}

.btn-outline {
    border-color: rgba(255, 255, 255, .4);
    color: var(--white);
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, .08);
}

.btn-outline:hover {
    border-color: var(--orange);
    background: rgba(46, 90, 158, .15);
    color: var(--white);
}

.btn-large {
    padding: 18px 42px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(13, 27, 94, .08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 60px;
    /* Logo más grande */
    width: auto;
    transition: var(--transition);
}

.navbar.scrolled .logo-img {
    height: 50px;
    /* Un poco más pequeño al hacer scroll */
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--orange), var(--orange-glow));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(46, 90, 158, .3);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--white);
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 0.65rem;
    color: var(--orange-glow);
    font-weight: 600;
    letter-spacing: 3px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: rgba(255, 255, 255, .85);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, .15);
}

.navbar.scrolled .nav-link {
    color: var(--gray-700);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--navy);
    background: rgba(13, 27, 94, .06);
}

.lang-switcher {
    display: flex;
    gap: 10px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar.scrolled .lang-switcher {
    border-left-color: rgba(13, 27, 94, 0.1);
}

.lang-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
}

.lang-link:hover,
.lang-link.active {
    color: var(--white);
}

.navbar.scrolled .lang-link {
    color: var(--gray-500);
}

.navbar.scrolled .lang-link:hover,
.navbar.scrolled .lang-link.active {
    color: var(--navy);
}

.nav-cta {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark)) !important;
    color: var(--white) !important;
    border-radius: var(--radius-xl);
    padding: 8px 22px;
    margin-left: 8px;
    box-shadow: 0 4px 15px rgba(46, 90, 158, .3);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(46, 90, 158, .5);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--navy);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('img/panama_skyline_hero.jpg') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(13, 27, 94, .93) 0%,
            rgba(13, 27, 94, .85) 40%,
            rgba(18, 36, 112, .78) 100%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(46, 90, 158, .15);
    border: 1px solid rgba(46, 90, 158, .3);
    border-radius: 30px;
    padding: 8px 20px;
    color: var(--orange-glow);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: rgba(255, 255, 255, .7);
    max-width: 1000px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .4);
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, .25);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--orange-glow);
    border-radius: 4px;
    animation: scrollDot 2s infinite;
}

@keyframes scrollDot {

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

    50% {
        opacity: .3;
        transform: translateY(14px);
    }
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
    position: relative;
    z-index: 3;
    margin-top: -60px;
    padding-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    animation-delay: var(--delay, 0s);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--orange-glow));
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(46, 90, 158, .1), rgba(46, 90, 158, .05));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--orange);
    font-size: 1.3rem;
}

.stat-card .stat-number {
    font-family: var(--font-primary);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--navy);
    display: inline;
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--orange);
    display: inline;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: 8px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    font-size: 1.02rem;
    color: var(--gray-700);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, var(--orange), var(--orange-glow));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
}

.about-feature h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--navy);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.about-feature p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.about-visual {
    position: relative;
}

.about-image-stack {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-main img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.about-img-main:hover img {
    transform: scale(1.03);
}

.about-img-accent {
    position: absolute;
    bottom: -30px;
    left: -40px;
    width: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
}

.about-img-accent img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.about-experience-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    color: var(--white);
    border: 4px solid var(--white);
    animation: badgePulse 3s ease-in-out infinite;
}

.badge-number {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.badge-text {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(46, 90, 158, .3), var(--shadow-glow);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(46, 90, 158, 0), var(--shadow-glow);
    }
}

/* ============================================================
   VALUES
   ============================================================ */
.values {
    padding: 60px 0 80px;
    background: var(--off-white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.value-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    animation-delay: var(--delay, 0s);
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(46, 90, 158, .2);
}

.value-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(46, 90, 158, .12), rgba(46, 90, 158, .04));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: var(--orange);
    font-size: 1.5rem;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    background: linear-gradient(135deg, var(--orange), var(--orange-glow));
    color: var(--white);
    transform: scale(1.1);
}

.value-card h3 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.value-card p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.service-card {
    animation-delay: var(--delay, 0s);
}

.service-card-inner {
    background: var(--white);
    border-radius: 16px;
    padding: 32px 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    border-color: #cbd5e1;
}

.service-hover-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--orange-glow), var(--gold));
    transform: scaleX(0);
    transition: var(--transition-slow);
}

.service-card-inner:hover .service-hover-line {
    transform: scaleX(1);
}

.service-icon-wrap {
    width: 56px;
    height: 56px;
    background: #1e3a8a;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    font-size: 1.4rem;
    margin-bottom: 0;
    transition: var(--transition);
}

.service-card-inner:hover .service-icon-wrap {
    transform: scale(1.05) rotate(-3deg);
    background: #1e3a8a;
    color: #ffffff;
}

.service-card-inner h3 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: #1e3a8a;
    font-size: 1.15rem;
    margin-bottom: 0;
    line-height: 1.3;
}

.service-card-inner>p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #475569;
}

.service-list li i {
    color: #3b82f6;
    font-size: 0.85rem;
}

/* ============================================================
   ESTADÍSTICAS / CONTADORES
   ============================================================ */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
    opacity: 0.8;
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    display: inline-block;
}

.stat-plus {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    vertical-align: top;
}

.stat-text {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

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

    .stat-plus {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   PROJECTS GALLERY
   ============================================================ */
.projects {
    padding: 100px 0;
    background: var(--navy);
}

.projects .section-title {
    color: var(--white);
}

.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 90, 158, 0.4);
}

.projects-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.gallery-item {
    transition: all 0.4s ease-out;
    opacity: 1;
    transform: scale(1);
    flex: 1 1 calc(33.333% - 30px);
    max-width: calc(33.333% - 20px);
    min-width: 300px;
}

.gallery-item.hidden {
    display: none;
}

.project-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
    height: 100%;
}

.project-image {
    width: 100%;
    height: 100%;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 36, 68, 0.95) 0%, rgba(20, 36, 68, 0.6) 50%, rgba(20, 36, 68, 0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-cat {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease 0.1s;
}

.project-overlay h3 {
    color: var(--white);
    font-size: 1.35rem;
    margin-bottom: 10px;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease 0.2s;
}

.project-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease 0.3s;
}

.project-card:hover .project-overlay p {
    max-height: 100px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible;
}

.project-arrow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--white);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.4s;
}

.project-card:hover .project-cat,
.project-card:hover .project-overlay h3 {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible;
}

.project-card:hover .project-arrow {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    .project-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 15px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        flex: 0 0 auto;
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    .projects-gallery {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .project-overlay {
        padding: 20px;
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(20, 36, 68, 0.95) 0%, rgba(20, 36, 68, 0.7) 60%, transparent 100%);
    }

    .project-card .project-cat,
    .project-card .project-overlay h3,
    .project-card .project-overlay p {
        opacity: 1;
        transform: translateY(0);
    }

    .project-card .project-arrow {
        display: none;
        /* Hide arrow on mobile to save space */
    }
}

/* ============================================================
   CLIENTS
   ============================================================ */
.clients {
    padding: 80px 0;
    background: var(--off-white);
    overflow: hidden;
}

.clients-marquee {
    margin-top: 10px;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 40px;
    animation: marquee 80s linear infinite;
    width: max-content;
}

.client-item {
    flex-shrink: 0;
}

.client-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    height: 80px;
    min-width: 200px;
}

.client-logo-wrap img.real-logo {
    height: 50px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition);
}

.client-logo-wrap:hover {
    border-color: rgba(46, 90, 158, .3);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.client-logo-wrap:hover img.real-logo {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

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

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

/* ============================================================
   CTA
   ============================================================ */
.cta {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1920&h=600&fit=crop') center/cover no-repeat;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, .93), rgba(15, 34, 64, .88));
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.15;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .65);
    max-width: 500px;
    margin: 0 auto 32px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 48px;
    align-items: flex-start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px;
    background: var(--off-white);
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid transparent;
}

.contact-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-color: rgba(46, 90, 158, .15);
    transform: translateX(6px);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--orange), var(--orange-glow));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
}

.contact-card h4 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--navy);
    font-size: 0.92rem;
    margin-bottom: 4px;
}

.contact-card p,
.contact-card a {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.contact-card a:hover {
    color: var(--orange);
}

.location-link {
    text-decoration: none;
    display: flex !important;
}

.map-link-text {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.location-link:hover .map-link-text {
    color: var(--navy);
}

.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
}

.contact-form h3 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--navy);
    font-size: 1.3rem;
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--gray-900);
    transition: var(--transition);
    background: var(--white);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(46, 90, 158, .1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7a90' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--navy);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-brand p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, .4);
    margin-top: 16px;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--white);
    font-size: 0.92rem;
    margin-bottom: 18px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, .45);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--orange-glow);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, .45);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--orange);
    font-size: 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, .3);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--delay, 0s);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
    padding: 80px 0;
    background: var(--off-white);
}

.testimonials-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(46, 90, 158, .2) transparent;
}

.testimonials-slider::-webkit-scrollbar {
    height: 6px;
}

.testimonials-slider::-webkit-scrollbar-track {
    background: transparent;
}

.testimonials-slider::-webkit-scrollbar-thumb {
    background-color: rgba(46, 90, 158, .2);
    border-radius: 10px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    min-width: 380px;
    max-width: 450px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    scroll-snap-align: center;
    flex-shrink: 0;
}

.testimonial-icon i {
    color: rgba(46, 90, 158, .15);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-size: 1.05rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--gray-100);
    padding-top: 20px;
}

.author-info h4 {
    font-family: var(--font-primary);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.95rem;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ============================================================
   ALIADOS COMERCIALES (PARTNERS)
   ============================================================ */
.partners {
    padding: 80px 0;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.partner-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: var(--off-white);
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid transparent;
}

.partner-card:hover {
    background: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(46, 90, 158, .2);
}

.partner-logo {
    height: 45px;
    /* Uniforme */
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: var(--transition);
}

.partner-card:hover .partner-logo {
    filter: grayscale(0%) opacity(1);
}

/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog {
    padding: 100px 0;
    background: var(--off-white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 50px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(46, 90, 158, .2);
}

.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-date {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--navy);
    color: var(--white);
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-info {
    padding: 30px;
}

.blog-category {
    color: var(--orange);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.blog-info h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--navy);
}

.blog-info p {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--navy);
    font-size: 0.9rem;
    transition: var(--transition);
}

.blog-more:hover {
    color: var(--orange);
    gap: 12px;
}

/* ============================================================
   FOOTER SOCIAL
   ============================================================ */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--orange);
    color: var(--white);
    transform: translateY(-3px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card.project-large {
        grid-column: span 2;
    }

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .step-card:not(:last-child)::after {
        display: none;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Navbar Toggles */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: rgba(13, 27, 94, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 15px;
        padding: 40px;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active,
    .nav-menu.open {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 15px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--white);
    }

    .navbar.scrolled .nav-menu .nav-link {
        color: var(--white);
    }

    .nav-cta {
        margin-top: 20px;
        margin-left: 0;
        width: 100%;
    }

    /* Icon Animation */
    .nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Typography and Padding adjust */
    .section-title {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 2.6rem;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        padding: 0 10px;
    }

    /* Stack CTA Buttons for max Tap Target */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn {
        width: 100% !important;
        justify-content: center;
        padding: 16px 20px;
    }

    /* Stack grids universally */
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .stat-card {
        padding: 24px 15px;
    }

    .stat-card .stat-number {
        font-size: 2.2rem;
    }

    /* Filters horizontal native scroll */
    .filter-btn-group {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 15px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
    }

    .filter-btn {
        white-space: nowrap;
        scroll-snap-align: start;
        flex: 0 0 auto;
        padding: 12px 20px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .whatsapp-fab {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* ---------- Lang Switcher in Mobile Menu ---------- */
    .lang-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        justify-content: center;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .lang-link {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    /* ---------- Hero Mobile ---------- */
    .hero-badge {
        font-size: 0.72rem;
        padding: 6px 14px;
    }

    .hero-scroll {
        bottom: 20px;
    }

    /* ---------- Section Padding ---------- */
    section {
        padding: 60px 0 !important;
    }

    .container {
        padding: 0 16px;
    }

    /* ---------- Values Grid ---------- */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* ---------- Methodology Grid ---------- */
    .methodology-steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .step-card {
        padding: 24px;
        text-align: left;
    }

    .step-card:not(:last-child)::after {
        display: none;
    }

    .step-icon {
        margin: 0 0 12px;
    }

    /* ---------- Gallery Items ---------- */
    .gallery-item {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: unset;
    }

    /* ---------- Testimonial Cards ---------- */
    .testimonial-card {
        min-width: 280px;
        max-width: 320px;
        padding: 28px;
    }

    /* ---------- Partners Grid ---------- */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .partner-card {
        padding: 16px;
    }

    .partner-logo {
        height: 35px;
        filter: grayscale(0%) opacity(1);
    }

    /* ---------- Blog Grid ---------- */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-info {
        padding: 20px;
    }

    .blog-image {
        height: 180px;
    }

    /* ---------- FAQ ---------- */
    .faq-question {
        padding: 16px 18px;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 18px;
    }

    /* ---------- CTA Section ---------- */
    .cta-content h2 {
        font-size: 1.8rem;
    }

    /* ---------- Contact Info Cards ---------- */
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-form-wrap {
        padding: 28px 20px;
    }

    /* ---------- Footer ---------- */
    .footer-social {
        justify-content: center;
    }

    /* ---------- WhatsApp Tooltip ---------- */
    .whatsapp-tooltip {
        display: none;
    }

    /* ---------- Clients Marquee ---------- */
    .client-logo-wrap {
        padding: 10px 20px;
        height: 60px;
        min-width: 150px;
    }

    .client-logo-wrap img.real-logo {
        height: 35px;
        max-width: 120px;
        filter: grayscale(0%) opacity(1);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

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

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

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

    .contact-form-wrap {
        padding: 20px 16px;
    }

    .stat-card .stat-number {
        font-size: 1.8rem;
    }

    .stat-card {
        padding: 16px 10px;
    }

    .testimonial-card {
        min-width: 250px;
        max-width: 280px;
        padding: 20px;
    }

    .testimonial-card p {
        font-size: 0.92rem;
    }

    .step-card {
        padding: 20px;
    }

    .service-card-inner {
        padding: 24px;
    }

    .blog-image {
        height: 150px;
    }

    .partner-card {
        padding: 12px;
    }

    .partner-logo {
        height: 28px;
    }
}

/* ---------- FLOATING HEXAGON MATCHING LOGO ---------- */
.particle {
    position: absolute;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, .15);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: float linear infinite;
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--navy);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s;
}

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

.preloader-content {
    text-align: center;
}

.preloader-logo {
    width: 250px;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

.preloader-logo img {
    width: 100%;
    filter: brightness(0) invert(1);
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.preloader-progress {
    width: 0;
    height: 100%;
    background: var(--orange);
    animation: progress 2.5s ease-out forwards;
}

@keyframes pulse {

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

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

@keyframes progress {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

/* ============================================================
   WHATSAPP FAB
   ============================================================ */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 998;
    transition: var(--transition);
}

.whatsapp-fab:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-tooltip {
    position: absolute;
    right: 80px;
    background: var(--white);
    color: var(--navy);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
}

.whatsapp-fab:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* ============================================================
   METHODOLOGY
   ============================================================ */
.methodology {
    padding: 100px 0;
    background: var(--white);
}

.methodology-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
    position: relative;
}

.step-card {
    background: var(--white);
    padding: 28px 24px;
    border-radius: 16px;
    position: relative;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    text-align: center;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 20px -4px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    border-color: #3b82f6;
}

/* Step connector line between cards */
.step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 55px;
    right: -14px;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #93c5fd);
    z-index: 1;
}

.step-number {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--white);
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition);
}

.step-card:hover .step-number {
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    transform: scale(1.05);
}

.step-icon {
    width: 56px;
    height: 56px;
    background: #1e3a8a;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    font-size: 1.4rem;
    margin: 0 auto 12px;
    transition: var(--transition);
}

.step-card:hover .step-icon {
    background: #1e3a8a;
    color: #ffffff;
    transform: scale(1.08) rotate(-3deg);
}

.step-card h3 {
    margin-bottom: 8px;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 1.05rem;
}

.step-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.9rem;
    text-align: justify;
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 10001;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--orange), var(--orange-dark));
    width: 0%;
    transition: width 0.1s ease;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) rotate(720deg);
        opacity: 0;
    }
}

/* ========== FAQ SECTION ========== */
.faq {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 25px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    font-family: var(--font-heading);
    transition: color var(--transition-fast);
}

.faq-question i {
    color: var(--accent-blue);
    transition: transform var(--transition-normal);
}

.faq-item.active .faq-question {
    color: var(--accent-blue);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
    padding: 0 25px;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-light);
    line-height: 1.6;
}