/* =====================================================
   SCI-A — styles.css  v3
   Paleta derivada del logo: azul corporativo + oscuro
   ===================================================== */

/* =====================================================
   LANGUAGE SPLASH
   ===================================================== */
.lang-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.55s ease, visibility 0.55s ease;
    overflow: hidden;
}

.lang-splash-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.lang-splash-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(155deg, rgba(11,24,41,0.88) 0%, rgba(16,33,56,0.82) 50%, rgba(11,24,41,0.90) 100%);
    z-index: 1;
}

.lang-splash-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    padding: 2rem;
}

.lang-splash.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.lang-splash-logo {
    height: 130px;
    width: auto;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.92);
    padding: 14px 20px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.40);
}

.lang-splash-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #fff;
    line-height: 1;
}

.lang-splash-title span { color: #3A84D8; }

.lang-splash-sub {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.38);
}

.lang-splash-btns {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 0.5rem;
    border: 1px solid rgba(17,105,196,0.35);
}

.lang-splash-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.25s;
}

.lang-splash-btn:hover {
    background: rgba(17,105,196,0.12);
}

.lang-flag { font-size: 1.5rem; line-height: 1; }

.lang-name {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
}

.lang-splash-divider {
    width: 1px;
    height: 56px;
    background: rgba(17,105,196,0.35);
    flex-shrink: 0;
}

/* =====================================================
   LANGUAGE FLAG SWITCHER
   ===================================================== */
.lang-switcher {
    position: relative;
    margin-left: 1.5rem;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid rgba(255,255,255,0.18);
    padding: 0.35rem 0.7rem;
    cursor: pointer;
    border-radius: 2px;
    transition: border-color 0.2s, background 0.2s;
}

.lang-current:hover {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.06);
}

#navbar.scrolled .lang-current {
    border-color: var(--border-light);
}

#navbar.scrolled .lang-current:hover {
    border-color: var(--blue-border);
    background: var(--blue-dim);
}

.lang-flag-img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 1px;
    display: block;
    flex-shrink: 0;
}

.lang-current span {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
}

#navbar.scrolled .lang-current span { color: var(--text-body); }

.lang-chevron {
    color: rgba(255,255,255,0.5);
    transition: transform 0.25s;
    flex-shrink: 0;
}

#navbar.scrolled .lang-chevron { color: var(--text-light); }

.lang-current[aria-expanded="true"] .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 24px rgba(13,27,42,0.12);
    min-width: 130px;
    z-index: 100;
    overflow: hidden;
    animation: dropdownFade 0.18s ease;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.625rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.lang-option:hover { background: var(--off-white); }

.lang-option span {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-body);
}

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

:root {
    /* Celeste — color corporativo SCI-A */
    --celeste:        #1EB8F0;
    --celeste-dark:   #0F99CC;
    --celeste-dim:    rgba(30, 184, 240, 0.12);
    --celeste-border: rgba(30, 184, 240, 0.30);

    /* Dorado — acento para métricas */
    --gold:        #C9A84C;
    --gold-dark:   #A8883A;
    --gold-dim:    rgba(201, 168, 76, 0.12);
    --gold-border: rgba(201, 168, 76, 0.28);

    /* Brand — azul marino */
    --blue:        #1169C4;
    --blue-dark:   #0E55A0;
    --blue-light:  #3A84D8;
    --blue-dim:    rgba(17, 105, 196, 0.08);
    --blue-border: rgba(17, 105, 196, 0.22);

    /* Dark (hero / footer) */
    --dark:        #0B1829;
    --dark-mid:    #0F2138;
    --dark-light:  #132540;

    /* Superficies claras */
    --white:       #F8FAFD;
    --off-white:   #EEF3FA;
    --light-gray:  #E4EBF5;
    --mid-gray:    #C4CFDE;

    /* Texto */
    --text-dark:   #0D1B2A;
    --text-body:   #3A4D63;
    --text-light:  #6B82A0;

    /* Bordes */
    --border-light: rgba(17, 105, 196, 0.13);
    --border-blue:  rgba(17, 105, 196, 0.28);
    --border-dark:  rgba(255, 255, 255, 0.08);

    --gap:   90px;
    --max-w: 1200px;
}

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

body {
    background-color: var(--off-white);
    color: var(--text-dark);
    font-family: 'DM Sans', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-align: justify;
}

/* --- Tipografía --- */
h1, h2, h3 {
    font-family: 'Bebas Neue', Arial, sans-serif;
    line-height: 1.05;
    letter-spacing: 0.04em;
    color: var(--text-dark);
    text-align: left;
}

h4, h5 {
    font-family: 'DM Sans', Arial, sans-serif;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: var(--text-dark);
    text-align: left;
}

h2 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h4 { font-size: 1.0625rem; font-weight: 700; }

p  { color: var(--text-body); line-height: 1.75; }

.blue { color: var(--blue); }

a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* --- Container --- */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* --- Botones --- */
.btn-primary {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    background: transparent;
    color: var(--blue);
    border: 1px solid var(--blue-border);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

/* Botón para secciones claras */
.btn-dark {
    color: var(--text-dark);
    border-color: var(--border-light);
}

.btn-dark:hover {
    background: var(--text-dark);
    color: var(--white);
    border-color: var(--text-dark);
}

.btn-large { padding: 1.125rem 3.5rem; font-size: 0.9375rem; }

/* --- Section Header --- */
.section-header { margin-bottom: 3.5rem; }

.section-tag {
    display: inline-block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.5rem;
}

.section-tag::after {
    content: '';
    display: block;
    width: 28px;
    height: 1.5px;
    background: var(--blue);
    margin-top: 0.5rem;
}

.section-desc {
    max-width: 640px;
    margin-top: 0.75rem;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}


/* =====================================================
   NAVBAR
   ===================================================== */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.125rem 0;
    transition: background 0.4s, padding 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 0.625rem 0;
    box-shadow: 0 1px 0 var(--border-light), 0 4px 24px rgba(13,27,42,0.07);
}

/* Logo navbar */
.nav-logo-dark {
    height: 44px;
    width: auto;
    display: none;
    transition: filter 0.3s;
}

.nav-logo-light {
    height: 44px;
    width: auto;
    display: none;
}

#navbar.scrolled .nav-logo-dark  { display: none; }
#navbar.scrolled .nav-logo-light {
    display: block;
    /* Colores naturales sobre fondo blanco */
    mix-blend-mode: normal;
    filter: none;
}

.nav-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links li { position: relative; }

.nav-links a {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    padding-bottom: 4px;
    transition: color 0.25s;
}

/* underline animation */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--celeste);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

#navbar.scrolled .nav-links a       { color: var(--text-light); }
#navbar.scrolled .nav-links a:hover,
#navbar.scrolled .nav-links a.active { color: var(--text-dark); }

.nav-cta {
    color: rgba(255,255,255,0.90) !important;
    border: 1px solid rgba(255,255,255,0.22);
    padding: 0.4rem 1.25rem;
    transition: background 0.25s, border-color 0.25s, color 0.25s !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.45) !important;
}

#navbar.scrolled .nav-cta {
    color: var(--blue) !important;
    border-color: var(--blue-border) !important;
}

#navbar.scrolled .nav-cta:hover {
    background: var(--blue-dim) !important;
}

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--white);
    transition: transform 0.3s, opacity 0.3s, background 0.4s;
}

#navbar.scrolled .nav-toggle span { background: var(--text-dark); }

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* =====================================================
   HERO  (oscuro — layout asimétrico)
   ===================================================== */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--dark);
}

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

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ── Video background ── */
.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transform: translateY(8%);
    /* Strip original colors completely → pure luminance */
    filter: grayscale(1) brightness(0.85) contrast(1.15);
}

/* Colorize layer: paints the grayscale video with the page palette */
.hero-bg-colorize {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        #0B1829 0%,
        #1169C4 40%,
        #1EB8F0 70%,
        #0F2138 100%
    );
    mix-blend-mode: color;
    opacity: 0.9;
    z-index: 0;
}

/* Directional overlay: dark left (text readable) → translucent right (video visible) */
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right,
            rgba(11,24,41,0.96) 0%,
            rgba(11,24,41,0.82) 45%,
            rgba(11,24,41,0.45) 75%,
            rgba(11,24,41,0.20) 100%),
        linear-gradient(to bottom,
            rgba(11,24,41,0.55) 0%,
            transparent 25%,
            transparent 70%,
            rgba(11,24,41,0.80) 100%);
}

/* Vignette corners */
.hero-bg-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 65% 50%, transparent 35%, rgba(5,14,28,0.55) 100%);
    pointer-events: none;
}

/* Subtle scanline texture */
.hero-bg-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0,0,0,0.06) 3px,
        rgba(0,0,0,0.06) 4px
    );
    pointer-events: none;
    z-index: 1;
}

/* ── Sim badge (live indicator) ── */
.hero-sim-badge {
    position: absolute;
    bottom: 7.5rem;
    right: 2.5rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(11,24,41,0.65);
    border: 1px solid rgba(30,184,240,0.35);
    border-radius: 2rem;
    padding: 0.35rem 0.9rem 0.35rem 0.6rem;
    backdrop-filter: blur(8px);
}

.hero-sim-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1EB8F0;
    box-shadow: 0 0 6px #1EB8F0, 0 0 12px rgba(30,184,240,0.5);
    animation: simPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.hero-sim-label {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(30,184,240,0.9);
}

@keyframes simPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px #1EB8F0, 0 0 12px rgba(30,184,240,0.5); }
    50%       { opacity: 0.5; box-shadow: 0 0 3px #1EB8F0, 0 0 6px rgba(30,184,240,0.3); }
}

/* Geometric grid texture */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(17, 105, 196, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 105, 196, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
}

/* Noise overlay */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.025;
    z-index: 2;
}

/* Asymmetric layout */
.hero-layout {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 60fr 40fr;
    gap: 3rem;
    align-items: center;
    flex: 1;
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.hero-layout:has(.hero-left:only-child) {
    grid-template-columns: 1fr;
    max-width: 820px;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-brand {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    opacity: 0;
    height: 78px;
}

.hero-brand-logo {
    height: 78px;
    width: auto;
    flex-shrink: 0;
}

.hero-brand-name {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    line-height: 1.4;
    width: 210px;
    overflow: hidden;
    border-left: 1px solid rgba(255,255,255,0.2);
    padding-left: 0.85rem;
    margin-top: 4px;
}

.hero-eyebrow {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--celeste);
    margin-bottom: 0.75rem;
    opacity: 0;
}

.hero-title {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    letter-spacing: 0.04em;
    line-height: 0.95;
    color: var(--white);
    margin-bottom: 1rem;
    opacity: 0;
    text-align: left;
    white-space: nowrap;
}

.hero-accent {
    color: var(--celeste);
    display: block;
}

/* ── Legal name band ── */
.legal-name-band {
    background: var(--off-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.1rem 0;
}

.legal-name-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.legal-name-line {
    flex: 1;
    height: 1px;
    background: var(--border);
    max-width: 120px;
}

.legal-name-text {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dark);
    white-space: nowrap;
}

.hero-subtitle {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.58);
    margin-bottom: 0.75rem;
    line-height: 1.6;
    max-width: 480px;
    min-height: 3.2em;
    opacity: 0;
    text-align: left;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
}

.btn-hero-primary {
    display: inline-block;
    padding: 0.875rem 2.25rem;
    background: var(--celeste);
    color: #fff;
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
}

.btn-hero-primary:hover {
    background: var(--celeste-dark);
    transform: translateY(-2px);
}

.btn-hero-secondary {
    display: inline-block;
    padding: 0.875rem 2.25rem;
    background: transparent;
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.25);
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.5);
}

/* Right column — logo */
.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.hero-logo-main {
    width: 100%;
    max-width: 340px;
    height: auto;
    /* Silueta blanca pura sobre el video */
    filter: brightness(0) invert(1);
    opacity: 0.22;
    transition: opacity 0.4s ease, filter 0.4s ease;
}

/* ── Metrics bar — pinned to bottom of hero ── */
.hero-metrics {
    position: relative;
    z-index: 3;
    background: rgba(8, 18, 32, 0.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--gold-border);
}

.hero-metrics-grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.hero-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 4rem;
    gap: 0.25rem;
    text-align: center;
    min-height: 110px;
}

.hero-metric-num {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: clamp(2.25rem, 4vw, 3rem);
    letter-spacing: 0.04em;
    color: #ffffff;
    line-height: 1;
}

.hero-metric-label {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
}

.hero-metric-flags {
    font-size: 1rem;
    letter-spacing: 0.1em;
    line-height: 1;
    margin-top: 0.1rem;
}

.hero-metric-div {
    width: 1px;
    height: 44px;
    background: var(--gold-border);
    flex-shrink: 0;
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.35; transform: scaleY(1); }
    50%       { opacity: 0.85; transform: scaleY(1.12); }
}

/* ── Hero entrance animations ── */
@keyframes heroSlideUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroSlideRight {
    from { opacity: 0; transform: translateX(48px); }
    to   { opacity: 1; transform: translateX(0); }
}

.hero-anim.animated        { animation: heroSlideUp   0.7s cubic-bezier(0.22,1,0.36,1) forwards; }
.hero-anim-right.animated  { animation: heroSlideRight 0.8s cubic-bezier(0.22,1,0.36,1) forwards; }

/* stagger delays set by JS, but fallback order */
.hero-left .hero-anim:nth-child(1) { animation-delay: 0.05s; }
.hero-left .hero-anim:nth-child(2) { animation-delay: 0.2s; }
.hero-left .hero-anim:nth-child(3) { animation-delay: 0.35s; }
.hero-left .hero-anim:nth-child(4) { animation-delay: 0.5s; }
.hero-left .hero-anim:nth-child(5) { animation-delay: 0.65s; }
.hero-anim-right                   { animation-delay: 0.3s; }

/* =====================================================
   QUIÉNES SOMOS  (blanco)
   ===================================================== */
#quienes-somos {
    padding: var(--gap) 0;
    background: var(--off-white);
    border-top: 3px solid var(--blue);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    margin-bottom: 5rem;
}

.about-text .lead {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    line-height: 1.65;
}

.about-text p + p { margin-top: 1rem; }

.about-right {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-card {
    padding: 1.75rem 2rem;
    border-top: 2px solid var(--blue);
    background: var(--white);
}

.about-card h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.625rem;
}

.about-card p {
    font-size: 0.9375rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* Team */
.team-heading {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 1.75rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--border-light);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.team-card {
    display: flex;
    gap: 1.375rem;
    padding: 2rem;
    border: 1px solid var(--border-light);
    background: var(--white);
    transition: box-shadow 0.3s, border-color 0.3s;
    box-shadow: 0 2px 12px rgba(17, 105, 196, 0.06);
}

.team-card:hover {
    box-shadow: 0 8px 32px rgba(13, 27, 42, 0.08);
    border-color: var(--blue-border);
}

.team-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--blue-light);
}

.team-member-photo {
    display: block;
    width: 144px;
    height: 144px;
    object-fit: cover;
    object-position: center top;
    border-radius: 6px;
    margin: 0 auto 0.75rem;
}

.team-info h4 { font-size: 1rem; margin-bottom: 0.2rem; color: var(--text-dark); }

.team-role {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.75rem;
}

.team-info p { font-size: 0.875rem; color: var(--text-light); line-height: 1.65; }


/* =====================================================
   SERVICIOS  (off-white)
   ===================================================== */
#servicios {
    padding: var(--gap) 0;
    background: var(--off-white);
    border-top: 1px solid var(--border-light);
}

/* ── Categorías ── */
.services-category {
    margin-bottom: 4rem;
    position: relative;
}
.services-category:last-child { margin-bottom: 0; }

.services-category-header {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 1.75rem;
    position: relative;
    padding-left: 5.5rem;
}

.category-number {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--blue);
    opacity: 0.08;
    position: absolute;
    left: 0;
    top: -0.75rem;
    pointer-events: none;
    user-select: none;
}

.services-category-header h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(1.375rem, 2.5vw, 1.875rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.category-desc {
    font-size: 0.9375rem;
    color: var(--text-light);
    max-width: 680px;
    line-height: 1.7;
}

/* ── Grid de cards ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.services-grid--single {
    grid-template-columns: 1fr;
    max-width: 520px;
}

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

/* ── Cards ── */
.service-card {
    background: var(--white);
    padding: 2.25rem 2rem 2rem;
    border-top: 3px solid var(--blue);
    border-left: none;
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--blue);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 16px rgba(17, 105, 196, 0.06);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17,105,196,0.03) 0%, transparent 60%);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(17,105,196,0.14), 0 0 0 1px rgba(17,105,196,0.18);
}

.service-icon {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blue);
    opacity: 0.5;
    line-height: 1;
    margin-bottom: 1.25rem;
}

.service-card h4 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.875rem;
    line-height: 1.25;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.service-card > p,
.service-card .service-teaser {
    font-size: 0.9rem;
    color: var(--text-body);
    margin-bottom: 1.25rem;
    line-height: 1.75;
    flex: 1;
}

.service-list {
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
    margin-top: auto;
}

.service-list li {
    font-size: 0.8125rem;
    color: var(--text-body);
    padding: 0.35rem 0 0.35rem 1rem;
    position: relative;
    border-bottom: 1px solid var(--border-light);
    line-height: 1.45;
}

.service-list li:last-child { border-bottom: none; }

.service-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-size: 0.6rem;
    top: 0.5rem;
}

/* ── Variantes de card ── */
.service-card--partner { border-top-color: var(--blue); }
.service-card--extra   { border-top-color: var(--blue-light); }

/* ── Detalle expandible ── */
.service-detail {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

.service-detail[hidden] { display: none; }

.service-detail p {
    font-size: 0.875rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.svc-detail-text {
    font-size: 0.875rem;
    color: var(--text-body);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.svc-photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.svc-photo-grid:has(.svc-photo-item:only-child) {
    grid-template-columns: 1fr;
    max-width: 65%;
}

.svc-photo-item {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.svc-photo-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.svc-photo-item figcaption {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
}

.svc-video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
}

.svc-video-item {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.svc-video-label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
    text-align: center;
}

.svc-video {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    outline: none;
}

/* ── Botón Conoce más ── */
.btn-conoce-mas {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 1.25rem;
    padding: 0.5rem 0;
    background: none;
    border: none;
    border-bottom: 1.5px solid var(--blue-border);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blue);
    cursor: pointer;
    transition: color 0.2s, gap 0.2s, border-color 0.2s;
}

.btn-conoce-mas:hover {
    color: var(--blue-dark);
    gap: 0.6rem;
    border-color: var(--blue);
}

.conoce-arrow {
    display: inline-block;
    transition: transform 0.3s;
}

.btn-conoce-mas[aria-expanded="true"] .conoce-arrow {
    transform: rotate(180deg);
}

/* ── Partner badge ── */
.partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.875rem;
    padding: 0.3rem 0.75rem 0.3rem 0.5rem;
    border: 1px solid rgba(17,105,196,0.3);
    background: rgba(17,105,196,0.08);
    border-radius: 2px;
}

.partner-logo {
    height: 20px;
    width: auto;
    display: block;
}

.partner-badge span {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue);
}

/* Congresos en equipo */
.team-congresses {
    margin-top: 1rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--border-light);
}

.team-congresses-label {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.625rem;
}

.team-congresses-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.team-congresses-list li {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.55;
    padding-left: 1rem;
    position: relative;
}

.team-congresses-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-size: 0.625rem;
    top: 0.35rem;
}

.congress-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-left: 0 !important;
}

.congress-item::before {
    display: none !important;
}

.congress-img {
    display: block;
    height: 18px;
    width: auto;
    max-width: 60px;
    object-fit: contain;
    border-radius: 4px;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.congress-img:hover {
    opacity: 1;
}

.congress-img-link {
    display: inline-block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(13,27,42,0.15);
    transition: box-shadow 0.25s, transform 0.25s;
    text-decoration: none;
}

.congress-img-link:hover {
    box-shadow: 0 8px 28px rgba(17,105,196,0.25);
    transform: translateY(-2px);
}

.congress-img--featured {
    height: auto !important;
    width: 300px !important;
    max-width: 300px !important;
    opacity: 1;
    display: block;
}

.congress-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(11,24,41,0.85) 0%, transparent 100%);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.5rem 0.625rem 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    transition: background 0.25s;
}

.congress-img-link:hover .congress-img-overlay {
    background: linear-gradient(to top, rgba(17,105,196,0.9) 0%, transparent 100%);
}

.congress-img-arrow {
    transition: transform 0.2s;
}

.congress-img-link:hover .congress-img-arrow {
    transform: translateX(3px);
}

/* Contacto directo */
.contact-direct {
    margin-top: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1.75rem;
}

.contact-direct-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-avatar {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-top: 0.15rem;
}

.contact-direct-name {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.contact-direct-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-body);
    font-size: 0.875rem;
    transition: color 0.2s;
    line-height: 1.4;
}

.contact-direct-link svg {
    flex-shrink: 0;
    color: var(--blue);
    opacity: 0.75;
}

.contact-direct-link:hover {
    color: var(--blue);
}

.contact-direct-link:hover svg {
    opacity: 1;
}

/* Partner card en clientes */
.clients-grid--partners {
    grid-template-columns: repeat(auto-fill, minmax(180px, 220px));
}

.client-card--partner {
    border-top: 2px solid var(--blue);
}

.client-sub--partner {
    color: var(--blue);
    font-style: normal;
    font-weight: 600;
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
}



/* =====================================================
   PROYECTOS  (blanco)
   ===================================================== */
#proyectos {
    padding: var(--gap) 0;
    background: var(--off-white);
    border-top: 1px solid var(--border-light);
}

.projects-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
}

.projects-stat {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid var(--border-light);
    transition: background 0.25s;
}

.projects-stat:last-child { border-right: none; }
.projects-stat:hover { background: var(--off-white); }

.projects-stat-number {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
    display: block;
    margin-bottom: 0.375rem;
}

.projects-stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

.projects-note {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-light);
    letter-spacing: 0.04em;
}

/* --- Proyectos destacados --- */
.proj-featured {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.proj-feat-card {
    background: #FFFFFF;
    color: #0D1B2A;
    border: 1px solid rgba(13, 27, 42, 0.10);
    border-left: 3px solid var(--blue);
    padding: 2rem 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
}

.proj-feat-card:hover {
    box-shadow: 0 12px 36px rgba(13, 27, 42, 0.10);
    transform: translateY(-2px);
}

.proj-feat-type {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--blue);
}

.proj-feat-name {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.375rem;
    font-weight: 800;
    color: #0D1B2A;
    line-height: 1.2;
    letter-spacing: 0.02em;
    display: block;
}

.proj-feat-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.875rem;
    border-top: 1px solid rgba(13, 27, 42, 0.08);
    font-size: 0.875rem;
    color: #6B7A90;
    margin-top: auto;
}

.proj-feat-country {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.proj-feat-flag { font-size: 1.125rem; line-height: 1; }

.proj-feat-year {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #FFFFFF;
    background: #0B1829;
    padding: 0.1875rem 0.5rem;
}

/* --- Botón ver todos --- */
.proj-expand-wrap {
    text-align: center;
    margin-bottom: 0;
}

.proj-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    background: none;
    border: 1px solid rgba(13, 27, 42, 0.15);
    padding: 0.875rem 2.5rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.proj-expand-btn:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-dim);
}

.proj-expand-count {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: #6B7A90;
    letter-spacing: 0.05em;
    text-transform: none;
}

.proj-expand-arrow {
    font-size: 0.875rem;
    transition: transform 0.3s;
    display: inline-block;
}

.proj-expand-btn.open .proj-expand-arrow { transform: rotate(180deg); }
.proj-expand-btn.open { border-color: var(--blue); color: var(--blue); }

/* --- Lista completa (expandible) --- */
.proj-all {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.proj-all.open {
    max-height: 6000px;
}

/* --- Filtros de proyectos --- */
.proj-filters {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.proj-filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.proj-filter-label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-right: 0.25rem;
}

.proj-filter {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    background: none;
    border: 1px solid var(--border-light);
    padding: 0.375rem 0.875rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.proj-filter:hover {
    color: var(--text-dark);
    border-color: var(--text-dark);
}

.proj-filter.active {
    color: var(--white);
    background: var(--blue);
    border-color: var(--blue);
}

/* --- Grid de proyectos --- */
.proj-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.proj-card {
    background: #FFFFFF;
    color: #0D1B2A;
    border: 1px solid rgba(13, 27, 42, 0.10);
    border-top: 2px solid transparent;
    padding: 1.375rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    transition: border-top-color 0.25s, box-shadow 0.25s;
}

.proj-card:hover {
    border-top-color: var(--blue);
    box-shadow: 0 6px 20px rgba(13, 27, 42, 0.07);
}

.proj-card.hidden {
    display: none;
}

.proj-card-name {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0D1B2A;
    letter-spacing: 0.02em;
    line-height: 1.25;
    display: block;
}

.proj-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #6B7A90;
}

.proj-card-flag { font-size: 1rem; line-height: 1; }

.proj-card-year {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--white);
    background: var(--dark);
    padding: 0.125rem 0.5rem;
    margin-left: auto;
}

.proj-card-type {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    border-top: 1px solid var(--border-light);
    padding-top: 0.5rem;
    margin-top: auto;
}

.proj-count {
    font-size: 0.8125rem;
    color: var(--text-light);
    text-align: right;
    letter-spacing: 0.04em;
}


/* =====================================================
   CLIENTES  (off-white)
   ===================================================== */
#clientes {
    padding: var(--gap) 0;
    background: var(--off-white);
    border-top: 1px solid var(--border-light);
}

.clients-group { margin-bottom: 3.5rem; }
.clients-group:last-child { margin-bottom: 0; }

.clients-group-label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--border-light);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1rem;
}

.client-card {
    background: var(--white);
    padding: 1.5rem 1.25rem 1.25rem;
    box-shadow: 0 2px 10px rgba(17, 105, 196, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.625rem;
    border: 1px solid var(--border-light);
    border-top: 2px solid transparent;
    transition: border-top-color 0.25s, box-shadow 0.25s;
}

.client-card:hover {
    border-top-color: var(--blue);
    box-shadow: 0 6px 24px rgba(13, 27, 42, 0.07);
}

.client-logo-wrap {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.client-logo-wrap img {
    max-height: 48px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.client-name {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.03em;
}

.client-sub {
    font-size: 0.6875rem;
    color: var(--blue);
    font-weight: 400;
    margin-top: -0.375rem;
}


/* =====================================================
   LOGO CAROUSEL
   ===================================================== */

.carousel-group {
    margin-bottom: 3rem;
}

.carousel-group:last-child { margin-bottom: 0; }

/* ── Colaboradores ── */
.collab-section {
    margin-top: 2rem;
    text-align: center;
}

.collab-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.collab-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    max-width: 540px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.collab-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
}

.collab-item img {
    width: 140px;
    height: 56px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.55;
    transition: opacity 0.2s, filter 0.2s;
}

.collab-item img:hover {
    filter: grayscale(0);
    opacity: 0.85;
}

/* ── Partner Spotlight ── */
.partner-spotlight {
    margin-top: 2rem;
}

.partner-spotlight__header {
    margin-bottom: 1.25rem;
}

.partner-spotlight__tag {
    display: inline-block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--blue);
    padding-bottom: 0.5rem;
    border-bottom: 1.5px solid var(--blue);
}

.partner-spotlight__card {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-blue);
    border-left: 4px solid var(--blue);
    background: linear-gradient(105deg, var(--white) 60%, var(--off-white) 100%);
    box-shadow: 0 4px 28px rgba(17, 105, 196, 0.07);
    padding: 1.25rem 2rem;
    transition: box-shadow 0.3s;
}

.partner-spotlight__card:hover {
    box-shadow: 0 8px 40px rgba(17, 105, 196, 0.13);
}

.partner-spotlight__logo-col {
    flex-shrink: 0;
    width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-spotlight__logo-col img {
    width: 100%;
    height: auto;
    max-height: 56px;
    object-fit: contain;
    filter: grayscale(10%);
    transition: filter 0.3s;
}

.partner-spotlight__card:hover .partner-spotlight__logo-col img {
    filter: grayscale(0%);
}

.partner-spotlight__divider {
    width: 1px;
    height: 56px;
    background: var(--border-blue);
    margin: 0 1.75rem;
    flex-shrink: 0;
}

.partner-spotlight__content {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.partner-spotlight__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.partner-spotlight__role {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--blue);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.partner-spotlight__desc {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.65;
    margin: 0.6rem 0 0;
    text-align: left;
}

@media (max-width: 600px) {
    .partner-spotlight__card {
        flex-direction: column;
        padding: 1.75rem 1.5rem;
        gap: 1.5rem;
        align-items: flex-start;
    }
    .partner-spotlight__divider {
        width: 40px;
        height: 1px;
        margin: 0;
    }
    .partner-spotlight__logo-col { width: 140px; }
}

/* ── Auto-scroll clients carousel (Empírica style) ── */
.logo-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.logo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-body);
    box-shadow: 0 2px 14px rgba(13, 27, 42, 0.10);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s, opacity 0.2s;
}

.logo-arrow--prev { left: 0.75rem; }
.logo-arrow--next { right: 0.75rem; }

.logo-arrow:hover {
    background: var(--off-white);
    box-shadow: 0 4px 22px rgba(13, 27, 42, 0.18);
    transform: translateY(-50%) scale(1.07);
    color: var(--blue);
}

.logo-arrow:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
    box-shadow: none;
}

.logo-carousel {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    position: relative;
    padding: 2.5rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.logo-carousel::-webkit-scrollbar { display: none; }

.logo-track {
    display: flex;
    width: max-content;
    align-items: center;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 70px;
    flex-shrink: 0;
    transition: opacity 0.25s;
    opacity: 0.65;
}

.logo-item:hover {
    opacity: 1;
}

.logo-item img {
    width: 144px;
    height: auto;
    max-width: none;
    object-fit: contain;
    filter: grayscale(15%);
    transition: filter 0.3s ease, transform 0.3s ease;
    display: block;
}

.logo-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.06);
}

@media (max-width: 768px) {
    .logo-item { margin-right: 40px; }
    .logo-item img { width: 90px; }
    .logo-arrow { width: 36px; height: 36px; }
}


/* ── Team congress badges ── */
.team-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.team-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    background: var(--off-white);
    border: 1px solid var(--border-light);
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-body);
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.team-badge:hover {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

/* ── Congresses subsection (dentro de #clientes) ── */
.congress-subsection {
    background: var(--dark);
    padding: var(--gap) 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(30, 184, 240, 0.15);
}

.congress-subsection .section-tag--light { color: var(--celeste); }
.congress-subsection h2                  { color: var(--white); }
.congress-subsection .section-desc--light { color: rgba(255,255,255,0.5); }

.congress-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(255,255,255,0.07);
}

.congress-item {
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.congress-item:last-child { border-bottom: none; }

.congress-item-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.congress-item-header:hover {
    background: rgba(255,255,255,0.04);
}

.congress-item-header[aria-expanded="true"] {
    background: rgba(30, 184, 240, 0.06);
    border-bottom: 1px solid rgba(30, 184, 240, 0.15);
}

.congress-pill-img {
    height: 56px;
    width: 90px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 2px;
    opacity: 0.85;
}

.congress-pill-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.congress-pill-info strong {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
}

.congress-pill-info span {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.42);
}

.congress-toggle-icon {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--celeste);
    flex-shrink: 0;
    line-height: 1;
    transition: transform 0.3s ease;
    width: 28px;
    text-align: center;
}

.congress-item-header[aria-expanded="true"] .congress-toggle-icon {
    transform: rotate(45deg);
}

.congress-item-body {
    padding: 1.5rem 2rem 2rem calc(2rem + 90px + 1.5rem);
    background: rgba(30, 184, 240, 0.04);
    animation: accordionOpen 0.3s ease;
}

@keyframes accordionOpen {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.congress-context {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.62);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.04);
    border-left: 2px solid rgba(30,184,240,0.35);
    text-align: left;
}

.congress-pres-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.congress-pres-list li {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 0.9375rem;
    font-style: italic;
    color: rgba(255,255,255,0.75);
    padding-left: 1rem;
    border-left: 2px solid var(--celeste);
    line-height: 1.5;
}

.congress-linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: #0A66C2;
    color: #fff;
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.2s, transform 0.2s;
}

.congress-linkedin-btn:hover {
    background: #0854A0;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .congress-item-header { gap: 1rem; padding: 1.25rem; }
    .congress-pill-img { width: 64px; height: 48px; }
    .congress-item-body { padding: 1.25rem; }
}

/* =====================================================
   PAÍSES  (dark)
   ===================================================== */
#paises {
    padding: var(--gap) 0;
    background: var(--dark);
    border-top: 3px solid var(--blue);
}

#paises .section-tag   { color: var(--blue-light); }
#paises .section-tag::after { background: var(--blue-light); }
#paises h2             { color: var(--white); }
#paises .section-desc  { color: rgba(255, 255, 255, 0.50); }

.countries-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.07);
}

.country-card {
    background: var(--dark-mid);
    padding: 2.5rem 1.75rem;
    text-align: center;
    transition: background 0.3s;
}

.country-card:hover { background: rgba(17, 105, 196, 0.08); }

.country-flag-wrap {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.country-flag-wrap img {
    max-height: 44px;
    max-width: 88px;
    width: auto;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.country-card h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.country-list { list-style: none; text-align: left; }

.country-list li {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.48);
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    line-height: 1.4;
}

.country-list li:last-child { border-bottom: none; }


/* =====================================================
   CONTACTO  (off-white)
   ===================================================== */
/* ── Contact section ── */
#contacto {
    padding: 0 0 var(--gap);
    background: var(--off-white);
    border-top: none;
}

/* Hero band — dark, impactante */
.contact-hero-band {
    background: linear-gradient(160deg, #071828 0%, var(--dark-mid) 55%, #0a1e38 100%);
    padding: 3.5rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}

.contact-hero-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(30,184,240,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30,184,240,0.035) 1px, transparent 1px);
    background-size: 48px 48px;
}

.contact-hero-band::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(30,184,240,0.35), transparent);
}

.contact-hero-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(30,184,240,0.10) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.contact-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-hero-inner h2 {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: clamp(3rem, 6vw, 5.2rem);
    letter-spacing: 0.04em;
    line-height: 0.95;
    color: var(--white);
    margin: 0.6rem 0 1.5rem;
}

.contact-hero-divider {
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, #c8a96e, #e0c080);
    margin: 0 0 1.5rem;
    border-radius: 2px;
}

.contact-hook {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.92);
    margin: 0 auto 0.75rem;
    max-width: 520px;
    line-height: 1.55;
    letter-spacing: 0.01em;
}

.contact-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.42);
    margin: 0 auto 2rem;
    max-width: 440px;
    line-height: 1.65;
}

.contact-trust-wrap {
    margin-top: 0.25rem;
}

/* Trust strip dentro del band */
.contact-trust-strip {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(30,184,240,0.2);
    border-radius: 3rem;
    padding: 0.75rem 2rem;
    backdrop-filter: blur(8px);
}

.contact-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.75rem;
}

.contact-trust-num {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 2rem;
    letter-spacing: 0.05em;
    color: var(--celeste);
    line-height: 1;
}

.contact-trust-label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-top: 0.2rem;
}

.contact-trust-div {
    width: 1px;
    height: 2.5rem;
    background: rgba(30,184,240,0.2);
    flex-shrink: 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
    align-items: stretch;
    padding-top: 2rem;
}

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

/* ── Contact photo panel ── */
.contact-photo-panel {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

.contact-photo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
    filter: brightness(0.88) contrast(1.05);
    transition: transform 0.6s ease;
}

.contact-photo-panel:hover .contact-photo-img {
    transform: scale(1.025);
}

.contact-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(4, 16, 32, 0.08) 0%,
        rgba(4, 16, 32, 0.12) 35%,
        rgba(4, 16, 32, 0.60) 62%,
        rgba(4, 16, 32, 0.92) 100%
    );
    z-index: 1;
}

.contact-photo-caption {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 2;
}

.contact-photo-tag {
    display: inline-block;
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    background: rgba(30,184,240,0.18);
    border: 1px solid rgba(30,184,240,0.35);
    padding: 0.3rem 0.75rem;
    border-radius: 2rem;
    backdrop-filter: blur(6px);
}

.contact-photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.75rem 1.75rem 2rem;
    z-index: 2;
}

.contact-direct--on-photo {
    margin-top: 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1.25rem;
    gap: 1rem;
}

.contact-direct--on-photo .contact-direct-name {
    color: rgba(255,255,255,0.65);
}

.contact-direct--on-photo .contact-direct-link {
    color: rgba(255,255,255,0.88);
}

.contact-direct--on-photo .contact-direct-link:hover {
    color: var(--celeste);
}

.contact-avatar--photo {
    background: rgba(30,184,240,0.25);
    border: 1px solid rgba(30,184,240,0.4);
    color: rgba(255,255,255,0.9);
}

/* Response badge */
.contact-response-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
    padding: 0.5rem 1rem;
    background: rgba(30,184,240,0.08);
    border: 1px solid rgba(30,184,240,0.2);
    border-radius: 2rem;
    color: var(--celeste);
    font-size: 0.8rem;
    font-weight: 500;
}

.contact-response-badge svg {
    flex-shrink: 0;
    color: var(--celeste);
}

.contact-form-wrap {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 2.75rem;
    box-shadow: 0 6px 36px rgba(17, 105, 196, 0.09);
    position: relative;
}

.contact-form-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue) 0%, #1EB8F0 100%);
    border-radius: 10px 10px 0 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.form-group:last-child { margin-bottom: 0; }

.form-group label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dark);
}

.required { color: var(--blue); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-bottom: 2px solid var(--mid-gray);
    color: var(--text-dark);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.2s;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 6px;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7A90' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
    font-size: 0.875rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue-border);
    border-bottom-color: var(--blue);
    box-shadow: 0 2px 0 var(--blue), 0 0 0 3px rgba(17, 105, 196, 0.07);
    background: #fff;
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-bottom-color: #C0392B;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.phone-input-wrap {
    display: flex;
    gap: 0.5rem;
}

.phone-prefix-custom {
    position: relative;
    flex-shrink: 0;
}

.phone-prefix-trigger {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.8rem 0.7rem;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text-dark);
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    min-width: 90px;
    transition: border-color 0.15s;
}

.phone-prefix-trigger:focus,
.phone-prefix-trigger[aria-expanded="true"] {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(17,105,196,0.07);
    outline: none;
}

.phone-prefix-trigger svg {
    color: var(--text-light);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.phone-prefix-trigger[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.phone-flag-img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.phone-prefix-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 200;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(13,27,42,0.12);
    list-style: none;
    padding: 0.4rem 0;
    min-width: 170px;
    max-height: 260px;
    overflow-y: auto;
}

.phone-prefix-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    color: var(--text-body);
    cursor: pointer;
    transition: background 0.1s;
}

.phone-prefix-option img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.phone-prefix-option:hover,
.phone-prefix-option:focus {
    background: var(--blue-dim);
    color: var(--blue);
    outline: none;
}

.phone-prefix-option[aria-selected="true"] {
    background: var(--blue-dim);
    color: var(--blue);
    font-weight: 500;
}

.phone-input-wrap input[type="tel"] {
    flex: 1 !important;
    min-width: 0 !important;
    width: auto !important;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.form-note {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.5;
    max-width: 260px;
}

.form-error {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #C0392B;
    font-weight: 500;
}

.form-success {
    margin-top: 1rem;
    padding: 0.875rem 1.25rem;
    background: rgba(39, 174, 96, 0.12);
    border: 1px solid rgba(39, 174, 96, 0.35);
    border-radius: 4px;
    font-size: 0.875rem;
    color: #1e8449;
    font-weight: 500;
}


/* ── Custom Select Dropdown ── */
.custom-select {
    position: relative;
}

.custom-select__trigger {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-bottom: 2px solid var(--mid-gray);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9375rem;
    color: var(--text-light);
    text-align: left;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.2s;
    line-height: 1.4;
}

.custom-select--selected .custom-select__trigger {
    color: var(--text-dark);
}

.custom-select--open .custom-select__trigger,
.custom-select__trigger:focus-visible {
    border-color: var(--blue-border);
    border-bottom-color: var(--blue);
    box-shadow: 0 2px 0 var(--blue), 0 0 0 3px rgba(17, 105, 196, 0.07);
    background: #fff;
    outline: none;
}

.custom-select__value {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select__chevron {
    flex-shrink: 0;
    color: var(--text-light);
    transition: transform 0.22s ease;
}

.custom-select--open .custom-select__chevron {
    transform: rotate(180deg);
    color: var(--blue);
}

.custom-select__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-blue);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(13, 27, 42, 0.13);
    list-style: none;
    padding: 0.375rem 0;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-blue) transparent;
}

.custom-select__menu::-webkit-scrollbar { width: 4px; }
.custom-select__menu::-webkit-scrollbar-thumb { background: var(--border-blue); border-radius: 4px; }

.custom-select--open .custom-select__menu {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.custom-select__option {
    padding: 0.625rem 1rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    color: var(--text-body);
    text-align: left;
    cursor: pointer;
    transition: background 0.13s, color 0.13s;
    line-height: 1.45;
}

.custom-select__group-label {
    padding: 0.4rem 1rem 0.3rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    pointer-events: none;
    border-top: 1px solid var(--border);
    margin-top: 0.25rem;
}

.custom-select__option--sub {
    padding-left: 1.6rem;
    font-size: 0.85rem;
    color: var(--text-body);
    opacity: 0.85;
}

.custom-select__option--placeholder {
    color: var(--text-light);
    font-style: italic;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0.25rem;
}

.custom-select__option:not(.custom-select__option--placeholder):hover {
    background: var(--off-white);
    color: var(--text-dark);
}

.custom-select__option--active {
    color: var(--blue);
    font-weight: 600;
    background: rgba(17, 105, 196, 0.05);
}

/* =====================================================
   FOOTER  (dark)
   ===================================================== */
footer {
    background: var(--dark);
    border-top: 1px solid var(--border-dark);
    padding: 3rem 0 2rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-dark);
    margin-bottom: 1.5rem;
    gap: 2rem;
}

.footer-logo-text {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    display: block;
    margin-bottom: 0.375rem;
}

.footer-logo-text span { color: var(--blue-light); }

.footer-brand p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.28);
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.footer-links a {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color 0.25s;
}

.footer-links a:hover { color: var(--blue-light); }

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.18);
    letter-spacing: 0.04em;
}


/* =====================================================
   SCROLL REVEAL
   ===================================================== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }


/* =====================================================
   RESPONSIVE — 1024px
   ===================================================== */
@media (max-width: 1024px) {
    :root { --gap: 68px; }

    .about-grid     { grid-template-columns: 1fr; gap: 3rem; }
    .team-grid      { grid-template-columns: 1fr; }
    .services-grid  { grid-template-columns: 1fr 1fr; }
    .projects-stats { grid-template-columns: repeat(2, 1fr); }
    .countries-grid { grid-template-columns: repeat(3, 1fr); }
    .proj-grid      { grid-template-columns: repeat(3, 1fr); }
    .proj-featured  { grid-template-columns: repeat(2, 1fr); }

    .projects-stat:nth-child(2) { border-right: none; }
    .projects-stat:nth-child(3) { border-top: 1px solid var(--border-light); }
    .projects-stat:nth-child(4) { border-top: 1px solid var(--border-light); border-right: none; }
}


/* =====================================================
   RESPONSIVE — 768px
   ===================================================== */
@media (max-width: 768px) {
    :root { --gap: 48px; }

    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        box-shadow: 0 8px 24px rgba(13, 27, 42, 0.10);
    }

    .nav-links.open { display: flex; }
    .nav-links li   { width: 100%; }

    .nav-links a {
        display: block;
        padding: 0.875rem 2rem;
        color: var(--text-body) !important;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-links a:hover  { color: var(--text-dark) !important; }
    .nav-cta            { border: none !important; padding: 0.875rem 2rem !important; }
    .nav-cta            { color: var(--blue) !important; }

    /* Hero layout mobile */
    .hero-layout {
        grid-template-columns: 1fr;
        padding-top: 7rem;
        padding-bottom: 2rem;
        gap: 2rem;
    }

    .hero-right { display: none; }
    .hero-sim-badge { display: none; }

    .hero-metrics-grid {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-metric { padding: 1.25rem 2rem; }
    .hero-metric-div { display: none; }

    /* Mobile: darken overlay so video doesn't distract behind full-width text */
    .hero-bg-overlay {
        background:
            rgba(11,24,41,0.88) !important;
    }

    .services-grid,
    .services-grid--two,
    .services-grid--single { grid-template-columns: 1fr; max-width: 100%; }
    .countries-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-stats { grid-template-columns: repeat(2, 1fr); }
    .proj-grid      { grid-template-columns: repeat(2, 1fr); }
    .proj-featured  { grid-template-columns: 1fr; }
    .proj-filters   { flex-direction: column; gap: 1rem; }

    .services-category-header { flex-direction: column; gap: 0.5rem; }

    /* Contacto */
    .contact-hero-band  { padding: 3rem 0 2.5rem; }
    .contact-trust-strip { flex-wrap: wrap; gap: 0.5rem; padding: 0.75rem 1rem; border-radius: 1rem; }
    .contact-trust-item  { padding: 0 1rem; }
    .contact-trust-div   { display: none; }
    .contact-layout     { grid-template-columns: 1fr; gap: 2rem; padding-top: 2rem; }
    .contact-photo-panel { min-height: 300px; }
    .form-row           { grid-template-columns: 1fr; gap: 0; }
    .form-footer        { flex-direction: column; align-items: flex-start; }
    .contact-form-wrap  { padding: 1.75rem; }

    .footer-inner  { flex-direction: column; gap: 1.75rem; }
    .footer-links  { justify-content: flex-start; gap: 1.25rem; }
    .team-card     { flex-direction: column; gap: 1rem; }
}


/* =====================================================
   RESPONSIVE — 480px
   ===================================================== */
@media (max-width: 480px) {
    .hero-title     { font-size: clamp(4rem, 20vw, 6rem); }
    .countries-grid { grid-template-columns: 1fr; }
    .clients-grid   { grid-template-columns: repeat(2, 1fr); }
    .projects-stats { grid-template-columns: 1fr; }

    .projects-stat              { border-right: none !important; }
    .projects-stat + .projects-stat { border-top: 1px solid var(--border-light); }

    .hero-metric { padding: 1rem 1.5rem; }
    .hero-metrics-grid { justify-content: space-around; }
}


/* =====================================================
   VISUAL REDESIGN — DYNAMIC ENHANCEMENTS
   ===================================================== */

/* ── Animated hero grid float ── */
@keyframes gridFloat {
    0%   { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

.hero-bg::before {
    animation: gridFloat 24s linear infinite;
}

/* Glowing bottom border on hero */
#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), var(--gold-dark), var(--gold), transparent);
    opacity: 0;
    animation: heroLineFade 4s ease-in-out 1s forwards;
}

@keyframes heroLineFade {
    0%   { opacity: 0; }
    100% { opacity: 0.55; }
}


/* ── Section tag — horizontal line before text ── */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding-left: 0;
}

.section-tag::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1.5px;
    background: var(--blue);
    flex-shrink: 0;
    border-radius: 1px;
}

/* Remove old ::after underline */
.section-tag::after { display: none; }

/* Dark sections get light tag */
#paises .section-tag::before { background: var(--blue-light); }

/* ── Section heading underbar ── */
.section-header h2 {
    position: relative;
    padding-bottom: 0.75rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--blue), var(--blue-light));
}

/* ── About — ghost watermark ── */
#quienes-somos {
    position: relative;
    overflow: hidden;
}

#quienes-somos::after {
    content: 'SCI—A';
    position: absolute;
    right: -1.5rem;
    bottom: 4rem;
    font-size: clamp(7rem, 14vw, 16rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--blue);
    opacity: 0.028;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    line-height: 1;
}

/* ── About cards — animated left accent (replace border-top with border-left) ── */
.about-card {
    border-top: none !important;
    border-left: 3px solid var(--blue);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--blue-light), var(--blue));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s ease;
}

.about-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(13, 27, 42, 0.1);
}

.about-card:hover::before {
    transform: scaleY(1);
}

/* ── Services section — clean light background ── */
#servicios {
    background: var(--off-white);
    border-top: none !important;
    position: relative;
}

#servicios::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--blue-dark), var(--blue-light), var(--blue-dark));
}

/* Ghost number more subtle/larger */
.category-number {
    opacity: 0.05;
    font-size: 9rem;
}

/* ── Service cards — glow hover (light cards) ── */
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(17,105,196,0.14), 0 0 0 1px rgba(17,105,196,0.18);
}

/* Shimmer on hover */
.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(17,105,196,0.04) 50%,
        transparent 100%
    );
    transform: skewX(-15deg);
    transition: left 0.55s ease;
    pointer-events: none;
}

.service-card:hover::after {
    left: 125%;
}

/* ── Client cards — lift on hover ── */
.client-card {
    transition: border-top-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.client-card:hover {
    transform: translateY(-4px);
    border-top-color: var(--blue);
    box-shadow: 0 12px 30px rgba(13, 27, 42, 0.1);
}

/* ── Clientes — slightly different bg ── */
#clientes {
    background: var(--off-white);
    border-top: none !important;
    position: relative;
}

#clientes::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--blue-border), transparent);
}

/* ── Team cards — photo glow on hover ── */
.team-member-photo {
    border: 2px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.team-card:hover .team-member-photo {
    border-color: var(--blue-light);
    box-shadow: 0 0 24px rgba(58, 132, 216, 0.35);
    transform: scale(1.03);
}

.team-card {
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}

.team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(13, 27, 42, 0.1);
    border-color: var(--blue-border);
}

/* ── Quienes somos — border-top gradient (override solid border) ── */
#quienes-somos {
    border-top: none !important;
    position: relative;
}

#quienes-somos::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--blue-dark), var(--blue-light), var(--blue-dark));
    z-index: 1;
}

/* ── Footer — glowing top border ── */
footer {
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 5%; right: 5%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--blue), var(--blue-light), var(--blue), transparent);
    opacity: 0.5;
}

/* ── Contact form — hover elevation ── */
.contact-form-wrap {
    transition: box-shadow 0.3s ease;
}

.contact-form-wrap:hover {
    box-shadow: 0 20px 60px rgba(13, 27, 42, 0.1);
}

/* ── Countries / Países — glow on card ── */
.country-card:hover {
    background: rgba(17, 105, 196, 0.1);
    box-shadow: inset 0 0 32px rgba(17,105,196,0.05);
}

/* ── Reveal — stagger delay for siblings ── */
.services-grid .reveal:nth-child(1),
.clients-grid  .reveal:nth-child(1),
.team-grid     .reveal:nth-child(1) { transition-delay: 0.05s; }

.services-grid .reveal:nth-child(2),
.clients-grid  .reveal:nth-child(2),
.team-grid     .reveal:nth-child(2) { transition-delay: 0.12s; }

.services-grid .reveal:nth-child(3),
.clients-grid  .reveal:nth-child(3) { transition-delay: 0.19s; }

/* ── Scroll indicator — subtle glow ── */
.scroll-line {
    filter: drop-shadow(0 0 4px var(--blue-light));
}

/* ── Nav CTA — gradient variant ── */
#navbar:not(.scrolled) .nav-cta {
    background: rgba(17,105,196,0.15);
    border-color: rgba(255,255,255,0.3) !important;
}

#navbar:not(.scrolled) .nav-cta:hover {
    background: var(--blue) !important;
    border-color: var(--blue) !important;
    color: #fff !important;
}

/* ── Btn primary — gradient hover ── */
.btn-primary:hover {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    border-color: var(--blue-light);
}

/* ── Team congresses intro ── */
.team-congresses-intro {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.65;
}

/* ── Congress items — better spacing ── */
.congress-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.congress-item:last-child {
    border-bottom: none;
}

/* ── Paises — gradient border-top (override solid border) ── */
#paises {
    border-top: none !important;
    position: relative;
}

#paises::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--blue-dark), var(--blue-light), var(--blue-dark));
}

/* ── Contacto — gradient border-top ── */
#contacto {
    border-top: none !important;
}

/* ── Hero logo glow ── */
.hero-logo-main:hover {
    filter: brightness(0) invert(1);
    opacity: 0.38;
}

/* ── Service category headers — underline accent ── */
.services-category-header {
    padding-bottom: 0.875rem;
    border-bottom: 1px solid rgba(13,27,42,0.08);
    margin-bottom: 2rem;
}

/* ── Conoce más btn — enhanced ── */
.btn-conoce-mas:hover {
    color: var(--blue-light);
    text-shadow: 0 0 12px rgba(58,132,216,0.4);
}

/* ── Responsive overrides for enhancements ── */
@media (max-width: 768px) {
    #quienes-somos::after { font-size: 8rem; right: -0.5rem; }
    .category-number { font-size: 6rem; }
}


/* =====================================================
   SERVICE CARDS (estilo empirica)
   ===================================================== */

/* =====================================================
   SERVICIOS — ACCORDION LAYOUT
   ===================================================== */

/* Header band */
.svc-header-band {
    background: var(--dark);
    padding: 4.5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.svc-header-band::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(30,184,240,0.35), transparent);
}

.svc-header-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: end;
}

.svc-header-left h2 {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: 0.04em;
    line-height: 0.95;
    color: var(--white);
    margin: 0.5rem 0 0;
}

.svc-header-right p {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.75;
    max-width: 480px;
}

/* Service Cards Grid */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 3.5rem 0 2.5rem;
}

.svc-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.055);
}

.svc-card:hover {
    border-color: rgba(17,105,196,0.35);
    box-shadow: 0 24px 64px rgba(17,105,196,0.14), 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-6px);
}

/* ── cap oscuro ── */
.svc-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 100%);
    border-radius: 15px 15px 0 0;
    position: relative;
    flex-shrink: 0;
}

.svc-card-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue) 0%, var(--celeste) 60%, transparent 100%);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.svc-card:hover .svc-card-header::after { opacity: 1; }

.svc-card-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--celeste);
    flex-shrink: 0;
    transition: background 0.3s, border-color 0.3s;
}

.svc-card:hover .svc-card-icon {
    background: rgba(30,184,240,0.15);
    border-color: rgba(30,184,240,0.3);
}

.svc-card-num {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 2.5rem;
    line-height: 1;
    color: rgba(255,255,255,0.08);
    letter-spacing: 0.02em;
    user-select: none;
}

/* ── body ── */
.svc-card-body {
    padding: 1.75rem 1.75rem 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.svc-card h3 {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    font-weight: 700;
    color: var(--celeste);
    line-height: 1.3;
    margin: 0 0 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.svc-card-hook {
    font-size: 0.88rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.55;
    margin: 0 0 0.85rem;
    text-align: left;
}

.svc-card-tagline {
    font-size: 0.845rem;
    color: var(--text-body);
    line-height: 1.75;
    margin: 0 0 1.35rem;
}

.svc-card-outcomes {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
}

.svc-card-outcomes li {
    font-size: 0.82rem;
    color: var(--text-body);
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
    text-align: left;
}

.svc-card-outcomes li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--blue);
    font-size: 0.75rem;
    font-weight: 700;
}

/* ── footer del card ── */
.svc-card-footer-area {
    padding: 1.5rem 1.75rem 1.75rem;
}

.svc-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.35rem;
    background: var(--blue);
    border: none;
    border-radius: 2rem;
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, gap 0.2s;
}

.svc-card-cta:hover {
    background: var(--blue-dark);
    gap: 0.6rem;
}

/* Ghost number */
.svc-card-ghost {
    position: absolute;
    right: -0.5rem;
    bottom: 3.5rem;
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 7rem;
    line-height: 1;
    color: var(--blue);
    opacity: 0.03;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.3s;
}

.svc-card:hover .svc-card-ghost { opacity: 0.06; }

/* ── Complementary service ── */
.svc-complementary {
    margin-top: 2.5rem;
    border: 1px solid var(--blue-border);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(17,105,196,0.04) 0%, rgba(30,184,240,0.06) 100%);
    overflow: hidden;
    position: relative;
}

.svc-complementary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--celeste));
}

.svc-comp-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 2.25rem;
}

.svc-comp-tag {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--celeste);
    background: rgba(30,184,240,0.1);
    border: 1px solid rgba(30,184,240,0.25);
    border-radius: 2rem;
    padding: 0.2rem 0.7rem;
    margin-bottom: 0.75rem;
}

.svc-comp-left h3 {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.svc-comp-left p {
    font-size: 0.875rem;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

.svc-comp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    background: var(--blue);
    border: none;
    border-radius: 2rem;
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    transition: background 0.2s, gap 0.2s;
}

.svc-comp-btn:hover {
    background: var(--blue-dark);
    gap: 0.6rem;
}

.svc-comp-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.svc-comp-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--blue-border);
    border-radius: 2rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--blue);
}

.svc-comp-partner {
    font-size: 0.78rem;
    color: var(--text-light);
    white-space: nowrap;
}

.svc-comp-partner strong { color: var(--text-body); }

/* Responsive */
@media (max-width: 1024px) {
    .svc-header-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .svc-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .svc-grid { grid-template-columns: 1fr; gap: 1.25rem; padding: 2.5rem 0 2rem; }
    .svc-comp-inner { flex-direction: column; align-items: flex-start; }
    .svc-comp-right { justify-content: flex-start; }
    .svc-card-body { padding: 1.25rem 1.25rem 0; }
    .svc-card-footer-area { padding: 1.25rem; }
}


/* =====================================================
   MODALES DE SERVICIOS
   ===================================================== */
.svc-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.svc-modal.open {
    display: flex;
}

/* overlay */
.svc-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8,16,32,0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    animation: overlayFadeIn 0.2s ease;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── box — layout de una columna ── */
.svc-modal-box {
    position: relative;
    z-index: 1;
    background: var(--white);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.45);
    animation: modalSlideIn 0.32s cubic-bezier(0.22,1,0.36,1);
    display: flex;
    flex-direction: column;
    padding: 0;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── close — esquina superior derecha del header ── */
.svc-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 50%;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    padding: 0;
}
.svc-modal-close:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.38);
    color: var(--white);
}

/* ── num ── */
.svc-modal-num {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--celeste);
    background: rgba(30,184,240,0.12);
    border: 1px solid rgba(30,184,240,0.3);
    border-radius: 2rem;
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.85rem;
    width: fit-content;
}

/* ── header — banda superior oscura, ancho completo ── */
.svc-modal-header {
    background: linear-gradient(160deg, var(--dark) 0%, var(--dark-mid) 100%);
    padding: 2rem 2.5rem 1.75rem;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
    flex-shrink: 0;
}

.svc-modal-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(30,184,240,0.45) 30%, rgba(30,184,240,0.45) 70%, transparent);
}

.svc-modal-header h3 {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--white);
    line-height: 1.1;
    margin: 0 0 0.65rem;
    padding-right: 2.5rem; /* espacio para el botón cerrar */
    text-transform: none;
}

.svc-modal-lead {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin: 0;
}

.svc-modal-header-left {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.35rem;
}

/* imágenes en panel superior derecho del header */
.svc-modal-header-media {
    width: 200px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
    align-self: center;
}
.svc-modal-header-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) saturate(0.8);
}

.svc-modal-header-media--duo {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: visible;
    align-self: flex-end;
}
.svc-modal-header-media--duo img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    object-position: center center;
    border-radius: 8px;
    filter: brightness(0.7) saturate(0.8);
    display: block;
}
.svc-modal-header-media--duo img:first-child {
    object-position: center 60%;
    border: 1px solid rgba(255,255,255,0.1);
}

/* CTA del header oculto: el CTA vive en el footer */
.svc-modal-header .svc-modal-left-cta {
    display: none;
}

/* ── content — área central scrollable ── */
.svc-modal-content {
    padding: 2rem 2.5rem 1.5rem;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(17,105,196,0.25) transparent;
}
.svc-modal-content::-webkit-scrollbar { width: 5px; }
.svc-modal-content::-webkit-scrollbar-track { background: transparent; }
.svc-modal-content::-webkit-scrollbar-thumb { background: rgba(17,105,196,0.2); border-radius: 3px; }

.svc-modal-section-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--blue-border);
}

/* deliverables */
.svc-modal-deliverables { margin-bottom: 1.5rem; }

.svc-modal-deliv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.svc-modal-deliv-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    background: var(--off-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
    text-align: left;
}
.svc-modal-deliv-item:hover {
    border-color: var(--blue-border);
    background: var(--blue-dim);
    transform: translateY(-1px);
}
.svc-modal-deliv-item svg {
    color: var(--celeste);
    flex-shrink: 0;
    margin-top: 1px;
}
.svc-modal-deliv-item span {
    font-size: 0.8rem;
    color: var(--text-body);
    line-height: 1.45;
    font-weight: 500;
    text-align: left;
}

/* extras */
.svc-modal-extras-new {
    border-top: 1px solid var(--border-light);
    padding-top: 1.25rem;
    margin-top: 0.25rem;
}
.svc-modal-extras-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.svc-modal-extras-note {
    font-size: 0.78rem;
    color: var(--text-light);
    margin: 0.25rem 0 0;
}
.svc-modal-extras-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.svc-modal-extra-card {
    background: var(--off-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1rem;
}
.svc-modal-extra-card h5 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.4rem;
}
.svc-modal-extra-card > p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0 0 0.75rem;
}
.svc-modal-extra-card ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 0.35rem;
}
.svc-modal-extra-card ul li {
    font-size: 0.78rem;
    color: var(--text-body);
    padding-left: 0.875rem;
    position: relative;
}
.svc-modal-extra-card ul li::before {
    content: '';
    position: absolute; left: 0; top: 0.5em;
    width: 4px; height: 4px;
    border-radius: 50%; background: var(--celeste);
}

/* partner chip */
.svc-modal-partner-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: var(--blue-dim);
    border: 1px solid var(--blue-border);
    border-radius: 8px;
    flex-shrink: 0;
}
.svc-modal-partner-chip img { height: 28px; width: auto; object-fit: contain; flex-shrink: 0; align-self: flex-start; margin-top: 2px; }
.svc-modal-partner-chip strong { display: block; font-size: 0.8rem; color: var(--text-dark); }
.svc-modal-partner-chip span { font-size: 0.7rem; color: var(--text-light); }
.svc-modal-partner-desc {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.55;
    margin: 0.4rem 0 0;
    text-align: left;
}
.svc-modal-partner-chip--bottom { margin-top: 1.5rem; }

/* phases (modal 03) */
.svc-modal-phases-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.svc-modal-phase-new {
    background: var(--off-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1.5rem;
}
.svc-modal-phase-tag {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-dim);
    border: 1px solid var(--blue-border);
    border-radius: 2rem;
    padding: 0.2rem 0.7rem;
    margin-bottom: 0.75rem;
}
.svc-modal-phase-new h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1rem;
}
.svc-modal-phase-new .svc-modal-deliv-grid { grid-template-columns: 1fr 1fr; }
.svc-modal-phase-new .svc-modal-deliv-item { padding: 0.7rem 0.85rem; }

/* sim grid (modal 04) */
.svc-modal-sim-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1rem;
}
.svc-modal-sim-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--dark);
}
.svc-modal-sim-video {
    margin: 0;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--dark);
}
.svc-modal-sim-video video {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}
.svc-modal-sim-info { padding: 1rem 1.25rem; background: var(--dark-mid); }
.svc-modal-sim-tag {
    display: inline-block;
    font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em;
    color: var(--celeste);
    background: rgba(30,184,240,0.12);
    border: 1px solid rgba(30,184,240,0.25);
    border-radius: 2rem;
    padding: 0.15rem 0.6rem;
    margin-bottom: 0.4rem;
}
.svc-modal-sim-info h5 { font-size: 0.85rem; font-weight: 700; color: var(--white); margin: 0 0 0.25rem; }
.svc-modal-sim-info p { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin: 0; }

/* ── footer — CTA al fondo ── */
.svc-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1.25rem 2.5rem 1.75rem;
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
    background: var(--off-white);
    border-radius: 0 0 16px 16px;
}
.svc-modal-footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    background: var(--blue);
    color: var(--white);
    border-radius: 2rem;
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, gap 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(17,105,196,0.3);
}
.svc-modal-footer-cta:hover {
    background: var(--blue-dark);
    gap: 0.75rem;
    box-shadow: 0 6px 24px rgba(17,105,196,0.45);
}

/* ── responsive — tablet ── */
@media (max-width: 900px) {
    .svc-modal-header { flex-direction: column; gap: 1rem; }
    .svc-modal-header-media--duo { width: 100%; }
    .svc-modal-header-media--duo img { height: 70px; }
    .svc-modal-deliv-grid { grid-template-columns: 1fr 1fr; }
}

/* ── responsive — móvil ── */
@media (max-width: 700px) {
    .svc-modal { padding: 0; align-items: flex-end; }
    .svc-modal-box {
        max-height: 92vh;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
    }
    .svc-modal-header {
        border-radius: 16px 16px 0 0;
        padding: 1.5rem 1.25rem 1.25rem;
    }
    .svc-modal-header-media,
    .svc-modal-header-media--duo { display: none; }
    .svc-modal-content { padding: 1.25rem; }
    .svc-modal-footer {
        padding: 1rem 1.25rem 1.5rem;
        border-radius: 0;
        justify-content: center;
    }
    .svc-modal-footer-cta { width: 100%; justify-content: center; }
    .svc-modal-deliv-grid { grid-template-columns: 1fr; }
    .svc-modal-extras-cards { grid-template-columns: 1fr; }
    .svc-modal-phases-new { grid-template-columns: 1fr; }
    .svc-modal-sim-grid { grid-template-columns: 1fr; }
    .svc-modal-extras-header { flex-direction: column; }
}



/* =====================================================
   CONGRESS CARDS — redesign
   ===================================================== */

.team-congresses {
    margin-top: 3.5rem;
    background: var(--dark);
    border-top: 3px solid var(--blue);
    padding: 2.5rem 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

/* Subtle background grid */
.team-congresses::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(17,105,196,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17,105,196,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.congresses-header {
    position: relative;
    margin-bottom: 2rem;
}

.congresses-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--blue-light);
    margin-bottom: 0.5rem;
}

.congresses-tag::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1.5px;
    background: var(--blue-light);
    flex-shrink: 0;
}

.congresses-title {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-align: left;
}

.team-congresses .team-congresses-intro {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.65;
    max-width: 600px;
}

/* ── Two-column grid ── */
.congresses-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    position: relative;
}

/* ── Individual card ── */
.congress-card {
    background: var(--dark-mid);
    border: 1px solid rgba(255,255,255,0.07);
    border-top: 3px solid var(--blue);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.congress-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 20px 48px rgba(0,0,0,0.4),
        0 0 0 1px rgba(17,105,196,0.35),
        0 0 28px rgba(17,105,196,0.12);
}

/* ── Card header (year + location + event name) ── */
.congress-card-header {
    padding: 1.125rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.congress-card-meta {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.congress-card-year {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--blue-light);
    background: rgba(17,105,196,0.15);
    border: 1px solid rgba(17,105,196,0.35);
    padding: 0.15rem 0.55rem;
    line-height: 1.6;
}

.congress-card-loc {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.04em;
}

.congress-card-event {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin: 0;
    text-align: left;
}

/* ── Card body (presentations) ── */
.congress-card-body {
    padding: 1.125rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.congress-card-label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--blue-light);
    opacity: 0.7;
    margin: 0;
}

.congress-card-pres {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.congress-card-pres em {
    display: block;
    font-size: 0.8125rem;
    font-style: italic;
    color: rgba(255,255,255,0.65);
    line-height: 1.55;
    padding-left: 0.75rem;
    border-left: 2px solid rgba(17,105,196,0.4);
}

/* ── Card image / CTA ── */
.congress-card-imglink {
    position: relative;
    display: block;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-decoration: none;
}

.congress-card-img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.45s ease;
}

.congress-card-imglink:hover .congress-card-img {
    transform: scale(1.06);
}

.congress-card-cta {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(
        to top,
        rgba(11,24,41,0.92) 0%,
        rgba(17,105,196,0.35) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.congress-card-imglink:hover .congress-card-cta {
    opacity: 1;
}

.congress-cta-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
    font-style: normal;
}

.congress-card-imglink:hover .congress-cta-arrow {
    transform: translateX(4px);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .congresses-grid {
        grid-template-columns: 1fr;
    }
    .team-congresses {
        padding: 1.75rem 1.25rem;
    }
}

/* ── World Map ── */
#clientes .section-header {
    margin-bottom: 1rem;
    text-align: left;
    align-items: flex-start;
}

.presence-pills {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    margin-bottom: 1.25rem;
}

.presence-pill {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: var(--off-white);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--blue);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.presence-pill__icon {
    flex-shrink: 0;
    margin-top: 0.05rem;
    display: flex;
    align-items: center;
    color: var(--blue);
    opacity: 0.8;
}

.presence-pill__text {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.5;
}

@media (max-width: 700px) {
    .presence-pills { flex-direction: column; }
}


.world-map-wrap {
    margin-top: 0;
}

.map-area {
    position: relative;
}

#sci-world-map {
    height: 500px;
    border-radius: 14px;
    overflow: hidden;
    border: none;
    box-shadow: 0 16px 60px rgba(11,24,41,0.35);
    background: #0b2540;
}

.map-hint {
    text-align: center;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: var(--text-light);
    margin-top: 0.8rem;
    text-transform: uppercase;
}

.map-tooltip {
    position: fixed;
    z-index: 9999;
    background: #0B1829;
    color: #fff;
    border-radius: 10px;
    padding: 0.8rem 1.1rem;
    pointer-events: none;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    min-width: 190px;
    max-width: 280px;
    border-top: 3px solid #C9A84C;
}

.map-tooltip__flag {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #C9A84C;
    letter-spacing: 0.03em;
}

.map-tooltip__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.map-tooltip__list li {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.72);
    padding: 0.22rem 0;
    border-bottom: 1px solid rgba(30,184,240,0.1);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.map-tooltip__list li::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #1EB8F0;
    flex-shrink: 0;
}

.map-tooltip__list li:last-child {
    border-bottom: none;
}

.map-tooltip__projects-label {
    font-size: 0.68rem;
    color: #1EB8F0;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-top: 0.1rem;
    margin-bottom: 0.15rem;
    font-weight: 600;
}

.map-tooltip__congress-label {
    font-size: 0.68rem;
    color: #E8732A;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-top: 0.55rem;
    margin-bottom: 0.15rem;
    font-weight: 600;
}

.map-tooltip__list--congress li::before {
    background: #E8732A;
}

.map-legend {
    position: absolute;
    bottom: 1.2rem;
    left: 1.2rem;
    z-index: 10;
    background: rgba(11,24,41,0.82);
    border-radius: 8px;
    padding: 0.55rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.09);
}

.map-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.72);
    white-space: nowrap;
}

.map-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.85;
}

.map-legend-dot--client   { background: #1EB8F0; }
.map-legend-dot--congress { background: #E8732A; }
.map-legend-dot--both     { background: linear-gradient(135deg, #1EB8F0 50%, #E8732A 50%); }

/* =====================================================
   MAP FILTER TOGGLE
   ===================================================== */
.map-filter-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
    border: 1px solid rgba(0,80,160,0.2);
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.map-filter-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.map-filter-btn + .map-filter-btn {
    border-left: 1px solid rgba(0,80,160,0.15);
}

.map-filter-btn--active {
    background: var(--blue);
    color: #fff;
}

.map-filter-btn:hover:not(.map-filter-btn--active) {
    background: rgba(0,80,160,0.06);
    color: var(--blue);
}

/* ── Congress highlight from map click ── */
@keyframes congressHighlight {
    0%   { box-shadow: inset 4px 0 0 #1EB8F0; background: rgba(30,184,240,0.15); }
    65%  { box-shadow: inset 4px 0 0 #1EB8F0; background: rgba(30,184,240,0.06); }
    100% { box-shadow: inset 0px 0 0 transparent; background: transparent; }
}
.congress-item--highlight {
    animation: congressHighlight 2.4s ease forwards;
}



