/* =============================================
   ESTILOS PARA LA EXPERIENCIA DE BIENVENIDA
============================================= */

:root {
    --welcome-overlay-bg: rgba(10, 12, 15, 0.7);
    --welcome-card-bg: transparent;
    --welcome-card-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    --welcome-card-radius: 12px;
}

/* --- Contenedor Principal (Overlay) --- */
#welcome-experience-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--welcome-overlay-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    /* Por encima de otros modales */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    /* Inicialmente oculto, GSAP lo controlará */
    visibility: hidden;
    opacity: 0;
    perspective: 1500px;
    /* Perspectiva para el efecto 3D de las tarjetas */
}

/* --- Tarjetas de Pasos --- */
.welcome-step-card {
    background-color: var(--welcome-card-bg);
    border-radius: var(--welcome-card-radius);
    box-shadow: var(--welcome-card-shadow);
    padding: 2.5rem;
    max-width: 550px;
    width: 100%;
    text-align: center;
    /* Oculto por defecto, GSAP maneja la visibilidad */
    position: absolute;
    /* Permite apilarlas en el mismo lugar */
    visibility: hidden;
    opacity: 0;
}

/* Estilos para la primera tarjeta de bienvenida */
#welcome-step-1 h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

#welcome-step-1 p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 2rem;
}

#welcome-step-1 .btn-start-experience {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

#welcome-step-1 .btn-start-experience:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 64, 128, 0.2);
}

/* Botón para saltar la experiencia */
.skip-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    z-index: 2001;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.skip-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

/* =============================================
   NUEVO HUB DE EXPLORACIÓN
============================================= */

.exploration-hub-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    gap: 1.5rem;
    /* Oculto por defecto, GSAP lo controla */
    visibility: hidden;
    opacity: 0;
}

.exploration-card {
    position: relative;
    border-radius: var(--welcome-card-radius);
    box-shadow: var(--welcome-card-shadow);
    overflow: hidden;
    background: linear-gradient(145deg, #0d1b2e 0%, #0a1422 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    /* Estado colapsado por defecto */
    width: 380px;
    height: 520px;
}

/* Base de color para TODO el contenido dentro del hub */
.exploration-card p,
.exploration-card span:not(.hub-card-tag):not(.hub-case-name):not(.hub-case-result):not(.hub-card-btn):not(.ws-badge),
.exploration-card li {
    color: rgba(255, 255, 255, 0.72);
}
.exploration-card h3,
.exploration-card h4 {
    color: #ffffff;
}

/* Estado expandido */
.exploration-card.is-expanded {
    width: 800px;
    height: 600px;
}

/* --- VISTA RESUMEN (COLAPSADO) --- */
.summary-view {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 2rem;
}

.summary-image,
.logo-mosaic {
    height: 55%;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.summary-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.summary-text {
    color: rgba(255, 255, 255, 0.65);
    flex-grow: 1;
}

.btn-summary-action {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.btn-summary-action:hover {
    background-color: var(--primary-dark);
}

.logo-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.logo-mosaic img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.6;
}

/* --- VISTA DETALLADA (EXPANDIDO) --- */
.detailed-view {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    position: relative;
    /* Oculto por defecto */
    display: none;
}

.exploration-card.is-expanded .summary-view {
    display: none;
}

.exploration-card.is-expanded .detailed-view {
    display: flex;
}

.btn-collapse {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.btn-collapse:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.expanded-content-wrapper {
    flex-grow: 1;
    overflow: hidden;
}

.dynamic-content {
    height: 100%;
}

.team-profile {
    display: flex;
    gap: 1.5rem;
    height: 100%;
}

.profile-carousel {
    width: 40%;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.profile-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-bio {
    font-size: 0.9rem;
}

.profile-bio h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.profile-bio h3 span {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
}

.profile-bio p {
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.78);
}

.case-study .case-logo {
    max-height: 40px;
    margin-bottom: 1rem;
}

.case-study h3 {
    font-size: 1.5rem;
    color: #ffffff;
}

.thumbnail-tray {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
}

.tray-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: saturate(0.5);
}

.tray-thumbnail:hover,
.tray-thumbnail.active {
    transform: scale(1.15);
    border-color: var(--primary);
    filter: saturate(1);
}

.tray-thumbnail.logo {
    border-radius: 8px;
    background-color: #fff;
    padding: 5px;
    object-fit: contain;
}

.btn-explore-full {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.btn-explore-full:hover {
    background-color: var(--primary-dark);
}

/* --- ESTILOS PARA TARJETA DE SERVICIOS --- */
.service-tabs .nav-tabs {
    border-bottom: 2px solid rgba(255,255,255,0.1);
    margin-bottom: 1.5rem;
}

.service-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    padding: 0.5rem 1rem;
    margin-bottom: -2px;
}

.service-tabs .nav-link.active {
    color: #d4af37;
    border-color: #d4af37;
    background-color: transparent;
}

.service-tab-content {
    display: block;
}

.service-image {
    display: none;
}

.service-description {
    width: 100%;
}

.service-description p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.78);
}

.expert-recommendation {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.expert-recommendation h4 {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1rem;
}

.expert-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    text-decoration: none;
    color: #ffffff;
}

.expert-profile:hover .expert-name {
    color: var(--primary);
}

.expert-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.expert-name {
    font-weight: 600;
    transition: color 0.2s ease;
}

.expert-title {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ── WELCOME STEP 1: Rediseño ejecutivo ── */
.ws-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    max-width: 560px;
    margin: 0 auto;
}
.ws-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.4);
    color: #d4af37;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
}
.ws-headline {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin: 0;
}
.ws-highlight {
    color: #d4af37;
}
.ws-body {
    font-size: 1rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.7;
    max-width: 460px;
    margin: 0;
}
.ws-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    width: 100%;
    margin: 0.5rem 0;
}
.ws-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.ws-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #d4af37;
    line-height: 1;
}
.ws-stat-plus {
    font-size: 1.2rem;
}
.ws-stat-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: center;
    line-height: 1.3;
}
.ws-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.12);
    flex-shrink: 0;
}
.ws-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
}
.ws-cta-arrow {
    transition: transform 0.3s ease;
}
.ws-cta:hover .ws-cta-arrow {
    transform: translateX(6px);
}
.ws-skip-hint {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── HUB CARDS: Nivel premium ── */
.hub-card-visual {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1rem;
}
.hub-team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.hub-card-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(0,20,50,0.85) 0%,
        transparent 60%);
}
.hub-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212,175,55,0.15);
    color: #d4af37;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 0.5rem;
}
.hub-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}
.hub-card-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    margin-bottom: 1rem;
}
.hub-card-btn {
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.4);
    color: #d4af37;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50px;
    padding: 8px 20px;
    transition: all 0.25s ease;
    width: 100%;
}
.hub-card-btn:hover {
    background: rgba(212,175,55,0.22);
    color: #d4af37;
    border-color: rgba(212,175,55,0.7);
    transform: translateY(-1px);
}

/* ── Cases list dentro del hub card ── */
.hub-cases-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
    width: 100%;
}
.hub-case-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    text-align: left;
    transition: background 0.2s ease;
}
.hub-case-item:hover {
    background: rgba(255,255,255,0.09);
}
.hub-case-item img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    padding: 4px;
}
.hub-case-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.hub-case-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}
.hub-case-result {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 4px;
}
.hub-case-result i {
    color: #22c55e;
    font-size: 0.65rem;
}

/* ── Lista de Insights dentro del hub card ── */
.hub-insights-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
    width: 100%;
}
.hub-insight-point {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    text-align: left;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.hub-insight-point:hover {
    background: rgba(212,175,55,0.08);
    border-color: rgba(212,175,55,0.25);
}
.hub-insight-point i {
    color: #d4af37;
    font-size: 0.95rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.hub-insight-point span {
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.25;
}

/* ── Services grid dentro del hub card ── */
.hub-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
    width: 100%;
}
.hub-service-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 0.75rem;
    transition: background 0.2s ease;
}
.hub-service-item:hover {
    background: rgba(0,102,204,0.2);
    border-color: rgba(0,102,204,0.4);
}
.hub-service-item i {
    font-size: 1.2rem;
    color: #d4af37;
}
.hub-service-item span {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.4;
    font-weight: 600;
}

/* ── Hub card body para el card de equipo ── */
.hub-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}


/* ============================================================
   WELCOME STEP 1 + HUB CARDS — Rediseño ejecutivo
   ============================================================ */

#welcome-step-1 {
    background: linear-gradient(145deg, #0a1628 0%, #001433 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5) !important;
    max-width: 600px;
}
#welcome-step-1 h2,
#welcome-step-1 .ws-headline {
    color: #ffffff !important;
    font-size: clamp(1.5rem, 3vw, 2rem) !important;
}
#welcome-step-1 p,
#welcome-step-1 .ws-body {
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
}
#welcome-step-1 .ws-stats {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    padding: 1rem 1.2rem !important;
    gap: 0 !important;
    width: 100% !important;
}
#welcome-step-1 .ws-stat {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}
#welcome-step-1 .ws-stat-number {
    display: block !important;
    font-size: 1.9rem !important;
    font-weight: 800 !important;
    color: #d4af37 !important;
    line-height: 1 !important;
}
#welcome-step-1 .ws-stat-label {
    display: block !important;
    font-size: 0.68rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-align: center !important;
    line-height: 1.3 !important;
    margin-top: 4px !important;
}
#welcome-step-1 .ws-stat-divider {
    display: block !important;
    width: 1px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    flex-shrink: 0 !important;
    align-self: center !important;
}
#welcome-step-1 .ws-badge {
    background: rgba(212,175,55, 0.15) !important;
    border: 1px solid rgba(212,175,55, 0.4) !important;
    color: #d4af37 !important;
    display: inline-block !important;
    padding: 5px 16px !important;
    border-radius: 50px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    margin-bottom: 0.5rem !important;
}
#welcome-step-1 .ws-skip-hint {
    color: rgba(255, 255, 255, 0.3) !important;
    font-size: 0.75rem !important;
    margin: 0 !important;
}

/* ============================================================
   HUB EN MÓVIL Y TABLET (≤1239px)  — 2026-10-01
   Las tres tarjetas medían 380×520 fijos y en fila (1.188 px): en
   móvil y tablet solo se veía la del medio y las otras quedaban fuera
   de la pantalla sin forma de llegar. La expandida medía 800×600 y se
   cortaba. Ahora: carrusel deslizable con imán, altura natural, y la
   tarjeta abierta ocupa el ancho con scroll interno.
   (1239px = 3×380 + 2×24 de separación + 32 de margen del overlay)
   ============================================================ */

/* Botones "Explora todos los Casos" / "Ver todos los Servicios":
   antes azul Bootstrap, fuera del lenguaje navy/dorado del hub. */
.btn-explore-full {
    background: #d4af37;
    color: #0a1628;
    font-weight: 700;
}
.btn-explore-full:hover,
.btn-explore-full:focus-visible {
    background: #e2c35a;
    color: #0a1628;
}

/* Puntos del carrusel (los crea welcome-experience.js; solo se ven en móvil/tablet) */
.hub-dots { display: none; }

@media (max-width: 1319.98px) {
    #welcome-experience-overlay.is-hub {
        flex-direction: column;
        justify-content: center;
        padding: 4.25rem 0 1rem;           /* arriba: sitio para "Saltar" */
    }

    .exploration-hub-container {
        justify-content: flex-start;
        align-items: stretch;              /* todas las tarjetas con la altura de la más alta */
        max-width: 100%;
        gap: 1rem;
        padding: 0.25rem 9vw 0.75rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 9vw;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .exploration-hub-container::-webkit-scrollbar { display: none; }

    .exploration-card {
        width: min(380px, 82vw);
        height: auto;
        max-height: calc(100vh - 7rem);
        max-height: calc(100dvh - 7rem);
        scroll-snap-align: center;
        display: flex;
    }
    .summary-view {
        height: auto;
        padding: 1.5rem 1.25rem;
    }
    .summary-view .hub-card-btn { margin-top: auto; }   /* botones alineados abajo */
    .hub-card-title { font-size: 1.15rem; }
    .hub-card-text  { font-size: 0.88rem; }
    .hub-case-name  { font-size: 0.85rem; }
    .hub-case-result,
    .hub-service-item span { font-size: 0.75rem; }

    .hub-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 0.25rem;
    }
    .hub-dots button {
        width: 8px;
        height: 8px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transition: width 0.25s ease, background-color 0.25s ease;
    }
    .hub-dots button.active {
        width: 22px;
        border-radius: 4px;
        background: #d4af37;
    }

    /* ── Una tarjeta abierta: ocupa el ancho, las demás se ocultan ── */
    .exploration-hub-container.has-expanded {
        justify-content: center;
        overflow: hidden;
        padding: 0 1rem;
    }
    .exploration-hub-container.has-expanded .exploration-card:not(.is-expanded) { display: none; }
    .exploration-hub-container.has-expanded ~ .hub-dots { visibility: hidden; }

    .exploration-card.is-expanded {
        width: 100%;
        max-width: 800px;
        height: auto;
    }
    .exploration-card.is-expanded .detailed-view {
        height: auto;
        max-height: calc(100vh - 6rem);
        max-height: calc(100dvh - 6rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 3.25rem 1.25rem 1.25rem;  /* arriba: sitio para la X */
    }
    .expanded-content-wrapper { overflow: visible; flex-grow: 0; }
    .case-study h3 { font-size: 1.25rem; }
    .case-study p  { font-size: 0.92rem; line-height: 1.6; }

    .thumbnail-tray {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 1.25rem 0 0.5rem;
    }
    .tray-thumbnail { width: 46px; height: 46px; }

    /* Pestañas de servicios: en una sola fila deslizable */
    .service-tabs .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        margin-bottom: 1rem;
    }
    .service-tabs .nav-tabs::-webkit-scrollbar { display: none; }
    .service-tabs .nav-link {
        white-space: nowrap;
        font-size: 0.88rem;
        padding: 0.5rem 0.75rem;
    }
    .expert-recommendation { margin-top: 1rem; padding-top: 1rem; }
    .expert-title { color: rgba(255, 255, 255, 0.6); }
}

/* Logos de clientes en la tarjeta de casos: eran casi invisibles (logos oscuros sobre
   fondo navy con 8 % de blanco). Fondo blanco, como en la bandeja de la vista abierta. */
.hub-case-item img {
    background: #ffffff;
    padding: 3px;
}

/* Pestañas de servicios: que las tres quepan sin desplazar (se pasaban 12 px a 414) */
@media (max-width: 1319.98px) {
    .service-tabs .nav-item { flex: 1 1 auto; }
    .service-tabs .nav-link { width: 100%; padding: 0.5rem 0.35rem; font-size: 0.84rem; }
}
@media (max-width: 390px) {
    .service-tabs .nav-link { font-size: 0.78rem; padding: 0.5rem 0.25rem; }
    .exploration-card.is-expanded .detailed-view { padding-left: 1rem; padding-right: 1rem; }
}

/* Todas las pantallas: con una tarjeta abierta, las demás se ocultan hasta cerrarla
   (en escritorio la fila abierta medía 1.608 px y se salía por los lados). */
.exploration-hub-container.has-expanded .exploration-card:not(.is-expanded) { display: none; }

/* Tarjeta abierta con altura natural también en escritorio (600 px fijos dejaban
   media tarjeta vacía en "Soluciones"). Con tope y scroll interno si no cabe. */
.exploration-card.is-expanded {
    height: auto;
    max-height: calc(100vh - 6rem);
    max-height: calc(100dvh - 6rem);
}
.exploration-card.is-expanded .detailed-view {
    height: auto;
    max-height: inherit;
    overflow-y: auto;
}

/* ── Bienvenida (paso 1) en teléfonos (≤575px) — 2026-10-01 ──────────────────
   Iba pegada a los bordes, "Saltar" pisaba su esquina en pantallas bajas
   (iPhone SE) y la fila de 4 cifras no cabía: las etiquetas se salían del
   recuadro y se juntaban ("AUTOMATIZADOSESPECIALIZADO"). */
@media (max-width: 575.98px) {
    #welcome-step-1 {
        width: auto;
        left: 1rem;
        right: 1rem;
        margin-top: 3.5rem;                       /* deja libre la franja de "Saltar" */
        padding: 1.5rem 1.1rem 1.25rem;
        max-height: calc(100vh - 5.5rem);
        max-height: calc(100dvh - 5.5rem);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    #welcome-step-1 .ws-inner { gap: 0.85rem; }
    #welcome-step-1 .ws-badge {
        font-size: 0.62rem !important;
        letter-spacing: 0.6px !important;
        padding: 5px 12px !important;
        margin-bottom: 0 !important;
    }
    #welcome-step-1 .ws-body { font-size: 0.9rem !important; }
    #welcome-step-1 .ws-stats {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0.9rem 0.5rem !important;
        padding: 0.9rem 0.75rem !important;
    }
    #welcome-step-1 .ws-stat-divider { display: none !important; }
    #welcome-step-1 .ws-stat-number { font-size: 1.6rem !important; }
    #welcome-step-1 .ws-stat-label {
        font-size: 0.62rem !important;
        letter-spacing: 0.3px !important;
    }
    #welcome-step-1 .ws-cta { padding: 0.8rem 1.75rem; }
    .skip-btn { top: 14px; right: 14px; }
}
@media (max-width: 575.98px) {
    #welcome-step-1 .ws-headline { font-size: 1.4rem !important; }
    #welcome-step-1 .ws-stats { gap: 0.7rem 0.5rem !important; padding: 0.8rem 0.6rem !important; }
    #welcome-step-1 .ws-stat-number { font-size: 1.45rem !important; }
}
/* Teléfonos bajos (iPhone SE, Android de 640–760 px de alto): sin la línea de pista */
@media (max-width: 575.98px) and (max-height: 760px) {
    #welcome-step-1 .ws-skip-hint { display: none !important; }
    #welcome-step-1 { padding-top: 1.25rem; padding-bottom: 1.1rem; }
}

/* ── Cuarta tarjeta "Portafolio 2026" (2026-10-06) ──────────────────────────────
   Con 4 tarjetas de 380 px la fila medía 1.592 px. Ahora 300 px:
   4×300 + 3×24 de separación + 32 de margen = 1.304 px → caben desde 1.320 px;
   por debajo, el carrusel deslizable (los @media de arriba pasan de 1239.98 a 1319.98). */
@media (min-width: 1320px) {
  .exploration-card { width: 300px; }
  .exploration-card .summary-view { padding: 1.6rem 1.35rem; }
  .exploration-card .summary-view .hub-card-btn { margin-top: auto; }   /* botones alineados al pie */
  /* "Casos" es la de más contenido: con 300 px su botón invadía el margen inferior */
  .hub-cases-list { gap: .45rem; }
  .hub-case-item { padding: .45rem .65rem; }
}
