/* ================= HOME.CSS ================= */

.index-hero {
    padding: 30px 0;
}

.hero-bg-wrapper {
    background-color: var(--hero-bg);
    margin: 0 var(--padding-x);
    border-radius: 40px;
    padding: 50px;
    overflow: hidden;
}

.hero-wrapper-grid {
    display: grid !important;
    align-items: center;
}

.hero-text {
    grid-column: 1 / 7;
    z-index: 2;
}

.hero-text h1 {
    color: var(--text);
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: -4.5%;
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    line-height: 1.2;
    display: block;
}

/* Contenedor para el texto con typing animation - SIEMPRE EN UNA LÍNEA */
.hero-text h1 .typing-wrapper {
    display: inline;
    white-space: nowrap;
}

.hero-text h1 .typing-wrapper .gradient-text {
    background: linear-gradient(to right, #2596BE, #FF9900, #95DDEA, #BA651F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
    font-weight: 400;
}

/* REGLA GENERAL PARA GRADIENTE - SIN !important */
.gradient-text {
    background: linear-gradient(to right, #2596BE, #FF9900, #95DDEA, #BA651F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
    font-weight: 400;
}

.hero-text h1 .typing-wrapper .cursor {
    color: #BA651F;
    font-weight: 100;
    animation: blink 0.7s infinite;
    display: inline;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-text p {
    color: var(--text);
    margin-bottom: 2.5rem;
    max-width: 480px;
    line-height: 1.6;
    font-size: var(--p);
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.btn-primary-solid {
    background: #15607A;
    color: white !important;
    border: none;
    font-weight: 600;
    padding: 0.9rem 2rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary-solid:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.btn-secondary-light {
    background: #DDF1F6;
    color: #15607A !important;
    border: none;
    font-weight: 600;
    padding: 0.9rem 2rem;
}

.hero-img {
    grid-column: 7 / 13;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-img img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1200px) {
    .hero-text h1 {
        font-size: clamp(1.4rem, 3.2vw, 2.2rem);
    }
}

@media (max-width: 1024px) {
    .hero-wrapper-grid {
        padding: 0 2rem;
    }
    
    .hero-text h1 {
        font-size: clamp(1.3rem, 3vw, 2.1rem);
    }
    
    .hero-img img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 992px) {
    .hero-text {
        grid-column: 1 / 8;
    }
    
    .hero-img {
        grid-column: 8 / 13;
    }
    
    .hero-text h1 {
        font-size: clamp(1.2rem, 2.8vw, 2.3rem);
    }
}

@media (max-width: 768px) {
    .hero-bg-wrapper {
        margin: 0 15px;
        border-radius: 30px;
        padding: 20px;
    }

    .hero-wrapper-grid {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .hero-text, .hero-img {
        grid-column: 1 / -1;
    }

    .hero-text {
        order: 1;
    }

    .hero-img {
        order: 2;
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .hero-img img {
        max-width: 80%;
        height: auto;
        border-radius: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-text h1 {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
        line-height: 1.3;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: baseline;
        gap: 4px;
    }
    
    /* En móvil, el typing wrapper se vuelve inline-flex para mantener cursor junto al texto */
    .hero-text h1 .typing-wrapper {
        display: inline-flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: baseline;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: clamp(1.2rem, 6vw, 1.8rem);
        line-height: 1.4;
    }
    
    .hero-text h1 .typing-wrapper {
        display: inline-flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: baseline;
        white-space: nowrap;
    }
    
    .hero-img img {
        max-width: 90%;
        height: auto;
    }
}

/* ================= SERVICES SECTION ================= */

.services {
    background: #fff;
    padding: var(--section-padding-y) 0;
}

.services__header {
    grid-column: 1 / 13;
    text-align: center;
    margin-bottom: 2rem;
}

.services__header h2 {
    color: var(--text);
    font-weight: 400;
    margin-bottom: 1rem;
}

.services__header p {
    color: var(--paragraph);
}

.services__grid {
    grid-column: 1 / 13;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    justify-items: center;
    align-items: stretch;
}

.service-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 380px;
    position: relative;
    transition: background-color 0.4s ease, color 0.4s ease;
    cursor: pointer;
    text-decoration: none; /* Elimina subrayado del link */
    border: none;
}

.service-card h3 {
    font-size: 18px;
    color: var(--text);
    font-weight: 500;
    line-height: 1.3;
    transition: color 0.4s ease;
    margin: 0;
}

.service-card p {
    color: var(--paragraph);
    font-size: 0.9rem;
    line-height: 1.5;
    transition: color 0.4s ease;
    margin: 0;
}

.service-card__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
    transition: filter 0.4s ease;
}

.service-card__icon svg {
    width: 30px;
    height: 30px;
    object-fit: contain;
    color: var(--primary);
    transition: color 0.4s ease;
}

.service-card:hover {
    background: var(--primary);
}

.service-card:hover h3,
.service-card:hover p {
    color: #ffffff;
}

.service-card:hover .service-card__icon svg {
    color: #ffffff;
}

/* Accesibilidad: focus visible para teclado */
.service-card:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Efecto de presión al hacer click */
.service-card:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .services__grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .service-card {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }
    
    .services {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .services__grid {
        padding: 0 0.75rem;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem 1.25rem;
    }
    
    .service-card h3 {
        font-size: 16px;
    }
    
    .service-card p {
        font-size: 0.85rem;
    }
}

@media (min-width: 1200px) {
    .services__grid {
        max-width: 900px;
    }
    
    .service-card {
        max-width: 420px;
    }
}

/* ================= WHY LATAM SECTION ================= */

.why-latam {
    padding: var(--section-padding-y) 0;
    background: #fff;
}

.latam-content {
    grid-column: 1 / 6;
}

.section-title {
    font-size: var(--h2);
    margin-bottom: 2rem;
    font-weight: 400;

}

.latam-highlight {
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 2rem;
}

.latam-highlight span {
    color: var(--paragraph);
    font-style: italic;
}

.latam-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--paragraph);
    line-height: 1.3;
}

.btn-learn-more {
    background: #FFF7ED;
    color: var(--secondary) !important;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s ease;
}

.btn-learn-more:hover {
    background: #FFEDD5;
}

/* ================= MAPA CON AGUA COLOR #30A2CD ================= */

/* WRAPPER DEL MAPA CON TÍTULO */
.latam-map-wrapper {
    grid-column: 7 / 13;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* HEADER DEL MAPA (TÍTULO FUERA) */
.map-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 0 0.25rem;
}

.map-title {
    font-size: var(--h4);
    font-weight: 500;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    letter-spacing: -0.02em;
}

.map-badge {
    width: 12px;
    height: 12px;
    background: linear-gradient(145deg, #2596BE, #1a7a9e);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(37, 150, 190, 0.3);
} 

/* CONTENEDOR DEL MAPA */
.latam-map-container {
    width: 100%;
    height: 420px;
    position: relative;
    border-radius: 20px;
    background: transparent;
    overflow: hidden;
    border: 1px solid rgba(37, 150, 190, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


#interactive-map {
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
}

/* Filtros para saturar el azul del agua */
#interactive-map .leaflet-tile-pane {
    filter: saturate(1.7) contrast(1.0) brightness(1.0);
}

#interactive-map .leaflet-tile {
    border-radius: 0 !important;
}

/* OVERLAY DE AGUA */
#interactive-map .water-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(48, 162, 205, 0.25);
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 5;
    border-radius: 20px;
}

/* ===== MARCARDORES ===== */

.custom-marker {
    background: linear-gradient(145deg, #FF6B35, #E85D2C);
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 14px !important;
    height: 14px !important;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.5), inset 0 -2px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-marker:hover {
    transform: scale(1.6) translateY(-4px);
    box-shadow: 0 8px 28px rgba(255, 107, 53, 0.6);
}

.custom-marker-country {
    background: linear-gradient(145deg, #2596BE, #1a7a9e);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 10px !important;
    height: 10px !important;
    box-shadow: 0 2px 8px rgba(37, 150, 190, 0.3), inset 0 -2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-marker-country:hover {
    transform: scale(1.8) translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 150, 190, 0.4);
}

/* ===== TOOLTIPS ===== */

.map-label-miami {
    background: rgba(0, 0, 0, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    padding: 4px 14px !important;
    font-family: inherit !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    letter-spacing: 0.3px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.map-label-miami::before {
    border-top-color: rgba(0, 0, 0, 0.75) !important;
}

.map-label-country {
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    padding: 2px 10px !important;
    font-family: inherit !important;
    font-size: 0.65rem !important;
    font-weight: 500 !important;
    color: #fff !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    letter-spacing: 0.2px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.map-label-country::before {
    border-top-color: rgba(0, 0, 0, 0.6) !important;
}

/* ===== POPUPS ===== */

.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95) !important;
}

.leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.95) !important;
}

/* Ocultar controles de zoom */
.leaflet-control-zoom {
    display: none !important;
}

/* ===== LEYENDA - SOLO UBICACIONES ===== */

.map-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 12px 16px;
    border-radius: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.map-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.map-legend-item:last-child {
    margin-bottom: 0;
}

.map-legend-miami {
    width: 10px;
    height: 10px;
    background: #FF6B35;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.map-legend-country {
    width: 8px;
    height: 8px;
    background: #2596BE;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(37, 150, 190, 0.3);
}

.map-legend-text {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.65rem;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 992px) {
    .latam-content, .latam-map-wrapper {
        grid-column: 1 / 13;
    }
    
    .latam-map-container {
        height: 420px;
    }
    
    .map-legend {
        bottom: 12px;
        right: 12px;
        padding: 10px 14px;
    }
    
    .map-title {
        font-size: 1.3rem;
    }
    

}

@media (max-width: 768px) {
    .latam-map-wrapper {
        gap: 0.75rem;
    }
    
    .latam-map-container {
        height: 400px;
        border-radius: 16px;
    }
    
    #interactive-map {
        border-radius: 16px;
    }

    .map-header {
      margin-top: 2rem;
    }
    
    .map-title {
        font-size: 1.2rem;
        gap: 0.5rem;
     
    }
    
 
    
    .map-legend {
        bottom: 10px;
        right: 10px;
        padding: 8px 12px;
        border-radius: 8px;
    }
    
    .map-legend-item {
        gap: 6px;
    }
    
    .map-legend-text {
        font-size: 0.6rem;
    }
    
    .map-legend-miami {
        width: 8px;
        height: 8px;
    }
    
    .map-legend-country {
        width: 7px;
        height: 7px;
    }
    
    .custom-marker {
        width: 12px !important;
        height: 12px !important;
    }
    
    .custom-marker-country {
        width: 8px !important;
        height: 8px !important;
    }
}

@media (max-width: 480px) {
    .latam-map-wrapper {
        gap: 0.5rem;
    }
    
    .latam-map-container {
        height: 380px;
        border-radius: 14px;
        border-width: 1px;
    }
    
    #interactive-map {
        border-radius: 14px;
    }
    
    .map-title {
        font-size: 1.1rem;
        gap: 0.5rem;
    }
    
    
    .map-legend {
        bottom: 8px;
        right: 8px;
        padding: 6px 10px;
        border-radius: 6px;
    }
    
    .map-legend-item {
        gap: 4px;
        margin-bottom: 2px;
    }
    
    .map-legend-text {
        font-size: 0.5rem;
    }
    
    .map-legend-miami {
        width: 7px;
        height: 7px;
    }
    
    .map-legend-country {
        width: 6px;
        height: 6px;
    }
    
    .custom-marker {
        width: 10px !important;
        height: 10px !important;
        border-width: 2px !important;
    }
    
    .custom-marker-country {
        width: 7px !important;
        height: 7px !important;
        border-width: 1.5px !important;
    }
    
    .map-label-miami {
        font-size: 0.55rem !important;
        padding: 2px 10px !important;
        border-radius: 6px !important;
    }
    
    .map-label-country {
        font-size: 0.5rem !important;
        padding: 2px 8px !important;
        border-radius: 4px !important;
    }
}

/* ===== RESPONSIVE PARA ORIENTACIÓN LANDSCAPE EN MOBILE ===== */

@media (max-height: 600px) and (orientation: landscape) {
    .latam-map-container {
        height: 300px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .latam-map-container {
        height: 250px;
    }
    
    .map-title {
        font-size: 1rem;
    }
    
    .map-subtitle {
        font-size: 0.65rem;
        margin-left: 1.8rem;
    }
}

/* ===== SOPORTE PARA PANTALLAS MUY GRANDES ===== */

@media (min-width: 1440px) {
    .latam-map-container {
        height: 520px;
        border-radius: 24px;
    }
    
    .map-title {
        font-size: 1.6rem;
    }
    
    .map-subtitle {
        font-size: 0.9rem;
    }
    
    .map-legend {
        padding: 14px 18px;
    }
}

/* ===== ACCESIBILIDAD: REDUCIR MOVIMIENTO ===== */

@media (prefers-reduced-motion: reduce) {
    .custom-marker,
    .custom-marker-country {
        transition: none !important;
    }
    
    .custom-marker:hover,
    .custom-marker-country:hover {
        transform: none !important;
    }
    
    .latam-map-container {
        transition: none !important;
    }
    
    .latam-map-container:hover {
        transform: none !important;
    }
}

/* ===== ELIMINAR BORDES INDESEADOS ===== */

#interactive-map .leaflet-control-attribution {
    display: none !important;
}

#interactive-map .leaflet-control-zoom {
    display: none !important;
}

/* ===== MEJORA DE CONTRASTE ===== */

#interactive-map .leaflet-tile-container img {
    filter: saturate(1.8) contrast(1.05);
    image-rendering: auto;
}

/* ===== ANIMACIÓN DE APARICIÓN ===== */

.latam-map-wrapper.scroll-reveal-blur {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
    transition: opacity 0.7s ease-out, filter 0.7s ease-out, transform 0.7s ease-out;
}

.latam-map-wrapper.scroll-reveal-blur.revealed {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* ================= LOGO SLIDER ================= */

.logos {
    padding: 0;
    background: #fff;
    overflow: hidden;
}

.logo-slider {
    grid-column: 1 / 13;
    position: relative;
    width: 100%;
    margin: 0 auto;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 15%,
        black 85%,
        transparent
    );
    mask-image: linear-gradient(
        to right,
        transparent,
        black 15%,
        black 85%,
        transparent
    );
}

.logo-track {
    display: flex;
    width: calc(250px * 12);
    animation: scrollLogos 100s linear infinite;
}

.logo-slide {
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.logo-slide img {
    width: 100%;
    max-width: 150px;
    height: auto;
    filter: grayscale(0);
    opacity: 0.8;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.logo-slide img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 6));
    }
}

@media (max-width: 768px) {
    .logo-slide {
        width: 180px;
    }
    @keyframes scrollLogos {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-180px * 6)); }
    }
}

/* ================= LATAM CTA CAREERS ================= */

.latam-cta {
    grid-column: 1 / 13;
    margin-top: 4rem;
    background-color: var(--hero-bg);
    border-radius: var(--radius);
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.latam-cta__content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #F0F9FB;
    margin-left: -15px;
    transition: transform 0.3s ease;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar:hover {
    transform: translateY(-5px);
    z-index: 10;
}

.cta-text h4 {
    font-size: var(--h4);
    color: var(--text);
    margin-bottom: 0.2rem;
    font-weight: 400;
}

.cta-text p {
    color: var(--paragraph);
    font-size: var(--p);
}

.btn-cta-careers {
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    background-color: var(--primary);
    color: #fff !important;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-cta-careers:hover {
    background-color: var(--vr-primary);
}

@media (max-width: 992px) {
    .latam-cta {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
    }

    .latam-cta__content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .avatar-stack {
        justify-content: center;
        margin-left: 15px;
    }
}

/* ================= HOW IT WORKS ================= */

.how-works {
    padding: 4rem 0;
    background: #f5f5f5;
    position: relative;
    min-height: auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.badge-tech {
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: var(--hero-alt);
    padding: 4px 8px;
    display: inline-block;
    border-radius: 4px;
    border: 1px solid #dadada;
}

.badge-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    margin-right: 6px;
}

.section-header h2 {
    font-size: var(--h2);
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 400;
    background-clip: text;
    letter-spacing: -4%;
}

.section-header p {
    color: var(--paragraph);
    font-size: var(--p);
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 24px;
    width: 100%;
}

.how-item {
    border-radius: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    height: 372px;
    overflow: hidden;
}

.item-office {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.item-office .bg-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    transition: transform 0.5s ease;
}

.item-office:hover .bg-img {
    transform: scale(1.05);
}

.item-office::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1), rgba(0,0,0,0.05));
    pointer-events: none;
}

.item-discovery {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    padding: 1.5rem;
}

.item-talent {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    padding: 1.5rem;
    overflow: hidden;
    position: relative;
}

.item-integration {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
    padding: 1.5rem;
    background: linear-gradient(135deg, #2596BE, #1a6f8f);
    border-color: #2596BE;
    overflow: visible;
    position: relative;
}

.mini-card-img {
    width: 100%;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1rem;
    background: #F3F4F6;
}

.mini-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mini-card-img:hover img {
    transform: scale(1.05);
}

.dev-float {
    position: absolute;
    bottom: -48px;
    right: 0;
    height: auto;
    max-height: 130%;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.item-integration:hover .dev-float {
    transform: scale(1.02);
}

.item-integration .how-content {
    position: relative;
    z-index: 2;
    max-width: 60%;
}

.how-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.how-content h3 {
    font-size: var(--h4);
    font-weight: 400;
    margin: 0;
    color: var(--text);
    letter-spacing: -3%;
}

.how-content p {
    font-size: 14px;
    max-width: 300px;
    line-height: 1.5;
    margin: 0;
    color: var(--text);
}

.item-integration .how-content h3 {
    color: #fff;
    font-size: 1.4rem;
}

.item-integration .how-content p {
    color: rgba(255,255,255,0.9);
}

.code-window {
    background: #1E1E2E;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.5rem;
    border: 1px solid #2D2D3D;
}

.dots {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FF5F56;
}

.dots span:nth-child(2) { background: #FFBD2E; }
.dots span:nth-child(3) { background: #27C93F; }

.code-window code {
    color: #A6E3A1;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    display: block;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255,255,255,0.15);
    padding: 0.7rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.3s ease, gap 0.3s ease;
    border: none;
    margin-top: auto;
    width: fit-content;
    text-decoration: none;
    cursor: pointer;
}

.btn-contact:hover {
    background: rgba(255,255,255,0.25);
    gap: 16px;
    text-decoration: none;
}

.btn-contact span {
    transition: transform 0.3s ease;
}

.btn-contact:hover span {
    transform: translateX(4px);
}

.step-number {
    display: none;
}

.how-arrow {
    display: none;
}

@media (max-width: 1024px) {
    .how-works {
        padding: 3rem 0;
    }
    
    .how-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .item-office,
    .item-discovery,
    .item-talent,
    .item-integration {
        grid-column: span 2;
    }
    
    .how-item {
        height: auto;
        min-height: 372px;
    }
    
    .dev-float {
        position: relative;
        height: auto;
        max-width: 200px;
        margin: 1rem auto 0;
        display: block;
        right: auto;
        bottom: auto;
    }
    
    .item-integration {
        overflow: hidden;
    }
    
    .item-integration .how-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .how-grid {
        gap: 16px;
    }
    
    .how-item {
        padding: 1.25rem;
        min-height: auto;
        height: auto;
    }
    
    .item-office {
        height: 300px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .how-content h3 {
        font-size: 1.2rem;
    }
    
    .btn-contact {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .code-window code {
        font-size: 0.7rem;
    }
}

@media (max-width: 640px) {
    .how-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .item-office,
    .item-discovery,
    .item-talent,
    .item-integration {
        grid-column: 1 / 2;
    }
    
    .item-office {
        height: 250px;
    }
    
    .dev-float {
        max-width: 150px;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
}

@media (min-width: 1440px) {
    .how-works {
        padding: 5rem 0;
    }
}

/* ================= SPEED & DELIVERY SECTION ================= */

.speed-delivery {
    background: #fff;
    padding: var(--section-padding-y) 0;
    width: 100%;
}

.speed-delivery .container {
    display: grid !important;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    width: 100%;
    align-items: center;
}

.speed-delivery__text-block {
    grid-column: 1 / 6;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.speed-delivery__badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #DDF1F6;
    color: #15607A;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.speed-delivery__title {
    font-size: var(--h1);
    color: var(--text);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -4.5%;
    margin-bottom: 0;
    width: 100%;
}

.speed-delivery__description {
    color: var(--paragraph);
    font-size: var(--p);
    line-height: 1.6;
    max-width: 500px;
    margin: 0;
}

.speed-delivery__btn-consult {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 14px 28px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: fit-content;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 150, 190, 0.2);
    margin-top: 0.5rem;
}

.speed-delivery__btn-consult svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.speed-delivery__btn-consult:hover {
    background: var(--vr-primary);
    gap: 16px;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 150, 190, 0.3);
}

.speed-delivery__btn-consult:hover svg {
    transform: translateX(4px);
}

.speed-delivery__visual-block {
    grid-column: 7 / 13;
    width: 100%;
}

.speed-delivery__card-callout {
    position: relative;
    background: #0B2530;
    border-radius: 32px;
    min-height: 480px;
    height: 100%;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.speed-delivery__image-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.speed-delivery__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(11, 37, 48, 0.05) 0%,
        rgba(11, 37, 48, 0.15) 40%,
        rgba(11, 37, 48, 0.5) 100%
    );
    z-index: 2;
}

.speed-delivery__foreground {
    position: relative;
    width: 100%;
    padding: 2rem 2rem 2.5rem 2rem;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.speed-delivery__callout-text h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -2%;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.speed-delivery__callout-text h3 strong {
    color: #FF9900;
}

.speed-delivery__timeline {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 6px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 0.5rem;
}

.timeline-track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.timeline-label {
    font-size: 0.8rem;
    padding: 0.6rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    width: 50%;
    text-align: center;
    transition: all 0.3s ease;
}

.timeline-label.disabled {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    background: rgba(0, 0, 0, 0.2);
}

.timeline-label.active {
    background: #2596BE;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 150, 190, 0.3);
}

.timeline-label.active strong {
    color: #FF9900;
}

.speed-delivery__glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: #2596BE;
    filter: blur(100px);
    bottom: -100px;
    right: -100px;
    opacity: 0.2;
    pointer-events: none;
    z-index: 2;
}

@media (max-width: 1024px) {
    .speed-delivery .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .speed-delivery__text-block,
    .speed-delivery__visual-block {
        grid-column: 1 / -1;
    }

    .speed-delivery__text-block {
        text-align: center;
        align-items: center;
    }
    
    .speed-delivery__description {
        max-width: 100%;
    }
    
    .speed-delivery__btn-consult {
        align-self: center;
    }
    
    .speed-delivery__card-callout {
        min-height: 420px;
    }
}

@media (max-width: 768px) {
    .speed-delivery__card-callout {
        border-radius: 24px;
        min-height: 380px;
    }

    .speed-delivery__foreground {
        padding: 1.5rem;
    }
    
    .speed-delivery__callout-text h3 {
        font-size: 1.2rem;
    }
    
    .speed-delivery__btn-consult {
        padding: 12px 24px;
        font-size: 0.8rem;
    }
    
    .timeline-label {
        font-size: 0.7rem;
        padding: 0.5rem 0.25rem;
    }
}

@media (max-width: 640px) {
    .timeline-track {
        flex-direction: column;
        gap: 0.5rem;
    }

    .timeline-label {
        width: 100%;
    }
    
    .speed-delivery__title {
        font-size: clamp(24px, 5vw, 40px);
    }
    
    .speed-delivery__card-callout {
        min-height: 340px;
    }
}

/* ================= WHY SOFTWARECRAFT? SECTION ================= */

.why-softwarecraft {
    padding: var(--section-padding-y) 0;
    background: var(--bg);
}

.why-softwarecraft__header {
    grid-column: 1 / 13;
    text-align: flex-start;
    margin-bottom: 3rem;
}

.why-softwarecraft__header h2 {
    font-size: var(--h2);
    color: var(--text);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.why-softwarecraft__header p {
    color: var(--paragraph);
    font-size: var(--p);
    width: 100%;
    max-width: 600px;
    line-height: 1.5;
}

/* Grid de 4 cards */
.why-softwarecraft__grid {
    grid-column: 1 / 13;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Cada card */
.why-softwarecraft__card {
    background: var(--bg);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(37, 150, 190, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

/* Línea decorativa superior en cada card */
.why-softwarecraft__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.why-softwarecraft__card:hover::before {
    opacity: 1;
}

/* Icono de la card */
.why-softwarecraft__card-icon {
    width: 48px;
    height: 48px;
    background: var(--hero-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.why-softwarecraft__card-icon svg {
    width: 26px;
    height: 26px;
}


.why-softwarecraft__card:hover .why-softwarecraft__card-icon {
    background: var(--primary);
}

.why-softwarecraft__card:hover .why-softwarecraft__card-icon svg {
    stroke: #ffffff;

}

/* Títulos y textos */
.why-softwarecraft__card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.why-softwarecraft__card p {
    font-size: 0.9rem;
    color: var(--paragraph);
    line-height: 1.5;
    margin: 0;
}

/* Efecto hover en toda la card */
.why-softwarecraft__card:hover {
   
   
    border-color: rgba(37, 150, 190, 0.2);
}

/* CTA Button centrado */
.why-softwarecraft__cta {
    grid-column: 1 / 13;
    text-align: center;
}

.why-softwarecraft__cta .btn-primary-solid {
    padding: 0.9rem 3rem;
    font-size: 1rem;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .why-softwarecraft__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .why-softwarecraft__card {
        padding: 1.75rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .why-softwarecraft__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .why-softwarecraft__card {
        padding: 1.5rem 1.25rem;
    }
    
    .why-softwarecraft__card h3 {
        font-size: 1rem;
    }
    
    .why-softwarecraft__card p {
        font-size: 0.85rem;
    }
    
    .why-softwarecraft__card-icon {
        width: 42px;
        height: 42px;
    }
    
    .why-softwarecraft__card-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .why-softwarecraft__cta .btn-primary-solid {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .why-softwarecraft {
        padding: 3rem 0;
    }
    
    .why-softwarecraft__header {
        margin-bottom: 2rem;
    }
    
    .why-softwarecraft__header h2 {
        font-size: 1.75rem;
    }
    
    .why-softwarecraft__grid {
        gap: 0.75rem;
    }
    
    .why-softwarecraft__card {
        padding: 1.25rem 1rem;
        border-radius: 12px;
    }
    
    .why-softwarecraft__card h3 {
        font-size: 0.95rem;
    }
}

/* ===== ACCESIBILIDAD ===== */

@media (prefers-reduced-motion: reduce) {
    .why-softwarecraft__card {
        transition: none !important;
    }
    
    .why-softwarecraft__card:hover {
        transform: none !important;
    }
    
    .why-softwarecraft__card-icon svg {
        transition: none !important;
    }
}

/* ================= TRUST BAR SECTION ================= */

.trust-bar {
  background: var(--primary);
  padding: 3rem 0;
  
}

.trust-bar__wrapper {
  grid-column: 1 / 13;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
  padding: 0.5rem 0;
}

.trust-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
}

.trust-bar__number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--bg);
  line-height: 1;
  letter-spacing: -0.02em;
}

.trust-bar__label {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  color: var(--bg);
  font-weight: 500;
  line-height: 1.3;
}

.trust-bar__divider {
  width: 1px;
  height: 50px;
  background: var(--bg);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .trust-bar {
    padding: 2.5rem 0;
  }
  
  .trust-bar__wrapper {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .trust-bar__divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(37, 150, 190, 0.2),
      transparent
    );
  }
  
  .trust-bar__number {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }
  
  .trust-bar__label {
    font-size: clamp(0.8rem, 2vw, 0.95rem);
  }
}

@media (max-width: 480px) {
  .trust-bar {
    padding: 2rem 0;
  }
  
  .trust-bar__wrapper {
    gap: 1.25rem;
  }
  
  .trust-bar__number {
    font-size: 1.8rem;
  }
  
  .trust-bar__label {
    font-size: 0.75rem;
  }
  
  .trust-bar__divider {
    width: 40px;
  }
}

/* ================= WHO WE WORK WITH ================= */

.about-partners {
  background: var(--hero-alt);
  padding: var(--section-padding-y) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

/* El contenedor usa el grid de 12 columnas del global.css */
.about-partners .container {
  display: grid !important;
  grid-template-columns: repeat(12, 1fr) !important;
  gap: clamp(1rem, 2vw, 2rem);
}

/* Wrapper que ocupa las 12 columnas y contiene el grid interno */
.about-partners__wrapper {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

/* Lado Izquierdo - Imagen */
.about-partners__image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.about-partners__image {
  width: 100%;
  height: clamp(400px, 45vw, 550px);
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.about-partners__image-wrapper:hover .about-partners__image {
  transform: scale(1.03);
}

/* Lado Derecho - Contenido */
.about-partners__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-partners__eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);

}

.about-partners__title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 500;
  color: var(--text);
 
  letter-spacing: -0.5px;
  margin: 0;
}

.about-partners__description {
  font-size: var(--p);
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 0.5rem 0;
  max-width: 480px;
}

/* Lista de partners */
.about-partners__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-partners__list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about-partners__number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(37, 150, 190, 0.08);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  flex-shrink: 0;
  min-width: 32px;
  text-align: center;
  margin-top: 2px;
}

.about-partners__item-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.about-partners__item-content strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}



/* Línea delgada debajo de cada item */
.about-partners__line {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(37, 150, 190, 0.15) 0%,
    rgba(37, 150, 190, 0.05) 100%
  );
  margin: 0.35rem 0 0.1rem 0;
}

.about-partners__list li:last-child .about-partners__line {
  display: none;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 992px) {
  .about-partners__wrapper {
    gap: 3rem;
  }
  
  .about-partners__image {
    height: clamp(350px, 40vw, 450px);
  }
}

@media (max-width: 768px) {
  .about-partners {
    padding: 4rem 0;
  }
  
  .about-partners__wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .about-partners__image {
    height: clamp(280px, 50vw, 380px);
  }
  
  .about-partners__content {
    gap: 1.25rem;
  }
  
  .about-partners__description {
    max-width: 100%;
  }
  
  .about-partners__list {
    gap: 1rem;
  }
  
  .about-partners__number {
    font-size: 0.7rem;
    min-width: 28px;
    padding: 0.2rem 0.4rem;
  }
  
  .about-partners__item-content strong {
    font-size: 0.95rem;
  }
  

}

@media (max-width: 480px) {
  .about-partners__image {
    height: clamp(220px, 55vw, 300px);
    border-radius: 16px;
  }
  
  .about-partners__wrapper {
    gap: 1.5rem;
  }
  
  .about-partners__list li {
    gap: 0.75rem;
  }
  
  .about-partners__number {
    font-size: 0.65rem;
    min-width: 24px;
    padding: 0.15rem 0.35rem;
  }
  
  .about-partners__item-content strong {
    font-size: 0.9rem;
  }
  

}

/* ===== ACCESIBILIDAD ===== */

@media (prefers-reduced-motion: reduce) {
  .about-partners__image {
    transition: none !important;
  }
  
  .about-partners__image-wrapper:hover .about-partners__image {
    transform: none !important;
  }
}