/**
 * ==========================================================================
 * SERVICIOS Y CONSULTORÍAS - ESTILOS ESPECÍFICOS (servicios-consultorias.css)
 * ==========================================================================
 * Contiene exclusivamente los estilos estructurados de la sección de Servicios.
 * Los componentes transversales (Header, Footer, variables estructurales) 
 * se heredan directamente desde global.css.
 * * INTEGRACIÓN DE ACCESIBILIDAD WCAG 2.2 AA (Navegación Teclado + Foco Modales)
 * OPTIMIZACIÓN MÓVIL: Ajuste elástico anti-recorte para Acompañamiento Continuo
 * ==========================================================================
 */

body.modal-open {
    overflow: hidden !important;
}

/* ==========================================================================
 * MEJORAS DE ACCESIBILIDAD (WCAG 2.2 AA)
 * ========================================================================== */
/* Indicador de foco exclusivo para navegación por teclado (no afecta al uso con ratón) */
:focus-visible {
    outline: 3px solid var(--color-verde-acento, #28CC43) !important;
    outline-offset: 4px !important;
}

[data-theme="light"] :focus-visible {
    outline: 3px solid #000957 !important;
}

.pillar-pill:focus-visible, 
.offer-card:focus-visible, 
.sector-stack-item:focus-visible {
    border-color: var(--color-verde-acento, #28CC43);
    border-radius: inherit;
}

/* ==========================================================================
 * 1. SECCIÓN HERO (PORTADA DE SERVICIOS)
 * ========================================================================== */

.services-hero-section {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    background-image: url('../Imagenes/servicios/tecnologia_transforma.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 9, 87, 0.6), rgba(0, 9, 87, 0.3));
    z-index: 1;
}

.services-hero-content {
    position: relative;
    z-index: 2;
    background: rgba(0, 9, 87, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(40, 204, 67, 0.4);
    border-radius: 15px;
    padding: 30px 50px;
    max-width: 900px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transform: scale(0.98) translateY(0);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.8s ease, background-color 0.8s ease;
    opacity: 0;
    animation: fadeInHero 1s ease-out forwards;
}

.services-hero-content.auto-hover-active {
    transform: scale(1.05) translateY(-15px);
    box-shadow: 0 45px 90px rgba(0, 0, 0, 0.65), 0 0 50px rgba(40, 204, 67, 0.4);
    background: rgba(0, 9, 87, 0.3);
}

[data-theme="light"] .services-hero-content {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .services-hero-content.auto-hover-active {
    box-shadow: 0 45px 90px rgba(0, 0, 0, 0.18), 0 0 50px rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.35);
}

.services-hero-content h1 {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(40, 204, 67, 0.6);
}

.services-hero-content p {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 0;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
    
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    overflow-wrap: break-word;
    word-spacing: -0.05em;
}

@keyframes fadeInHero { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}

/* ==========================================================================
 * 2. SECCIÓN SOLUCIONES INTEGRALES
 * ========================================================================== */

.comprehensive-solutions-section {
    padding: 80px 40px;
    position: relative;
    z-index: 5;
    overflow-x: hidden;
}

.solutions-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.solutions-media-container { 
    perspective: 1200px; 
}

.puzzle-image-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    background-color: transparent;
}

[data-theme="light"] .puzzle-image-container { 
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); 
}

.puzzle-piece {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    transform: translate(var(--tx), var(--ty)) rotate(var(--trot)) scale(0);
    opacity: 0;
    transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1.5s ease;
}

.solutions-content-card { 
    position: relative; 
    padding: 50px; 
    z-index: 1; 
}

.puzzle-bg-container {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    grid-template-rows: repeat(5, 1fr);
    z-index: -1; 
    border-radius: 25px; 
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255,255,255,0.05);
}

[data-theme="light"] .puzzle-bg-container { 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255,255,255,0.5); 
}

.puzzle-bg-piece {
    width: 100%; 
    height: 100%; 
    background-color: #00063d;
    transform: translate(var(--tx), var(--ty)) rotate(var(--trot)) scale(0);
    opacity: 0; 
    transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1.5s ease;
}

[data-theme="light"] .puzzle-bg-piece { 
    background-color: #CFD5E1; 
}

.card-text-content {
    position: relative; 
    z-index: 2; 
    opacity: 0; 
    transform: scale(0.9);
    transition: opacity 1s ease 1s, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1) 1s;
}

.card-text-content h3 { 
    color: #28CC43; 
    font-size: 2rem; 
    margin-bottom: 25px; 
    font-weight: 800; 
    text-align: center; 
}

.card-text-content p {
    color: #ffffff; 
    font-weight: 700; 
    font-size: 1.1rem; 
    line-height: 1.7;
    text-align: justify; 
    text-align-last: left;
    hyphens: auto; 
    -webkit-hyphens: auto; 
    -ms-hyphens: auto; 
    overflow-wrap: break-word; 
    word-spacing: -0.05em;
}

[data-theme="light"] .card-text-content p { 
    color: #000957; 
}

.solutions-grid.is-visible .puzzle-piece,
.solutions-grid.is-visible .puzzle-bg-piece,
.continuous-support-section.is-visible .puzzle-piece {
    transform: translate(0, 0) rotate(0) scale(1.015); 
    opacity: 1;
}

.solutions-grid.is-visible .card-text-content { 
    opacity: 1; 
    transform: scale(1); 
}

@keyframes levitate-up { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-15px); } 
}
@keyframes levitate-down { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(15px); } 
}

.solutions-grid.is-visible .solutions-media-container { 
    animation: levitate-up 6s ease-in-out 2.5s infinite; 
}
.solutions-grid.is-visible .solutions-content-card { 
    animation: levitate-down 6s ease-in-out 2.5s infinite; 
}

/* ==========================================================================
 * 3. BANNER DE SERVICIOS
 * ========================================================================== */

.services-banner-wrapper { 
    position: relative; 
    width: 100%; 
    height: 150vh; 
    z-index: 5; 
}

.services-banner-section {
    position: sticky; 
    top: 30vh; 
    width: 100%; 
    height: 35vh; 
    min-height: 250px; 
    max-height: 400px;
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: flex-start; 
    padding: 0 10%;
}

.banner-door {
    position: absolute; 
    top: 0; 
    width: 50%; 
    height: 100%; 
    overflow: hidden; 
    z-index: 1;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); 
    will-change: transform;
}

.door-left { left: 0; transform: translateX(-100%); }
.door-right { right: 0; transform: translateX(100%); }

.banner-door::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    width: 200%; 
    height: 100%;
    background-image: url('../Imagenes/servicios/servicios.webp');
    background-size: cover;
    background-position-x: center; 
    background-position-y: var(--bg-pan, 35%);
    z-index: -1; 
    will-change: background-position;
}

.door-left::before { left: 0; }
.door-right::before { right: 0; }

.banner-overlay, .banner-overlay-right {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
}

.banner-overlay { background: linear-gradient(to right, rgba(0, 9, 87, 0.8), rgba(0, 9, 87, 0.1)); }
.banner-overlay-right { background: linear-gradient(to left, rgba(0, 9, 87, 0.8), rgba(0, 9, 87, 0.1)); }
[data-theme="light"] .banner-overlay { background: linear-gradient(to right, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.1)); }
[data-theme="light"] .banner-overlay-right { background: linear-gradient(to left, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.1)); }

.services-banner-section.is-visible .door-left,
.services-banner-section.is-visible .door-right { transform: translateX(0); }

.banner-title-wrapper {
    position: relative; z-index: 2; opacity: 0; transform: scale(0.5) translateZ(-500px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: 0.8s;
}

.services-banner-section.is-visible .banner-title-wrapper { opacity: 1; transform: scale(1) translateZ(0); }

.banner-title {
    font-size: 3.5rem; font-weight: 800; line-height: 1.2; color: var(--color-verde-acento, #28CC43);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8), 0 0 15px rgba(40, 204, 67, 0.6); margin: 0;
}

[data-theme="light"] .banner-title { text-shadow: 0 2px 5px rgba(255, 255, 255, 0.8), 0 0 15px rgba(40, 204, 67, 0.6); }

.services-banner-section.is-visible .banner-title { animation: levitateBannerTitle 4s ease-in-out infinite; animation-delay: 1.8s; }
[data-theme="light"] .services-banner-section.is-visible .banner-title { animation: levitateBannerTitleLight 4s ease-in-out infinite; animation-delay: 1.8s; }

@keyframes levitateBannerTitle {
    0%, 100% { transform: translateY(0); text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8), 0 0 15px rgba(40, 204, 67, 0.6); }
    50% { transform: translateY(-10px); text-shadow: 0 12px 15px rgba(0, 0, 0, 0.6), 0 0 30px rgba(40, 204, 67, 0.9); }
}
@keyframes levitateBannerTitleLight {
    0%, 100% { transform: translateY(0); text-shadow: 0 2px 5px rgba(255, 255, 255, 0.8), 0 0 15px rgba(40, 204, 67, 0.6); }
    50% { transform: translateY(-10px); text-shadow: 0 12px 15px rgba(255, 255, 255, 0.8), 0 0 30px rgba(40, 204, 67, 0.9); }
}

/* ==========================================================================
 * 4. PILARES FUNDAMENTALES
 * ========================================================================== */

.pillars-section {
    padding: 60px 40px 100px 40px; display: flex; flex-direction: column;
    align-items: center; position: relative; z-index: 5; overflow-x: hidden;
}

.pillars-intro-box {
    background-color: rgba(0, 6, 61, 0.65); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: none; padding: 25px 40px; border-radius: 15px; max-width: 900px;
    text-align: center; margin-bottom: 50px; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-theme="light"] .pillars-intro-box { background-color: #B4BCCD; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
.pillars-intro-box p { color: #ffffff; font-size: 1.15rem; font-weight: 600; margin: 0; line-height: 1.6; }
[data-theme="light"] .pillars-intro-box p { color: #000957; }
.pillars-section.is-visible .pillars-intro-box { opacity: 1; transform: translateY(0); }

.pillars-container { display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: center; gap: 20px; width: 100%; max-width: 1200px; }

.pillar-pill {
    flex: 1 1 0; background-color: #00063d; border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px; padding: 25px 20px; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center; cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.pillar-pill:hover {
    transform: translateY(-10px) scale(1.05) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 20px rgba(40, 204, 67, 0.2) !important;
    border-color: rgba(40, 204, 67, 0.4) !important;
}

[data-theme="light"] .pillar-pill { background-color: #CFD5E1; border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05); }
[data-theme="light"] .pillar-pill:hover {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15), 0 0 20px rgba(40, 204, 67, 0.3) !important; border-color: var(--color-verde-acento, #28CC43) !important;
}

.pillar-title { color: #ffffff; font-size: 1.1rem; font-weight: 700; margin: 0; line-height: 1.4; }
[data-theme="light"] .pillar-title { color: #000957; }
.pillar-num { color: var(--color-verde-acento, #28CC43); font-weight: 900; }

.pillar-read-more { display: inline-block; margin-top: 15px; color: var(--color-verde-acento, #28CC43); font-size: 0.95rem; font-weight: 700; transition: transform 0.3s ease; }
.pillar-pill:hover .pillar-read-more { transform: translateX(5px); }

.pillar-pill:nth-child(1) { opacity: 0; transform: translateX(-50vw); }
.pillar-pill:nth-child(2) { opacity: 0; transform: translateY(100px); }
.pillar-pill:nth-child(3) { opacity: 0; transform: translateX(50vw); }

.pillars-section.is-visible .pillar-pill:nth-child(1) { animation: slideInPillLeft 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: 0s; }
.pillars-section.is-visible .pillar-pill:nth-child(2) { animation: slideInPillBottom 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: 0.2s; }
.pillars-section.is-visible .pillar-pill:nth-child(3) { animation: slideInPillRight 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: 0.4s; }

@keyframes slideInPillLeft { 0% { opacity: 0; transform: translateX(-50vw); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes slideInPillBottom { 0% { opacity: 0; transform: translateY(100px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes slideInPillRight { 0% { opacity: 0; transform: translateX(50vw); } 100% { opacity: 1; transform: translateX(0); } }

.pillar-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); z-index: 2000; display: flex; align-items: center;
    justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease;
}
.pillar-modal-overlay.active { opacity: 1; visibility: visible; }

.pillar-modal-content {
    background-color: #00084d; border: 1px solid rgba(40, 204, 67, 0.4); width: 90%; max-width: 600px; max-height: 90vh; overflow-y: auto;
    border-radius: 30px; padding: 40px; position: relative; transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 0 0 2px rgba(40, 204, 67, 0.4);
    scrollbar-width: thin; scrollbar-color: var(--color-verde-acento, #28CC43) transparent;
}
.pillar-modal-content::-webkit-scrollbar { width: 8px; }
.pillar-modal-content::-webkit-scrollbar-track { background: transparent; }
.pillar-modal-content::-webkit-scrollbar-thumb { background-color: var(--color-verde-acento, #28CC43); border-radius: 10px; }

[data-theme="light"] .pillar-modal-content { background-color: #ffffff; border: 1px solid var(--color-verde-acento, #28CC43); box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2), inset 0 0 0 2px var(--color-verde-acento, #28CC43); }
.pillar-modal-overlay.active .pillar-modal-content { transform: translateY(0) scale(1); }

.close-pillar-modal {
    position: absolute; top: 20px; right: 20px; background-color: rgba(255, 255, 255, 0.1); color: #ffffff;
    border: none; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center; transition: background-color 0.2s, transform 0.2s;
}
.close-pillar-modal:hover { background-color: var(--color-verde-acento, #28CC43); transform: rotate(90deg); }
[data-theme="light"] .close-pillar-modal { background-color: rgba(0, 9, 87, 0.1); color: #000957; }
[data-theme="light"] .close-pillar-modal:hover { background-color: var(--color-verde-acento, #28CC43); color: #ffffff; }

.modal-main-title { color: #ffffff; font-size: 1.6rem; font-weight: 800; margin-bottom: 25px; padding-right: 30px; }
[data-theme="light"] .modal-main-title { color: #000957; }

.modal-text-content h4 { color: var(--color-verde-acento, #28CC43); font-size: 1.1rem; margin-top: 20px; margin-bottom: 10px; font-weight: 700; }
.modal-text-content p {
    color: #ffffff; font-size: 1.05rem; line-height: 1.6; margin-bottom: 15px; text-align: justify;
    text-align-last: left; hyphens: auto; -webkit-hyphens: auto; -ms-hyphens: auto; overflow-wrap: break-word; word-spacing: -0.05em;
}
[data-theme="light"] .modal-text-content p { color: #000957; }


/* ==========================================================================
 * 5. CARRUSEL DE SERVICIOS
 * ========================================================================== */

.offerings-section { padding: 100px 0; position: relative; z-index: 5; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 75vh; }
.explosion-intro-wrapper { position: absolute; top: 0px; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 10; display: flex; justify-content: center; }

.bouncing-sphere {
    position: absolute; top: -20px; width: 40px; height: 40px; border-radius: 50%;
    background-color: var(--color-verde-acento, #28CC43); box-shadow: 0 0 30px var(--color-verde-acento, #28CC43), inset -5px -5px 15px rgba(0,0,0,0.4);
    transform: translateX(-50vw); opacity: 0; transform-origin: top center;
}

.offerings-section.is-visible .bouncing-sphere { animation: sphereBounceAndExplode 1.5s cubic-bezier(0.5, 0, 0.5, 1) forwards; }
@keyframes sphereBounceAndExplode {
    0% { transform: translateX(-50vw) scale(1); opacity: 1; }
    40% { transform: translateX(0) scale(1); opacity: 1; }
    45% { transform: translateX(0) translateY(-20px) scale(1.2); opacity: 1; filter: brightness(1.5); }
    50% { transform: translateX(0) translateY(0) scale(0.8); opacity: 1; }
    100% { transform: translateX(0) translateY(0) scale(80); opacity: 0; display: none; }
}

.offerings-content-wrapper { width: 100%; display: flex; flex-direction: column; align-items: center; opacity: 0; }
.offerings-section.is-visible .offerings-content-wrapper { animation: revealContentAfterExplosion 0.5s ease forwards; animation-delay: 1.2s; }
@keyframes revealContentAfterExplosion { 0% { opacity: 0; } 100% { opacity: 1; } }

.offerings-carousel-container { display: flex; align-items: center; justify-content: center; gap: 20px; width: 100%; max-width: 1400px; position: relative; margin-top: 20px; }

.floating-carousel-title {
    position: absolute; top: -60px; left: 50%; transform: translateX(-50%); font-size: 2.8rem;
    font-weight: 800; color: #ffffff; text-transform: uppercase; letter-spacing: 4px; z-index: 20;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.6), 0 0 20px rgba(40, 204, 67, 0.4); pointer-events: none; white-space: nowrap;
    animation: subtleLevitateTitle 3s ease-in-out infinite;
}
@keyframes subtleLevitateTitle {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); text-shadow: 0 15px 25px rgba(0, 0, 0, 0.4), 0 0 30px rgba(40, 204, 67, 0.6); }
}
[data-theme="light"] .floating-carousel-title { color: #000957; text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 20px rgba(40, 204, 67, 0.3); }

.offer-carousel-btn { background-color: rgba(255,255,255,0.15); color: #FFFFFF; border: none; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; transition: background-color 0.2s, transform 0.2s; flex-shrink: 0; z-index: 25; }
.offer-carousel-btn:hover { background-color: var(--color-verde-acento, #28CC43); transform: scale(1.1); }
[data-theme="light"] .offer-carousel-btn { background-color: #FFFFFF; color: #000957; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
[data-theme="light"] .offer-carousel-btn:hover { background-color: var(--color-verde-acento, #28CC43); color: #FFFFFF; }

.offer-carousel-track-wrapper { width: 100%; overflow-x: auto; overflow-y: hidden; position: relative; padding: 80px 0; perspective: 1200px; scrollbar-width: none; -ms-overflow-style: none; z-index: 1; }
.offer-carousel-track-wrapper::-webkit-scrollbar { display: none; }
.offer-carousel-track { display: flex; gap: 30px; width: max-content; align-items: center; }
.offer-card { position: relative; width: 250px; height: 180px; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.4); transform: scale(0.8) translateZ(-100px); opacity: 0.6; transition: transform 0.5s ease, opacity 0.5s ease; flex-shrink: 0; cursor: pointer; }
.offer-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.offer-card.center-focused { animation: breathCycle 4s cubic-bezier(0.4, 0, 0.2, 1) forwards; z-index: 10; }

@keyframes breathCycle {
    0% { transform: scale(0.8) translateZ(-100px); opacity: 0.6; }
    37.5% { transform: scale(1.6) translateZ(50px); opacity: 1; box-shadow: 0 30px 60px rgba(0,0,0,0.6); }
    62.5% { transform: scale(1.6) translateZ(50px); opacity: 1; box-shadow: 0 30px 60px rgba(0,0,0,0.6); }
    100% { transform: scale(0.8) translateZ(-100px); opacity: 0.6; }
}

.btn-view-dynamic { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%) translateY(20px); background-color: var(--color-verde-acento, #28CC43); color: #ffffff; border: none; padding: 8px 20px; border-radius: 20px; font-weight: bold; font-size: 0.8rem; opacity: 0; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.5); transition: opacity 0.3s ease, transform 0.3s ease; pointer-events: none; }
.offer-card.center-focused .btn-view-dynamic { animation: showBtnView 4s ease forwards; pointer-events: auto; }
@keyframes showBtnView { 0%, 30% { opacity: 0; transform: translateX(-50%) translateY(20px); } 40%, 60% { opacity: 1; transform: translateX(-50%) translateY(0); } 70%, 100% { opacity: 0; transform: translateX(-50%) translateY(20px); } }
.btn-view-dynamic:hover { background-color: #21a836; transform: translateX(-50%) translateY(-2px) !important; }

/* ==========================================================================
 * MODAL DINÁMICO DE FOLLETOS CON ZOOM (ESCRITORIO & MÓVIL)
 * ========================================================================== */

.dynamic-img-modal-overlay { 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background-color: rgba(0, 0, 0, 0.7); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px); 
    z-index: 3000; 
    display: flex; align-items: center; justify-content: center; 
    opacity: 0; visibility: hidden; 
    transition: opacity 0.3s ease, visibility 0.3s ease; 
}
.dynamic-img-modal-overlay.active { opacity: 1; visibility: visible; }

.dynamic-modal-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 50px; 
    width: 100%;
    height: 100%;
    padding: 30px;
    pointer-events: none; 
}

.dynamic-modal-main-col, .dynamic-modal-side-col {
    pointer-events: auto;
}

.dynamic-modal-main-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dynamic-img-wrapper {
    position: relative;
    border-radius: 15px;
    background-color: transparent; 
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.zoom-image-container {
    overflow: auto;
    max-width: 75vw;
    max-height: 92vh; 
    border-radius: 15px;
    scrollbar-width: auto; 
    scrollbar-color: var(--color-verde-acento, #28CC43) rgba(255, 255, 255, 0.1);
}

.zoom-image-container::-webkit-scrollbar { 
    width: 18px; 
    height: 18px; 
}
.zoom-image-container::-webkit-scrollbar-track { 
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 10px; 
}
.zoom-image-container::-webkit-scrollbar-thumb { 
    background-color: var(--color-verde-acento, #28CC43); 
    border-radius: 10px; 
    border: 4px solid rgba(0, 0, 0, 0.5); 
}
.zoom-image-container::-webkit-scrollbar-corner { 
    background: transparent; 
}

.dynamic-rendered-img {
    width: auto;
    height: 88vh; 
    display: block;
    transition: height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.close-dynamic-modal { 
    position: absolute; 
    top: -15px; right: -15px;  
    background-color: var(--color-verde-acento, #28CC43); color: #ffffff; 
    border: none; width: 40px; height: 40px; border-radius: 50%; 
    cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.5); transition: transform 0.2s, background-color 0.2s; z-index: 3010; 
}
.close-dynamic-modal:hover { background-color: #21a836; transform: scale(1.1) rotate(90deg); }

.dynamic-modal-side-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px; 
}

.zoom-controls-container {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 15px;
    background: rgba(0, 9, 87, 0.7);
    padding: 20px 25px;
    border-radius: 20px;
    border: 1px solid rgba(40, 204, 67, 0.4);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.zoom-label {
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.zoom-buttons-group {
    display: flex;
    gap: 15px;
}

.zoom-btn {
    background: var(--color-verde-acento, #28CC43);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    user-select: none;
    -webkit-user-select: none;
}
.zoom-btn:hover {
    transform: scale(1.1);
    background: #21a836;
}

.dynamic-btn-container {
    margin: 0;
}

.dynamic-contact-btn { 
    display: inline-block; background-color: var(--color-verde-acento, #28CC43); 
    color: #ffffff; padding: 15px 40px; border-radius: 50px; font-size: 1.1rem; 
    font-weight: 800; text-decoration: none; text-transform: uppercase; letter-spacing: 1px; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(40, 204, 67, 0.4); 
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease; 
}
.dynamic-contact-btn:hover { transform: translateY(-5px); background-color: #21a836; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 30px rgba(40, 204, 67, 0.6); color: #ffffff; }

/* ==========================================================================
 * 6. SECCIÓN DE SECTORES (CARRUSEL TIPO BARAJA / STACK)
 * ========================================================================== */

.application-sectors-section {
    padding: 80px 40px;
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

.sectors-main-container {
    background: rgba(0, 9, 87, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(40, 204, 67, 0.4);
    border-radius: 25px;
    padding: 60px 50px;
    width: 100%;
    max-width: 850px; 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
}

[data-theme="light"] .sectors-main-container {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.sectors-main-title {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 40px;
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(40, 204, 67, 0.6);
    text-align: center;
}

[data-theme="light"] .sectors-main-title {
    color: #000957;
    text-shadow: 0 2px 5px rgba(255, 255, 255, 0.8), 0 0 15px rgba(40, 204, 67, 0.3);
}

.stack-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.stack-scene {
    position: relative;
    width: 320px;
    height: 420px;
    perspective: 1000px;
}

.sector-stack-item {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #00063d;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(255,255,255,0.05);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

[data-theme="light"] .sector-stack-item {
    background-color: #CFD5E1;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255,255,255,0.5);
}

.sector-stack-item.pos-0 {
    transform: translateY(0) scale(1);
    opacity: 1;
    z-index: 3;
}
.sector-stack-item.pos-0:hover {
    box-shadow: 0 20px 50px rgba(40, 204, 67, 0.4), 0 0 20px rgba(40, 204, 67, 0.2);
    transform: translateY(-5px) scale(1.02);
}

.sector-stack-item.pos-1 {
    transform: translateY(-25px) scale(0.92);
    opacity: 0.85;
    z-index: 2;
}

.sector-stack-item.pos-2 {
    transform: translateY(-50px) scale(0.84);
    opacity: 0.5;
    z-index: 1;
}

.sector-stack-item.slide-out-right {
    transform: translateX(120%) rotate(10deg) scale(0.9) !important;
    opacity: 0 !important;
    z-index: 4;
}

.sector-stack-item.slide-in-left {
    transform: translateX(-120%) rotate(-10deg) scale(0.9) !important;
    opacity: 0 !important;
    z-index: 4;
}

.sector-img-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.sector-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    pointer-events: none;
}

.sector-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sector-info h3 {
    color: var(--color-verde-acento, #28CC43);
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 800;
    text-align: center;
}

.sector-info p {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    overflow-wrap: break-word;
    word-spacing: -0.05em;
    margin: 0;
}

[data-theme="light"] .sector-info h3 { color: var(--color-verde-acento, #28CC43); }
[data-theme="light"] .sector-info p { color: #000957; }

.stack-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 20px;
    pointer-events: none;
    z-index: 15;
}

.stack-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.stack-arrow:hover {
    background-color: var(--color-verde-acento, #28CC43);
    border-color: var(--color-verde-acento, #28CC43);
    transform: scale(1.1);
}

[data-theme="light"] .stack-arrow {
    background-color: rgba(0, 9, 87, 0.05);
    color: #000957;
    border-color: rgba(0, 9, 87, 0.1);
}

[data-theme="light"] .stack-arrow:hover {
    background-color: #000957;
    color: #ffffff;
}

.application-sectors-section.reveal-on-scroll {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.application-sectors-section.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================================================
 * 7. BANNER DE CONSULTORÍAS
 * ========================================================================== */

.consulting-banner-wrapper { }
.consulting-door::before { background-image: url('/Imagenes/servicios/consultoria.webp') !important; }

/* ==========================================================================
 * 8. SECCIÓN: ACOMPAÑAMIENTO CONTINUO (ESCRITORIO E INTRODUCCIÓN)
 * ========================================================================== */

.continuous-support-section { padding: 80px 40px; position: relative; z-index: 5; display: flex; justify-content: center; overflow-x: hidden; }
.support-container { display: flex; align-items: center; justify-content: space-between; max-width: 1300px; width: 100%; gap: 50px; }

.support-text-card { flex: 1.2; background-color: #00063d; border-radius: 25px; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255,255,255,0.05); position: relative; overflow: hidden; }
[data-theme="light"] .support-text-card { background-color: #CFD5E1; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255,255,255,0.5); }

.support-text-content { padding: 50px; opacity: 0; transform: translateY(20px); }
.support-text-content h3 { color: var(--color-verde-acento, #28CC43); font-size: 2rem; margin-bottom: 25px; font-weight: 800; text-align: center; }
[data-theme="light"] .support-text-content h3 { color: var(--color-verde-acento, #28CC43); }
.support-text-content p { color: #ffffff; font-weight: 700; font-size: 1.1rem; line-height: 1.7; text-align: justify; text-align-last: left; hyphens: auto; -webkit-hyphens: auto; -ms-hyphens: auto; overflow-wrap: break-word; word-spacing: -0.05em; margin: 0; }
[data-theme="light"] .support-text-content p { color: #000957; }

.bars-reveal-grid { position: absolute; inset: 0; display: flex; gap: 4px; z-index: 10; pointer-events: none; }
.reveal-bar { flex: 1; background-color: var(--color-verde-acento, #28CC43); transform-origin: top; transform: scaleY(0); }
.continuous-support-section.is-visible .reveal-bar { animation: barDropAndOpen 2s cubic-bezier(0.8, 0, 0.2, 1) forwards; }
.reveal-bar:nth-child(1) { animation-delay: 0.0s; } .reveal-bar:nth-child(2) { animation-delay: 0.1s; } .reveal-bar:nth-child(3) { animation-delay: 0.2s; }
.reveal-bar:nth-child(4) { animation-delay: 0.3s; } .reveal-bar:nth-child(5) { animation-delay: 0.4s; } .reveal-bar:nth-child(6) { animation-delay: 0.5s; }

@keyframes barDropAndOpen {
    0%   { transform: scaleY(0) scaleX(1); transform-origin: top; opacity: 1; }
    25%  { transform: scaleY(1) scaleX(1); transform-origin: top; opacity: 1; }
    30%  { transform: scaleY(1) scaleX(1); transform-origin: center; opacity: 1; }
    60%  { transform: scaleY(1) scaleX(1); transform-origin: center; opacity: 1; }
    100% { transform: scaleY(1) scaleX(0); transform-origin: center; opacity: 0; }
}

.continuous-support-section.is-visible .support-text-content { animation: fadeInTextBehindBars 1s ease forwards; animation-delay: 1.2s; }
@keyframes fadeInTextBehindBars { to { opacity: 1; transform: translateY(0); } }

.support-image-wrapper { flex: 0.8; display: flex; justify-content: center; align-items: center; }

/* ==========================================================================
 * 10. TARJETAS DE CONSULTORÍAS (STAGGERED GRID & STICKY CTA)
 * ========================================================================== */

.consulting-cards-section {
    padding: 100px 40px;
    position: relative;
    z-index: 5;
    overflow-x: hidden;
}

.consulting-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.consulting-cta-col {
    position: sticky;
    top: 150px;
    display: flex;
    justify-content: flex-start;
}

.consulting-sticky-btn {
    display: inline-block;
    background-color: var(--color-verde-acento, #28CC43);
    color: #ffffff;
    padding: 18px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(40, 204, 67, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.consulting-sticky-btn:hover {
    transform: translateY(-5px);
    background-color: #21a836;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 30px rgba(40, 204, 67, 0.5);
    color: #ffffff;
}

.consulting-col-center,
.consulting-col-right {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.consulting-col-right { margin-top: 150px; }

.consulting-card {
    background-color: #00063d;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255,255,255,0.05);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-theme="light"] .consulting-card {
    background-color: #CFD5E1;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255,255,255,0.5);
}

.consulting-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.consulting-card-img-wrapper {
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.consulting-card-parallax {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: var(--bg-pan, 0%);
    will-change: background-position, transform;
    transition: transform 0.5s ease;
}

.consulting-card:hover .consulting-card-parallax {
    transform: scale(1.05);
}

.consulting-card-body { padding: 30px; }

.consulting-card-body h3 {
    color: var(--color-verde-acento, #28CC43);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

[data-theme="light"] .consulting-card-body h3 { color: var(--color-verde-acento, #28CC43); }

.consulting-card-body p {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    overflow-wrap: break-word;
    word-spacing: -0.05em;
    margin: 0;
}

[data-theme="light"] .consulting-card-body p { color: #000957; }

/* ==========================================================================
 * 11. DISEÑO RESPONSIVO (MÓVILES Y TABLETS)
 * ========================================================================== */

@media (max-width: 992px) {
    .solutions-grid { grid-template-columns: 1fr; gap: 30px; }
    .pillars-container { flex-wrap: wrap; }
    .pillar-pill { flex: 1 1 calc(50% - 20px); }
    .floating-carousel-title { font-size: 2.2rem; top: -50px; }
    .sectors-grid { grid-template-columns: 1fr; }
    .sectors-main-title { font-size: 2.8rem; }
    .support-container { flex-direction: column; gap: 30px; }
    .support-image-wrapper { width: 100%; }

    .consulting-grid-container { grid-template-columns: 1fr; gap: 40px; }
    .consulting-cta-col { position: static; justify-content: center; margin-bottom: 20px; }
    .consulting-col-right { margin-top: 0; }
    .consulting-col-center, .consulting-col-right { gap: 40px; }

    .services-banner-wrapper,
    .consulting-banner-wrapper { 
        height: auto; 
    }
    
    .services-banner-section,
    .consulting-banner-section { 
        position: relative; 
        top: 0; 
    }
}

@media (max-width: 768px) {
    .services-hero-content { margin: 0 20px; padding: 40px 20px; }
    .services-hero-content h1 { font-size: 2.2rem; }
    .services-hero-content p { font-size: 1.1rem; }
    .comprehensive-solutions-section { padding: 40px 20px; }
    .solutions-content-card { padding: 30px 20px; }
    .card-text-content h3 { font-size: 1.6rem; }
    .services-banner-section { padding: 0 20px; height: 25vh; }
    .banner-title { font-size: 2.2rem; }
    .pillars-section { padding: 40px 20px 60px 20px; }
    .pillars-container { flex-direction: column; }
    .pillar-pill { flex: 1 1 100%; padding: 20px; }
    .pillar-read-more { font-size: 0.95rem; }
    .pillar-modal-content { padding: 30px 20px; }
    .modal-main-title { font-size: 1.3rem; }
    .floating-carousel-title { font-size: 1.6rem; top: -40px; }
    
    /* ESTILOS DE AUTO-HOVER SECUENCIAL PARA PILARES MÓVILES */
    .pillar-pill.auto-hover-active {
        transform: translateY(-10px) scale(1.05) !important;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 20px rgba(40, 204, 67, 0.2) !important;
        border-color: rgba(40, 204, 67, 0.4) !important;
        z-index: 10;
    }

    [data-theme="light"] .pillar-pill.auto-hover-active {
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15), 0 0 20px rgba(40, 204, 67, 0.3) !important;
        border-color: var(--color-verde-acento, #28CC43) !important;
    }
    
    /* ==========================================================================
     * REINGENIERÍA EXCLUSIVA PARA MÓVIL: SECCIÓN ACOMPAÑAMIENTO CONTINUO
     * Solución elástica definitiva: Eliminamos restricciones rígidas.
     * Permitimos que la caja crezca orgánicamente adaptándose al texto en español.
     * ========================================================================== */
    .continuous-support-section { 
        padding: 40px 20px; 
        display: block;
    }
    .support-text-card {
        width: 100% !important;
        height: auto !important; /* Rompe bloqueos de renderizado */
        min-height: auto !important;
        display: block !important;
        overflow: visible !important; /* Evita recortes de cajas absolutas subyacentes */
    }
    .support-text-content { 
        padding: 35px 22px 85px 22px !important; /* Colchón de 85px abajo para asegurar el texto en español */
        height: auto !important;
        min-height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .support-text-content p {
        margin-bottom: 0 !important;
        line-height: 1.65;
        display: block !important;
        height: auto !important;
    }

    /* ==========================================================================
     * OPCIÓN 1 NATIVA - MÓVIL: SCROLL SNAP (SECTORES DE APLICACIÓN)
     * ========================================================================== */
    .application-sectors-section { 
        padding: 40px 20px; 
    }
    
    .sectors-main-container { 
        padding: 40px 20px; 
    }
    
    .sectors-main-title { 
        font-size: 2.2rem; 
        margin-bottom: 20px; 
    }

    .stack-container { 
        height: auto; 
        margin-top: 10px; 
        width: 100%;
    }
    
    .stack-scene { 
        width: 100%; 
        height: auto; 
        display: flex;
        gap: 20px; 
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 10px; 
        overscroll-behavior-x: contain; 
    }
    .stack-scene::-webkit-scrollbar { display: none; }

    .sector-stack-item {
        position: relative !important;
        flex: 0 0 100%; 
        height: auto;
        scroll-snap-align: center;
        contain: content;
        scroll-snap-stop: always;
        transition: none !important;
        transform: translateZ(0) !important; 
        will-change: transform, scroll-position !important; 
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        opacity: 1 !important;
    }

    .sector-stack-item.pos-0,
    .sector-stack-item.pos-1,
    .sector-stack-item.pos-2,
    .sector-stack-item.slide-out-right,
    .sector-stack-item.slide-in-left {
        transform: translateZ(0) !important;
        opacity: 1 !important;
    }

    .stack-nav { 
        padding: 0 10px; 
        top: 40%; 
    }
    
    .stack-arrow { 
        opacity: 0; 
        pointer-events: none; 
        transition: opacity 0.3s ease; 
        width: 40px; 
        height: 40px; 
    }
    
    .stack-container.user-interacting .stack-arrow { 
        opacity: 1; 
        pointer-events: auto; 
    }

    .sector-img-wrapper { height: 140px; }
    
    .sector-img-wrapper img {
        transition: none !important;
        transform: translateZ(0);
        will-change: transform;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .sector-info { padding: 15px; }
    .sector-info h3 { font-size: 1.2rem; margin-bottom: 10px; }
    .sector-info p { font-size: 0.85rem; }

    .pillars-intro-box p {
        text-align: justify;
        text-align-last: left;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        overflow-wrap: break-word;
        word-spacing: -0.05em;
    }

    body.pillar-modal-open #mainHeader,
    body.dynamic-modal-open #mainHeader {
        display: none !important;
    }

    .offer-card { width: 200px; height: 140px; }

    .offer-carousel-track-wrapper {
        padding-left: calc(50vw - 100px); 
        padding-right: calc(50vw - 100px);
        scroll-snap-type: x mandatory;
    }
    
    .offer-card {
        scroll-snap-align: center;
    }

    .offerings-carousel-container {
        padding-bottom: 70px; 
    }

    .offer-carousel-btn {
        position: absolute;
        bottom: 0;
        top: auto;
        opacity: 0; 
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .prev-offer-btn { left: calc(50% - 60px); }
    .next-offer-btn { right: calc(50% - 60px); }

    .offerings-carousel-container.user-interacting .offer-carousel-btn {
        opacity: 1;
        pointer-events: auto;
    }
       
    .offerings-section {
        min-height: auto; 
        padding: 40px 0 10px 0; 
    }

    .application-sectors-section.reveal-on-scroll {
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .consulting-banner-section .banner-title-wrapper {
        margin-top: 60px; 
    }

    .dynamic-modal-layout {
        flex-direction: column;
        gap: 0;
        padding: 0;
        height: 100dvh; 
        height: 100vh;
        justify-content: space-between; 
    }

    .zoom-controls-container {
        display: none !important; 
    }

    .dynamic-modal-main-col {
        flex: 1; 
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center; 
        align-items: center;
        overflow: hidden;
        padding-top: 60px; 
        padding-bottom: 10px;
    }

    .dynamic-img-wrapper {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .zoom-image-container {
        max-width: 100vw;
        height: 100%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .dynamic-rendered-img {
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: contain !important; 
        object-position: center !important; 
    }

    .close-dynamic-modal {
        top: 15px;
        right: 15px;
        position: fixed;
        width: 35px; height: 35px; font-size: 1rem;
        z-index: 3020;
    }
    
    .dynamic-modal-side-col {
        width: 100%;
        padding: 15px;
        background-color: #00084d; 
        border-top: 1px solid rgba(40, 204, 67, 0.4);
        display: flex;
        justify-content: center;
        align-items: center;
        flex-shrink: 0; 
    }

    .dynamic-contact-btn { padding: 12px 30px; font-size: 1rem; }
}
