/* ================================
   KONECTA - Main Stylesheet
   Allies in Brand Expansion

   Paleta de colores:
   - Azul oscuro primario: #00224d
   - Azul profundo: #030870
   - Naranja/Salmón: #ff6e37
   - Beige/Crema: #f8f5f0
   - Gris claro: #e8e4df
   - Blanco: #ffffff
   - Negro/Oscuro: #1a1a1a
================================ */

/* ================================
   CSS VARIABLES
================================ */
:root {
    /* Colors */
    --color-primary: #00224d;
    --color-primary-dark: #030870;
    --color-secondary: #ff6e37;
    --color-secondary-light: #ff8a5c;
    --color-accent: #030870;
    --color-dark: #1a1a1a;
    --color-white: #ffffff;
    --color-beige: #f8f5f0;
    --color-beige-dark: #efe9e1;
    --color-gray-light: #e8e4df;
    --color-gray: #9a9a9a;
    --color-text: #333333;
    --color-text-light: #666666;

    /* Typography */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 34, 77, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 34, 77, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 34, 77, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 34, 77, 0.2);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;

    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;
}

/* ================================
   RESET & BASE
================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Forzar que nada se desborde horizontalmente */
    overflow-x: hidden !important;
    overflow-y: scroll;
    width: 100%;
    max-width: 100vw;
    height: auto;
    min-height: 100%;
}

/* Prevenir restauración de scroll */
html:focus-within {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-beige);
    /* Forzar que nada se desborde horizontalmente */
    overflow-x: hidden !important;
    overflow-y: visible;
    width: 100%;
    max-width: 100vw;
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    /* Mejorar scroll táctil en móviles */
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* Todas las secciones principales sin desborde horizontal */
.hero,
.about,
.services,
.clients,
.purpose,
.cta,
.contact,
.footer {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* ================================
   FORMAS DECORATIVAS (HERO)
================================ */
.shape {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.shape-1 {
    top: -15%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--color-primary);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    opacity: 0.95;
    animation: floatShape1 20s ease-in-out infinite;
}

.shape-2 {
    top: 20%;
    left: -20%;
    width: 80vw;
    height: 120vh;
    background: var(--color-secondary);
    clip-path: polygon(0 100%, 0 0, 100% 100%);
    opacity: 0.9;
    animation: floatShape2 25s ease-in-out infinite;
}

.shape-3 {
    top: 50%;
    right: 5%;
    width: 15vw;
    height: 15vw;
    background: var(--color-secondary);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    opacity: 0.8;
    animation: floatShape3 15s ease-in-out infinite;
    transform: translateY(-50%);
}

@keyframes floatShape1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-2%, 2%) rotate(2deg);
    }
}

@keyframes floatShape2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(2%, -2%) rotate(-2deg);
    }
}

@keyframes floatShape3 {

    0%,
    100% {
        transform: translateY(-50%) scale(1);
    }

    50% {
        transform: translateY(-50%) scale(1.1);
    }
}

/* ================================
   SCROLL PROGRESS BAR
================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    width: 0%;
    z-index: 10001;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--color-secondary);
}

/* ================================
   SECTION DIVIDERS
================================ */
.section-divider {
    position: relative;
    z-index: 2;
    height: 100px;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.section-divider--wave {
    color: rgba(255, 255, 255, 0.85);
    margin-top: -1px;
}

.section-divider--wave svg {
    width: 100%;
    height: 100%;
}

.section-divider--diagonal {
    height: 80px;
    background: linear-gradient(to right bottom, rgba(255, 255, 255, 0.85) 49%, rgba(0, 34, 77, 0.92) 50%);
}

.section-divider--to-dark {
    background: linear-gradient(to right bottom, rgba(255, 255, 255, 0.85) 49%, rgba(0, 34, 77, 0.92) 50%);
}

.section-divider--from-dark {
    background: linear-gradient(to right bottom, rgba(0, 34, 77, 0.92) 49%, rgba(248, 245, 240, 0.88) 50%);
}

/* ================================
   UTILITIES
================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 4rem;
}

.section-tag--light {
    color: var(--color-secondary-light);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.section-title--light {
    color: var(--color-white);
}

.section-title--accent {
    color: var(--color-secondary);
}

.section-title--accent-light {
    color: var(--color-secondary-light);
}

/* Typing Text Effect */
.typing-text {
    border-right: 3px solid var(--color-secondary);
    padding-right: 4px;
    animation: blink 0.7s step-end infinite;
}

.contact__info .section-title {
    min-height: 80px;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* ================================
   BUTTONS
================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
    cursor: pointer;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(0, 34, 77, 0.3);
}

.btn--primary:hover {
    background: var(--color-secondary);
    box-shadow: 0 6px 20px rgba(255, 110, 55, 0.4);
    transform: translateY(-2px);
}

.btn--secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
}

/* ================================
   FLOATING NAV (appears on scroll)
================================ */
.floating-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-120px);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-primary);
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 34, 77, 0.1);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-nav.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.nav-logo img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary);
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta {
    padding: 0.5rem 1.25rem;
    background: var(--color-secondary);
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--color-primary);
    transform: scale(1.05);
}

/* Floating Language Selector */
.lang-floating {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99999;
    pointer-events: auto;
}

.lang-floating__toggle {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%;
    background: var(--color-primary);
    border: none;
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 34, 77, 0.3);
    transition: all 0.3s ease;
    position: relative;
    /* Mejorar interacción táctil */
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 110, 55, 0.3);
    user-select: none;
    /* Asegurar que sea clickeable */
    z-index: 99999;
    pointer-events: auto;
}

.lang-floating__toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 34, 77, 0.4);
}

.lang-floating__toggle svg {
    width: 24px;
    height: 24px;
}

.lang-floating__current {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--color-secondary);
    color: var(--color-white);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 8px;
    line-height: 1;
}

.lang-floating__menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 34, 77, 0.2);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 99999;
    pointer-events: none;
}

.lang-floating.active .lang-floating__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-floating__btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    /* Mejorar interacción táctil */
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 110, 55, 0.3);
    min-height: 44px;
}

.lang-floating__btn:hover {
    background: var(--color-light);
}

.lang-floating__btn.active {
    background: var(--color-primary);
    color: var(--color-white);
}

.lang-floating__btn span:first-child {
    font-weight: 700;
    font-size: 0.9rem;
}

.lang-floating__label {
    font-size: 0.85rem;
    color: var(--color-text);
}

.lang-floating__btn.active .lang-floating__label {
    color: var(--color-white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    margin-left: auto;
    /* Empuja el botón a la derecha */
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-normal);
}

/* ================================
   HERO SECTION
================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
    overflow: hidden;
}

/* Hero Logo */
.hero__logo {
    margin-bottom: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__logo img {
    height: 100px;
    width: auto;
    transition: transform 0.3s ease;
}

.hero__logo:hover img {
    transform: scale(1.02);
}

.hero__logo-tagline {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero__container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ================================
   ANIMACIÓN EN CASCADA - HERO
================================ */
.hero__logo {
    animation: cascadeReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero__separator {
    animation: separatorReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.hero__title {
    animation: cascadeReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

.hero__description {
    animation: cascadeReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both;
}

.hero__cta {
    animation: ctaReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.4s both;
}

.hero__scroll {
    animation: scrollIndicatorReveal 1s ease-out 2s both;
}

@keyframes cascadeReveal {
    0% {
        opacity: 0;
        filter: blur(20px);
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

@keyframes separatorReveal {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }

    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes ctaReveal {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: scale(0.8) translateY(20px);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1) translateY(0);
    }
}

@keyframes scrollIndicatorReveal {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Separador sutil en el hero */
.hero__separator {
    width: 100%;
    max-width: 500px;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 34, 77, 0.25) 20%,
            rgba(0, 34, 77, 0.25) 80%,
            transparent 100%);
    margin-bottom: 3.5rem;
}

.hero__title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-primary);
    margin-bottom: 3rem;
}

.hero__title--accent {
    display: block;
    color: var(--color-secondary);
}

.hero__description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 3.5rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero__visual {
    display: none;
    /* Oculto porque ahora el hero está centrado */
}

@keyframes heroVisualReveal {
    0% {
        opacity: 0;
        transform: translateX(80px) rotateY(-15deg);
    }

    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }
}

.hero__image-wrapper {
    position: relative;
    padding-bottom: 60px;
    /* Space for the overlapping card */
}

.hero__image-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.hero__image-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 34, 77, 0.2);
}

.hero__image-card--1 {
    position: relative;
    z-index: 2;
    max-width: 350px;
    margin-left: auto;
}

.hero__card-content {
    text-align: center;
}

.hero__card-label {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.hero__card-content p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    font-style: italic;
}

.hero__image-card--2 {
    position: absolute;
    bottom: -50px;
    left: -20px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 220px;
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero__image-card--2:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 34, 77, 0.3);
    background: var(--color-secondary);
}

.hero__card-icon {
    width: 50px;
    height: 50px;
    background: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero__card-icon svg {
    width: 24px;
    height: 24px;
}

.hero__image-card--2 p {
    font-size: 0.9rem;
    font-weight: 600;
}

.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-gray);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-gray), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 1;
        height: 40px;
    }

    50% {
        opacity: 0.5;
        height: 30px;
    }
}

/* ================================
   ABOUT SECTION
================================ */
.about {
    position: relative;
    z-index: 2;
    padding: var(--spacing-3xl) 0;
    background: rgba(255, 255, 255, 0.75);
}

.about__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.about__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-3xl);
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about__text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.about__challenge,
.about__barrier {
    padding-left: var(--spacing-lg);
    border-left: 3px solid var(--color-secondary);
}

.about__challenge h3,
.about__barrier h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.about__challenge p,
.about__barrier p {
    color: var(--color-text-light);
    line-height: 1.8;
}

.about__visual {
    display: flex;
    justify-content: center;
}

.about__map {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: var(--spacing-xl);
}

.about__connection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
}

.about__point {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 1px;
    position: relative;
}

.about__point--latam {
    background: var(--color-primary);
    color: var(--color-white);
}

.about__point--asia {
    background: var(--color-secondary);
    color: var(--color-white);
}

/* Animación de ondas expansivas */
.pulse-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid currentColor;
    animation: pulseWave 2s ease-out infinite;
}

.about__point--latam .pulse-ring {
    color: var(--color-primary);
}

.about__point--asia .pulse-ring {
    color: var(--color-secondary);
}

@keyframes pulseWave {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Línea curva SVG */
.about__curve-line {
    width: 200px;
    height: auto;
    margin: 0 -20px;
}

.about__k-image {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
}

/* ================================
   SERVICES SECTION
================================ */
.services {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
    background: #00224d;
    overflow: hidden;
}

#servicesParticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.services__header {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 5vw;
    margin-bottom: var(--spacing-xl);
}

.services__track {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem 5vw;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--color-beige);
    border: 1px solid var(--color-primary);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    background: var(--color-beige-dark);
    border-color: var(--color-secondary);
    box-shadow: 0 8px 30px rgba(0, 34, 77, 0.2);
}

.service-card__icon svg {
    transition: all 0.5s ease;
}

.service-card:hover .service-card__icon svg {
    filter: drop-shadow(0 0 8px rgba(0, 34, 77, 0.3));
}

.service-card:hover .service-card__number {
    color: rgba(0, 34, 77, 0.15);
}

.service-card__number {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 4.5rem;
    font-weight: 900;
    color: rgba(0, 34, 77, 0.1);
    line-height: 1;
    z-index: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card__icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.service-card__icon svg {
    width: 100%;
    height: 100%;
    color: var(--color-primary);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--color-text);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}


.services__progress {
    display: none;
}

.services__progress-bar {
    display: none;
}

/* ================================
   PURPOSE SEPARATOR
================================ */
.purpose-separator {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    background: linear-gradient(180deg, #fff 0%, rgba(248, 245, 240, 0.85) 100%);
}

.purpose-separator__line {
    width: 100%;
    max-width: 500px;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 34, 77, 0.25) 20%,
            rgba(0, 34, 77, 0.25) 80%,
            transparent 100%);
}

/* ================================
   PURPOSE SECTION
================================ */
.purpose {
    position: relative;
    z-index: 2;
    padding: var(--spacing-3xl) 0;
    padding-bottom: 0;
    background: rgba(248, 245, 240, 0.85);
    overflow: hidden !important;
    min-height: 750px;
    max-height: none;
}

/* Formas decorativas */
.purpose__shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.purpose__shape--beige {
    top: 0;
    left: 20%;
    width: 70%;
    height: 100%;
    background: linear-gradient(135deg, rgba(239, 233, 225, 0.9) 0%, rgba(248, 245, 240, 0.7) 100%);
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
}

.purpose__shape--orange {
    bottom: 0;
    right: 0;
    width: 280px;
    height: 320px;
    background: var(--color-secondary);
    clip-path: polygon(100% 25%, 100% 100%, 20% 100%);
    opacity: 0.95;
    z-index: 2;
}

.purpose__container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    min-height: 700px;
}

/* Imagen de la mujer de negocios */
.purpose__image {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 45%;
    height: 100%;
}

/* === IMAGEN JAPONESA - PC (Desktop) === */
.purpose__image img {
    /* Altura ocupa todo el contenedor padre */
    height: 100%;
    /* Limite maximo de altura = 100% del contenedor */
    max-height: 100%;
    /* Ancho automatico para mantener proporcion */
    width: auto;
    /* Escala la imagen completa sin recortar */
    object-fit: contain;
    /* Alinea la imagen al centro-abajo */
    object-position: bottom center;
    /* Sombra decorativa */
    filter: drop-shadow(0 10px 30px rgba(0, 34, 77, 0.15));
}

/* Contenido */
.purpose__content {
    position: relative;
    z-index: 2;
    padding: var(--spacing-xl) 0;
    width: 55%;
    max-width: 600px;
}

.purpose__header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* === TITULO PURPOSE - PC (Desktop) === */
.purpose__title {
    /* Direccion de los elementos hijos en columna */
    display: flex;
    flex-direction: column;
    /* Altura de linea compacta */
    line-height: 1;
}

.purpose__title--italic {
    /* Tipografia serif elegante */
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    /* Tamano fluido: min 2.5rem, max 4rem */
    font-size: clamp(2.5rem, 5vw, 4rem);
    /* Peso ligero */
    font-weight: 400;
    /* Color azul oscuro */
    color: var(--color-primary);
    /* Espacio inferior */
    margin-bottom: 0.1em;
}

.purpose__title--bold {
    /* Tamano fluido igual que italica */
    font-size: clamp(2.5rem, 5vw, 4rem);
    /* Peso extra bold */
    font-weight: 800;
    /* Color azul oscuro */
    color: var(--color-primary);
    /* Reduce espacio entre letras */
    letter-spacing: -1px;
}

.purpose__subtitle {
    max-width: 200px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--color-text-light);
    padding-top: 0.5rem;
}

.purpose__subtitle strong {
    color: var(--color-secondary);
    font-weight: 700;
}

/* === TEXTO PURPOSE - PC (Desktop) === */
.purpose__text {
    /* Tamano de fuente */
    font-size: 1.05rem;
    /* Color azul oscuro */
    color: var(--color-primary);
    /* Altura de linea (espaciado entre lineas) */
    line-height: 1.8;
    /* Espacio inferior */
    margin-bottom: var(--spacing-xl);
    /* Ancho maximo del parrafo */
    max-width: 550px;
}

.purpose__text strong {
    /* Color naranja para texto resaltado */
    color: var(--color-secondary);
    font-weight: 700;
}

/* === MAPA PURPOSE - PC (Desktop) === */
.purpose__map {
    /* Ancho maximo del mapa */
    max-width: 500px;
    /* Espacio superior */
    margin-top: var(--spacing-lg);
}

.purpose__map img {
    /* Ancho completo del contenedor */
    width: 100%;
    /* Altura automatica para mantener proporcion */
    height: auto;
    /* Escala sin recortar */
    object-fit: contain;
}

/* ================================
   CTA SECTION
================================ */
.cta {
    position: relative;
    z-index: 2;
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, #ff6e37 0%, #ff8a5c 100%);
    text-align: center;
    overflow: hidden;
}

#ctaParticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.cta__container {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.cta__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.cta__title span {
    display: block;
}

.cta__text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
}

.cta .btn--primary {
    background: var(--color-white);
    color: var(--color-secondary);
}

.cta .btn--primary:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ================================
   CONTACT SECTION
================================ */
.contact {
    position: relative;
    z-index: 2;
    padding: var(--spacing-3xl) 0;
    background: rgba(255, 255, 255, 0.75);
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.contact__description {
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact__detail {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.contact__detail-icon {
    width: 50px;
    height: 50px;
    background: rgba(248, 245, 240, 0.85);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.contact__detail-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-secondary);
}

.contact__detail h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.contact__detail p,
.contact__detail a {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.contact__detail a:hover {
    color: var(--color-secondary);
}

.contact__form-wrapper {
    background: rgba(248, 245, 240, 0.9);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.contact__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group--full {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.9);
    transition: var(--transition-normal);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-secondary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-gray);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact__form .btn {
    grid-column: span 2;
    margin-top: var(--spacing-sm);
}

/* ================================
   FOOTER
================================ */
.footer {
    position: relative;
    z-index: 2;
    background: rgba(0, 34, 77, 0.88);
    color: var(--color-white);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.footer__main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer__logo {
    height: 50px;
    width: auto;
    margin-bottom: var(--spacing-sm);
}

.footer__tagline {
    font-size: 0.9rem;
    color: var(--color-white);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.footer__description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 300px;
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.footer__column h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer__column ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__column a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer__column a:hover {
    color: var(--color-secondary);
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.footer__social-link:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
}

.footer__social-link svg {
    width: 18px;
    height: 18px;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-lg);
}

.footer__bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer__legal {
    display: flex;
    gap: var(--spacing-md);
}

.footer__legal a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer__legal a:hover {
    color: var(--color-secondary);
}

/* ================================
   PARTICLES CANVAS
================================ */
#particles {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    touch-action: none;
    /* Dimensiones controladas por JS - NO usar width/height en CSS para evitar estiramiento */
}

/* Asegurar que los canvas no bloqueen el scroll táctil */
#servicesParticles,
#ctaParticles {
    pointer-events: none;
    touch-action: none;
}

/* ================================
   ANIMATIONS
================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================================
   RESPONSIVE DESIGN
================================ */
@media (max-width: 1024px) {

    /* Forzar que todo quede dentro del viewport */
    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    /* Contenedor principal sin desborde */
    .hero,
    .about,
    .services,
    .clients,
    .purpose,
    .cta,
    .contact,
    .footer {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }

    /* Formas decorativas contenidas */
    .shape {
        overflow: hidden;
    }

    .shape-2 {
        left: -30%;
        width: 70vw;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__visual {
        display: none;
    }

    .about__content {
        grid-template-columns: 1fr;
    }

    .services__track {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        width: 100%;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }

    /* ================================
       TABLET (619px - 1024px) - Purpose Section
    ================================ */
    .purpose {
        height: 70vh;
        min-height: 500px;
        padding: 0;
        overflow: hidden;
    }

    .purpose__container {
        display: flex;
        justify-content: flex-end;
        align-items: flex-start;
        min-height: 100%;
        padding: 0 1.5rem;
        padding-left: 35%;
        padding-top: 2rem;
    }

    .purpose__image {
        position: absolute !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 45% !important;
        height: 100% !important;
        display: flex;
        align-items: flex-end;
        justify-content: flex-start;
        z-index: 1 !important;
        overflow: visible !important;
    }

    /* === IMAGEN JAPONESA - TABLET (619px - 1024px) === */
    .purpose__image img {

        /* Saca la imagen del flujo normal, permite posicionar con left/bottom */
        position: absolute !important;

        /* Ancho de la imagen = 50% del ancho de ventana */
        width: auto !important;

        /* Altura automatica para mantener proporcion */
        height: 300vw !important;

        /* Limite maximo de altura = 90% del contenedor */
        max-height: 100% !important;

        /* Posicion horizontal. Negativo = mueve a la izquierda */
        left: -100px !important;

        /* Posicion vertical. 0 = pegada al fondo */
        bottom: 0 !important;

        /* Escala la imagen completa sin recortar */
        object-fit: cover;

        /* Alinea la imagen a la esquina inferior izquierda */
        object-position: bottom left;
    }

    .purpose__content {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: var(--spacing-md);
        z-index: 3;
    }

    .purpose__header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* === TITULO PURPOSE - TABLET === */
    .purpose__title {
        /* Permite mover con left/top */
        position: relative;
        /* Posicion horizontal. Positivo = derecha, Negativo = izquierda */
        left: 0px;
        /* Posicion vertical. Positivo = baja, Negativo = sube */
        top: -50px;
    }

    .purpose__title--italic,
    .purpose__title--bold {
        /* Tamano de fuente en tablet */
        font-size: 2rem;
    }

    .purpose__subtitle {
        max-width: 100%;
    }

    /* === TEXTO PURPOSE - TABLET === */
    .purpose__text {
        /* Permite mover con left/top */
        position: relative;
        /* Posicion horizontal. Positivo = derecha, Negativo = izquierda */
        left: 0px;
        /* Posicion vertical. Positivo = baja, Negativo = sube */
        top: 0px;
        /* Tamano de fuente en tablet */
        font-size: 0.95rem;
        /* Altura de linea */
        line-height: 1.7;
        /* Espacio inferior */
        margin-bottom: 1.5rem;
    }

    /* === MAPA PURPOSE - TABLET === */
    .purpose__map {
        /* Permite mover con left/top */
        position: relative;
        /* Posicion horizontal. Positivo = derecha, Negativo = izquierda */
        left: 0px;
        /* Posicion vertical. Positivo = baja, Negativo = sube */
        top: -55px;
        /* Ancho del mapa */
        width: 100%;
        /* Ancho maximo en tablet */
        max-width: 100%;
    }

    .purpose__shape--beige {
        left: 30%;
        width: 70%;
    }

    .purpose__shape--orange {
        width: 120px;
        height: 150px;
    }

    .contact__container {
        grid-template-columns: 1fr;
    }

    .footer__main {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .footer__links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================================
   SMARTPHONE (320px - 618px)
================================ */
@media (max-width: 618px) {
    :root {
        --container-padding: 1rem;
    }

    /* Solo html tiene scroll - body NO */
    html {
        width: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body {
        width: 100%;
        max-width: 100%;
        overflow: visible;
        overflow-x: hidden;
        overflow-y: visible;
        touch-action: pan-y pinch-zoom;
    }

    /* Eliminar cualquier scroll interno en secciones */
    .hero,
    .about,
    .services,
    .purpose,
    .cta,
    .contact,
    .footer {
        max-width: 100%;
        width: 100%;
        overflow: hidden !important;
        touch-action: pan-y;
    }

    /* Floating nav mobile */
    .floating-nav {
        /* Override desktop centering strategy to prevent stacking context weirdness for blur */
        left: 20px !important;
        right: 20px !important;
        width: auto !important;
        margin: 0 !important;
        /* Instead of translate, we just use fixed positioning with margins */
        transform: translateY(-150%);
        padding: 0.6rem 1rem;
        gap: 1rem;
    }

    /* Important: When visible, REMOVE transform completely so children can blur */
    .floating-nav.visible {
        transform: none !important;
    }

    .nav-links {
        display: none;
    }

    .lang-floating {
        bottom: 1rem;
        right: 1rem;
    }

    .lang-floating__toggle {
        width: 45px;
        height: 45px;
    }

    .lang-floating__toggle svg {
        width: 20px;
        height: 20px;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Mobile menu overlay - Clean and Forced */
    .floating-nav .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 20px;
        right: 20px;

        /* Remove transparent background from here, move to ::before */
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;

        padding: 1.5rem;
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 34, 77, 0.15);
        border: 1px solid var(--color-primary);
        gap: 1rem;
        z-index: 10000;
        /* Ensure pseudo-element positions relative to this */
        transform: translateZ(0);
        /* Hack to ensure high z-layer */
    }

    /* GLASS EFFECT VIA PSEUDO ELEMENT (More Robust) */
    .floating-nav .nav-links.active::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: -1;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.85) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
    }

    /* Aseguramos que los enlaces se vean */
    .floating-nav .nav-links.active a {
        font-size: 1rem;
        padding: 0.75rem;
    }

    .hero {
        padding-top: 40px;
        min-height: auto;
    }

    .about {
        padding-top: 2rem;
    }

    .about .section-tag {
        margin-bottom: 1.5rem;
    }

    .about__text {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .about__challenge,
    .about__barrier {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .about__challenge p,
    .about__barrier p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .about__visual {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .about__map {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .about__connection {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-bottom: 6rem;
        /* Distancia 1: LATAM-ASIA al separador */
    }

    .about__separator {
        width: 60%;
        max-width: 200px;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
        margin: 0 auto 5rem;
        /* Distancia 2: separador a la K */
    }

    .about__k-image {
        max-height: 200px;
    }

    /* Formas hero responsive */
    .shape-1 {
        width: 60vw;
        height: 60vw;
        top: -15%;
        right: -15%;
    }

    .shape-2 {
        top: auto;
        bottom: -10%;
        left: -30%;
        width: 70vw;
        height: 70vw;
    }

    .shape-3 {
        display: none;
    }

    /* Logo responsive - mantener aspecto */
    .hero__logo img {
        height: 80px;
        width: auto;
        max-width: 70vw;
        object-fit: contain;
    }

    .hero__logo-tagline {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }

    .services__track {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem 4vw;
    }

    .service-card {
        padding: 1.25rem;
        border-radius: 14px;
    }

    .service-card__icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.75rem;
    }

    .service-card h3 {
        font-size: 0.95rem;
    }

    .service-card p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .service-card__number {
        font-size: 3.5rem;
        bottom: -8px;
        right: 8px;
    }

    /* Purpose Section - SMARTPHONE (320-618px) */
    .purpose {
        height: auto;
        min-height: 409px;
        margin-bottom: -180px;
        padding: 0;
        overflow: visible !important;
        position: relative;
    }

    .purpose__container {
        display: flex;
        justify-content: flex-end;
        align-items: flex-start;
        min-height: 500px;
        padding: 0 1rem;
        padding-left: 32%;
        padding-top: 2rem;
        position: relative;
    }

    .purpose__image {
        position: absolute !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 50% !important;
        height: 100% !important;
        display: flex;
        align-items: flex-end;
        justify-content: flex-start;
        z-index: 1 !important;
        overflow: visible !important;
    }

    .purpose__image img {
        /* Saca la imagen del flujo normal, permite posicionar con left/bottom */
        position: absolute !important;
        /* Ancho de la imagen. vw = % del ancho de ventana */
        width: auto !important;
        /* Altura automatica para mantener proporcion (no deforma) */
        height: 105vw !important;
        /* Limite maximo de altura respecto al contenedor padre */
        max-height: 80% !important;
        /* Posicion horizontal. Negativo = mueve a la izquierda */
        left: -70px !important;
        /* Posicion vertical desde abajo. Positivo = sube la imagen */
        bottom: 175px !important;
        /* Escala la imagen completa sin recortar */
        object-fit: cover;
        /* Alinea la imagen a la esquina inferior izquierda */
        object-position: bottom left;
    }

    .purpose__content {
        width: 100%;
        max-width: 100%;
        padding: 1rem 0.5rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        z-index: 3;
    }

    /* === TITULO PURPOSE - SMARTPHONE === */
    .purpose__title {
        position: relative;
        /* Posicion horizontal. Positivo = mueve a la derecha */
        left: 11px;
        /* Posicion vertical. Negativo = sube el titulo */
        top: -73px;
        /* Escala del titulo (1.39 = 139% del tamano) */
        transform: scale(1.39);
        /* Punto de origen para la escala */
        transform-origin: top left;
    }

    .purpose__title--italic,
    .purpose__title--bold {
        /* Tamano de fuente en smartphone */
        font-size: 1.4rem;
    }

    /* === TEXTO PURPOSE - SMARTPHONE === */
    .purpose__text {
        position: relative;
        /* Posicion horizontal. Positivo = mueve a la derecha */
        left: 00px;
        /* Posicion vertical. Negativo = sube el texto */
        top: -92px;
        /* Tamano de fuente */
        font-size: 0.84em;
        /* Altura de linea (espaciado entre lineas) */
        line-height: 1.5;
        /* Espacio inferior */
        margin-bottom: 0.75rem;
    }

    /* === MAPA PURPOSE - SMARTPHONE === */
    .purpose__map {
        position: relative;
        /* Ancho del mapa (% del contenedor) */
        width: 89%;
        /* Posicion horizontal. Positivo = mueve a la derecha */
        left: 10px;
        /* Posicion vertical. Negativo = sube el mapa */
        top: -136px;
    }

    .purpose__map img {
        /* Ancho completo */
        width: 100%;
        /* Altura automatica */
        height: auto;
    }

    /* Mostrar las formas decorativas (línea diagonal) */
    .purpose__shape--beige {
        display: block;
        left: 20%;
        width: 80%;
    }

    /* Triángulo naranja grande para ocultar piernas */
    .purpose__shape--orange {
        display: block;
        width: 200px;
        height: 250px;
        z-index: 2;
    }

    .contact__form {
        grid-template-columns: 1fr;
    }

    .form-group--full {
        grid-column: span 1;
    }

    .contact__form .btn {
        grid-column: span 1;
    }

    .footer__links {
        grid-template-columns: 1fr;
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

@media (max-width: 480px) {

    /* Formas más pequeñas en móvil */
    .shape-1 {
        width: 50vw;
        height: 50vw;
        top: -10%;
        right: -10%;
    }

    .shape-2 {
        top: auto;
        bottom: 0;
        left: -40%;
        width: 60vw;
        height: 60vw;
    }

    .hero__title {
        font-size: 1.75rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Logo con tamaño FIJO - no depende de viewport */
    .hero__logo img {
        height: 60px;
        width: auto;
        max-width: 200px;
        object-fit: contain;
    }

    .hero__logo-tagline {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .hero__description {
        font-size: 0.9rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .section-title {
        font-size: 1.75rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Text overflow handling for all languages */
    h1,
    h2,
    h3,
    h4,
    p {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Services 480px */
    .services__track {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 5vw;
    }

    .service-card {
        padding: 1.25rem;
    }

    .service-card__icon {
        width: 35px;
        height: 35px;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }

    .service-card__number {
        font-size: 3rem;
    }

    /* Hero 480px - Sin scroll interno */
    .hero {
        overflow: visible !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: auto !important;
    }

    .hero__container,
    .hero__content {
        overflow: visible !important;
    }

    /* Purpose 480px - Solo ajustes finos de texto (imagen heredada de 618px) */
    .purpose__title--italic,
    .purpose__title--bold {
        font-size: 1.2rem;
    }

    .purpose__text {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .cta__title {
        font-size: 1.5rem;
    }

    /* Formulario de contacto - 480px */
    .contact__form-wrapper {
        padding: 1.25rem;
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact__form {
        width: 100%;
        max-width: 100%;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* ================================
   SCROLL ANIMATIONS
================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(4px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.reveal-stagger {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    filter: blur(3px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    filter: blur(4px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    filter: blur(4px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

.reveal-blur {
    opacity: 0;
    filter: blur(15px);
    transform: scale(0.97);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-blur.active {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

/* ================================
   SMOOTH SECTION BACKGROUNDS
================================ */
.about {
    position: relative;
}

/* ================================
   ENHANCED STAT CARDS
================================ */
.purpose__stat {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.purpose__stat:hover {
    transform: translateY(-8px) scale(1.03);
}

/* ================================
   BUTTON GLOW EFFECT
================================ */
.btn--primary {
    position: relative;
    overflow: hidden;
}

.btn--primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn--primary:hover::after {
    width: 300px;
    height: 300px;
}

/* Header link hover removed - using original ::after only */

/* ================================
   PANTALLAS MUY PEQUEÑAS (5" - 320px)
================================ */
@media (max-width: 360px) {

    /* Logo FIJO para pantallas de 5" */
    .hero__logo img {
        height: 50px !important;
        width: auto !important;
        max-width: 160px !important;
        object-fit: contain !important;
    }

    .hero__logo-tagline {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }

    .hero__title {
        font-size: 1.5rem;
    }

    .hero__description {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }

    /* Nav logo también fijo */
    .nav-logo img {
        height: 24px !important;
        width: auto !important;
    }

    .floating-nav {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .nav-cta {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    /* Botón de idiomas - asegurar que sea tocable */
    .lang-floating {
        bottom: 1rem;
        right: 1rem;
        z-index: 999999;
    }

    .lang-floating__toggle {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        z-index: 999999;
    }

    .lang-floating__menu {
        bottom: 55px;
        z-index: 999999;
    }

    /* About - textos dentro del viewport */
    .about__container {
        padding: 0 0.75rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    .about__text {
        width: 100%;
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .about__challenge,
    .about__barrier {
        width: 100%;
        max-width: 100%;
        padding-left: 0.75rem;
        margin-right: 0;
    }

    .about__challenge p,
    .about__barrier p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* Figura LATAM-ASIA más pequeña */
    .about__point {
        width: 45px;
        height: 45px;
        font-size: 0.55rem;
    }

    .about__curve-line {
        width: 140px;
        margin: 0 -15px;
    }

    .about__connection {
        margin-bottom: 6rem;
        /* Distancia 1: LATAM-ASIA al separador */
    }

    .about__separator {
        width: 50%;
        max-width: 150px;
        margin: 0 auto 5rem;
        /* Distancia 2: separador a la K */
    }

    .about__k-image {
        max-height: 150px;
    }

    /* Servicios en una sola columna */
    .services__track {
        grid-template-columns: 1fr;
        padding: 1rem 4vw;
    }

    .service-card__number {
        font-size: 2.5rem;
    }

    /* Purpose 360px - Solo ajustes de texto (imagen heredada de 618px) */

    .purpose__title--italic,
    .purpose__title--bold {
        font-size: 1rem;
    }

    .purpose__subtitle {
        font-size: 0.6rem;
    }

    .purpose__text {
        font-size: 0.65rem;
        line-height: 1.3;
    }

    .purpose__map {
        width: 130%;
        margin-left: -15%;
    }

    .purpose__map img {
        width: 100%;
    }

    .purpose__shape--orange {
        width: 130px;
        height: 160px;
        z-index: 2;
    }

    /* FORZAR todo dentro del viewport */
    * {
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    .contact,
    .contact__container,
    .contact__info,
    .contact__description {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        overflow-x: hidden !important;
        word-break: break-word !important;
    }

    /* Formulario de contacto - pantallas muy pequeñas */
    .contact__form-wrapper {
        padding: 1rem !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .contact__form {
        width: 100% !important;
        max-width: 100% !important;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.75rem !important;
        font-size: 0.9rem !important;
        box-sizing: border-box !important;
    }

    .contact__form .btn {
        width: 100% !important;
        padding: 0.875rem 1rem !important;
        font-size: 0.9rem !important;
    }

    /* CTA */
    .cta__title {
        font-size: 1.25rem;
    }

    .cta__text {
        font-size: 0.9rem;
    }

    /* Secciones generales */
    .section-title {
        font-size: 1.5rem;
    }

    .section-tag {
        font-size: 0.75rem;
    }
}

/* ================================
   CLIENTS SECTION
   ================================ */
.clients {
    padding: 6rem 2rem;
    background: var(--color-background);
}

.clients__container {
    max-width: 1200px;
    margin: 0 auto;
}

.clients__header {
    text-align: center;
    margin-bottom: 4rem;
}

.clients__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5rem;
}

.clients__grid:empty::after {
    content: "Proximamente...";
    color: var(--color-text-light);
    font-style: italic;
}

.client-logo {
    max-width: 250px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Grid responsive para clientes */
@media (max-width: 768px) {
    .clients {
        padding: 4rem 1rem;
    }

    .clients__grid {
        gap: 3rem;
    }

    .client-logo {
        max-width: 200px;
        max-height: 90px;
    }
}

@media (max-width: 480px) {
    .clients__grid {
        gap: 2rem;
    }

    .client-logo {
        max-width: 120px;
        max-height: 50px;
    }
}

/* Services intro text */
.services__intro {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    max-width: 700px;
    margin: 1rem auto 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .services__intro {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
}