/* ══════════════════════════════════════
   RESET & VARIABLES
══════════════════════════════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg:           #0a0e1a;
    --surface:      #0f1525;
    --surface-2:    #141c30;
    --primary:      #4a8fff;
    --primary-light:#7bb3ff;
    --text:         #e0e8ff;
    --text-muted:   rgba(160, 180, 220, 0.6);
    --border:       rgba(60, 130, 255, 0.15);
    --border-hover: rgba(60, 130, 255, 0.35);
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ══════════════════════════════════════
   FONDO ANIMADO (fixed layer)
══════════════════════════════════════ */
canvas#bgCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.grid-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(30, 60, 180, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 60, 180, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0%   { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

.code-lines {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.code-line {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: rgba(60, 130, 255, 0.06);
    white-space: nowrap;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0%   { transform: translateY(100vh); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-100px) translateX(30px); opacity: 0; }
}

.circuit {
    position: fixed;
    z-index: 0;
    pointer-events: none;
}
.circuit-h {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(60, 140, 255, 0.25), transparent);
    animation: circuitPulseH 4s ease-in-out infinite;
}
.circuit-v {
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(60, 140, 255, 0.25), transparent);
    animation: circuitPulseV 4s ease-in-out infinite;
}
@keyframes circuitPulseH {
    0%, 100% { opacity: 0; transform: scaleX(0); }
    50%       { opacity: 1; transform: scaleX(1); }
}
@keyframes circuitPulseV {
    0%, 100% { opacity: 0; transform: scaleY(0); }
    50%       { opacity: 1; transform: scaleY(1); }
}

.node {
    position: fixed;
    width: 4px; height: 4px;
    background: rgba(80, 150, 255, 0.5);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(80, 150, 255, 0.3);
    animation: nodePulse 3s ease-in-out infinite;
}
@keyframes nodePulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50%       { transform: scale(2); opacity: 0.7; }
}

.orb {
    position: fixed;
    border-radius: 50%;
    z-index: 0;
    filter: blur(80px);
    pointer-events: none;
    animation: orbFloat 12s ease-in-out infinite;
}
.orb-1 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(20, 60, 200, 0.12), transparent); top: -100px; right: -100px; }
.orb-2 { width: 350px; height: 350px; background: radial-gradient(circle, rgba(40, 80, 220, 0.10), transparent); bottom: -80px; left: -80px; animation-delay: -4s; }
.orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(60, 100, 240, 0.08), transparent); top: 40%; left: 50%; animation-delay: -8s; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%       { transform: translate(30px, -20px) scale(1.1); }
    50%       { transform: translate(-20px, 30px) scale(0.95); }
    75%       { transform: translate(20px, 20px) scale(1.05); }
}

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 22px 0;
    transition: background 0.3s, padding 0.3s, backdrop-filter 0.3s;
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

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

.nav-logo img {
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(60, 130, 255, 0.2));
    transition: filter 0.3s;
}
.nav-logo:hover img {
    filter: drop-shadow(0 0 20px rgba(60, 130, 255, 0.4));
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-links .nav-cta {
    color: var(--primary);
    border: 1px solid var(--border);
    padding: 8px 22px;
    border-radius: 4px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.nav-links .nav-cta:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--bg);
}

/* ══════════════════════════════════════
   LAYOUT BASE
══════════════════════════════════════ */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    position: relative;
    z-index: 10;
    padding: 110px 0;
}

.section-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}
.section-label.center { text-align: center; }

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 300;
    color: var(--text);
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.section-title span {
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-title.center { text-align: center; }

.section-description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}
.section-description.center {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 64px;
}

/* Alternating section bg */
.section.alt-bg {
    background: linear-gradient(180deg,
        transparent,
        rgba(15, 21, 37, 0.55) 15%,
        rgba(15, 21, 37, 0.55) 85%,
        transparent
    );
}

/* ══════════════════════════════════════
   ABOUT — Header interior
══════════════════════════════════════ */
.about-hero {
    position: relative;
    z-index: 10;
    padding: 140px 40px 64px;
    text-align: center;
}

.about-hero-title {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--text);
    margin-top: 12px;
}

.about-hero-title span {
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 40px 60px;
}

.hero-inner {
    max-width: 700px;
    width: 100%;
}

.logo-container {
    margin-bottom: 32px;
    animation: fadeInDown 1.2s ease-out both;
}
.logo-container img {
    max-width: 240px;
    width: 70vw;
    filter: drop-shadow(0 0 30px rgba(60, 130, 255, 0.2));
    transition: filter 0.5s;
}
.logo-container img:hover {
    filter: drop-shadow(0 0 50px rgba(60, 130, 255, 0.4));
}

.hero-title {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 300;
    color: var(--text);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 16px;
    animation: fadeInUp 1.2s ease-out 0.3s both;
}
.hero-title span {
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.divider {
    width: 140px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 0 auto;
    position: relative;
    z-index: 10;
}
.divider::after {
    content: '';
    position: absolute;
    top: -3px; left: 0;
    width: 6px; height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--primary);
    animation: dividerDot 3.5s ease-in-out infinite;
}
@keyframes dividerDot {
    0%, 100% { left: 0; }
    50%       { left: calc(100% - 6px); }
}

.hero-subtitle {
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: var(--text-muted);
    letter-spacing: 2px;
    animation: fadeInUp 1.2s ease-out 0.6s both;
    margin-bottom: 28px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease-out 0.75s both;
    margin-bottom: 36px;
}

.hero-cta {
    display: inline-block;
    color: var(--primary);
    border: 1px solid var(--border);
    padding: 14px 38px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}
.hero-cta:hover {
    background: rgba(74, 143, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateY(-3px);
}
.hero-cta--ghost {
    color: var(--text-muted);
    border-color: rgba(160, 180, 220, 0.15);
}
.hero-cta--ghost:hover {
    color: var(--text);
    border-color: rgba(160, 180, 220, 0.35);
    background: rgba(160, 180, 220, 0.05);
}

/* Flecha scroll */
.scroll-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--primary);
    text-decoration: none;
    opacity: 0;
    animation: fadeInArrow 1s ease-out 1.6s forwards, arrowBounce 2.4s ease-in-out 2.6s infinite;
    filter: drop-shadow(0 0 10px rgba(74, 143, 255, 0.5));
}
@keyframes fadeInArrow {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes arrowBounce {
    0%, 100% { transform: translateX(-50%) translateY(0);    }
    50%       { transform: translateX(-50%) translateY(12px); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   BIO
══════════════════════════════════════ */
.bio-formation {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.bio-formation .bio-subtitle {
    margin-bottom: 24px;
}
.bio-formation-list {
    list-style: none;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.bio-formation-list li {
    padding: 10px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: border-color 0.2s, color 0.2s;
}
.bio-formation-list li:hover {
    border-color: var(--border-hover);
    color: var(--text);
}
.bio-formation-list li strong {
    font-weight: 500;
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 80px;
    align-items: start;
}

.about-bio-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 72px;
    align-items: start;
}

.about-photo {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Formación con video de fondo ── */
.formation-video-section {
    position: relative;
    overflow: hidden;
}

.formation-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.formation-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 1;
}

.formation-video-section .section-inner {
    position: relative;
    z-index: 2;
}

.bio-lead {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 18px;
}
.bio-more-btn {
    display: inline-block;
    margin-top: 32px;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: border-color 0.2s, color 0.2s;
}
.bio-more-btn:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

.bio-body {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 8px;
}

.bio-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 320px;
}

.bio-subtitle {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 18px;
    font-weight: 600;
}

.bio-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.bio-list li {
    border-left: 2px solid var(--border);
    padding-left: 14px;
    transition: border-color 0.2s;
}
.bio-list li:hover {
    border-color: var(--primary);
}
.bio-list li strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text);
    font-weight: 500;
}
.bio-list li span {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
    display: block;
}

/* Bio visual */
.bio-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    position: sticky;
    top: 100px;
}

.bio-avatar {
    position: relative;
    width: 180px;
    height: 180px;
}
.avatar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(transparent 60%, rgba(74, 143, 255, 0.5) 100%);
    animation: rotateSlow 10s linear infinite;
}
@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.avatar-ring::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--bg);
}
.avatar-photo {
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
    object-fit: cover;
    object-position: center top;
}

.bio-stats {
    width: 100%;
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.2s;
}
.stat:hover { border-color: var(--border-hover); }
.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    min-width: 60px;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* ══════════════════════════════════════
   HERO LOGOS (integrado en hero)
══════════════════════════════════════ */
.hero-logos {
    width: 100vw;
    padding: 72px 0 0;
}

.hero-logos-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 28px;
}

.logos-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 30%, black 70%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 30%, black 70%, transparent);
}

.logos-track {
    display: flex;
    width: max-content;
    animation: logoScroll 42s linear infinite;
}
.logos-track:hover { animation-play-state: paused; }

@keyframes logoScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.logos-slide {
    display: flex;
    align-items: center;
    gap: 64px;
    padding: 0 32px;
}

.brand-logo-img {
    height: 44px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.35);
    transition: filter 0.25s;
    flex-shrink: 0;
    display: block;
}
.brand-logo-img:hover {
    filter: brightness(0) invert(1) opacity(0.7);
}

/* ══════════════════════════════════════
   SERVICIOS
══════════════════════════════════════ */

/* Filtro */
.services-filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 48px 0 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.filter-btn {
    padding: 9px 26px;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.filter-btn:hover { color: var(--text); }
.filter-btn.active {
    background: var(--primary);
    color: #fff;
}

/* Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}
.service-card[data-cat] { transition: opacity 0.25s, transform 0.25s, border-color 0.3s, box-shadow 0.3s; }
.service-card.hidden {
    display: none;
}

/* Formation items — interactivos */
.formation-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: start;
    margin-top: 20px;
}
.bio-formation-list li[data-discipline] {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: border-color 0.2s, color 0.2s;
}
.bio-formation-list li[data-discipline]:hover,
.bio-formation-list li.formation-active {
    border-color: var(--primary);
    color: var(--text);
}
.formation-hint {
    font-size: 0.72rem;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s, transform 0.2s;
    flex-shrink: 0;
}
.bio-formation-list li[data-discipline]:hover .formation-hint,
.bio-formation-list li.formation-active .formation-hint {
    opacity: 1;
    transform: translateX(0);
}

/* Panel inline */
.formation-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    min-height: 200px;
    animation: panelFadeIn 0.3s ease;
}
@keyframes panelFadeIn {
    from { opacity: 0; transform: translateX(8px); }
    to   { opacity: 1; transform: translateX(0); }
}
.formation-panel .service-tag { margin-bottom: 8px; }
.formation-panel .service-title { margin-bottom: 12px; }
.formation-panel .service-items { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }

.service-card {
    padding: 36px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74, 143, 255, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}
.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}
.service-card:hover::before { opacity: 1; }

.service-card.featured {
    border-color: rgba(74, 143, 255, 0.28);
    background: linear-gradient(135deg, rgba(74, 143, 255, 0.07), var(--surface));
}
.service-card.featured::after {
    content: '★';
    position: absolute;
    top: 16px; right: 20px;
    font-size: 0.75rem;
    color: var(--primary);
    opacity: 0.5;
}

.service-icon {
    width: 54px;
    height: 54px;
    background: rgba(74, 143, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 20px;
    transition: background 0.2s, border-color 0.2s;
}
.service-card:hover .service-icon {
    background: rgba(74, 143, 255, 0.14);
    border-color: var(--border-hover);
}

.service-tag {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}

.service-title {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.service-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 22px;
}

.service-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.service-items li {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-left: 16px;
    position: relative;
}
.service-items li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    opacity: 0.7;
}

/* ══════════════════════════════════════
   PAÍSES
══════════════════════════════════════ */
.countries-banner {
    position: relative;
    z-index: 10;
    padding: 64px 0;
    background: linear-gradient(135deg,
        rgba(20, 40, 100, 0.38),
        rgba(10, 20, 60, 0.38)
    );
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.countries-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.country-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 124px;
    cursor: default;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.country-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}
.country-flag { font-size: 2.2rem; line-height: 1; }
.country-name {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ══════════════════════════════════════
   TESTIMONIOS
══════════════════════════════════════ */
#testimonios {
    background-image: url('dark-pattern-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
#testimonios::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 28, 0.72);
    z-index: 0;
}
#testimonios .section-inner {
    position: relative;
    z-index: 1;
}
.testimonials-slider {
    max-width: 740px;
    margin: 0 auto;
}

.testimonials-track {
    min-height: 240px;
    position: relative;
}

.testimonial-item {
    display: none;
}
.testimonial-item.active {
    display: block;
    animation: testimonialIn 0.5s ease both;
}
@keyframes testimonialIn {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.82;
    font-style: italic;
    margin-bottom: 26px;
    padding: 32px 36px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative;
}
.testimonial-text::before {
    content: '"';
    position: absolute;
    top: -18px; left: 28px;
    font-size: 5rem;
    line-height: 1;
    color: var(--primary);
    opacity: 0.25;
    font-style: normal;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 8px;
}

.testimonial-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #2040aa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    border: 2px solid var(--border);
    letter-spacing: 1px;
}
.testimonial-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 2px;
}
.testimonial-info span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
}

.testimonial-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.testimonial-btn:hover {
    border-color: var(--border-hover);
    color: var(--primary);
    background: rgba(74, 143, 255, 0.05);
}

.testimonials-dots { display: flex; gap: 8px; align-items: center; }
.dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}
.dot.active {
    background: var(--primary);
    transform: scale(1.4);
}

/* ══════════════════════════════════════
   CONTACTO
══════════════════════════════════════ */
.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 680px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 28px 32px;
    align-items: center;
    justify-content: center;
}

.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.contact-icon {
    width: 36px; height: 36px;
    background: rgba(74, 143, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}
.contact-item strong {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.contact-item span { font-size: 0.92rem; color: var(--text); }
.contact-link {
    font-size: 0.92rem;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}
.contact-link:hover { color: var(--primary); }

.contact-availability {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}
.availability-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
    flex-shrink: 0;
    animation: availPulse 2s ease-in-out infinite;
}
@keyframes availPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.5); opacity: 0.7; }
}
.contact-availability span {
    font-size: 0.8rem;
    color: #4ade80;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 150, 255, 0.25);
    border-radius: 8px;
    padding: 14px 18px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    resize: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(160, 180, 220, 0.35);
}
.form-group input:hover,
.form-group textarea:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(100, 150, 255, 0.4);
}
.form-group input:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(74, 143, 255, 0.1);
}

.form-submit {
    align-self: center;
    width: 100%;
    max-width: 320px;
    margin-top: 28px;
    margin-bottom: 44px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 38px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.form-submit:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(74, 143, 255, 0.32);
}
.form-submit:active { transform: translateY(0); }
.form-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* Honeypot — invisible para humanos, trampa para bots */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ══════════════════════════════════════
   PROYECTOS — Slider
══════════════════════════════════════ */
.projects.section {
    padding-bottom: 0;
}
.projects-slider {
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.projects-track {
    display: flex;
    gap: 48px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.project-slide {
    flex: 0 0 76%;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.project-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-user-drag: none;
    pointer-events: none;
}

.projects-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 0 32px;
}

.projects-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.projects-btn:hover {
    border-color: var(--border-hover);
    color: var(--text);
    background: var(--surface-2);
}

.projects-dots {
    display: flex;
    gap: 8px;
}

.projects-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(160, 180, 220, 0.25);
    border: none;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
    padding: 0;
}

.projects-dots .dot.active {
    background: var(--primary);
    transform: scale(1.35);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
    position: relative;
    z-index: 10;
    padding: 20px 0;
    background: #050810;
    border-top: 1px solid var(--border);
    text-align: center;
}
.footer-logo {
    height: 26px;
    opacity: 0.45;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 8px rgba(60, 130, 255, 0.15));
}
.footer-copy {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
    .bio-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }
    .about-bio-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-photo { max-width: 480px; }
    .formation-layout { grid-template-columns: 1fr; }
    .bio-visual {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        position: static;
    }
    .bio-stats {
        flex-direction: row;
        flex-wrap: wrap;
        flex: 1;
        min-width: 200px;
    }
    .stat { flex: 1; min-width: 120px; }
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-info { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
    .section { padding: 72px 0; }
    .section-inner,
    .nav-inner { padding: 0 24px; }

    .nav-links { gap: 20px; }
    .nav-links li:not(:last-child) { display: none; }

    .hero { padding: 120px 24px 72px; }

    .bio-grid { gap: 40px; }
    .bio-columns { grid-template-columns: 1fr; }
    .bio-visual { flex-direction: column; align-items: center; }
    .bio-stats { flex-direction: column; }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .testimonials-slider { padding: 0 4px; }

    .countries-grid { gap: 10px; }
    .country-item { padding: 18px 20px; min-width: 90px; }
}

@media (max-width: 480px) {
    .hero-title { letter-spacing: 3px; }
    .contact-info { padding: 24px; }
    .testimonial-text { padding: 24px 22px 20px; font-size: 0.92rem; }
}
