/* ==========================================================
   Design System & Tokens - Sinergia GIR 
   ========================================================== */
:root {
    /* Colors inspired by hummingbird logo and premium corporate look */
    --primary: #006ebc;
    /* Vibrant corporate blue */
    --primary-light: #00a8e8;
    /* Cyan-ish blue from the wings */
    --primary-dark: #023e8a;
    /* Deep blue from tail */
    --secondary: #0a1f42;
    /* Dark blue for modern depth */
    --surface: #ffffff;
    --surface-alt: #f1f5f9;
    --background: #fafafa;

    --text: #1e293b;
    --text-muted: #64748b;
    --text-inverse: #f8fafc;

    /* Typography */
    --font-heading: 'Lato', sans-serif;
    --font-body: 'Lato', sans-serif;

    /* Variables */
    --section-py: 6rem;
    --nav-height: 80px;

    /* Shadows & Radii */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-pill: 9999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(0, 168, 232, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);

    /* Animations */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: all 0.3s var(--ease-out);
}

/* ==========================================================
   Resets and Global Styles 
   ========================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    font-weight: 500;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.03em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================
   Layout Utils 
   ========================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.py-section {
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
}

.py-half {
    padding-top: calc(var(--section-py)/2);
    padding-bottom: calc(var(--section-py)/2);
}

.mt-sm {
    margin-top: 1.5rem;
}

.mt-md {
    margin-top: 3rem;
}

.mt-lg {
    margin-top: 5rem;
}

.mx-auto {
    margin-inline: auto;
}

.text-center {
    text-align: center;
}

/* Grid systems */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.grid-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.grid-4-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.gap-large {
    gap: 4rem;
}

.align-center {
    align-items: center;
}

.align-start {
    align-items: flex-start;
}

/* Effects & Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.bg-light {
    background-color: var(--surface-alt);
}

.dark-section {
    background: linear-gradient(135deg, #102a57 0%, #06152e 100%);
    color: var(--text-inverse);
}

.text-white {
    color: var(--text-inverse);
}

.text-light-gray {
    color: var(--text-muted);
}

.divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-pill);
    margin: 1.5rem 0;
}

.rounded-img {
    border-radius: var(--radius-lg);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-xl {
    box-shadow: 0 40px 60px -15px rgba(0, 0, 0, 0.2);
}

/* Decorative Blobs (Background) - Animated to feel alive */
.blur-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
    animation: blob-breathe 10s infinite alternate ease-in-out;
}

@keyframes blob-breathe {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.1) translate(20px, -20px);
        opacity: 0.5;
    }
}

.blob-1 {
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary-light);
}

.blob-2 {
    top: 40%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: var(--primary);
    animation-delay: -5s;
    /* Offset animation */
}

/* ==========================================================
   Buttons 
   ========================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem 1.8rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out);
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--surface);
    box-shadow: 0 4px 15px rgba(0, 110, 188, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(0, 110, 188, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    color: var(--surface);
    transform: translateY(-4px) scale(1.02);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--surface);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--secondary);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ==========================================================
   Navbar (Glassmorphism)
   ========================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 100;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-img {
    height: 45px;
    transition: var(--transition);
}

.navbar.scrolled .logo-img {
    transform: scale(0.9);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 800;
    font-size: 1rem;
    position: relative;
    display: inline-block;
    color: var(--text-inverse);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.navbar.scrolled .nav-links a {
    color: var(--secondary);
}

.nav-links a:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition);
}

.navbar.scrolled .nav-links a::after {
    background: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-inverse);
    cursor: pointer;
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--secondary);
}

/* ==========================================================
   Hero Section (Parallax & Premium feeling)
   ========================================================== */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 31, 66, 0.95) 0%, rgba(5, 16, 42, 0.8) 100%),
        url('https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
    z-index: 0;
    will-change: transform;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(0, 188, 227, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    text-align: left;
}

.badge {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: rgba(0, 188, 227, 0.1);
    border: 1px solid rgba(0, 188, 227, 0.3);
    border-radius: var(--radius-pill);
    color: var(--primary-light);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 188, 227, 0.15);
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.badge:hover {
    transform: translateY(-3px);
    background: rgba(0, 188, 227, 0.15);
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.8rem);
    color: var(--surface);
    margin-bottom: 1.5rem;
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.text-subtitle-logo {
    font-size: 0.55em;
    letter-spacing: -0.01em;
    line-height: 1.1;
    display: inline-block;
    margin-top: 0.2rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    color: #cbd5e1;
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.7;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Mouse Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    z-index: 2;
    transition: color 0.3s ease;
}

.scroll-indicator:hover {
    color: rgba(255, 255, 255, 0.9);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-indicator:hover .mouse {
    border-color: rgba(255, 255, 255, 0.9);
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 4px;
    animation: scroll 1.5s cubic-bezier(0.15, 0.41, 0.69, 0.94) infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(14px);
        opacity: 0;
    }
}

/* ==========================================================
   Quienes Somos 
   ========================================================== */
.lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.image-wrapper {
    position: relative;
    padding-right: 2rem;
    padding-bottom: 2rem;
}

.image-wrapper::after {
    content: '';
    position: absolute;
    top: 2rem;
    right: 0;
    bottom: 0;
    left: 2rem;
    border: 3px solid var(--primary-light);
    border-radius: var(--radius-lg);
    z-index: -1;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-wrapper:hover::after {
    transform: translate(12px, 12px);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: rgba(255, 255, 255, 0.9);
    padding: 1.8rem 2.2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    z-index: 2;
    border-left: 5px solid var(--primary);
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.experience-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.exp-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.05em;
    text-shadow: 0 5px 15px rgba(0, 118, 206, 0.2);
}

.exp-text {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-muted);
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Professionals Banner */
.professionals-banner-container {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1f42 0%, #05102a 100%);
    padding: 1.5rem 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Ultra premium edge masking for continuous banners */
    -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
    mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
}

.professionals-banner {
    display: flex;
    white-space: nowrap;
}

.banner-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    animation: scroll-banner 35s linear infinite;
}

.banner-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--surface);
    font-weight: 700;
    font-size: 1.15rem;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
}

.banner-item i {
    color: var(--primary-light);
    font-size: 1.3rem;
}

.banner-separator {
    height: 35px;
    width: auto;
    opacity: 0.4;
    filter: grayscale(100%) brightness(200%);
}

@keyframes scroll-banner {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Scrolls precisely half its length since we duplicate the elements */
}

/* ==========================================================
   Servicios (Cards Interactivas)
   ========================================================== */
/* Hover Service Cards (Flip Effect) */
.hover-service-card {
    height: 520px;
    perspective: 2000px;
    background-color: transparent;
    cursor: pointer;
    transform-style: preserve-3d;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease;
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.hover-service-card:hover .card-front,
.hover-service-card:hover .card-back {
    box-shadow: var(--shadow-xl);
}

.card-front {
    background: var(--surface);
    transform: rotateY(0deg);
    border: 3px solid #1a235b;
    /* Dark blue border like image */
    z-index: 2;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

/* Dark variant styling for alternating pattern */
.hover-service-card.dark-card .card-front {
    background: linear-gradient(135deg, #0a1f42 0%, #05102a 100%);
    border: 1px solid rgba(0, 118, 206, 0.3);
    /* Cyan border */
    box-shadow: 0 10px 30px rgba(0, 118, 206, 0.1);
}

.hover-service-card.dark-card:hover .card-front {
    box-shadow: 0 15px 40px rgba(0, 118, 206, 0.3);
}

.hover-service-card.dark-card .card-title {
    background: linear-gradient(to bottom, #7beaff 0%, #006ebc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    /* Reset shadow for text gradient to work */
}

.hover-service-card.dark-card .card-icon i {
    color: #7beaff;
    text-shadow: 0 0 20px rgba(123, 234, 255, 0.4);
}

.card-front::before {
    display: none;
    /* Removed top gradient bar for this style */
}

.card-back {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--surface);
    transform: rotateY(180deg);
    padding: 2.5rem 2rem;
    overflow-y: auto;
}

.hover-service-card:hover .card-front {
    transform: rotateY(-180deg);
}

.hover-service-card:hover .card-back {
    transform: rotateY(0deg);
}

.card-icon {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    color: var(--primary);
}

.card-icon img {
    max-width: 100%;
    height: auto;
}

.card-title {
    font-size: 2.1rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 0.5rem;
    background: linear-gradient(to bottom, #008be5 0%, #1a235b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-title-back {
    color: var(--surface);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.card-text {
    display: none;
    /* Hidden on front based on image */
}

.hover-hint {
    display: none;
    /* Hidden to keep clean look based on image */
}

.hover-hint i {
    animation: bounceRight 2s infinite;
}

@keyframes bounceRight {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

.back-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.back-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
    cursor: default;
}

.back-list li:hover {
    transform: translateX(6px);
    color: var(--primary-light);
}

.back-list li i {
    color: var(--primary-light);
    margin-top: 4px;
    font-size: 0.85rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-list li:hover i {
    transform: scale(1.3) rotate(10deg);
}

/* Custom scrollbar for back card if text is too long */
.card-back::-webkit-scrollbar {
    width: 6px;
}

.card-back::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.card-back::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

/* ==========================================================
   Trayectoria Metrics
   ========================================================== */
.stats-container {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 4rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 1.5rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(12px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(123, 234, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.stat-item:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 188, 227, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 188, 227, 0.1);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-number,
.stat-plus,
.stat-label {
    position: relative;
    z-index: 1;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--surface);
    display: inline-block;
    letter-spacing: -0.03em;
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-light);
    text-shadow: 0 0 20px rgba(0, 188, 227, 0.5);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-top: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ==========================================================
   CTA Box
   ========================================================== */
.cta-box {
    background: linear-gradient(135deg, rgba(8, 20, 48, 0.95) 0%, rgba(3, 9, 25, 0.98) 100%), url('https://images.unsplash.com/photo-1507679799987-c73779587ccf?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
    background-blend-mode: overlay;
    border-radius: var(--radius-lg);
    padding: 5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 188, 227, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.cta-box::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 188, 227, 0.4) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.cta-content {
    max-width: 60%;
}

.cta-btn {
    background: var(--surface);
    color: var(--primary-dark);
}

.cta-btn:hover {
    background: var(--secondary);
    color: var(--surface);
}

/* ==========================================================
   Footer
   ========================================================== */
.footer {
    background: linear-gradient(135deg, #0a1f42 0%, #05102a 100%);
    color: var(--text-inverse);
    padding-top: 5rem;
    border-top: 4px solid var(--primary);
}

.footer-col h3 {
    color: var(--surface);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-light);
}

.footer-col ul li {
    margin-bottom: 1rem;
    color: #94a3b8;
}

.footer-col ul li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-col ul li i {
    color: var(--primary-light);
    width: 25px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--surface);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 4rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* ==========================================================
   Animations (Intersection Observer)
   ========================================================== */
.reveal,
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 1s var(--ease-out);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal {
    transform: translateY(30px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal.active,
.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* ==========================================================
   New Components: Accordion & Carousel
   ========================================================== */

/* Carousel */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    height: 100%;
    /* removed overflow: hidden so border shows */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 2rem);
    height: calc(100% - 2rem);
    border-radius: var(--radius-lg);
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.experience-badge {
    z-index: 2;
}

/* Ensure badge is above carousel */



/* Utils */
.w-100 {
    width: 100%;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

/* ==========================================================
   Responsive Viewport
   ========================================================== */
@media screen and (max-width: 992px) {

    .grid-2-cols,
    .grid-3-cols,
    .grid-4-cols {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3rem;
    }

    .cta-box {
        flex-direction: column;
        text-align: center;
    }

    .cta-content {
        max-width: 100%;
    }

    .experience-badge {
        left: 0;
        bottom: -20px;
        z-index: 10;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--secondary) !important;
        font-size: 1.2rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-cta {
        display: none;
    }
}

@media screen and (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }

    /* Ultrawide adaptations */
    body {
        font-size: 1.1rem;
    }

    .hero {
        min-height: 900px;
    }
}

/* ==========================================================
   Special Text Animations (Quiénes Somos)
   ========================================================== */
.animate-text-slide {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.qs-content.active .animate-text-slide {
    opacity: 1;
    transform: translateY(0);
}

.text-highlight {
    color: var(--primary);
    font-weight: 800;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 15px rgba(0, 118, 206, 0.3);
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s ease;
}

.qs-content.active .text-highlight::after {
    transform: scaleX(1);
    transform-origin: left;
    transition-delay: 1.2s;
    /* Reveals smoothly after text shows */
}

/* ==========================================================
   Infografías / Profile Cards (Líderes)
   ========================================================== */
.profile-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    z-index: 50;
}

.dark-card.profile-card {
    background: linear-gradient(135deg, #0a1f42 0%, #05102a 100%);
    border: 1px solid rgba(0, 118, 206, 0.3);
    color: var(--surface);
}

.dark-card.profile-card:hover {
    box-shadow: 0 25px 50px rgba(0, 118, 206, 0.2);
}

.profile-card-header {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.profile-name {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: 0.2rem;
}

.dark-card .profile-name {
    color: #7beaff;
}

.profile-role {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.dark-card .profile-role {
    color: rgba(255, 255, 255, 0.7);
}

.profile-card-content {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    min-height: 400px;
    padding-top: 50px;
}

.profile-photo {
    width: 220px;
    height: 300px;
    position: relative;
    z-index: 5;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    pointer-events: none; /* Asegura que la foto no bloquee el mouse */
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
}

.dark-card .profile-photo {
    border-color: transparent;
}

/* Base decorativa de líneas como en la maqueta */
.card-bg-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-radial-gradient(circle at 35% 50%, transparent 0, transparent 6px, rgba(0, 110, 188, 0.1) 7px, rgba(0, 110, 188, 0.1) 8px);
    z-index: 0;
    border-radius: var(--radius-lg);
    -webkit-mask-image: radial-gradient(circle at 35% 50%, black 20%, transparent 80%);
    mask-image: radial-gradient(circle at 35% 50%, black 20%, transparent 80%);
}

.dark-card .card-bg-lines {
    background-image: repeating-radial-gradient(circle at 35% 50%, transparent 0, transparent 6px, rgba(123, 234, 255, 0.1) 7px, rgba(123, 234, 255, 0.1) 8px);
}

.profile-timeline-arc {
    display: none;
}

.dark-card .profile-timeline-arc {
    display: none;
}

/* Node wrapper positions the origin of the arc */
.timeline-nodes-wrapper {
    position: absolute;
    left: 45%;
    top: 50%;
    width: 0;
    height: 0;
    z-index: 10;
}

/* Nodes placed along the right arc acting as curved blocks */
.timeline-node {
    position: absolute;
    top: -20px;
    left: -50px;
    width: 100px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-dark);
    background: var(--surface);
    border: 1px solid var(--primary-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    z-index: 12;
}

/* Pseudo-elemento para hacer el área de hover mucho más grande y tolerante (no visible) */
.timeline-node::before {
    content: '';
    position: absolute;
    top: -15px; right: -15px; bottom: -15px; left: -15px;
    z-index: -1;
}

.dark-card .timeline-node {
    color: #05102a;
    background: var(--surface);
}

.timeline-node:hover {
    background: var(--primary);
    color: var(--surface);
    box-shadow: 0 6px 15px rgba(0, 188, 227, 0.3);
    border-color: var(--primary);
    z-index: 20;
}

.dark-card .timeline-node:hover {
    background: #7beaff;
    color: #05102a;
    border-color: #7beaff;
}

/* Positioning them in a semi-circle over the right side (using clean XY coordinates) */
.tn-1 {
    transform: translate(110px, -155px);
}

.tn-2 {
    transform: translate(200px, -65px);
}

.tn-3 {
    transform: translate(200px, 65px);
}

.tn-4 {
    transform: translate(110px, 155px);
}

/* Detail popup when hovering over a node */
.timeline-detail {
    position: absolute;
    left: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%) translateX(-15px);
    background: var(--surface);
    color: var(--text);
    padding: 1rem 1.2rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    border-left: 4px solid var(--primary);
    pointer-events: none;
    text-align: left;
    z-index: 30;
}

/* Flechita del popup */
.timeline-detail::after {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent var(--surface) transparent transparent;
}

.timeline-node:hover .timeline-detail {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.dark-card .timeline-detail {
    background: #05102a;
    border-color: #7beaff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.dark-card .timeline-detail::after {
    border-color: transparent #05102a transparent transparent;
}

.timeline-detail h4 {
    margin: 0 0 0.3rem 0;
    font-size: 0.95rem;
    color: #0076ce;
    line-height: 1.2;
}

.dark-card .timeline-detail h4 {
    color: #7beaff;
    /* High contrast cyan */
}

.timeline-detail p {
    margin: 0;
    font-size: 0.82rem;
    color: #475569;
    font-weight: 500;
}

.dark-card .timeline-detail p {
    color: rgba(255, 255, 255, 0.85);
    /* Readability boost */
}

/* Responsive adjustments for Profile Cards */
@media screen and (max-width: 992px) {
    .profile-card-content {
        min-height: 350px;
    }

    .timeline-nodes-wrapper {
        top: 60%;
    }
    
    .card-bg-lines {
        width: 260px;
        height: 260px;
    }
}

@media screen and (max-width: 768px) {
    .timeline-detail {
        width: 150px;
    }
}

@media screen and (max-width: 500px) {
    .profile-photo {
        width: 180px;
        height: 220px;
    }

    .timeline-nodes-wrapper {
        left: 40%;
    }

    .timeline-node {
        width: 70px;
        height: 45px;
        font-size: 0.9rem;
    }

    .tn-1 {
        transform: translate(75px, -115px);
    }

    .tn-2 {
        transform: translate(140px, -45px);
    }

    .tn-3 {
        transform: translate(140px, 45px);
    }

    .tn-4 {
        transform: translate(75px, 115px);
    }
}

/* ==========================================================
   Team Carousel
   ========================================================== */
.team-carousel-container {
    padding: 2rem 0 4rem;
}

.team-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team-carousel-btn {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
    z-index: 10;
}

.team-carousel-btn:hover {
    color: var(--primary-dark);
    transform: scale(1.1);
}

.team-carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.team-carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    list-style: none;
    margin: 0;
    padding: 1rem 0;
    /* Space for box-shadows */
}

.team-card {
    min-width: calc(100% / 5);
    /* 5 cards visible by default */
    padding: 0 0.5rem;
    /* Space between cards */
    flex-shrink: 0;
}

.team-card-inner {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.team-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: var(--transition);
}

.team-card:hover .team-card-inner {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-xl);
}

.team-card:hover .team-card-inner::before {
    opacity: 1;
}

.team-img-wrapper {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.8rem;
    background: var(--surface-alt);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.15);
}

/* Light Card */
.team-card.light-card .team-card-inner {
    background: var(--surface);
}

.team-card.light-card .team-name {
    color: var(--secondary);
    font-size: 1.25rem;
    font-family: var(--font-heading);
    margin-bottom: 0.3rem;
    font-weight: 800;
}

.team-card.light-card .team-role {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Dark Card */
.team-card.dark-card .team-card-inner {
    background: linear-gradient(135deg, #0a1f42 0%, #05102a 100%);
    border: 1px solid rgba(0, 118, 206, 0.3);
}

.team-card.dark-card .team-card-inner::before {
    background: linear-gradient(90deg, #7beaff, var(--primary));
}

.team-card.dark-card .team-img-wrapper {
    border-color: rgba(0, 118, 206, 0.5);
    background: #0a1f42;
    /* Matching dark internal */
}

.team-card.dark-card .team-name {
    color: var(--surface);
    font-size: 1.25rem;
    font-family: var(--font-heading);
    margin-bottom: 0.3rem;
    font-weight: 800;
}

.team-card.dark-card .team-role {
    color: #7beaff;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Responsiveness for team carousel */
@media screen and (max-width: 1200px) {
    .team-card {
        min-width: calc(100% / 4);
    }
}

@media screen and (max-width: 992px) {
    .team-card {
        min-width: calc(100% / 3);
    }
}

@media screen and (max-width: 768px) {
    .team-card {
        min-width: calc(100% / 2);
    }
}

@media screen and (max-width: 480px) {
    .team-card {
        min-width: 100%;
    }
}