/* ==========================================================================
   Sección Qué Hacemos
   ========================================================================== */
.what-we-do-section {
    background-color: #ffffff;
    color: var(--text-black);
    padding: 100px 0 80px 0;
    width: 100%;
}

.section-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    max-width: 720px;
    margin-bottom: 60px;
}

.section-tagline {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary-blue);
    letter-spacing: 0.1em;
    display: inline-block;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.section-tagline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 2px;
    background-color: var(--primary-blue);
}

.section-title {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 800;
    font-size: 3.1rem;
    line-height: 1.15;
    color: #0e1225;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 400;
    font-size: 1.125rem;
    color: #555866;
    line-height: 1.6;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 70px;
}

.service-card {
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    min-height: 380px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 76, 255, 0.08);
}

.companies-card {
    background-color: #f3f6fc;
}

.developers-card {
    background-color: #f2f9f5;
}

.card-content {
    flex: 1.1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.card-image {
    flex: 0.9;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    align-self: stretch; /* Asegura que la imagen ocupe todo el alto del contenedor */
    position: relative;
}

/* Iconos de las tarjetas */
.card-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px; /* Más redondeado y orgánico, como el mockup */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.companies-card .card-icon-wrapper {
    background-color: #ffffff;
    border: 1.5px solid #004cff;
}

.developers-card .card-icon-wrapper {
    background-color: #ffffff;
    border: 1.5px solid #22c55e;
}

.card-icon {
    width: 24px;
    height: 24px;
}

.companies-card .card-icon {
    /* Quitamos fill sólido para que use el stroke del SVG */
}

.developers-card .card-icon {
    /* Quitamos fill sólido para que use el stroke del SVG */
}

.card-tagline {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.companies-card .card-tagline {
    color: #004cff;
}

.developers-card .card-tagline {
    color: #22c55e;
}

.card-title {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 800;
    font-size: 1.7rem;
    line-height: 1.25;
    color: #0e1225;
    margin-bottom: 16px;
}

.card-text {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 400;
    font-size: 1.0rem;
    color: #555866;
    line-height: 1.5;
    margin-bottom: 30px;
    flex-grow: 1;
}

/* Botones en las tarjetas */
.card-btn {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-speed) ease;
}

.companies-card .card-btn {
    border: 1px solid #004cff;
    color: #004cff;
    background-color: #ffffff;
}

.companies-card .card-btn:hover {
    background-color: #004cff;
    color: #ffffff;
}

.developers-card .card-btn {
    border: 1px solid #22c55e;
    color: #22c55e;
    background-color: #ffffff;
}

.developers-card .card-btn:hover {
    background-color: #22c55e;
    color: #ffffff;
}

.card-btn-arrow {
    transition: transform 0.2s ease;
}

.card-btn:hover .card-btn-arrow {
    transform: translateX(4px);
}

/* Features Row */
.features-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-top: 50px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon-wrapper {
    width: 60px; /* Incrementado de 48px un 25% */
    height: 60px; /* Incrementado de 48px un 25% */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-wrapper svg {
    width: 28px; /* Incrementado de 22px un 25% */
    height: 28px; /* Incrementado de 22px un 25% */
}

.blue-icon {
    background-color: #f3f6fc;
}

.blue-icon svg {
    stroke: #004cff;
}

.green-icon {
    background-color: #f2f9f5;
}

.green-icon svg {
    stroke: #22c55e;
}

.feature-text h4 {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0e1225;
    margin-bottom: 6px;
}

.feature-text p {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: #555866;
    line-height: 1.4;
}


/* ==========================================================================
   Sección Nuestro Modelo
   ========================================================================== */
.our-model-section {
    background-color: #f7f9fc;
    color: var(--text-black);
    padding: 100px 0 80px 0;
    width: 100%;
    position: relative;
}

.model-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

/* Header Grid with Image on the right */
.model-header-grid {
    display: grid;
    grid-template-columns: 1fr 700px; /* Columna derecha fija en 700px */
    align-items: flex-start;
    gap: 20px; /* Gap de 20px */
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    min-height: 380px;
}

.model-header-text {
    max-width: 580px;
    padding-top: 20px;
}

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

.model-header-image {
    width: 700px; /* Ancho fijo de 700px */
    height: 375px; /* Modificado a 375px de alto */
    background-size: cover;
    background-position: center top;
    position: relative;
    border-radius: 8px 8px 0 0;
}

/* Máscara de degradado CSS para desvanecer el fondo de la imagen hacia el color de fondo de la sección */
.model-header-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, rgba(247, 249, 252, 0) 0%, #f7f9fc 100%);
    pointer-events: none;
}

/* Model Process Steps Cards (Overlapping the top header image area) */
.model-cards-grid {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 15px;
    margin-top: -100px; /* Superpone las tarjetas por encima de la imagen superior */
    margin-bottom: 50px;
    position: relative;
    z-index: 10; /* Z-Index alto para quedar por encima */
}

.model-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 40px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 76, 255, 0.06);
}

.card-step-num {
    position: absolute;
    top: 30px;
    right: 30px;
    font-family: 'VinilaTest', sans-serif;
    font-weight: 400; /* Definido a 400 */
    font-size: 5rem; /* Más grande (de 3.5rem a 5rem) */
    color: #e5edf9;
    opacity: 0.6; /* Sutil y elegante */
    line-height: 1;
}

.model-card-top {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.model-card-icon {
    width: 46px; /* Más grande (de 36px a 46px) */
    height: 46px; /* Más grande */
}

.model-card-title {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 800;
    font-size: 1.55rem;
    line-height: 1.25;
    color: #0e1225;
}

.model-card-desc {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: #555866;
    line-height: 1.5;
    margin-bottom: 24px;
}

.model-bullets {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
    flex-grow: 1;
}

.model-bullets li {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: #4a4a50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-icon {
    color: var(--primary-blue);
    font-weight: 900;
}

/* Card Footer (Promo Banner at bottom of Card) */
.model-card-footer {
    background-color: #f3f6fc;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.blue-icon-bg {
    background-color: var(--primary-blue);
}

.footer-icon svg {
    width: 18px;
    height: 18px;
}

.footer-text {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #0e1225;
    line-height: 1.35;
}

/* Connectors between cards */
.model-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
    margin: 0 -15px; /* Superposición ligera sobre las tarjetas */
}

.connector-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #0b3cb3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 76, 255, 0.2);
}

.connector-arrow svg {
    width: 18px;
    height: 18px;
}

/* Bottom Blue Bar */
.model-bottom-bar {
    background-color: #0b3cb3;
    border-radius: 8px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    color: var(--text-white);
    box-shadow: 0 10px 30px rgba(11, 60, 179, 0.15);
}

.bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.shield-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shield-badge svg {
    width: 22px;
    height: 22px;
}

.bar-desc-text {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.5;
}

.bar-right-brand {
    flex-shrink: 0;
}

.brand-logo-white {
    height: 40px;
    width: auto;
    display: block;
}


/* ==========================================================================
   Sección Para Empresas (Feature list y mockup de equipo)
   ========================================================================== */
.companies-feature-section {
    background-color: #ffffff;
    color: var(--text-black);
    padding: 100px 0;
    width: 100%;
}

.companies-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr; /* Imagen izquierda grande, texto derecha */
    gap: 70px;
    align-items: stretch; /* Cambiado de center a stretch para igualar alturas */
}

.companies-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
}

.companies-side-image {
    width: 100%;
    height: 100%; /* Toma el 100% del alto estirado del wrapper */
    min-height: 560px; /* Asegura un tamaño mínimo si la columna derecha tiene poco texto */
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.companies-text-wrapper {
    display: flex;
    flex-direction: column;
}

.companies-text-wrapper .section-tagline {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 700;
    color: #004cff;
    margin-bottom: 20px;
}

.companies-text-wrapper .section-title {
    font-size: 2.85rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

.companies-text-wrapper .section-subtitle {
    margin-bottom: 40px;
}

/* Features List block style matching mockup */
.companies-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.companies-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.companies-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.item-icon-box {
    width: 75px; /* Modificado a 75px */
    height: 75px; /* Modificado a 75px */
    background-color: #f3f6fc;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.item-icon-box svg {
    width: 44px; /* Incrementado para coincidir visualmente a un tamaño proporcional de ~44-50px */
    height: 44px;
}

.item-details h3 {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: #0e1225;
    margin-bottom: 6px;
}

.item-details p {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: #555866;
    line-height: 1.45;
}

.companies-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 55px;
}


/* ==========================================================================
   Sección Tecnología & IA
   ========================================================================== */
.tech-ia-section {
    background-color: #ffffff;
    color: var(--text-black);
    padding: 100px 0;
    width: 100%;
}

.tech-ia-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr; /* Lado izquierdo un poco más ancho */
    gap: 20px; /* Reducido a 20px para acercar la imagen al texto */
    align-items: stretch;
}

.tech-ia-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tech-ia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 40px;
    margin-top: 40px;
}

.tech-ia-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tech-ia-icon-box {
    width: 56px;
    height: 56px;
    background-color: #eff6ff; /* Azul sutil */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tech-ia-icon-box svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-blue);
}

.tech-ia-details h3 {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #0e1225;
    margin-bottom: 4px;
}

.tech-ia-details p {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: #555866;
    line-height: 1.35;
}

/* Columna Imagen Derecha */
.tech-ia-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 520px;
    border-radius: 16px; /* Todos los bordes redondeados */
    overflow: hidden;
}

.tech-ia-side-image {
    width: 100%;
    height: 100%;
    background-image: url('../images/tech-ai.png');
    background-size: cover;
    background-position: center;
}


/* ==========================================================================
   Sección Para Developers / Careers
   ========================================================================== */
.careers-feature-section {
    background-color: #ffffff;
    color: var(--text-black);
    padding: 100px 0;
    width: 100%;
}

.careers-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% y 50% igualado */
    gap: 70px;
    align-items: stretch;
}

.careers-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.careers-text-wrapper .section-tagline {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 700;
    color: #008743; /* Verde bosque */
    margin-bottom: 20px;
    position: relative;
    padding-left: 18px;
    letter-spacing: 0.1em;
}

.careers-text-wrapper .section-tagline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #008743;
}

.highlight-green {
    color: #008743;
}

.careers-text-wrapper .section-title {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 800;
    font-size: 2.85rem;
    line-height: 1.15;
    margin-bottom: 24px;
    color: #0e1225;
}

.careers-text-wrapper .section-subtitle {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
    color: #555866;
    line-height: 1.55;
    margin-bottom: 40px;
    max-width: 540px;
}

/* Rejilla de características 3x2 */
.careers-grid-items {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas */
    gap: 36px 40px;
    margin-bottom: 50px;
}

.careers-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.careers-icon-box {
    width: 64px;
    height: 64px;
    background-color: #ebf9f1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.careers-icon-box svg {
    width: 28px;
    height: 28px;
    stroke: #008743;
}

.careers-details h3 {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #0e1225;
    margin-bottom: 4px;
}

.careers-details p {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: #555866;
    line-height: 1.3;
}

/* Botón Verde */
.careers-actions {
    display: flex;
    justify-content: flex-start;
}

.btn-green {
    background-color: #008743; /* Verde bosque mockup */
    color: var(--text-white);
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: none;
}

.btn-green:hover {
    background-color: #006b35;
    transform: translateY(-2px);
}

/* Columna Imagen Derecha */
.careers-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
}

.careers-side-image {
    width: 100%;
    height: 100%;
    min-height: 560px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}





/* ==========================================================================
   Responsive Menu Hamburguesa y Mobile Layouts
   ========================================================================== */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

.main-header.scrolled .mobile-toggle .bar {
    background-color: var(--text-black);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .header-container {
        justify-content: space-between;
        padding: 0 30px;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Navegación móvil */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background-color: #0d111e;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.25);
        padding: 100px 40px 40px 40px;
        transition: right var(--transition-speed) ease;
        z-index: 1050;
        align-items: flex-start;
    }

    .main-nav.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 20px;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        font-size: 1rem;
        width: 100%;
        justify-content: space-between;
    }

    /* Submenú Móvil */
    .submenu {
        position: static;
        box-shadow: none;
        background: transparent;
        padding: 8px 0 0 15px;
        opacity: 1;
        visibility: visible;
        display: none;
        transform: none;
    }

    .submenu li a {
        color: var(--text-gray);
        padding: 8px 0;
    }

    .submenu li a:hover {
        background: transparent;
        padding-left: 5px;
    }

    /* Abrir submenú activamente en mobile */
    .nav-item.active-mobile .submenu {
        display: block;
    }

    /* Animación del menú hamburguesa */
    .mobile-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .mobile-toggle.open .bar {
        background-color: var(--text-white) !important;
    }

    /* Responsive Hero */
    .title-highlight {
        font-size: 4.5rem;
    }

    .title-sub {
        font-size: 1.8rem;
    }

    .hero-gradient-circle {
        width: 450px;
        height: 450px;
        left: -100px;
    }

    /* Responsive Qué Hacemos */
    .section-title {
        font-size: 2.5rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .features-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 640px) {
    .header-container {
        padding: 0 20px;
    }

    .hero-container {
        padding: 0 20px;
    }

    .hero-content {
        padding-top: 100px;
    }

    .title-highlight {
        font-size: 3.5rem;
    }

    .title-sub {
        font-size: 1.45rem;
    }

    .hero-description {
        font-size: 1.05rem;
        margin-bottom: 30px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .btn {
        width: 100%;
        padding: 14px 20px;
    }

    .hero-gradient-circle {
        width: 320px;
        height: 320px;
        top: 25%;
        left: -80px;
    }

    /* Responsive Qué Hacemos Mobile */
    .what-we-do-section {
        padding: 70px 0 50px 0;
    }

    .section-container {
        padding: 0 20px;
    }

    .section-title {
        font-size: 2.1rem;
    }

    .service-card {
        flex-direction: column;
    }

    .card-image {
        min-height: 220px;
        width: 100%;
    }

    .card-content {
        padding: 30px 24px;
    }

    .features-row {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 40px;
    }
}

/* Responsive Nuestro Modelo */
@media (max-width: 1024px) {
    .model-header-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .model-header-image {
        width: 100%; /* Ancho completo en móviles/tablets */
        height: 220px;
        order: 2; /* Imagen abajo en tablets */
    }

    .model-header-text {
        order: 1;
        max-width: 100%;
    }

    .model-cards-grid {
        flex-direction: column;
        gap: 30px;
        margin-top: 20px; /* Anulamos el margen negativo en pantallas medianas y pequeñas */
    }

    .model-connector {
        display: none; /* Ocultar flechas conectoras */
    }
    
    .model-bottom-bar {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .our-model-section {
        padding: 70px 0 50px 0;
    }

    .model-container {
        padding: 0 20px;
    }

    .model-card {
        padding: 30px 20px;
    }

    .card-step-num {
        font-size: 2.8rem;
        top: 20px;
        right: 20px;
    }

    .model-bottom-bar {
        padding: 20px;
    }

    .bar-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Responsive Para Empresas */
@media (max-width: 1024px) {
    .companies-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .companies-side-image {
        height: 380px;
    }
}

@media (max-width: 640px) {
    .companies-feature-section {
        padding: 70px 0;
    }

    .companies-container {
        padding: 0 20px;
    }

    .companies-text-wrapper .section-title {
        font-size: 2.1rem;
    }

    .companies-side-image {
        height: 280px;
    }
}

/* Responsive Para Developers / Careers */
@media (max-width: 1024px) {
    .careers-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .careers-side-image {
        min-height: 450px;
    }
}

@media (max-width: 640px) {
    .careers-feature-section {
        padding: 70px 0;
    }

    .careers-container {
        padding: 0 20px;
        gap: 40px;
    }

    .careers-text-wrapper .section-title {
        font-size: 2.1rem;
    }

    .careers-grid-items {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 40px;
    }

    .careers-side-image {
        min-height: 320px;
        border-radius: 16px;
    }
}

/* ==========================================================================
   Sección Ventajas de Costa Rica
   ========================================================================== */
.advantage-section {
    background-color: #f8fafc; /* Fondo claro gris/azul muy sutil */
    color: var(--text-black);
    padding: 100px 0 80px 0;
    width: 100%;
}

.advantage-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.advantage-tagline {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-blue);
    letter-spacing: 0.1em;
    display: inline-block;
    margin-bottom: 20px;
}

.advantage-title {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 800;
    font-size: 2.85rem;
    line-height: 1.2;
    color: #0e1225;
    margin-bottom: 24px;
}

.advantage-subtitle {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
    color: #555866;
    line-height: 1.6;
}

/* Grid layout for 6 cards (3 columns) */
.advantage-grid {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Individual Card */
.advantage-card {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 30px 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.012);
    display: flex;
    flex-direction: row; /* Horizontal layout */
    align-items: flex-start; /* Align icon box and content wrapper to the top */
    gap: 16px; /* Reduced gap horizontally */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.025);
}

.advantage-card .card-icon-box {
    width: 65px;
    height: 65px;
    background-color: #eff6ff; /* Azul pastel sutil */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.advantage-card .card-icon-box svg {
    width: 40px;
    height: 40px;
}

.advantage-card .card-content {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Reduced gap vertically */
    padding: 0; /* Override global .card-content padding */
}

.advantage-card h3 {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #0e1225;
    line-height: 1.35;
}

.advantage-card .card-desc {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: #555866;
    line-height: 1.5;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 0 30px;
    }

    .advantage-title {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .advantage-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    .advantage-section {
        padding: 70px 0 50px 0;
    }

    .advantage-header {
        margin-bottom: 40px;
    }

    .advantage-title {
        font-size: 2rem;
    }

    .advantage-card {
        padding: 30px 24px;
        flex-direction: column;
        gap: 20px;
    }

    .divider-brand-wrapper {
        margin-top: 50px;
        padding: 0 20px;
        gap: 15px;
    }
}

/* Responsive Tecnología & IA */
@media (max-width: 1024px) {
    .tech-ia-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .tech-ia-image-wrapper {
        min-height: 450px;
        border-radius: 16px; /* Bordes redondeados en todas las esquinas en móvil */
    }

    .tech-ia-image-wrapper::after {
        width: 100%;
        height: 30%;
        background: linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
    }
}

@media (max-width: 640px) {
    .tech-ia-section {
        padding: 70px 0;
    }

    .tech-ia-container {
        padding: 0 20px;
        gap: 40px;
    }

    .tech-ia-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tech-ia-image-wrapper {
        min-height: 320px;
    }
}

/* ==========================================================================
   Sección CTA (Call to Action)
   ========================================================================== */
.cta-section {
    background: linear-gradient(rgba(10, 15, 30, 0.85), rgba(10, 15, 30, 0.85)), url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    padding: 120px 0;
    width: 100%;
    position: relative;
}

.cta-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.cta-icon-wrapper {
    width: 76px;
    height: 76px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(0, 76, 255, 0.35);
}

.cta-svg {
    width: 38px;
    height: 38px;
}

.cta-title {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 800;
    font-size: 2.85rem;
    line-height: 1.2;
    color: var(--text-white);
    margin-bottom: 24px;
}

.cta-subtitle {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 400;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 40px;
}

.btn-blue-cta {
    background-color: var(--primary-blue);
    color: var(--text-white);
    border: none;
    border-radius: 8px;
    padding: 16px 36px;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(0, 76, 255, 0.4);
    transition: all 0.3s ease;
}

.btn-blue-cta:hover {
    background-color: #1a60ff;
    box-shadow: 0 6px 24px rgba(0, 76, 255, 0.5);
    transform: translateY(-2px);
}

/* Responsive cta */
@media (max-width: 768px) {
    .cta-section {
        padding: 90px 0;
    }

    .cta-container {
        padding: 0 20px;
    }

    .cta-title {
        font-size: 2.1rem;
    }

    .cta-subtitle {
        font-size: 1.05rem;
        margin-bottom: 30px;
    }

    .cta-icon-wrapper {
        width: 68px;
        height: 68px;
        margin-bottom: 20px;
    }

    .cta-svg {
        width: 32px;
        height: 32px;
    }
}


/* ==========================================================================
   Sección Testimonios (Carrusel)
   ========================================================================== */
.testimonials-section {
    background-color: #f8fafc;
    color: var(--text-black);
    padding: 100px 0 100px 0;
    width: 100%;
    overflow: hidden;
}

.testimonials-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    gap: 40px;
}

.testimonials-header {
    max-width: 800px;
    margin-bottom: 0;
}

.testimonials-tagline {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary-blue);
    letter-spacing: 0.1em;
    display: inline-block;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.testimonials-tagline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 2px;
    background-color: var(--primary-blue);
}

.testimonials-title {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1.25;
    color: #0e1225;
    letter-spacing: -0.01em;
}

/* Controles del Carrusel (Flechas en Cabecera) */
.carousel-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.carousel-prev,
.carousel-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 76, 255, 0.2);
    background-color: #ffffff;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.carousel-prev svg,
.carousel-next svg {
    width: 18px;
    height: 18px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 76, 255, 0.2);
}

/* Viewport y Track */
.testimonials-carousel {
    width: 100%;
    overflow: hidden; /* Oculta las tarjetas excedentes para ver solo 3 */
}

.testimonials-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.testimonial-slide {
    flex: 0 0 calc((100% - 60px) / 3); /* 3 cards visibles en escritorio */
    min-width: 0; /* Permite flexbox encogerlo adecuadamente */
    display: flex;
}

.testimonial-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 40px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    width: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 76, 255, 0.06);
}

.quote-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 24px;
}

.quote-icon svg {
    width: 100%;
    height: 100%;
}

.testimonial-text {
    font-family: 'VinilaTest', sans-serif;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #3b3d4a;
    margin-bottom: 32px;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 24px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: var(--primary-blue);
    font-family: 'VinilaTest', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-info h4 {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0e1225;
    margin-bottom: 4px;
}

.author-info p {
    font-family: 'VinilaTest', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.3;
}

/* Indicadores de Puntos (Dots) */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    padding: 0;
}

.dot.active {
    background-color: var(--primary-blue);
    width: 24px;
    border-radius: 5px;
}

/* Testimonials Responsive */
@media (max-width: 1024px) {
    .testimonial-slide {
        flex: 0 0 calc((100% - 30px) / 2); /* 2 cards visibles en tablets */
    }
    
    .testimonials-header-wrapper {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 80px 0;
    }

    .testimonials-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 30px;
    }

    .testimonials-title {
        font-size: 2.0rem;
    }

    .carousel-nav {
        align-self: flex-end;
    }

    .testimonial-slide {
        flex: 0 0 100%; /* 1 card visible en móviles */
    }

    .testimonial-card {
        padding: 32px 24px;
    }
}


