/* ========================================
   Nosotros Section v2 (Renovada)
   ======================================== */

/* --- Arreglo del Selector de Idioma --- */

/* 1. El contenedor padre debe ser relativo para que el hijo no se escape */
.language-selector-glass {
    position: relative; 
    display: inline-block;
}

/* 2. El botón del selector */
.language-btn-glass {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2); /* Fondo semi-transparente */
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.language-btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 3. El menú desplegable (El que se veía mal en la foto) */
.language-dropdown-glass {
    position: absolute;
    top: 120%; /* Lo empuja un poco hacia abajo del botón */
    right: 0;    /* Lo alinea a la derecha del botón */
    background: white;
    border-radius: 12px;
    padding: 8px 0;
    min-width: 140px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); /* Sombra suave */
    
    /* Animación de entrada */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Estado activo (cuando se abre) */
.language-dropdown-glass.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 4. Los enlaces dentro del menú */
.language-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.language-link:hover {
    background-color: #f0f9ff;
    color: #227db3; /* Azul iTTel */
}

.language-link img {
    width: 20px;
    border-radius: 2px;
}

/* Arreglo para cuando el navbar se pone blanco al bajar (scrolled) */
.navbar-glass.scrolled .language-btn-glass {
    color: #333;
    border-color: #ddd;
    background: rgba(0,0,0,0.05);
}

/* ========================================
   Credentials Section (Nuestras Credenciales)
   ======================================== */

.credentials-section {
    background-color: #ffffff;
    padding: 130px 0;
}

.credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 5rem;
    align-items: start;
}

.credentials-intro {
    position: sticky;
    top: 6rem;
}

.section-eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.credentials-heading {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.credentials-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: #999;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.credentials-lead {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.credentials-pillars {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.credentials-pillar-item {
    padding: 1rem 1.1rem 1rem 1rem;
    border-left: 2px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    border-radius: 0 16px 16px 0;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.credentials-pillar-item:hover {
    background-color: #0f172a;
    border-color: var(--primary-color-soft);
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

.pillar-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.pillar-text {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.credentials-pillar-item:hover .pillar-name {
    color: #ffffff;
}

.credentials-pillar-item:hover .pillar-text {
    color: rgba(255, 255, 255, 0.76);
}

.credentials-data {
    display: flex;
    flex-direction: column;
    padding-top: 1.75rem;
}

.credential-row {
    padding: 2rem 0;
}

.credential-divider {
    height: 1px;
    background-color: #E2E8F0;
}

.credential-row-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

.credential-row-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.credential-row-note {
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1024px) {
    .credentials-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .credentials-intro {
        position: static;
    }
    .credentials-heading {
        font-size: 2.25rem;
    }
    .credentials-desc {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* Ocultar Galería de Obras en versión móvil */
    .it-gallery { display: none !important; }
    #itGalleryFullscreenViewer { display: none !important; }
    /* Desactivar visualmente AOS en mobile por si hay estilos inline */
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .credentials-section {
        padding: 72px 0;
    }
    .credentials-heading {
        font-size: 1.875rem;
    }
    .credential-row {
        padding: 1.5rem 0;
    }
}

/* ========================================
   Contact Info Mini
   ======================================== */

.contact-info-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
    align-items: stretch;
}

@media (max-width: 768px) {
    .contact-info-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ========================================
   Infrastructure Section (Capacidad de Infraestructura)
   ======================================== */

.infrastructure-section {
    background-color: #f8fafc;
    padding: 130px 0;
}

.infra-header {
    margin-bottom: 2rem;
}

.infra-title {
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.2;
    max-width: 22ch;
    margin: 0.75rem 0 0;
}

/* Service Pillars — 3-column */
.service-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.service-pillar {
    padding: 2rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 22px;
    transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.service-pillar:hover {
    background-color: #0f172a;
    border-color: #0f172a;
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.pillar-icon {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: color 0.35s ease, transform 0.35s ease;
}

.pillar-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    transition: color 0.35s ease;
}

.pillar-desc {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin: 0;
    transition: color 0.35s ease;
}

.service-pillar:hover .pillar-icon {
    color: #7dd3fc;
    transform: translateY(-2px);
}

.service-pillar:hover .pillar-title {
    color: #ffffff;
}

.service-pillar:hover .pillar-desc {
    color: rgba(255, 255, 255, 0.74);
}

@media (max-width: 768px) {
    .service-pillars {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.infra-global-stats {
    display: flex;
    align-items: center;
    padding: 3rem 0;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 3.5rem;
}

.infra-global-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 2rem;
    border-radius: 22px;
    transition: background-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.infra-global-stat:first-child {
    padding-left: 2.5rem;
}

.infra-global-divider {
    width: 1px;
    height: 80px;
    background-color: #E2E8F0;
    flex-shrink: 0;
    transition: opacity 0.35s ease;
}

.infra-stat-number {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    letter-spacing: -0.02em;
    display: block;
}

.infra-stat-unit {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 0.35rem;
    display: block;
}

.infra-stat-label {
    font-size: 0.75rem;
    color: var(--text-medium);
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
}

.infra-global-stat:hover {
    background-color: #0f172a;
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
}

.infra-global-stats:hover .infra-global-divider {
    opacity: 0.45;
}

.infra-global-stat:hover .infra-stat-number,
.infra-global-stat:hover .infra-stat-unit {
    color: #ffffff;
}

.infra-global-stat:hover .infra-stat-label {
    color: rgba(255, 255, 255, 0.68);
}

.infra-detail-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border: 1px solid #E2E8F0;
}

.infra-detail-card {
    padding: 2rem 1.75rem;
    border-right: 1px solid #E2E8F0;
    transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
    cursor: default;
}

.infra-detail-card:last-child {
    border-right: none;
}

.infra-detail-card:hover {
    background-color: #0f172a;
    border-color: transparent;
    position: relative;
    z-index: 1;
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.infra-detail-card:hover .infra-region-tag {
    color: rgba(255, 255, 255, 0.45);
}

.infra-detail-card:hover .infra-metric-num {
    color: #ffffff;
}

.infra-detail-card:hover .infra-metric-label {
    color: rgba(255, 255, 255, 0.6);
}


.infra-region-tag {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    display: block;
}

.infra-region-metrics {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.infra-metric-item {
    display: flex;
    flex-direction: column;
}

.infra-metric-item--full .infra-metric-label {
    font-size: 0.875rem;
    line-height: 1.6;
}

.infra-metric-num {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    letter-spacing: -0.01em;
    display: block;
}

.infra-metric-label {
    font-size: 0.78rem;
    color: var(--text-medium);
    margin-top: 0.25rem;
    line-height: 1.4;
    display: block;
}

@media (max-width: 1280px) {
    .infra-detail-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .infra-detail-card {
        border-top: 1px solid #E2E8F0;
    }
    .infra-detail-card:nth-child(-n+3) {
        border-top: none;
    }
    .infra-detail-card:nth-child(3n) {
        border-right: none;
    }
}

@media (max-width: 1024px) {
    .infra-global-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    .infra-global-stat {
        padding: 0;
    }
    .infra-global-divider {
        width: 48px;
        height: 1px;
    }
}

@media (max-width: 768px) {
    .infrastructure-section {
        padding: 56px 0;
    }
    .infra-detail-grid {
        grid-template-columns: 1fr;
    }
    .infra-detail-card {
        border-right: none;
        border-top: 1px solid #E2E8F0;
    }
    .infra-detail-card:first-child {
        border-top: none;
    }
}

/* ========================================
   OBRAS EN CAMPO - Masonry Gallery (Nueva)
   ======================================== */

.obras-campo {
    background: #fbfdff;
    padding: 90px 0 100px;
}

.obras-campo .container {
    max-width: 1400px;
}

.obras-header { 
    text-align: center; 
    margin-bottom: 28px; 
}
.obras-header .section-title{ margin-bottom: 10px; }
.obras-header .section-description{ color: var(--text-medium, #6b7280); }

.masonry-grid {
    column-count: 4;
    column-gap: 16px;
}

.masonry-item { 
    break-inside: avoid; 
    display: block; 
    margin-bottom: 16px; 
    position: relative; 
    border-radius: 14px; 
    overflow: hidden; 
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    transform: translateZ(0); /* mejora rendimiento */
}

/* Videos grandes - ocupan más espacio */
.masonry-item-large {
    grid-row: span 2;
    margin-bottom: 24px;
}

.masonry-item img { 
    width: 100%; 
    height: auto; 
    display: block; 
    transition: transform .45s cubic-bezier(0.16,1,0.3,1), filter .3s ease; 
}

.masonry-item video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.masonry-item::after{ 
    content: '';
    position: absolute; inset: 0; 
    background: linear-gradient(180deg, rgba(1,22,56,0) 40%, rgba(1,22,56,0.45) 100%);
    opacity: 0; transition: opacity .35s ease; 
}

.masonry-item:hover img { transform: scale(1.04); filter: saturate(1.05); }
.masonry-item:hover::after{ opacity: 1; }

/* Badge de video */
.masonry-item.is-video .play-badge{
    position: absolute; left: 12px; bottom: 12px; 
    background: rgba(0,0,0,.6); color:#fff; border-radius: 999px; 
    display: inline-flex; align-items: center; justify-content: center; 
    width: 40px; height: 40px; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.masonry-item.is-video .play-badge i{ font-size: 14px; }

/* Lightbox */
.obras-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.obras-lightbox.show { display: flex; }
.obras-lightbox-image { 
    max-width: 96vw; max-height: 92vh; border-radius: 12px; 
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
/* Forzar mismo tamaño para videos en el lightbox */
.obras-lightbox-video {
    max-width: 96vw !important; 
    max-height: 92vh !important; 
    border-radius: 12px; 
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.obras-lightbox-close{
    position: fixed; top: 20px; right: 20px;
    background: rgba(17,24,39,.85); color:#fff; border:none; border-radius: 12px; 
    width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer;
}
.obras-lightbox-nav{ 
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 54px; height: 54px; border-radius: 50%; border:none; cursor: pointer;
    background: rgba(17,24,39,.7); color:#fff; display: grid; place-items: center;
}
.obras-lightbox-nav.prev{ left: 24px; }
.obras-lightbox-nav.next{ right: 24px; }
.obras-lightbox-counter{
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(17,24,39,.75); color:#fff; padding: 6px 12px; border-radius: 999px; font-size: 14px;
}

@media (max-width: 1280px){ .masonry-grid{ column-count: 3; } }
@media (max-width: 860px){ .masonry-grid{ column-count: 2; } }
@media (max-width: 560px){ .masonry-grid{ column-count: 1; } }

/* Ocultar elementos desktop-only en móvil */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-hidden {
        display: none !important;
    }
}

/* ========================================
   Stats Section v2 (Renovada)
   ======================================== */

.stats-v2 {
    background-color: var(--text-dark);
    color: white;
    padding: 80px 0;
}

.stats-v2-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-v2-number {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color-soft);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.stat-v2-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 768px) {
    .stats-v2 {
        padding: 60px 0;
    }
    
    .stats-v2-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stat-v2-number {
        font-size: 3rem;
    }
}

/* ========================================
   IT & TELCO Section v2 (Minimalist)
   ======================================== */

.innovation-tech-v2 {
    background-color: #f8f9fa;
    padding: 100px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: inline-block;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.service-description {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* ========================================
   Projects Interactive Slices Section
   ======================================== */

.projects-interactive {
    background-color: #f8fafc;
    padding: 130px 0;
}

/* Contenedor más ancho específicamente para proyectos */
.projects-interactive .container {
    max-width: 1400px; /* Aumentado del estándar 1200px */
}

/* Project Panel & Slices */
.project-panel {
    display: flex;
    width: 100%;
    height: 600px;
    gap: 1rem;
    margin-top: 60px;
    position: relative;
}

/* Navegación de proyectos */
.projects-nav-arrows {
    position: absolute;
    top: 50%;
    left: -60px;
    right: -60px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 20;
    transform: translateY(-50%);
}

.project-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border: 2px solid rgba(34, 125, 179, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.project-nav-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(34, 125, 179, 0.3);
}

.project-nav-btn:active {
    transform: scale(0.95);
}

.project-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.project-nav-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border-color: rgba(34, 125, 179, 0.2);
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.project-slice {
    flex: 1.5; /* Mantener el tamaño actual de las apiladas */
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: flex 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: flex;
}

.project-slice.active {
    flex: 5.5; /* Aumentado de 4.5 a 5.5 para darle más espacio */
}

.slice-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-slice:hover .slice-bg {
    transform: scale(1.05);
}

.slice-content {
    position: absolute;
    inset: 0;
    padding: 1rem; /* Reducido padding para aprovechar mejor el espacio */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Volvemos a flex-end ya que el título tiene posición absoluta */
    align-items: flex-start; /* Alineación para los detalles */
    background: linear-gradient(to top, rgba(1, 22, 56, 0.9) 0%, rgba(1, 22, 56, 0.6) 40%, rgba(1, 22, 56, 0.2) 70%, transparent 100%);
}

/* Cuando la tarjeta está activa, mantener el mismo layout */
.project-slice.active .slice-content {
    justify-content: flex-end;
    align-items: flex-start;
    padding: 2rem;
}

.slice-title {
    color: white;
    font-size: 1.1rem; /* Reducido un poco más para asegurar que quepa */
    font-weight: 700;
    transition: opacity 0.3s ease, transform 0.3s ease, font-size 0.3s ease;
    margin-bottom: 0;
    line-height: 1.1;
    text-align: center;
    padding: 0 0.5rem;
    position: absolute;
    bottom: 2.5rem; /* Reducido un poco para aprovechar mejor el espacio */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 1rem);
    white-space: normal; /* Permitir múltiples líneas si es necesario */
    overflow: visible; /* Mostrar todo el texto */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Sombra para mejor legibilidad */
    opacity: 1; /* Asegurar que sea visible por defecto */
}

.project-slice.active .slice-title {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.slice-details {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 90%;
    pointer-events: none;
    text-align: left; /* Alineación a la izquierda para los detalles */
    align-self: flex-start;
}

.project-slice.active .slice-details {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.5s 0.4s ease, transform 0.5s 0.4s ease;
}

.slice-detail-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.slice-detail-desc {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.slice-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.open-modal-btn {
    background: rgba(255, 255, 255, 0.04);
    color: white;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.72rem 1rem;
    border-radius: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    cursor: pointer;
    transition: all 0.25s ease;
}

.open-modal-btn:hover {
    background-color: white;
    color: var(--primary-color-deep);
    border-color: white;
}

.slice-social-link {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.slice-social-link:hover {
    color: #38bdf8;
}

/* Modal Styles */
.modal {
    position: fixed;
    inset: 0;
        background-color: rgba(0, 0, 0, 0.8);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

/* Estado intermedio para animación de salida */
.modal.hiding {
    opacity: 0;
    visibility: hidden;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.modal-content {
    background-color: white;
    border-radius: 1rem;
    max-width: 64rem;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
        transform: translateY(18px) scale(0.94);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    position: relative;
    z-index: 51;
}

.modal.show .modal-content {
    transform: translateY(0) scale(1);
}

/* Animación de salida del contenido */
.modal.hiding .modal-content {
    transform: translateY(12px) scale(0.96);
    opacity: 0.98;
}

/* Focus visible accesible para botones del modal */
.modal-close:focus,
.open-modal-btn:focus,
.fullscreen-btn:focus {
    outline: 2px solid var(--primary-color-soft);
    outline-offset: 2px;
}

.modal-header {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #011638;
    margin: 0;
}

.modal-close {
    color: #6b7280;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #374151;
}

.modal-body {
    padding: 1.5rem;
    flex-grow: 1;
    overflow-y: auto;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.modal-media-container {
    position: relative;
}

.modal-image {
    border-radius: 0.5rem;
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 28rem; /* Aumentado de 24rem a 28rem para AUBASA */
}

.modal-video {
    border-radius: 0.5rem;
    width: 100%;
    height: auto;
    max-height: 24rem;
    margin-top: 0.75rem; /* separación cuando hay imagen + video */
}

/* Botón fullscreen para imagen del modal */
.modal-image-fullscreen-btn{
        position: absolute;
        top: .5rem;
        right: .5rem;
        background: rgba(17, 24, 39, 0.6);
        color: #fff;
        border: none;
        border-radius: 8px;
        padding: .5rem .6rem;
        cursor: pointer;
        backdrop-filter: blur(4px);
        transition: background .2s ease, transform .15s ease, opacity .2s ease;
        z-index: 2;
}
.modal-image-fullscreen-btn:hover{ background: rgba(17,24,39,.8); transform: translateY(-1px); }
.modal-image-fullscreen-btn:active{ transform: translateY(0); }
.modal-image-fullscreen-btn i{ pointer-events: none; }

/* IT & Telco - Galería minimalista (integrada) */
.it-gallery{ 
    margin-top: 3rem; 
    background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(248,250,252,0.9) 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(34, 125, 179, 0.08);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    backdrop-filter: blur(10px);
}

.it-gallery-header{ 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(34, 125, 179, 0.1);
}

.it-gallery-title{ 
    font-size: clamp(1.1rem,1.4vw,1.3rem); 
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.it-gallery-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #38bdf8 100%);
    border-radius: 2px;
}

.it-gallery-subtitle{ 
    font-size: clamp(.9rem,1.1vw,1rem); 
    color: var(--text-medium, #6b7280);
    margin: 0;
    font-weight: 500;
}

.it-gallery-viewport{ 
    position: relative; 
    overflow: hidden; 
    border-radius: 16px;
    background: rgba(255,255,255,0.4);
    border: 1px solid rgba(34, 125, 179, 0.1);
    padding: 0.75rem;
    backdrop-filter: blur(5px);
}

.it-gallery-track{ 
    display: flex; 
    gap: 0.75rem; 
    scroll-behavior: smooth; 
    overflow-x: auto; 
    padding: 0.5rem; 
    scrollbar-width: none;
}
.it-gallery-track::-webkit-scrollbar{ display:none; }

/* Contenedores de imagen con efecto hover mejorado */
.it-gallery-item-container{ 
    position: relative; 
    flex: 0 0 auto; 
    border-radius: 14px; 
    overflow: hidden; 
    background: #ffffff;
    border: 2px solid rgba(34, 125, 179, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 18px rgba(2, 44, 74, 0.08);
}

.it-gallery-item-container:hover{ 
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(34, 125, 179, 0.3);
    box-shadow: 0 12px 30px rgba(34, 125, 179, 0.15);
}

/* Imágenes adaptativas con mejor integración */
.it-gallery-item{ 
    width: auto; 
    height: clamp(160px, 20vw, 240px); 
    max-width: clamp(240px, 32vw, 380px);
    min-width: clamp(200px, 26vw, 320px);
    object-fit: cover; 
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.it-gallery-item:hover {
    transform: scale(1.05);
}

/* Imágenes verticales con mejor proporción */
.it-gallery-item[data-orientation="portrait"] { 
    max-width: clamp(180px, 22vw, 260px);
    min-width: clamp(160px, 20vw, 220px);
}

/* Botón fullscreen mejorado */
.it-gallery-fullscreen-btn{
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, rgba(34, 125, 179, 0.9) 0%, rgba(56, 189, 248, 0.9) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.6rem 0.7rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(0.8) translateY(-10px);
    box-shadow: 0 4px 15px rgba(34, 125, 179, 0.3);
    border: 1px solid rgba(255,255,255,0.2);
}

.it-gallery-item-container:hover .it-gallery-fullscreen-btn{
    opacity: 1;
    transform: scale(1) translateY(0);
}

.it-gallery-fullscreen-btn:hover{ 
    background: linear-gradient(135deg, rgba(34, 125, 179, 1) 0%, rgba(56, 189, 248, 1) 100%);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 125, 179, 0.4);
}

.it-gallery-fullscreen-btn i{ 
    pointer-events: none; 
    font-size: 0.9rem;
}

/* Botones de navegación integrados */
.it-gallery-nav{ 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    height: 42px; 
    width: 42px; 
    border-radius: 50%; 
    border: none; 
    display: grid; 
    place-items: center; 
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.95) 100%);
    color: var(--primary-color); 
    cursor: pointer; 
    backdrop-filter: blur(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(34, 125, 179, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 3;
}

.it-gallery-nav:hover{ 
    background: linear-gradient(135deg, var(--primary-color) 0%, #38bdf8 100%);
    color: white;
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(34, 125, 179, 0.4);
    box-shadow: 0 6px 20px rgba(34, 125, 179, 0.3);
}

.it-gallery-prev{ left: 0.75rem; }
.it-gallery-next{ right: 0.75rem; }

/* Overlay sutil para mejor contraste */
.it-gallery-item-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(34, 125, 179, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 14px;
    pointer-events: none;
    z-index: 1;
}

.it-gallery-item-container:hover::before {
    opacity: 1;
}

@media (max-width: 640px){
    .it-gallery-item-container{ scroll-snap-align: center; }
}

/* Fullscreen Viewer para galería IT */
.it-gallery-fullscreen-viewer{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}
.it-gallery-fullscreen-viewer.show{ display: flex; }
.it-gallery-fullscreen-content{ 
    position: relative; 
    max-width: 95vw; 
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.it-gallery-fullscreen-image{ 
    max-width: 100%; 
    max-height: 90vh; 
    border-radius: 12px; 
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

/* Controles del fullscreen viewer */
.it-gallery-fullscreen-close{
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(17,24,39,.8);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    font-size: 16px;
    backdrop-filter: blur(4px);
    transition: all .2s ease;
}
.it-gallery-fullscreen-close:hover{ 
    background: rgba(17,24,39,.95); 
    transform: scale(1.05);
}

.it-gallery-fullscreen-nav{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(17,24,39,.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 16px;
    backdrop-filter: blur(4px);
    transition: all .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.it-gallery-fullscreen-nav:hover{ 
    background: rgba(17,24,39,.95); 
    transform: translateY(-50%) scale(1.1);
}
.it-gallery-fullscreen-prev{ left: -70px; }
.it-gallery-fullscreen-next{ right: -70px; }

/* Indicador de imagen actual */
.it-gallery-fullscreen-counter{
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(17,24,39,.8);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(4px);
}

@media (max-width: 640px){
    /* En mobile carrusel moderno tipo stories/Instagram */
    .it-gallery-nav{ display: none; }
    .it-gallery {
        margin-top: 2rem;
        padding: 1.5rem;
        border-radius: 20px;
        background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,1) 100%);
        box-shadow: 0 10px 30px rgba(34, 125, 179, 0.08);
    }
    .it-gallery-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.25rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid rgba(34, 125, 179, 0.1);
    }
    .it-gallery-title {
        font-size: 1.2rem;
        font-weight: 800;
    }
    .it-gallery-subtitle {
        font-size: 0.85rem;
        opacity: 0.8;
    }
    .it-gallery-viewport {
        padding: 0;
        border-radius: 20px;
        overflow: hidden;
        position: relative;
        background: #ffffff;
        border: 2px solid rgba(34, 125, 179, 0.1);
    }
    .it-gallery-track {
        display: flex;
        gap: 0;
        padding: 0;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        overflow-x: scroll;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }
    .it-gallery-track::-webkit-scrollbar { display: none; }
    
    /* Cada imagen ocupa toda la pantalla del viewport con aspect ratio fijo */
    .it-gallery-item-container {
        flex: 0 0 100%;
        scroll-snap-align: start;
        position: relative;
        border-radius: 0;
        border: none;
        background: #f8fafc;
        box-shadow: none;
        height: 280px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .it-gallery-item {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 0;
        transition: transform 0.4s ease;
    }
    
    .it-gallery-item[data-orientation="portrait"] {
        object-fit: contain;
        background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    }
    
    /* Botón fullscreen moderno flotante */
    .it-gallery-fullscreen-btn {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        border: 2px solid rgba(255, 255, 255, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        opacity: 1;
        transform: scale(1);
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        z-index: 5;
    }
    
    .it-gallery-fullscreen-btn:active {
        transform: scale(0.95);
        background: rgba(34, 125, 179, 0.8);
    }
    
    /* Indicador de progreso tipo stories */
    .it-gallery-progress {
        position: absolute;
        top: 0.75rem;
        left: 1rem;
        right: 4.5rem;
        height: 3px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
        overflow: hidden;
        z-index: 6;
    }
    
    .it-gallery-progress-bar {
        height: 100%;
        background: linear-gradient(90deg, #38bdf8 0%, var(--primary-color) 100%);
        border-radius: 2px;
        transition: width 0.3s ease;
        width: 0%;
    }
    
    .it-gallery-fullscreen-viewer .it-gallery-fullscreen-nav{ 
        width: 50px; 
        height: 50px; 
        font-size: 18px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(10px);
    }
    .it-gallery-fullscreen-viewer .it-gallery-fullscreen-prev{ left: -70px; }
    .it-gallery-fullscreen-viewer .it-gallery-fullscreen-next{ right: -70px; }
    .it-gallery-fullscreen-viewer .it-gallery-fullscreen-close{
        top: 20px;
        right: 20px;
        padding: 12px 14px;
        font-size: 18px;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}.modal-description {
    color: #4b5563;
    line-height: 1.7;
}

/* Dots de paginación modernos para mobile */
.it-gallery-dots{ 
    display: none; 
    justify-content: center; 
    gap: 12px; 
    margin-top: 16px; 
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}
.it-gallery-dot{ 
    width: 12px; 
    height: 12px; 
    border-radius: 999px; 
    background: rgba(34, 125, 179, 0.3); 
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1); 
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}
.it-gallery-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #38bdf8 100%);
    border-radius: 999px;
    opacity: 0;
    transform: scale(0.7);
    transition: all .3s ease;
}
.it-gallery-dot.active{ 
    width: 28px; 
    background: transparent;
    border-color: rgba(34, 125, 179, 0.2);
    transform: scale(1.1);
}
.it-gallery-dot.active::before {
    opacity: 1;
    transform: scale(1);
}
@media (max-width: 640px){ .it-gallery-dots{ display:flex; } }

/* Accesibilidad focus visible en controles internos */
.it-gallery-fullscreen-btn:focus-visible,
.it-gallery-nav:focus-visible,
.it-gallery-fullscreen-close:focus-visible,
.it-gallery-fullscreen-nav:focus-visible{
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

.modal-description strong {
    color: #011638;
    font-weight: 600;
}

/* Estilos para los enlaces sociales dentro del modal */
.modal-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.social-modal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.72rem 1rem;
    background: rgba(36, 59, 99, 0.04);
    color: white;
    text-decoration: none;
    border-radius: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.25s ease;
    box-shadow: none;
}

.social-modal-link:hover {
    background-color: white;
    color: var(--primary-color-deep);
    border-color: white;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* Reducir un poco el contenedor en tablet */
    .projects-interactive .container {
        max-width: 1100px;
    }
    
    .projects-nav-arrows {
        left: -40px;
        right: -40px;
    }
    
    .project-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .project-panel {
        height: 500px;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .project-slice {
        flex: 1;
        height: 80px;
    }
    
    .project-slice.active {
        flex: 4;
        height: 300px;
    }
    
    .slice-content {
        padding: 1.5rem;
    }
    
    .slice-title {
        font-size: 1.5rem;
    }
    
    .slice-detail-title {
        font-size: 1.25rem;
    }
    
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .projects-interactive {
        padding: 60px 0;
        background-color: #fbfdff; /* un poco más blanco en móvil */
    }
    
    .projects-nav-arrows {
        left: -25px;
        right: -25px;
        display: none !important; /* Ocultar flechas de navegación de desktop en mobile */
    }
    
    .project-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    /* Continuidad visual cuando la tarjeta está expandida */
    .project-slice.mobile-expanding {
        border-radius: 15px 15px 0 0 !important;
        margin-bottom: 0 !important;
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }
    
    .project-panel {
        flex-direction: column;
        height: auto;
        gap: 1rem;
    overflow: visible; /* permitir que el contenido expandido crezca */
    }
    
    .project-slice {
        flex: none !important;
        height: auto;
        min-height: 200px;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        border-radius: 1rem;
        overflow: hidden;
    }
    
    .project-slice.active {
        height: auto;
    }
    
    /* En mobile, siempre mostrar los detalles */
    .slice-details {
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
        transition: none !important;
        position: relative;
        z-index: 2;
    }
    
    .slice-title {
        opacity: 0 !important;
        transform: translateX(-50%) translateY(20px) !important;
        position: relative !important; /* En mobile volvemos a posición relativa */
        bottom: auto !important;
        left: auto !important;
        width: auto !important;
        transform: none !important;
        white-space: normal !important; /* Permite múltiples líneas en mobile */
    }
    
    .slice-content {
        padding: 1rem !important;
        justify-content: flex-end !important;
        align-items: flex-start !important;
    }
    
    .slice-detail-title {
        font-size: 1.125rem;
    }
    
    .slice-detail-desc {
        font-size: 0.9rem;
    }
    
    /* Estilos para las tarjetas expandibles en móvil */
    .project-slice.mobile-expanded {
        background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,1) 100%);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        border: 2px solid rgba(34, 125, 179, 0.2);
    }
    
    .mobile-content-expanded {
        display: none; /* Ya no usaremos este contenedor */
    }
    
    /* Nuevo contenedor para expansión DEBAJO de las tarjetas - empuja contenido hacia abajo */
    .mobile-expanded-content {
        width: 100%;
        background: #eef2f7; /* gris suave un poco más oscuro que el fondo */
        color: #111827; /* texto oscuro por defecto */
        padding: 20px;
        border-radius: 0 0 15px 15px; /* Solo bordes inferiores redondeados */
        margin-top: 0; /* sin separación vertical artificial */
        margin-bottom: 0; /* sin separación inicial mientras está colapsado */
        overflow: hidden; /* ocultar mientras se anima */
        height: 0; /* usar height en lugar de max-height para mejor animación */
        opacity: 0;
        transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12); /* separación por sombra */
        /* IMPORTANTE: Sin position para mantener flujo normal del documento */
        border-top: 1px solid rgba(0, 0, 0, 0.06); /* línea sutil de unión */
        z-index: 1; /* asegurar que esté por encima del fondo */
        /* Forzar que esté en el flujo del documento */
        display: none; /* evitar reservar espacio inicial */
        clear: both;
    /* No flexionar dentro del contenedor de columnas, respetar su altura propia */
    flex: 0 0 auto;
    /* Necesario para posicionar correctamente el botón de cierre absoluto */
    position: relative;
    }

    .mobile-expanded-content.show {
        opacity: 1;
        display: block; /* mostrar cuando está expandido */
        margin-bottom: 25px; /* aplicar separación sólo cuando está visible */
        /* overflow se maneja dinámicamente via JS */
    }

    .mobile-expanded-content .content-wrapper {
        font-size: 13px; /* más compacto */
        line-height: 1.55; /* buena legibilidad */
        color: #374151; /* texto gris oscuro para contraste en gris claro */
    }

    .mobile-expanded-content .content-wrapper p {
        margin-bottom: 10px; /* Menos espaciado */
    }

    .mobile-expanded-content .content-wrapper strong {
        color: #111827; /* más contraste */
        font-weight: 600;
    }

    .mobile-expanded-content .content-wrapper ul {
        padding-left: 18px; /* Más compacto */
        margin: 10px 0; /* Menos espaciado */
    }

    .mobile-expanded-content .content-wrapper li {
        margin-bottom: 4px; /* Más compacto */
    }

    .mobile-expanded-content img,
    .mobile-expanded-content video {
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
        margin-bottom: 12px;
        width: 100%;
        height: auto;
    }

    /* Botón para cerrar la expansión */
    .mobile-close-btn {
        position: absolute;
        top: 15px;
        right: 15px;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        border-radius: 50%;
        width: 35px;
        height: 35px;
        color: white;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-close-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.05);
    }
    
    .mobile-content-expanded .modal-social-links {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(34, 125, 179, 0.1);
    }
    
    .mobile-content-expanded .social-modal-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Flecha indicadora - SOLO EN MÓVIL */
    .slice-expand-indicator {
        position: absolute;
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(34, 125, 179, 0.9);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        transition: all 0.3s ease;
        z-index: 10;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.3);
        box-shadow: 0 2px 10px rgba(34, 125, 179, 0.3);
    }

    .slice-expand-indicator:hover {
        background: rgba(34, 125, 179, 1);
        transform: scale(1.05);
    }

    .slice-expand-indicator.expanded {
        transform: rotate(180deg);
        background: rgba(34, 125, 179, 1);
    }

    .slice-expand-indicator.expanded:hover {
        transform: rotate(180deg) scale(1.05);
    }

    /* Ocultar flecha indicadora en desktop */
}

@media (min-width: 769px) {
    .slice-expand-indicator {
        display: none !important;
    }
}

/* Ajustar tarjeta cuando está expandida para continuidad visual */
@media (max-width: 768px) {
    /* Ocultar botones "Ver Más" en móvil */
    .open-modal-btn {
        display: none;
    }
    
    .slice-social-link {
        font-size: 1.25rem;
    }
    
    /* Ocultar modal en móvil */
    .modal {
        display: none !important;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
    
    .modal-content {
        margin: 0.5rem;
        max-height: 95vh;
        overflow-y: auto;
    }
    
    .modal-body {
        padding: 1rem;
        max-height: calc(95vh - 80px);
        overflow-y: auto;
    }
    
    .modal-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* Resumir descripciones en mobile para algunos modales */
    .modal-description ul {
        padding-left: 1rem;
        margin: 0.5rem 0;
    }
    
    .modal-description li {
        margin-bottom: 0.25rem;
        font-size: 0.85rem;
    }
    
    .modal-description p {
        margin-bottom: 0.75rem;
    }


/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.services {
    padding: 70px 0;
}

html {
    scroll-behavior: smooth;
}

.services-content {display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;}
body {
    font-family: 'Inter','Poppins',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-img {width:100%;height:420px;object-fit:cover;transition:transform .3s ease;}
.text-primary {
    color: #227db3;
}

.section {padding:60px 0;}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
.services-text h2 {font-size:clamp(1.4rem,2.2vw,1.8rem);margin-bottom:22px;line-height:1.25;}
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {display:flex;justify-content:space-between;align-items:center;padding:6px 25px;max-width:1400px;margin:0 auto;}

.nav-logo {height:68px;width:auto;object-fit:contain;}
.services-description p {margin-bottom:14px;color:#555;line-height:1.55;font-size:15px;}

.nav-menu {display:flex;align-items:center;gap:24px;margin-left:auto;}

.nav-link {text-decoration:none;color:#242f36;font-weight:500;font-size:14px;font-family:'Poppins',sans-serif;letter-spacing:.6px;transition:color .25s ease;position:relative;padding:4px 0;}

.strategy {background:#f8f9fa;padding:70px 0;}
.nav-link:hover,
.nav-link.active {
    color: #227db3;
}

.nav-link::after {
    content: '';
.strategy-content {display:grid;grid-template-columns:1.4fr 1fr;gap:40px;align-items:center;}
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #227db3;
.strategy-text h2 {font-size:clamp(1.4rem,2.2vw,1.8rem);margin-bottom:26px;color:#333;}
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Language Selector */
.strategy-point {margin-bottom:18px;padding:18px 20px;background:white;border-radius:10px;border-left:3px solid #227db3;box-shadow:0 1px 6px rgba(0,0,0,.04);}
.language-selector {
    position: relative;
}

.language-btn {
    background: none;
.strategy-img {width:100%;height:340px;object-fit:cover;filter:contrast(1.05);}
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
.stats {background:linear-gradient(45deg,#2c3e50,#34495e);color:white;padding:60px 0;}
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.language-btn:hover {
    border-color: #227db3;
    color: #227db3;
}
.stat-number {font-size:clamp(2.4rem,4vw,3.8rem);font-weight:700;color:#3b9bea;display:block;margin-bottom:6px;line-height:1;}

.language-dropdown {
    position: absolute;
    top: 100%;
.projects {padding:70px 0;}
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 120px;
}
.project-content {display:grid;grid-template-columns:2fr 1fr;gap:0;align-items:center;background:white;border-radius:18px;overflow:hidden;box-shadow:0 6px 26px rgba(0,0,0,.08);min-height:280px;}

.language-selector:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.project-image img {width:100%;height:280px;object-fit:cover;object-position:center;transition:transform 0.4s ease;}

.project-image {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 18px 0 0 18px;
}

.project-image:hover img {
    transform: scale(1.05);
}

.project-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.language-option {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
.project-info h3 {font-size:24px;color:#333;margin-bottom:18px;}
    font-size: 12px;
    transition: all 0.2s ease;
}

.language-option:hover {
    background: #f8f9fa;
.project-description p {margin-bottom:12px;color:#555;line-height:1.6;font-size:15px;}
    color: #227db3;
}

/* Mobile Navigation */
.nav-toggle {
.clients {background:#ffffff;padding:70px 0;}
.clients .container { max-width: 1260px; } /* +5% sobre 1200px */
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
.clients-carousel {overflow:hidden;margin-top:40px;}
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
.clients-track {display:flex;align-items:center;gap:70px;animation:scroll 10s linear infinite;}
    background: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    margin-top: 80px; /* Altura del navbar para que no se superponga */
    background: #fff; /* Fondo blanco */
    overflow: hidden; /* Cambio a hidden para recortar la parte de abajo */
}

.hero-video {
    position: relative;
    width: 100%;
    display: block;
}

.hero-video video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Usar cover para llenar el espacio disponible */
    object-position: center top; /* CLAVE: mantener la parte superior (logo) siempre visible */
    border-radius: 0;
}

/* Botón de pantalla completa en esquina inferior derecha */
.fullscreen-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.8;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.fullscreen-btn:hover {
    background: rgba(34, 125, 179, 0.9);
    border-color: rgba(34, 125, 179, 0.7);
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 6px 20px rgba(34, 125, 179, 0.4);
}

.fullscreen-btn:active {
    transform: scale(0.95);
}

.fullscreen-btn i {
    pointer-events: none;
    font-size: 16px;
}

/* Botón fullscreen responsive para mobile */
@media (max-width: 768px) {
    .fullscreen-btn {
        bottom: 15px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
        padding: 10px !important;
        font-size: 16px !important;
        opacity: 0.9 !important;
    }
    
    .fullscreen-btn i {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .fullscreen-btn {
        bottom: 12px !important;
        right: 12px !important;
        width: 40px !important;
        height: 40px !important;
        padding: 8px !important;
        opacity: 0.9 !important;
    }
    
    .fullscreen-btn i {
        font-size: 12px !important;
    }
    
    .hero {
        padding: 0;
        height: auto; /* Altura automática basada en el video */
        overflow: hidden;
    }
    
    .hero-video {
        display: block;
        height: auto;
    }
    
    .hero-video video {
        width: 100%;
        height: auto; /* Altura natural del video */
        display: block;
        object-fit: contain; /* Mostrar todo el video sin recortar */
        object-position: center center;
    }
}

/* Para móviles/responsive */
@media (max-width: 768px) {
    .hero {
        padding: 0;
        margin-top: 98px; /* Aumentado para compensar navbar en móvil (68px logo + 15px padding*2) */
        height: auto; /* Altura automática basada en el video */
        overflow: hidden;
    }
    
    .hero-video {
        display: block;
        height: auto;
    }
    
    .hero-video video {
        width: 100%;
        height: auto; /* Altura natural del video */
        display: block;
        object-fit: contain; /* Mostrar todo el video sin recortar */
        object-position: center center;
    }
}

/* Desktop con pantallas anchas */
@media (min-aspect-ratio: 16/9) and (min-width: 1024px) {
    .hero {
        height: calc(100vh - 80px);
        min-height: calc(100vh - 80px);
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        overflow: hidden; /* Recortar la parte de abajo si es necesario */
    }
    
    .hero-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-video video {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Llenar completamente el espacio */
        object-position: center top; /* PRESERVAR LA PARTE SUPERIOR (logo) */
        border-radius: 0;
    }
}



.hero-title, .hero-subtitle, .hero-main, .hero-logo {display:none!important;}

.hero-subtitle {
    display: block;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-main {
.contact-map iframe {width:100%;height:360px;border:none;}
    display: block;
    font-weight: 600;
    background: linear-gradient(45deg, #fff, #b3d9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-card {background:white;padding:32px;border-radius:16px;box-shadow:0 6px 24px rgba(0,0,0,.07);width:100%;}
.hero-logo {
    margin-top: 40px;
}

.hero-logo img {
    height: 80px;
    width: auto;
    opacity: 0.9;
}

/* ================================
   SECCIÓN INNOVATION-TECH (NUEVA)
   ================================ */

.innovation-tech {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.innovation-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(34, 125, 179, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(34, 125, 179, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.innovation-tech .container {
    position: relative;
    z-index: 2;
}

/* Header Principal */
.innovation-header {
    text-align: center;
    margin-bottom: 80px;
}

.innovation-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
}

.tech-particle {
    display: inline-block;
    color: #227db3;
    font-weight: 800;
    position: relative;
    transition: all 0.3s ease;
}

.tech-particle:hover {
    transform: translateY(-5px);
    text-shadow: 0 10px 20px rgba(34, 125, 179, 0.3);
}

.connector {
    color: #6c757d;
    margin: 0 20px;
    font-weight: 300;
}

.innovation-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #6c757d;
    font-weight: 300;
    letter-spacing: 2px;
}

/* Grid de tarjetas */
.innovation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.innovation-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.innovation-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(34, 125, 179, 0.1);
}

.innovation-card.featured {
    grid-column: span 1;
    background: linear-gradient(135deg, rgba(34, 125, 179, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 2px solid rgba(34, 125, 179, 0.2);
}

.innovation-card.featured:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.2),
        0 15px 30px rgba(34, 125, 179, 0.2);
}

.card-icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.floating-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #227db3 0%, #1e6b96 100%);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 10px 30px rgba(34, 125, 179, 0.3);
    transform: translateZ(0);
    transition: all 0.3s ease;
}

.innovation-card:hover .floating-icon {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 15px 40px rgba(34, 125, 179, 0.4);
}

.innovation-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a202c;
    text-align: center;
}

.innovation-card p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
    text-align: center;
}

.card-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.stat-badge {
    background: linear-gradient(135deg, #e6f3ff 0%, #cce7ff 100%);
    color: #227db3;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(34, 125, 179, 0.2);
    transition: all 0.3s ease;
}

.stat-badge.premium {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe4cc 100%);
    color: #cc8400;
    border-color: rgba(204, 132, 0, 0.2);
}

.stat-badge.eco {
    background: linear-gradient(135deg, #f0fff4 0%, #dcfce7 100%);
    color: #16a34a;
    border-color: rgba(22, 163, 74, 0.2);
}

.innovation-card:hover .stat-badge {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Animación del texto typing */
.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
    color: #227db3;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Card glow effect */
.card-glow {
    display: none;
}

/* Responsive para IT & TELCO */
@media (max-width: 900px) {
    .innovation-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .innovation-card {
        padding: 35px 25px;
    }
}

@media (max-width: 600px) {
    .innovation-tech {
        padding: 80px 0;
    }
    
    .innovation-header {
        margin-bottom: 60px;
    }
    
    .innovation-card {
        padding: 30px 20px;
    }
    
    .floating-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Projects Fullscreen Section - Mejorado */
.projects-fullscreen {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: 
        linear-gradient(135deg, #0a1628 0%, #1e293b 50%, #0f172a 100%),
        radial-gradient(ellipse at top, rgba(34, 125, 179, 0.1) 0%, transparent 60%);
    background-blend-mode: overlay;
}

.projects-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px 8px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-bullet {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.nav-bullet::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #00d4ff, #227db3);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.nav-bullet.active {
    border-color: #00d4ff;
    transform: scale(1.3);
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.6),
        0 0 40px rgba(0, 212, 255, 0.3);
}

.nav-bullet.active::before {
    opacity: 1;
    transform: scale(1);
}

.nav-bullet:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.projects-slides {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.project-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(100px) rotateX(10deg);
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 60px;
    visibility: hidden;
}

.project-slide.active {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
    visibility: visible;
    z-index: 10;
}

.project-slide.prev {
    opacity: 0.3;
    transform: translateY(-50px) rotateX(-5deg) scale(0.95);
    visibility: visible;
    z-index: 5;
}

.project-slide.next {
    opacity: 0.1;
    transform: translateY(150px) rotateX(15deg) scale(0.9);
    visibility: visible;
    z-index: 1;
}

.slide-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 80px;
    max-width: 1300px;
    width: 100%;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 50px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.slide-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.6s;
}

.project-slide.active .slide-content::before {
    left: 100%;
}

.slide-text {
    color: white;
    z-index: 2;
    position: relative;
}

.slide-text h3 {
    font-size: clamp(32px, 4.5vw, 48px);
    color: #00d4ff;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, #00d4ff 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-text p {
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.7;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translateY(20px);
    animation: slideInText 0.8s ease forwards;
}

.slide-text p:nth-child(3) { animation-delay: 0.2s; }
.slide-text p:nth-child(4) { animation-delay: 0.4s; }
.slide-text p:nth-child(5) { animation-delay: 0.6s; }

@keyframes slideInText {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-links {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 20px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 30px;
    transition: all 0.4s ease;
    background: rgba(0, 212, 255, 0.05);
    backdrop-filter: blur(10px);
}

.project-link:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #00d4ff 0%, #227db3 100%);
    border-color: #00d4ff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: white;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.social-link.facebook::before {
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
}

.social-link.instagram::before {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.slide-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(0, 212, 255, 0.1);
    transform: perspective(800px) rotateY(-5deg);
    transition: all 0.6s ease;
}

.project-slide.active .slide-image {
    transform: perspective(800px) rotateY(0deg);
}

.slide-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 212, 255, 0.1) 0%,
        transparent 50%
    );
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide-image:hover::before {
    opacity: 1;
}

.slide-image img {
    width: 100%;
    height: auto;
    max-height: 65vh;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.slide-image:hover img {
    transform: scale(1.05);
}

/* Responsive mejorado */
@media (max-width: 1200px) {
    .slide-content {
        gap: 60px;
        padding: 40px;
    }
}

@media (max-width: 900px) {
    .projects-nav {
        right: 20px;
        gap: 12px;
        padding: 15px 6px;
    }
    
    .nav-bullet {
        width: 12px;
        height: 12px;
    }
    
    .project-slide {
        padding: 0 40px;
    }
    
    .slide-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 35px;
    }
    
    .slide-image img {
        max-height: 45vh;
    }
    
    .project-links {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .projects-nav {
        right: 15px;
        gap: 10px;
    }
    
    .nav-bullet {
        width: 10px;
        height: 10px;
    }
    
    .project-slide {
        padding: 0 25px;
    }
    
    .slide-content {
        padding: 25px 20px;
        border-radius: 16px;
    }
    
    .project-link {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
}

/* Se elimina el glow para un look más prolijo */
.card-glow { display: none; }

.card-content {
    position: relative;
    z-index: 2;
}

.card-icon {
    margin-bottom: 25px;
}

.floating-icon {
    width: 56px;
    height: 56px;
    background: #227db3;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 8px 22px rgba(34, 125, 179, 0.28);
    transform: translateZ(0);
}

.innovation-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #26323a;
}

.innovation-card p {
    color: #566371;
    line-height: 1.55;
    margin-bottom: 14px;
    font-size: 15px;
}

.card-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.stat-badge {
    background: #eef6fb;
    color: #227db3;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #d3e7f5;
}

/* Visualización de red */
.network-visualization {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 25px;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.network-title {
    text-align: center;
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 50px;
}

.network-nodes {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.node {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.main-node {
    background: linear-gradient(45deg, #227db3, #3b9bea);
    width: 100px;
    height: 100px;
    z-index: 10;
}

.node-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #227db3;
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
}

.secondary-node {
    background: linear-gradient(45deg, #6c757d, #adb5bd);
    animation: orbit 10s linear infinite;
}

.secondary-node:nth-child(2) { transform: rotate(0deg) translateX(150px); }
.secondary-node:nth-child(3) { transform: rotate(60deg) translateX(150px); }
.secondary-node:nth-child(4) { transform: rotate(120deg) translateX(150px); }
.secondary-node:nth-child(5) { transform: rotate(180deg) translateX(150px); }
.secondary-node:nth-child(6) { transform: rotate(240deg) translateX(150px); }
.secondary-node:nth-child(7) { transform: rotate(300deg) translateX(150px); }

/* Animaciones */
@keyframes glow-pulse {
    0% { text-shadow: 0 0 20px rgba(34, 125, 179, 0.5); }
    100% { text-shadow: 0 0 40px rgba(34, 125, 179, 0.8), 0 0 60px rgba(34, 125, 179, 0.4); }
}

@keyframes particle-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes typing-once {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

@keyframes card-glow-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(150px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .innovation-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .innovation-card.featured {
        grid-column: span 1;
    }
    
    .innovation-card {
        padding: 30px;
    }
}

/* Fin sección Innovation-Tech */


/* Keyframe for clients carousel scroll */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-1 * var(--clients-scroll-distance, 50%)));
    }
}

/* Velocidad más rápida para mobile */
@media (max-width: 768px) {
    .clients-track {
        gap: 50px;
    }
}

/* Section Headers */
/* ================================
   CRITERIO DE DISEÑO UNIFICADO
   ================================ */

/* Variables de diseño consistente */
:root {
    --primary-color: #227db3;
    --primary-gradient: linear-gradient(135deg, #227db3 0%, #3b9bea 100%);
    --primary-color-soft: #aecae6;
    --primary-color-deep: #243b63;
    --secondary-color: #00d4ff;
    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.95);
    --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 25px 50px rgba(0, 0, 0, 0.15);
    --border-radius: 20px;
    --border-radius-large: 24px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Tipografía unificada */
.section-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    padding: 0 20px;
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
    box-shadow: 0 4px 15px rgba(34, 125, 179, 0.3);
}

.section-subtitle {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    opacity: 0.8;
}

.section-description {
    font-size: clamp(16px, 1.5vw, 18px);
    color: var(--text-medium);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* About Section */
.about {
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
    padding: 100px 0;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(34, 125, 179, 0.03) 0%, transparent 60%);
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.mission-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transition: left 0.4s ease;
}

.mission-card:hover::before {
    left: 0;
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(34, 125, 179, 0.2);
}

.mission-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mission-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-medium);
    margin: 0;
}

/* Services Section */
.services {
    padding: 70px 0;
}

.services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.services-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.services-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center;
    transition: transform .3s ease;
}

.services-image:hover .services-img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(34, 125, 179, 0.1), transparent);
}

.services-text h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    margin-bottom: 22px;
    line-height: 1.25;
}

.services-description p {
    margin-bottom: 14px;
    color: #555;
    line-height: 1.55;
    font-size: 15px;
}

/* Services & Strategy Image Wrapper */
.section-image-wrapper {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.section-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(34, 125, 179, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-image-wrapper:hover::after {
    opacity: 1;
}

.services-img,
.strategy-img {
    display: block;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-image-wrapper:hover .services-img,
.section-image-wrapper:hover .strategy-img {
    transform: scale(1.05);
}

.services-img {
    height: 380px;
    object-fit: cover;
    object-position: center;
}

.strategy-img {
    height: 380px;
    object-fit: cover;
    object-position: center;
    filter: contrast(1.05);
}

/* Strategy Section */
.strategy {
    background: #f8f9fa;
    padding: 70px 0;
}

.strategy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.strategy-text h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    margin-bottom: 26px;
    color: #333;
}

.strategy-point {
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    border-left: 3px solid #227db3;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .04);
}

/* Stats Section */
.stats {
    background: linear-gradient(45deg, #2c3e50, #34495e);
    color: white;
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 700;
    color: #3b9bea;
    display: block;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Projects Section */
.projects {
    padding: 80px 0;
}

.projects-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.project-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-slide.active {
    display: block;
    opacity: 1;
}

.project-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0;
    align-items: center;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: 320px;
}

.project-image {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    height: 100%;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.project-image:hover img {
    transform: scale(1.05);
}

.project-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    overflow: hidden;
}

.project-info h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.project-description p {
    margin-bottom: 10px;
    color: #666;
    line-height: 1.4;
    font-size: 14px;
}

.project-description p:last-child {
    margin-bottom: 0;
}

.project-description strong {
    color: #227db3;
}

.project-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.project-prev,
.project-next {
    background: #227db3;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.project-prev:hover,
.project-next:hover {
    background: #1a5f8a;
    transform: scale(1.1);
}

.project-dots {
    display: flex;
    gap: 10px;
}

.project-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-dot.active {
    background: #227db3;
    transform: scale(1.2);
}

/* Clients Section */
.clients {
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.clients::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(34, 125, 179, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(0, 212, 255, 0.02) 0%, transparent 50%);
    z-index: 1;
}

.clients .container {
    position: relative;
    z-index: 2;
}

.clients-carousel {
    overflow: hidden;
    margin-top: 60px;
    padding: 20px 0;
    position: relative;
}

.clients-carousel::before,
.clients-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 10;
    pointer-events: none;
}

.clients-carousel::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-light) 0%, transparent 100%);
}

.clients-carousel::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-light) 0%, transparent 100%);
}

.clients-track {
    display: flex;
    align-items: center;
    gap: 80px;
    width: max-content;
    animation: scroll var(--clients-scroll-duration, 16s) linear infinite;
    will-change: transform;
}

.client-logo {
    height: 76px;
    width: auto;
    max-width: 253px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.5;
    transition: var(--transition);
    flex-shrink: 0;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    background: transparent;
}

.client-logo:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

.client-logo:active {
    cursor: grabbing;
    transform: scale(1.02);
}

/* Mini sección de datos de contacto */
.contact-info-mini {
    background: #f8f9fa; /* igual que el formulario de contacto */
    padding: 0 0 60px; /* sin padding arriba para integrarse con la sección contacto */
}

.contact-info-wrapper {
    display: grid;
    /* Usamos 3 columnas porque la sección contiene 3 items (Teléfonos / Emails / LinkedIn)
       Esto da más ancho a cada tarjeta y evita que direcciones de email largas se quiebren */
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.contact-info-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 16px;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16,24,40,0.02);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.contact-info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16,24,40,0.06);
    border-color: #e5edf7;
}

.contact-info-item .icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #f0f4ff;
    color: #2b5cff;
    flex: 0 0 42px;
}

.contact-info-item .icon .fa-linkedin-in { color: #0a66c2; }
.contact-info-item .icon .fa-phone { color: #16a34a; }
.contact-info-item .icon .fa-envelope { color: #ea580c; }
.contact-info-item .icon .fa-map-marker-alt { color: #ef4444; }

.contact-info-item .content h3 {
    font-size: 16px;
    line-height: 1.35;
    margin: 0 0 4px;
    color: #0f172a;
    font-weight: 600;
}

.contact-info-item .content p, .contact-info-item .content a {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    color: #334155;
    text-decoration: none;
    /* Evitar quiebre de línea en direcciones de correo y enlaces en pantalla ancha */
    white-space: nowrap;
    word-break: normal;
}

.contact-info-item .content a:hover { text-decoration: underline; }

.contact-info-note {
    margin-top: 22px;
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    color: #334155;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-info-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .contact-info-wrapper {
        grid-template-columns: 1fr;
    }

    /* En mobile permitimos que el texto haga wrap para evitar overflow */
    .contact-info-item .content p, .contact-info-item .content a {
        white-space: normal;
        word-break: break-word;
    }
}

/* Contact Section */
.contact {
    padding: 70px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 40px;
    margin-top: 40px;
    align-items: stretch;
}

.contact-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    align-items: center;
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.contact-info {
    display: flex;
    align-items: stretch;
}

.contact-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-card h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.contact-item i {
    color: #227db3;
    font-size: 18px;
    margin-top: 2px;
    width: 20px;
}

.contact-item strong {
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.contact-item a {
    color: #227db3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #1a5f8a;
}

.contact-social {
    text-align: center;
    margin-top: 30px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #227db3, #3b9bea);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(34, 125, 179, 0.4);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #3b9bea;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3b9bea;
}

.footer-social {
    margin-top: 20px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #34495e;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: #3b9bea;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #95a5a6;
    font-size: 14px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(36, 59, 99, 0.96);
    color: var(--primary-color-soft);
    border: 1px solid rgba(174, 202, 230, 0.35);
    border-radius: 14px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: var(--primary-color-soft);
    color: var(--primary-color-deep);
    border-color: var(--primary-color-soft);
    box-shadow: 0 10px 24px rgba(36, 59, 99, 0.24);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
    }
    
    .services-content,
    .strategy-content,
    .project-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .mission-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100vw;
        width: 100vw;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        gap: 20px;
        transition: all 0.3s ease;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        box-sizing: border-box;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .section {
        padding: 60px 0;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-card {
        padding: 30px 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .project-content {
        grid-template-columns: 1fr;
    }
    
    .project-info {
        padding: 30px 20px;
    }
    
    .clients-track {
        gap: 30px;
    }
    
    .client-item {
        width: 150px;
        height: 80px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 16px;
    }
    
    .mission-card {
        padding: 25px 15px;
    }
    
    .contact-card {
        padding: 30px 20px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .back-to-top,
    .hero-video,
    .scroll-indicator {
        display: none;
    }
    
    .hero {
        height: auto;
        min-height: auto;
        padding: 40px 0;
        background: #f8f9fa;
    }
    
    .hero-content {
        color: #333;
    }
}

/* Contacto limpio - Exacto como la imagen */
.contact-clean {
    background: #f8f9fa;
    padding: 80px 0 100px;
}

.contact-clean-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-title {
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.contact-subtitle {
    color: #6b6b6b;
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
}

.contact-clean-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-clean-form input,
.contact-clean-form textarea {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 18px;
    font-size: 16px;
    color: #1a1a1a;
    background: #ffffff;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
    resize: vertical;
}

.contact-clean-form input::placeholder,
.contact-clean-form textarea::placeholder {
    color: #999999;
    font-weight: 400;
}

.contact-clean-form input:focus,
.contact-clean-form textarea:focus {
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.contact-clean-form textarea {
    min-height: 140px;
    resize: vertical;
    font-family: inherit;
}

.btn-primary {
    background: #1e3a5f;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
    align-self: flex-start;
    margin-top: 8px;
}

.btn-primary:hover {
    background: #2d4a70;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(30, 58, 95, 0.2);
}

.contact-map.clean {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    background: white;
    height: 100%;
    min-height: 500px;
}

.contact-map.clean iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: 0;
    display: block;
}

@media (max-width: 900px) {
    .contact-clean-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .row-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-map.clean {
        min-height: 350px;
    }
    
    .contact-map.clean iframe {
        min-height: 350px;
    }
}

@media (max-width: 600px) {
    .contact-clean {
        padding: 60px 0 80px;
    }
    
    .contact-clean-grid {
        padding: 0 15px;
    }
    
    .contact-title {
        font-size: 28px;
    }
    
    .contact-map.clean {
        min-height: 300px;
    }
    
    .contact-map.clean iframe {
        min-height: 300px;
    }
}

/* ===== GLASS NAVBAR STYLES (index2.html) ===== */
.navbar-glass {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1); /* Transparente sobre video */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    z-index: 2000;
    transition: all 0.3s ease;
    padding: 8px 25px;
    width: auto;
    max-width: 90%;
}

.navbar-glass.scrolled {
    background: rgba(255, 255, 255, 0.95); /* Blanco cuando sale del video */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.navbar-glass.scrolled .nav-link-glass {
    color: #333;
    text-shadow: none;
}

.navbar-glass.scrolled .nav-link-glass:hover,
.navbar-glass.scrolled .nav-link-glass.active {
    color: #227db3;
}

.navbar-glass.scrolled .nav-link-glass:hover::after,
.navbar-glass.scrolled .nav-link-glass.active::after {
    background: #227db3; /* Línea azul cuando está scrolled */
}

.navbar-glass.scrolled .language-btn-glass {
    background: rgba(34, 125, 179, 0.1);
    border-color: rgba(34, 125, 179, 0.3);
    color: #227db3;
    text-shadow: none;
}

.navbar-glass.scrolled .nav-toggle-glass {
    background: rgba(34, 125, 179, 0.1);
    border-color: rgba(34, 125, 179, 0.3);
}

.navbar-glass.scrolled .nav-toggle-glass span {
    background: #333;
}

.navbar-glass.scrolled .nav-logo-glass {
    filter: none;
}

.nav-glass-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 55px;
    gap: 20px;
}

.nav-logo-glass {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: none; /* Logo con colores originales siempre */
    flex-shrink: 0;
    transition: filter 0.3s ease;
}

.nav-menu-glass {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-grow: 1;
    justify-content: center;
}

.nav-link-glass {
    text-decoration: none;
    color: white; /* Blanco sobre video */
    font-weight: 500;
    font-size: 13.5px; /* Aumentado ligeramente de 13px */
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.6px;
    transition: all 0.3s ease;
    position: relative;
    padding: 6px 12px;
    border-radius: 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Sombra para legibilidad */
    white-space: nowrap;
}

.nav-link-glass::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 12px;
    right: 12px;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.9); /* Línea blanca */
    transition: width 0.3s ease;
}

.nav-link-glass:hover,
.nav-link-glass.active {
    color: rgba(255, 255, 255, 0.9); /* Blanco en hover sobre video */
    background: transparent;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.nav-link-glass:hover::after,
.nav-link-glass.active::after {
    width: calc(100% - 24px);
}

.language-selector-glass {
    position: relative;
    flex-shrink: 0;
}

.language-btn-glass {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white; /* Blanco sobre video */
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Sombra para legibilidad */
    white-space: nowrap;
}

.language-btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.flag-icon {
    width: 14px;
    height: 10px;
    border-radius: 2px;
    object-fit: cover;
}

.language-dropdown-glass {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 130px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 8px;
}

.language-selector-glass:hover .language-dropdown-glass {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option-glass {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.language-option-glass:hover {
    background: rgba(34, 125, 179, 0.1);
    color: #227db3;
}

.language-option-glass.active {
    background: rgba(34, 125, 179, 0.15);
    color: #227db3;
    font-weight: 600;
}

.nav-toggle-glass {
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.nav-toggle-glass span {
    width: 18px;
    height: 2px;
    background: white; /* Blanco sobre video */
    margin: 1.5px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-toggle-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* ===== FULLSCREEN HERO STYLES (index2.html) ===== */
.hero-fullscreen {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-fullscreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video-fullscreen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.hero-overlay-fullscreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.15) 50%,
        rgba(0, 0, 0, 0.35) 100%
    );
    z-index: 2;
}

.hero-content-fullscreen {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title-main {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
    margin: 0 0 0.25rem;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.hero-title-sub {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.75rem, 1.4vw, 1.1rem);
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 2rem;
}

.hero-anchor {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.95rem, 1.6vw, 1.25rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.fullscreen-btn-glass {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.fullscreen-btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ===== RESPONSIVE STYLES FOR GLASS NAVBAR ===== */
@media (max-width: 768px) {
    .navbar-glass {
        top: 15px;
        width: calc(100% - 30px);
        max-width: none;
        padding: 8px 20px;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    
    .nav-glass-container {
        height: 50px;
        gap: 15px;
    }
    
    .nav-logo-glass {
        height: 35px;
    }
    
    .nav-menu-glass {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        /* Fondo más sólido y menos blur para optimizar GPU */
        background: rgba(25, 30, 40, 0.95);
        backdrop-filter: blur(5px) brightness(0.7) contrast(0.85) saturate(110%);
        -webkit-backdrop-filter: blur(5px) brightness(0.7) contrast(0.85) saturate(110%);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        flex-direction: column;
        gap: 0;
        padding: 15px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        justify-content: flex-start;
        overflow: hidden;
        z-index: 2100;
        isolation: isolate;
    }

    .nav-menu-glass.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .navbar-glass.scrolled .nav-menu-glass {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    
    .nav-link-glass {
        color: #ffffff !important; /* Igual que el navbar sobre el video */
        padding: 10px 25px;
        font-size: 14px;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
        width: 100%;
        text-align: left;
        border-radius: 0;
        justify-content: flex-start;
    }
    
    .nav-link-glass::after {
        display: none; /* Sin línea en mobile */
    }
    
    /* Hover legible en estado transparente (mismo estilo del navbar) */
    .navbar-glass:not(.scrolled) .nav-link-glass:hover {
        color: rgba(255,255,255,0.9) !important;
        background: rgba(255,255,255,0.06) !important;
        text-shadow: 0 1px 4px rgba(0,0,0,0.45) !important;
    }
    
    /* En mobile, hover cuando hay fondo blanco */
    .navbar-glass.scrolled .nav-link-glass:hover {
        color: #227db3 !important; /* Azul solo con fondo blanco */
        background: rgba(34, 125, 179, 0.1) !important;
    }
    
    /* Active state también controlado */
    .nav-link-glass.active {
        color: #227db3 !important;
        background: transparent !important;
        text-shadow: none !important;
    }
    
    .language-selector-glass {
        padding: 10px 25px;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        margin-top: 10px;
    }
    
    .language-btn-glass {
        background: rgba(255, 255, 255, 0.18);
        border-color: rgba(255, 255, 255, 0.3);
        color: #ffffff;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
        justify-content: flex-start;
    }
    
    .nav-toggle-glass {
        display: flex;
    }
    
    /* ===== ESTILOS PARA MENÚ MÓVIL CUANDO ESTÁ SCROLLED ===== */
    .navbar-glass.scrolled .nav-menu-glass {
        background: rgba(255, 255, 255, 0.95); /* Fondo blanco cuando scrolled */
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    .navbar-glass.scrolled .nav-link-glass {
        color: #333 !important; /* Oscuro cuando scrolled */
        text-shadow: none !important;
    }
    
    .navbar-glass.scrolled .language-btn-glass {
        background: rgba(34, 125, 179, 0.1);
        border-color: rgba(34, 125, 179, 0.3);
        color: #227db3;
    }
    
    .navbar-glass.scrolled .language-selector-glass {
        border-top-color: rgba(0, 0, 0, 0.1); /* Línea oscura cuando scrolled */
    }
    
    .fullscreen-btn-glass {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .navbar-glass {
        top: 10px;
        width: calc(100% - 20px);
        padding: 6px 15px;
    }
    
    .nav-glass-container {
        height: 45px;
        gap: 10px;
    }
    
    .nav-logo-glass {
        height: 30px;
    }
    
    .nav-link-glass {
        font-size: 13px;
        padding: 8px 20px;
    }
    
    .language-selector-glass {
        padding: 8px 20px;
    }
    
    .fullscreen-btn-glass {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* ===== MOBILE VIDEO ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .hero-video-fullscreen video {
        object-position: center top; /* Asegurar que se vea la parte superior en móvil */
        min-height: 100vh; /* Asegurar que cubra toda la altura */
    }
}

@media (max-aspect-ratio: 9/16) {
    /* Para pantallas muy altas (móviles en vertical) */
    .hero-video-fullscreen video {
        object-fit: cover;
        object-position: center center; /* En pantallas muy verticales, centrar */
        width: 100%;
        height: auto;
        min-height: 100vh;
    }
}

/* ========================================
   GLOBAL EYEBROW — Identidad corporativa
   ======================================== */

.global-eyebrow {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    text-align: left;
}

.global-eyebrow--light {
    color: rgba(255, 255, 255, 0.35);
}

/* ========================================
   CREDENTIAL LOGOS — logos en grayscale
   ======================================== */

.credential-logos {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    margin: 0.7rem 0;
}

.credential-logos img {
    height: 30px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.55);
    transition: filter 0.3s ease;
}

.credential-logos img[alt="Movistar"],
.credential-logos img[alt="ARSAT"],
.credential-logos img[alt="ADIF S.E."] {
    height: 36px;
}

.credential-logos img:hover {
    filter: grayscale(0%) opacity(1);
}

@media (max-width: 768px) {
    .credential-logos img {
        height: 24px;
    }
}

/* ========================================
   SECTION HEADER — Clean variant
   ======================================== */

.section-header--left {
    text-align: left;
    margin-bottom: 50px;
}

.section-title--clean {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--text-dark);
    background-clip: unset;
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
}

.section-title--clean::after {
    display: none;
}

.section-description--left {
    margin: 0;
    max-width: 50ch;
}

/* ========================================
   SHOWROOM SECTION — Slider + Lightbox
   ======================================== */

.showroom-section {
    background-color: #ffffff;
    padding: 130px 0;
}

.showroom-header {
    margin-bottom: 3rem;
}

.showroom-title {
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.2;
    margin: 0.75rem 0 0;
}

.showroom-desc {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.75;
    max-width: 55ch;
    margin-top: 1rem;
}

.showroom-viewport {
    overflow: hidden;
    width: 100%;
}

.showroom-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.showroom-page {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.showroom-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
    background: #0f172a;
}

.showroom-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, opacity 0.35s ease;
}

.showroom-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.35s ease;
    pointer-events: none;
}

.showroom-card:hover img {
    transform: scale(1.05);
    opacity: 0.78;
}

.showroom-card:hover::after {
    background: rgba(0, 0, 0, 0.28);
}

.showroom-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.25rem;
}

.showroom-btn-prev,
.showroom-btn-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #E2E8F0;
    background: #fff;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.showroom-btn-prev:hover,
.showroom-btn-next:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.showroom-btn-prev:disabled,
.showroom-btn-next:disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

.showroom-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.showroom-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #CBD5E1;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.showroom-dot.active {
    background: var(--primary-color);
    transform: scale(1.35);
}

/* Lightbox */
.sw-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sw-lightbox[aria-hidden="false"] {
    opacity: 1;
    pointer-events: all;
}

.sw-lb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(6px);
}

.sw-lb-image {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transition: opacity 0.2s ease;
}

.sw-lb-image.loading {
    opacity: 0;
}

.sw-lb-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    z-index: 2;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.sw-lb-close:hover { color: #fff; }

.sw-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.sw-lb-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.sw-lb-prev { left: 1.5rem; }
.sw-lb-next { right: 1.5rem; }

.sw-lb-counter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 1024px) {
    .showroom-page {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .showroom-section { padding: 56px 0; }
    .showroom-page {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .sw-lb-prev { left: 0.5rem; }
    .sw-lb-next { right: 0.5rem; }
    .sw-lb-nav { width: 40px; height: 40px; }
}

/* ========================================
   STATS V2 — eyebrow alignment
   ======================================== */

.stats-v2 .global-eyebrow--light {
    margin-bottom: 2rem;
}

/* ========================================
   CONTACT CLEAN — eyebrow spacing
   ======================================== */

.contact-clean .section-eyebrow {
    margin-bottom: 0.5rem;
}

.contact-clean .section-title--clean {
    margin-bottom: 0.75rem;
}
