/* ESTILOS CORPORATIVOS - UNITED Solutions • Enterprise 
   Basado en lineamientos de marca oficiales.
*/

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700;900&display=swap');

:root {
    /* Paleta de Colores UNITED */
    --brand-navy: rgb(31, 79, 74);
    --brand-teal-dark: #03A091;
    --brand-teal-light: #132B35;
    --brand-orange: #ED8057;
    
    /* Variables de Superficie y Texto */
    --surface-light: #F8FAFC;
    --surface-alt: #f1f5f9;
    --text-main: #263658; 
    --text-muted: #64748b;
    --border-light: #e2e8f0;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* --- ESCALA TIPOGRÁFICA UX (SISTEMA FLUIDO) --- */
    /* clamp(min, preferido, max) */
    --fs-h1: clamp(2.5rem, 6vw, 4rem);    /* Hero titles */
    --fs-h2: clamp(2rem, 4vw, 2.75rem);  /* Section titles */
    --fs-h3: clamp(1.5rem, 3vw, 2rem);    /* Large card titles */
    --fs-h4: clamp(1.25rem, 2vw, 1.5rem); /* Standard card titles */
    --fs-body: clamp(1rem, 1vw, 1.1rem);  /* Paragraphs */
    --fs-small: 0.875rem;                 /* Badges/Captions */
}

/* --- CONFIGURACIÓN BASE --- */
body {
    font-family: 'Raleway', sans-serif;
    font-size: var(--fs-body);
    color: var(--text-main);
    background-color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- JERARQUÍA DE TÍTULOS --- */
h1, .h1 {
    font-size: var(--fs-h1);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

h2, .h2 {
    font-size: var(--fs-h2);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

h3, .h3 {
    font-size: var(--fs-h3);
    font-weight: 900;
    line-height: 1.3;
}

h4, h5, .h4, .h5 {
    font-size: var(--fs-h4);
    font-weight: 700;
    line-height: 1.4;
}

.navbar-toggler{
    color: var(--surface-light);
}

.navbar{
    background: #04060938;
}

.border-primary {
    border-color: #03a091 !important;
}

.fw-bold { font-weight: 700 !important; }
.fw-black { font-weight: 700 !important; }

/* UX: Limitar ancho de párrafos lead para legibilidad */
.lead {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    /* max-width: 70ch;*/
    color: #fff;
}

.text-navy{
    color: #0f2f3a
}

.text-primary { color: var(--brand-teal-dark) !important; }
.text-orange { color: var(--brand-orange) !important; }

.text-gradient {
    background: linear-gradient(135deg, #ffffff 30%, var(--brand-teal-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- NAVEGACIÓN --- */
.glass-nav {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

#logo-menu { max-width: 180px; }

/* --- BOTONES --- */
.btn-brand {
    background: linear-gradient(135deg, #1f4f4a, #3d5a5f);
    color: #ffffff;

    border-radius: 10px;
    padding: 7px 16px;

    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1.5px;

    border: none;
    cursor: pointer;

    box-shadow:
        0 6px 18px rgba(15, 47, 52, 0.55),
        inset 0 0 0 1px rgba(255, 255, 255, 0.14);

    transition: all 0.3s ease;
}
.btn-brand:hover {
    background: linear-gradient(
        135deg,
        #2a6a63,
        #16474b
    );

    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(15, 47, 52, 0.65),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);

    color: #fff;
}

/* --- HERO SECTION --- */
.hero-section {
    padding: clamp(100px, 15vh, 160px) 0 clamp(60px, 10vh, 120px);
    position: relative;
    overflow: hidden;
    color: white;
}

/* Video fondo */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

/* Contenido */
.hero-content {
    position: relative;
    z-index: 3;
}

/* Tarjetas métricas (opcional mejora visual) */
.metric-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 20px;
    height: 100%;
}

.hero-section h1 {
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 0 25px rgba(255,255,255,0.15);
}

.hero-section .lead {
    opacity: 0.95;
}

.text-gradient {
    background: linear-gradient(135deg, #7EDAD2, #3BB273);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-card h2 {
    font-weight: 500;
    font-size: 2rem;
}

.metric-card p {
    letter-spacing: 1px;
    opacity: 0.85;
}

.metric-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.14);
}

.counter{
    font-weight: 600;
}

@media (max-width: 768px) {
    @media (max-width: 768px) {
        .hero-section {
            text-align: center;
            min-height: auto;
            padding: 80px 0 60px;

            background:
                linear-gradient(
                    to bottom,
                    rgba(19, 43, 53, 0.85) 0%,
                    rgba(19, 43, 53, 0.95) 100%
                ),
                url("../img/banner-ia-movil.png");

            background-size: contain;
            background-position: top center;
            background-repeat: no-repeat;
            background-attachment: scroll;
        }
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .metric-card h2 {
        font-size: 1.6rem;
    }

    .hero-section .lead {
        font-size: 18px !important;
    }
}

/* --- MARQUEE --- */
.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    position: relative;
    display: flex;
    background: var(--surface-light);
}

.marquee-track {
    display: flex; /* Cambiado de inline-flex a flex */
    gap: 80px;
    width: max-content; /* Fuerza al contenedor a extenderse todo lo necesario */
    animation: marquee-infinite 40s linear infinite;
}

.marquee-inner {
    display: flex;
    gap: 80px;
    width: max-content;
    will-change: transform;
}

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

.marquee-item {
    flex-shrink: 0; /* Evita que los logos se achiquen si hay poco espacio */
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--brand-navy);
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

.client-logo {
    max-height: 110px; /* Ajusta según el diseño de tus logos */
    width: auto;
    max-width: 180px;
    transition: all 0.3s ease;
    padding: 0 10px;
}

.marquee-item:hover .client-logo {
    filter: grayscale(0%); /* Vuelve a su color original al pasar el mouse */
    opacity: 1;
    transform: scale(1.05);
}

.marquee-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    width: 44px;
    border-radius: 50%;
    border: none;

    background: rgba(19, 43, 53, 0.85);
    color: white;
    font-size: 28px;
    font-weight: 700;

    cursor: pointer;
    transition: all 0.25s ease;
}

.marquee-arrow.left {
    left: 12px;
}

.marquee-arrow.right {
    right: 12px;
}

.marquee-arrow:hover {
    background: rgba(19, 43, 53, 1);
    transform: translateY(-50%) scale(1.08);
}

/* --- GRID DE SERVICIOS --- */
.card-horizontal, .service-card {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: white;
    padding: 2rem;
    transition: var(--transition);
    height: 100%;
}

.card-horizontal:hover, .service-card:hover {
    border-color: var(--brand-teal-light);
    box-shadow: 0 20px 40px rgba(38, 54, 88, 0.08);
    transform: translateY(-5px);
}

.icon-circle, .service-icon {
    width: 64px;
    height: 64px;
    background: rgba(3, 160, 145, 0.1);
    color: var(--brand-teal-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Título de la tarjeta destacada (IA) */
.service-title-lg {
    font-size: var(--fs-h3); /* Basado en clamp para adaptabilidad */
    font-weight: 900 !important;
    line-height: 1.2;
}

/* Títulos de tarjetas estándar (Grid) */
.service-title {
    font-size: var(--fs-h4);
    font-weight: 900 !important; /* Raleway Black [cite: 34] */
    color: var(--brand-navy); /* HEX: 263658 [cite: 12] */
    margin-bottom: 1rem;
    min-height: 3rem; /* Alinea los títulos de 1 y 2 líneas */
    display: flex;
    align-items: center;
}

/* Textos de descripción */
.service-text {
    font-size: 0.95rem; 
    color: var(--text-muted); /* HEX: 64748b */
    line-height: 1.7; 
    margin-bottom: 2rem; 
    max-width: 55ch; 
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.01em;
}

/* Forzar altura igual en las tarjetas blancas */
.white-card {
    display: flex;
    flex-direction: column;
    padding: 2rem !important;
    background: rgba(46, 68, 66, 0.28) !important;
    color: white;
}

.white-card .service-title {
    color: #ffffff;
}

.white-card .service-text {
    color: rgba(255, 255, 255, 0.75);
}

.card-adn:hover {
    transform: translateY(-10px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        0 25px 55px rgba(0, 0, 0, 0.55);
}

.icon-box-premium.teal {
    background: linear-gradient(135deg, #265954, #0e3a36);
    box-shadow:
        0 10px 25px rgba(14, 58, 54, 0.55),
        inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.icon-box-soft.teal {
    width: 64px;
    height: 64px;
    padding: 0;
    border-radius: 18px;
    display: grid;
    place-items: center;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(3, 160, 145, 0.1);
}

/* --- SOLUCIONES ESPECIALIZADAS (BENTO) --- */

.specialized-solutions-bg {
    min-height: auto;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4) url(../img/banner-ia.png);
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
}

/* Ajustes adicionales para mejorar la UX de las tarjetas sobre el fondo oscuro */
.white-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.featured-card {
    background: rgb(255 255 255) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    color: white;
}

.badge-tech {
    background: rgba(0, 223, 216, 0.1);
    color: #00dfd8;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}



.specialized-solutions-bg .text-navy {
    color: #ffffff !important;
}
.specialized-solutions-bg h2 {
    letter-spacing: -0.5px;
}

.specialized-solutions-bg .mx-auto {
    background: linear-gradient(90deg, #265954, #6fe3d7) !important;
}


.card-adn {
    position: relative;
    border-radius: 18px;
    padding: clamp(1.5rem, 4vw, 2.5rem) !important;

    background: rgba(46, 68, 66, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 15px 35px rgba(0, 0, 0, 0.45);

    transition: all 0.35s ease;
}

/* =========================
   FEATURED CARD – AISLAMIENTO TOTAL
   ========================= */

.featured-card {
    background: rgba(255, 255, 255) !important; /* ↓ menos blanco */
    color: var(--brand-navy);

    border: 1px solid rgba(19, 43, 53, 0.18);
    border-radius: 24px;

    padding: 0 !important;
    overflow: hidden;
}

.featured-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.25),
        transparent 45%
    );
    pointer-events: none;
}


.featured-content {
    padding: clamp(1.75rem, 4vw, 2.75rem);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-header {
    margin-bottom: 1.5rem;
}

.featured-card .icon-box-premium {
    width: 64px;
    height: 64px;
    padding: 0;
    border-radius: 18px;

    display: grid;
    place-items: center;

    background: linear-gradient(
        135deg,
        rgba(3, 160, 145, 0.18),
        rgba(3, 160, 145, 0.35)
    );

    color: var(--brand-teal-dark);
    box-shadow: none;
}

.featured-card .service-title-lg {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 900;
    line-height: 1.15;
    color: #0e3a36;
}

.featured-card .service-text-lg {
    font-size: 1rem;
    line-height: 1.65;
    color: #1d1d1d;
}

.featured-card .badge-tech {
    background: rgba(63, 196, 196, 0.12);
    color: #0e3a36;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.4px;
}

.featured-card .card-glow {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 260px;
    height: 260px;

    background: radial-gradient(
        circle,
        rgba(3, 160, 145, 0.22),
        transparent 70%
    );

    pointer-events: none;
}

@media (max-width: 768px) {
    .card-adn.featured-card {
        border-radius: 20px;
    }

    .featured-content {
        padding: 1.5rem;
    }

    .featured-card .service-title-lg {
        font-size: 1.4rem;
    }
}


/* --- HOVERS --- */
.card-adn:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(38, 54, 88, 0.15);
}

.border-hover-teal:hover { border-top: 3px solid var(--surface-light); }
.border-hover-orange:hover { border-top: 3px solid var(--brand-orange); }

/* --- BADGES --- */
.badge-tech {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #6fe3d7;
    padding: 3px 8px;
    border-radius: 15px;
}

/* --- VALORES --- */
.value-item {
    background: white;
    border: 1px solid var(--border-light);
    border-left: 5px solid var(--brand-orange);
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition);
}

.value-item:hover {
    transform: translateX(12px);
    box-shadow: 0 10px 25px rgba(38, 54, 88, 0.05);
}

.section-semillero {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4) url(../img/banner-ia.png);
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
}

.card-semillero {
    background: rgba(46, 68, 66, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 15px 35px rgba(0, 0, 0, 0.45);
    transition: all 0.35s ease;
    padding: 2.75rem 3rem;
    color: rgba(255,255,255,0.7);
    border-radius:24px;
}

.badge-convocatoria {
    display: inline-block;
    background: rgba(63, 196, 196, 0.15);
    color: #0e3a36;

    padding: 6px 16px;
    border-radius: 999px;

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.card-semillero h3 {
    color: #ffffff;
}

.card-semillero p {
    color: rgba(255, 255, 255, 0.75);
}

.btn-semillero-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 14px 26px;
    border-radius: 14px;

    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;

    color: #0e3a36;
    border: 2px solid rgba(14, 58, 54, 0.35);
    background: transparent;

    transition: all 0.3s ease;
}

.btn-semillero-outline:hover {
    background: linear-gradient(135deg, #265954, #0e3a36);
    color: #ffffff;
    border-color: transparent;

    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(255, 255, 255, 0.35);
}


/* --- FOOTER --- */

footer {
    position: relative;
    padding: 60px 0 20px;
    color: rgba(255, 255, 255, 0.75);

    background:
        radial-gradient(
            ellipse at center,
            rgba(19, 43, 53, 0.55) 0%,
            rgba(19, 43, 53, 0.7) 45%,
            rgba(19, 43, 53, 0.9) 70%,
            rgba(10, 20, 30, 0.98) 100%
        ),
        url("../img/banner-ia.png");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.45)
    );
    z-index: 0;
}

footer .container {
    position: relative;
    z-index: 1;
}

footer p {
    font-size: 0.95rem;
    line-height: 1.8;
}

footer h6 {
    font-size: 0.85rem;
    color: var(--brand-teal-light);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.social-icon-item {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transition: all 0.3s ease;
}

.social-icon-item:hover {
    background: var(--brand-teal-light);
    color: #002b36;
    transform: translateY(-3px);
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--brand-teal-light);
}

footer .border-top {
    border-color: rgba(255, 255, 255, 0.12) !important;
}


/* --- ANIMACIONES --- */
.animate-up {
    animation: fadeInUp 1s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* BOTÓN WHATSAPP UNITED SOLUTIONS */
.whatsapp-btn-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--brand-teal-dark); /* Color Teal Base */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(3, 160, 145, 0.4);
    z-index: 9999;
    transition: var(--transition); /* */
    text-decoration: none;
}

.whatsapp-btn-float:hover {
    background-color: var(--brand-navy); /* Cambio al Navy */
    transform: scale(1.1) rotate(0deg);
}

/* Tooltip (Ajuste de Centrado Crítico) */
.whatsapp-tooltip {
    position: absolute;
    right: 75px; 
    /* Forzamos el centrado vertical absoluto */
    top: 50%;
    transform: translateY(-50%) translateX(0); 
    
    background: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700; /* Raleway Bold */
    color: var(--brand-navy); /* */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
}

/* Hover: El tooltip se desplaza desde la derecha y se queda fijo */
.whatsapp-btn-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px; 
    /* Mantenemos el translateY para que no "salte" al escalar el botón */
    transform: translateY(-50%) translateX(-5px);
}

/* Flecha decorativa */
.whatsapp-tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

/* Efecto de pulso */
.whatsapp-btn-float::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--brand-teal-dark);
    opacity: 0.5;
    z-index: -1;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Responsivo */
@media (max-width: 768px) {
    .whatsapp-btn-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-tooltip { display: none; }
}

/* Contenedor circular con estilo United */

.social-icon-item svg {
    fill: currentColor; /* Esto hace que el SVG use el color blanco o teal del padre */
    width: 20px;
    height: 20px;
    display: block;
}

.social-icon-item {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transition: var(--transition); /* Transición de 0.3s */
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

/* Hover general: Teal Secundario */
.social-icon-item:hover {
    background-color: var(--brand-teal-light);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(63, 196, 196, 0.3);
    color: white !important;
}

/* Hover específico para Email: Naranja */
.social-icon-item[aria-label="Email"]:hover {
    background-color: var(--brand-orange);
    box-shadow: 0 10px 20px rgba(237, 128, 87, 0.3);
}

.social-icon-item span {
    font-size: 1.5rem; /* Tamaño optimizado para UX */
}


/* --- ESTILOS DEL FORMULARIO UNITED --- */
.bg-navy { background-color: var(--brand-navy); }

.form-label-united {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: white;
}

/* Asterisco naranja para campos obligatorios */
.form-label-united::after {
    content: " *";
    color: var(--brand-orange);
}

.form-control-united {
    width: 100%;
    background-color: white !important;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 10px 15px;
    color: var(--brand-navy);
    font-family: 'Raleway', sans-serif;
    transition: var(--transition);
}

.form-control-united:focus {
    box-shadow: 0 0 0 4px rgba(3, 160, 145, 0.3);
    outline: none;
    border-color: var(--brand-teal-light);
}

/* --- BOTÓN DE ENVÍO UNITED --- */
#submitBtn {
    background-color: var(--brand-teal-light) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important; /* Coherente con tus inputs */
    padding: 14px 32px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    transition: var(--transition) !important;
    width: 100%; /* Para que ocupe todo el ancho del formulario */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#submitBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(38, 54, 88, 0.15);
}

#submitBtn:active {
    transform: translateY(-1px);
}

/* Estado cuando se está enviando (Disabled) */
#submitBtn:disabled {
    background-color: var(--text-muted) !important;
    opacity: 0.8;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Ajuste del Spinner para que no deforme el botón */
.spinner-border-sm {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 0.2em;
}

/* --- ESTILOS UNITED PARA TOM SELECT --- */

/* Contenedor principal */
.ts-wrapper.select-buscador .ts-control {
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    padding: 10px 15px !important;
    min-height: 48px !important;
    background-color: white !important;
    font-family: 'Raleway', sans-serif !important;
    font-weight: 700;
    color: var(--brand-navy) !important;
    display: flex !important;
    align-items: center !important;
    transition: var(--transition) !important;
}

/* El input de búsqueda (cuando el usuario escribe) */
.ts-wrapper.select-buscador .ts-control input {
    color: var(--brand-navy) !important;
    font-family: 'Raleway', sans-serif !important;
    font-weight: 700 !important;
    background: transparent !important;
}

/* Foco: Brillo Teal (Igual que tus otros inputs) */
.ts-wrapper.select-buscador.focus .ts-control {
    box-shadow: 0 0 0 4px rgba(3, 160, 145, 0.3) !important;
    border-color: var(--brand-teal-light) !important;
}

/* La caja desplegable de países */
.ts-dropdown.select-buscador {
    border-radius: 12px !important;
    border: 2px solid var(--brand-teal-dark) !important;
    margin-top: 8px !important;
    box-shadow: 0 10px 30px rgba(38, 54, 88, 0.2) !important;
    z-index: 9999 !important;
    background: white !important;
    overflow: hidden; /* Para que el redondeado corte las opciones */
}

/* Opciones de la lista */
.ts-dropdown.select-buscador .option {
    padding: 12px 15px !important;
    color: var(--brand-navy) !important;
    font-family: 'Raleway', sans-serif !important;
    font-weight: 400;
    transition: background 0.2s ease;
}

/* Hover en la lista */
.ts-dropdown.select-buscador .active {
    background-color: var(--brand-teal-dark) !important;
    color: white !important;
}

/* Estilo para el divisor (────────────────────) */
.ts-dropdown.select-buscador .option[data-value=""] {
    opacity: 0.4;
    font-size: 0.8rem;
    pointer-events: none;
    border-bottom: 1px solid var(--border-light);
}

/* --- AJUSTE DE SENSACIÓN SELECT UNITED --- */

/* Por defecto, que parezca un botón (mano) */
.ts-wrapper.select-buscador .ts-control, 
.ts-wrapper.select-buscador .ts-control input {
    cursor: pointer !important;
}

/* Ocultar el cursor de texto (palito parpadeante) por defecto */
.ts-wrapper.select-buscador .ts-control input {
    caret-color: transparent !important;
}

/* Mostrar el cursor de texto SOLO cuando el buscador esté abierto para escribir */
.ts-wrapper.select-buscador.dropdown-active .ts-control input {
    caret-color: var(--brand-navy) !important;
    cursor: text !important;
}

/* Evitar que el texto seleccionado se vea azul/sombreado al hacer clic */
.ts-wrapper.select-buscador .ts-control input::selection {
    background: transparent !important;
}

/* Añadir una flechita (Chevron) para que el usuario sepa que es un select */
.ts-wrapper.select-buscador::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 10px;
    height: 6px;
    background-color: var(--brand-navy);
    clip-path: polygon(100% 0%, 0 0%, 50% 100%); /* Flecha hacia abajo */
    pointer-events: none;
    transition: var(--transition);
}

/* Rotar la flechita cuando se abre */
.ts-wrapper.select-buscador.dropdown-active::after {
    transform: translateY(-50%) rotate(180deg);
}

.ts-wrapper.single.select-buscador .ts-control .item {
    padding-right: 20px !important; /* Espacio para la flechita */
}

/* Evita que el cursor de texto parpadee al hacer clic si ya está cerrado */
.ts-wrapper.select-buscador .ts-control input:read-only {
    caret-color: transparent !important;
    cursor: pointer !important;
}
.letter-spacing-1 { letter-spacing: 1px; }

/* --- RESPONSIVE DESIGN: UNITED MOBILE --- */

@media (max-width: 768px) {
    /* 1. Tipografía Fluida (Ajuste manual para mayor control) */
    :root {
        --fs-h1: 2.2rem;
        --fs-h2: 1.8rem;
        --fs-body: 1rem;
    }

    /* 2. Secciones y Contenedores */
    .hero-section {
        padding: 80px 0 60px;
        text-align: center;
        min-height: auto; /* Evita que sea demasiado largo en móviles */
    }

    /* 3. Marquee (Ajuste de Logos) */
    .marquee-container {
        padding: 20px 0;
    }

    .client-logo {
        height: 70%; /* Logos un poco más pequeños en móvil */
    }

    .marquee-track {
        gap: 40px; /* Reducimos el espacio para que se vean más logos a la vez */
    }

    .marquee-item {
        font-size: 1rem;
    }

    #contactForm{
        --bs-gutter-y: 0;
    }

    /* 4. Formulario United */
    .form-group-united {
        margin-bottom: 1.5rem;
    }

    .form-control-united, 
    .ts-control {
        height: 45px !important; /* Un poco más compacto */
        font-size: 16px !important; /* Evita el zoom automático en iOS al hacer clic */
    }

    /* 5. Botones */
    .btn-brand {
        width: 100%; /* Botones de ancho completo para mejor UX táctil */
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    /* 6. Tarjetas y Grids */
    .card-adn, .service-card {
        padding: 1.5rem !important;
        margin-bottom: 1rem;
    }

    /* 7. Navegación */
    #logo-menu {
        max-width: 140px; /* Logo más pequeño en la barra */
    }
}

/* 8. Ajustes para teléfonos muy pequeños (iPhone SE, etc.) */
@media (max-width: 480px) {
    :root {
        --fs-h1: 1.8rem;
    }
    
    .marquee-group {
        gap: 30px;
        padding-right: 30px;
    }
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}


.value-card {
    padding: 1.5rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.value-card .material-symbols-outlined {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.value-card h6 {
    color: var(--brand-navy);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.value-card p {
    line-height: 1.4;
    margin-bottom: 0;
}


/* --- Línea de Tiempo Moderna --- */
.history-timeline-modern {
    position: relative;
    padding-left: 45px;
}

.history-timeline-modern::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--brand-teal), var(--brand-navy), transparent);
}

.history-item-modern {
    position: relative;
    margin-bottom: 2.5rem;
}

.history-item-modern::before {
    content: '';
    position: absolute;
    left: -45px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--brand-teal);
    z-index: 2;
    transition: all 0.3s ease;
}

.history-item-modern.active::before {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 5px rgba(255, 122, 0, 0.2);
}

.time-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--brand-teal);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.content-box {
    transition: transform 0.3s ease;
}

.history-item-modern:hover .content-box {
    transform: translateX(10px);
}

/* --- Tarjetas de Estadísticas --- */
.stats-grid-container {
    padding: 20px;
}

.stat-card {
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}



.featured {
    background: rgba(46, 68, 66, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 15px 35px rgba(0, 0, 0, 0.45);
    transition: all 0.35s ease;
}

.stat-card.featured .stat-number, 
.stat-card.featured .stat-text,
.stat-card.featured .icon-stat {
    color: white !important;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(3, 160, 145, 0.1);
}

.icon-stat {
    font-size: 2rem;
    color: var(--brand-teal);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--brand-navy);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 0;
    letter-spacing: 1px;
}

.stats-bg-decoration {
    position: absolute;
    top: 10%;
    right: -5%;
    width: 100%;
    height: 80%;
    background: var(--brand-navy);
    border-radius: 30px;
    z-index: -1;
    opacity: 0.05;
}


.card-adn-modern {
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.card-adn-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.adn-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--surface-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-navy);
    transition: all 0.3s ease;
}

.adn-icon-wrapper span {
    font-size: 2rem;
}

.card-adn-modern:hover .adn-icon-wrapper {
    background: var(--brand-navy);
    color: #fff;
    transform: rotateY(180deg);
}

.adn-accent-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    transition: width 0.4s ease;
}

.card-adn-modern:hover .adn-accent-line {
    width: 100%;
}

/* Ajuste para los valores */
.valor-item {
    padding-left: 12px;
    border-left: 2px solid rgba(255, 122, 0, 0.2);
}

.featured-adn {
    background: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
}

/* --- Variables y Ayudas --- */
.bg-orange-soft { background: rgba(255, 122, 0, 0.1); }
.bg-teal-soft { background: rgba(3, 160, 145, 0.1); }
.text-orange { color: #FF7A00; }
.text-teal { color: #1f4f4a }
.smaller { font-size: 0.75rem; }

/* --- Tarjetas Premium --- */
.card-semillero-premium {
    background: white;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card-semillero-premium:hover {
    transform: translateY(-5px);
}

.card-header-accent {
    height: 6px;
    width: 100%;
}
.bg-orange { background: var(--brand-orange); }
.bg-teal { background: var(--brand-teal); }

.icon-circle-sm {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Listas e Items --- */
.list-semillero .item-check {
    display: flex;
    gap: 15px;
    margin-bottom: 1.2rem;
}

.bullet-point {
    width: 8px;
    height: 8px;
    background: var(--brand-orange);
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

.benefit-item {
    background: #fcfdfe;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid #f0f3f5;
    text-align: left;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: white;
    border-color: var(--brand-teal);
    box-shadow: 0 5px 15px rgba(3, 160, 145, 0.08);
}

/* --- Banner Propósito --- */
.purpose-banner {
    background: var(--brand-navy);
    padding: 50px;
    border-radius: 30px;
    position: relative;
    z-index: 1;
}

.hero-semillero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4) url(../img/banner-ia.png);
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
}

.learning-card {
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    background: #fff;
}

.learning-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-teal);
    box-shadow: 0 15px 35px rgba(3, 160, 145, 0.1);
}

.icon-box-semillero {
    width: 50px;
    height: 50px;
    background: rgba(3, 160, 145, 0.1);
    color: var(--brand-teal);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.cta-section {
    min-height: auto;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4) url(../img/banner-ia.png);
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
}

.cta-box {
    background: rgba(46, 68, 66, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-radius: 24px;
    padding: 3rem;

    border: 1px solid rgba(255, 255, 255, 0.14);

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 30px 70px rgba(0, 0, 0, 0.55);
}

.cta-box h3 {
    color: #ffffff;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.25;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

.cta-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    pointer-events: none;
}

.cta-glow-left {
    top: -80px;
    left: -80px;
    background: rgba(59, 178, 115, 0.35);
}

.cta-glow-right {
    bottom: -100px;
    right: -100px;
    background: rgba(14, 58, 54, 0.45);
}


/* --- RESPONSIVE / VERSIÓN MÓVIL --- */

@media (max-width: 991.98px) {
    .hero-semillero {
        padding: 80px 0 60px;
        text-align: center;
    }

    .hero-semillero .display-3 {
        font-size: 2.25rem; /* Título más manejable en tablets */
    }

    .purpose-banner {
        padding: 40px 20px;
    }
}

@media (max-width: 767.98px) {
    /* Ajustes de Títulos */
    .hero-semillero .display-3 {
        font-size: 1.85rem; /* Título para celulares */
        line-height: 1.2;
    }

    .hero-semillero .lead {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    h2.h1 {
        font-size: 1.5rem;
    }

    /* Ajustes de Tarjetas Premium */
    .card-semillero-premium {
        margin-bottom: 20px;
    }

    .card-semillero-premium .p-5 {
        padding: 30px 20px !important; /* Menos padding interno en móvil */
    }

    /* Lista de beneficios y checks */
    .item-check {
        gap: 10px;
        margin-bottom: 1rem;
    }

    .item-check p {
        font-size: 0.9rem !important;
    }


    /* Ajuste de los iconos de beneficios para que no queden muy grandes */
    .benefit-item {
        padding: 12px;
    }

    .benefit-item .material-symbols-outlined {
        font-size: 1.2rem;
    }

    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .learning-card{
        padding: 20px !important;
    }
}

/* Optimización para pantallas muy pequeñas (iPhone SE, etc) */
@media (max-width: 375px) {
    .hero-semillero .display-3 {
        font-size: 1.6rem;
    }

    .badge-tech {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
}

/* --- BOTÓN CONVOCATORIA SEMILLERO --- */

.btn-semillero-outline {
    color: var(--brand-orange);
    border: 2px solid var(--brand-orange);
    background: transparent;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 15px;
    border-radius: 50px; /* Estilo píldora */
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 14px;
    margin-top: 70px;
}

.btn-semillero-outline:hover {
    background-color: var(--brand-orange);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(237, 128, 87, 0.2);
}

.btn-semillero-outline:active {
    transform: translateY(-1px);
}

/* Badge suave para la convocatoria */
.badge-convocatoria {
    background-color: rgba(237, 128, 87, 0.1);
    color: var(--brand-orange);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    text-transform: uppercase;
    display: inline-block;
}

#section-nosotros{
    padding: clamp(100px, 15vh, 160px) 0 clamp(60px, 10vh, 120px);
    min-height: 65vh;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4) url(../img/banner-ia.png);
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
}

#section-nosotro1s h1, p{
    color: #fff !important;
}

.section-split{
    min-height: auto;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4) url(../img/banner-ia.png);
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
}

.card-nosotros{
    background: radial-gradient(ellipse at center, rgba(19, 43, 53, 0.55) 0%, rgba(19, 43, 53, 0.7) 45%, rgba(19, 43, 53, 0.9) 70%, rgba(10, 20, 30, 0.98) 100%), url(../img/banner-ia.png);
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    
}

#postulate{
    min-height: auto;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4) url(../img/banner-ia.png);
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
}