/* Design System: Página Felipe (Tesla Header + Huawei Hero + Microsoft Grid + Genesys Columns + Apple Footer & Motion + Chat Widget) */
:root,
body[data-theme="brand"] {
    --bg-main: #10283D;
    --bg-alt: #142C42;
    --bg-card: #163654;
    --nav-bg: rgba(16, 40, 61, 0.90);
    --text-primary: #FFFFFF;
    --text-muted: #D9E2EF;
    --accent-blue: #60A5FA;
    --accent-primary: #0B63CE;
    --accent-hover: #2F7FD6;
    --border-soft: rgba(255, 255, 255, 0.15);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.25);
    --chat-bg: #142C42;
}

body[data-theme="light"] {
    --bg-main: #FFFFFF;
    --bg-alt: #F5F8FC;
    --bg-card: #FFFFFF;
    --nav-bg: rgba(255, 255, 255, 0.90);
    --text-primary: #0E1B35;
    --text-muted: #5D6B82;
    --accent-blue: #0284C7;
    --accent-primary: #0284C7;
    --accent-hover: #0369A1;
    --border-soft: #D9E2EF;
    --shadow-card: 0 10px 30px rgba(16, 40, 61, 0.08);
    --chat-bg: #FFFFFF;
}

body[data-theme="dark"] {
    --bg-main: #000000;
    --bg-alt: #121214;
    --bg-card: #1C1C1E;
    --nav-bg: rgba(0, 0, 0, 0.90);
    --text-primary: #F5F5F7;
    --text-muted: #86868B;
    --accent-blue: #38BDF8;
    --accent-primary: #38BDF8;
    --accent-hover: #0284C7;
    --border-soft: rgba(255, 255, 255, 0.12);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
    --chat-bg: #1C1C1E;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Selector de Tema */
.theme-selector-box {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px;
    border-radius: 20px;
    border: 1px solid var(--border-soft);
}

.theme-btn {
    border: none;
    background: transparent;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.theme-btn.active {
    background: var(--accent-primary);
    color: #FFFFFF !important;
}

/* ===================================================
   1. ENCABEZADO DE TESLA (Glassmorphism Fijo Ultralimpio)
   =================================================== */
.header-tesla {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 52px;
    background-color: var(--nav-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 9999;
    border-bottom: 1px solid var(--border-soft);
}

.header-tesla-inner {
    max-width: 1250px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.brand-tesla {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-tesla img {
    height: 26px;
    width: auto;
}

.brand-tesla span {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.nav-tesla-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-tesla-links li {
    position: relative;
}

.nav-tesla-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    opacity: 0.85;
    padding: 14px 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-tesla-links a:hover,
.nav-tesla-links a.active {
    opacity: 1;
    color: #0B63CE;
}

.nav-tesla-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2.5px;
    background-color: #0B63CE;
    border-radius: 2px;
}

.chevron-icon {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.nav-dropdown-item:hover .chevron-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu Desplegable */
.nav-dropdown-item .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 8px 0;
    min-width: 230px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 1000;
}

.nav-dropdown-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    padding: 10px 18px;
    display: block;
    font-size: 0.82rem;
    color: #1E293B;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
    background: #F1F5F9;
    color: #0B63CE;
}

/* Botón Solicitar demo en Header */
.btn-demo-header {
    background: #0066FF;
    color: #FFFFFF;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3);
}

.btn-demo-header svg {
    width: 14px;
    height: 14px;
}

.btn-demo-header:hover {
    background: #0052CC;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 102, 255, 0.45);
}

.btn-hamburger-tesla {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* ===================================================
   2. BANNER PRINCIPAL CON CARRUSEL (VCC Nexus Banners)
   =================================================== */
.hero-huawei-carousel {
    margin-top: 52px;
    position: relative;
    width: 100%;
    min-height: 480px;
    height: calc(100vw * 0.48);
    max-height: 720px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-soft);
    background-color: #F8FAFC;
}

.hw-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    display: flex;
    align-items: center;
}

.hw-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Staggered Animations for Active Slide Content */
.hw-slide .hw-title,
.hw-slide .hw-desc,
.hw-slide .hw-actions,
.hw-slide .hw-accent-line {
    opacity: 0;
    transform: translateY(22px);
}

.hw-slide.active .hw-title {
    animation: slideUpFade 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.hw-slide.active .hw-accent-line {
    animation: slideScaleX 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

.hw-slide.active .hw-desc {
    animation: slideUpFade 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hw-slide.active .hw-actions {
    animation: slidePopFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.42s forwards;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideScaleX {
    0% {
        opacity: 0;
        transform: scaleX(0);
        transform-origin: left center;
    }

    100% {
        opacity: 1;
        transform: scaleX(1);
        transform-origin: left center;
    }
}

@keyframes slidePopFade {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hw-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 40% 50%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.05) 75%);
    pointer-events: none;
}

.hw-overlay-right {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.68) 40%, rgba(255, 255, 255, 0.95) 85%) !important;
}

.hw-slide-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1300px;
    height: 100%;
    margin: 0 auto;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hw-slide.align-right .hw-slide-container {
    align-items: flex-end;
}

.hw-slide-content {
    max-width: 580px;
    color: #0E1B35;
}

.hw-slide-content.content-center-slide1 {
    margin-left: 66%;
    margin-right: 0;
    max-width: 440px;
}

.hw-slide-content.content-center-slide3 {
    margin-left: 16%;
    margin-right: auto;
    max-width: 440px;
}

.hw-slide-content.content-right {
    margin-left: auto;
    margin-right: 0;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 32px 38px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 35px rgba(11, 99, 206, 0.08);
}

.hw-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 900;
    line-height: 1.15;
    color: #0B2545;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hw-title .highlight-blue {
    color: #0B63CE;
}

.hw-accent-line {
    width: 60px;
    height: 4px;
    background-color: #0B63CE;
    border-radius: 2px;
    margin-bottom: 16px;
}

.hw-desc {
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    color: #334155;
    line-height: 1.6;
    margin-bottom: 28px;
    font-weight: 500;
}

.hw-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.btn-hw-primary {
    background: #0B63CE;
    color: #FFFFFF;
    border: 2px solid #0B63CE;
    padding: 13px 26px;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(11, 99, 206, 0.25);
}

.btn-hw-primary:hover {
    background: #0284C7;
    border-color: #0284C7;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(11, 99, 206, 0.35);
}

.btn-hw-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #0B63CE;
    border: 2px solid #0B63CE;
    padding: 13px 26px;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
}

.btn-hw-secondary:hover {
    background: #0B63CE;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Feature Bar */
.hw-feature-bar {
    position: absolute;
    bottom: 35px;
    right: 35px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(11, 99, 206, 0.15);
    padding: 14px 24px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    z-index: 10;
}

.hw-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 0 10px;
    border-right: 1px solid rgba(11, 99, 206, 0.15);
}

.hw-feature-item:last-child {
    border-right: none;
}

.hw-feat-icon {
    width: 26px;
    height: 26px;
    color: #0B63CE;
}

.hw-feature-item span {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0F172A;
    max-width: 115px;
    line-height: 1.2;
}

/* Controles del Carrusel */
.hw-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255, 255, 255, 0.85);
    color: #0B63CE;
    border: 1px solid rgba(11, 99, 206, 0.2);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.hw-arrow:hover {
    background: #0B63CE;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(11, 99, 206, 0.3);
}

.hw-arrow-left {
    left: 20px;
}

.hw-arrow-right {
    right: 20px;
}

.hw-dots-container {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 8px;
}

.hw-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(11, 99, 206, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hw-dot.active {
    width: 28px;
    border-radius: 6px;
    background: #0B63CE;
}

/* Media Query para pantallas pequeñas */
@media (max-width: 992px) {
    .hw-feature-bar {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 20px;
        width: 100%;
        overflow-x: auto;
        justify-content: space-between;
    }

    .hero-huawei-carousel {
        height: auto;
        min-height: 600px;
        padding-bottom: 50px;
    }

    /* El slide activo fluye en el documento para que la sección crezca con su contenido y no recorte el título */
    .hw-slide.active {
        position: relative;
        height: auto;
        padding-top: 40px;
    }
}

/* ===================================================
   3. FILA DE ICONOS DE MICROSOFT (Accesos Rápidos)
   =================================================== */
.quick-icons-section {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-soft);
    padding: 24px 20px;
}

.quick-icons-container {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.icon-item-ms {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s ease;
}

.icon-item-ms:hover {
    transform: translateY(-4px);
    color: var(--accent-blue);
}

.icon-box-ms {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.icon-box-ms svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-blue);
}

.icon-label-ms {
    font-size: 0.8rem;
    font-weight: 700;
}

/* ===================================================
   4. SECCIONES EN CONTRASTE Y CUADRÍCULA (Microsoft)
   =================================================== */
.section-ms-grid {
    padding: 80px 20px;
    max-width: 1250px;
    margin: 0 auto;
}

.ms-header-box {
    margin-bottom: 35px;
}

.ms-h2-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 8px;
}

.ms-p-desc {
    color: var(--text-muted);
    font-size: 1rem;
}

.ms-grid-4col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.ms-card-box {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.ms-card-box:hover {
    transform: translateY(-4px);
    border-color: var(--accent-blue);
}

.ms-card-img {
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid var(--border-soft);
}

.ms-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bloque en Contraste Cromatico */
.section-contrast-block {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    padding: 80px 20px;
}

.contrast-inner {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* ===================================================
   5. ESTRUCTURA EN COLUMNAS ZIG-ZAG (Estilo Genesys)
   =================================================== */
.section-genesys-columns {
    padding: 80px 20px;
    max-width: 1250px;
    margin: 0 auto;
}

.genesys-column-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.genesys-column-row.reverse {
    direction: rtl;
}

.genesys-column-row.reverse>* {
    direction: ltr;
}

.column-img-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
}

.column-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.column-text-wrap h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.column-text-wrap p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.check-list-vjnet {
    list-style: none;
    margin-bottom: 24px;
}

.check-list-vjnet li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-list-vjnet li::before {
    content: "✓";
    color: var(--accent-blue);
    font-weight: bold;
}

/* ===================================================
   6. ANIMACIÓN SUTIL DE ENTRADA AL SCROLL (Estilo Apple Oficial)
   =================================================== */
.apple-subtle-reveal {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-subtle-reveal.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ===================================================
   7. WIDGET FLOTANTE DE ASISTENTE DE CHAT (Requerimiento PDF)
   =================================================== */
.chat-widget-floating {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Globo de Diálogo de Historieta */
.chat-speech-bubble {
    position: relative;
    background: #FFFFFF;
    color: #0F172A;
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #E2E8F0;
    margin-bottom: 12px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
    white-space: nowrap;
    pointer-events: none;
}

/* Triángulo indicador estilo cómic apuntando abajo */
.speech-bubble-arrow {
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #FFFFFF;
}

/* Estado oculto automáticamente, pero reaparece junto con la animación del botón cada 20s */
.chat-speech-bubble.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    animation: attention-bubble 20s infinite;
}

@keyframes attention-bubble {
    0%, 90% { opacity: 0; visibility: hidden; transform: translateY(6px); }
    92% { opacity: 1; visibility: visible; transform: translateY(0); }
    98% { opacity: 1; visibility: visible; transform: translateY(0); }
    100% { opacity: 0; visibility: hidden; transform: translateY(6px); }
}

/* Reaparece suavemente al pasar el mouse sobre el widget y detiene la animación para quedarse */
.chat-widget-floating:hover .chat-speech-bubble.hidden {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: none;
}

/* Botón Circular Gris desde el inicio */
.chat-trigger-btn.gray-circle {
    background: transparent;
    color: #FFFFFF;
    border: none;
    width: 60px;
    height: 60px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
    transition: transform 0.25s ease;
    animation: attention-wiggle 20s infinite;
}

@keyframes attention-wiggle {
    0%, 90% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 0 rgba(59, 130, 246, 0)); }
    92% { transform: scale(1.15) rotate(-8deg); filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.8)); }
    94% { transform: scale(1.15) rotate(8deg); filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.8)); }
    96% { transform: scale(1.15) rotate(-8deg); filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.8)); }
    98% { transform: scale(1.15) rotate(0deg); filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.8)); }
    100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 0 rgba(59, 130, 246, 0)); }
}

.chat-trigger-btn.gray-circle:hover {
    animation: none;
    background: transparent;
    transform: scale(1.1);
    box-shadow: none;
}

.chat-trigger-btn.gray-circle .chat-avatar-thumb {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: contain;
    border: none;
    transition: filter 0.3s ease;
}

/* Si es modo claro Y el usuario ya bajó (pasó la zona oscura del hero), oscurecer el icono a gris */
body[data-theme="light"].scrolled-past-hero .chat-trigger-btn.gray-circle .chat-avatar-thumb {
    filter: brightness(0) invert(0.4);
}

/* Ventana Emergente de Chat */
.chat-window-modal {
    position: fixed;
    bottom: 84px;
    right: 24px;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: var(--chat-bg);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-window-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header-bar {
    background: #0066FF;
    color: #FFFFFF;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-title {
    font-size: 0.9rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-close-chat {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

.chat-body-messages {
    padding: 16px;
    height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg-alt);
}

.chat-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.chat-msg.bot {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-soft);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-msg.user {
    background: #0066FF;
    color: #FFFFFF;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-footer-input {
    padding: 10px 14px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    gap: 8px;
}

.chat-input-field {
    flex: 1;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-soft);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.82rem;
    outline: none;
}

.btn-send-chat {
    background: #0066FF;
    color: #FFFFFF;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

/* ===================================================
   8. PIE DE PÁGINA DIRECTORIO (Estilo Tipo Apple)
   =================================================== */
.footer-apple-felipe {
    background: var(--bg-alt);
    color: var(--text-muted);
    padding: 50px 20px 30px;
    border-top: 1px solid var(--border-soft);
    font-size: 0.78rem;
}

.footer-apple-inner {
    max-width: 1250px;
    margin: 0 auto;
}

.footer-disclaimer-felipe {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 24px;
    line-height: 1.6;
}

.footer-grid-5col {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.footer-col-felipe h4 {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.footer-col-felipe ul {
    list-style: none;
}

.footer-col-felipe li {
    margin-bottom: 8px;
}

.footer-col-felipe a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-col-felipe a:hover {
    color: var(--text-primary);
}

.footer-bottom-felipe {
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Responsive (<768px) */
@media (max-width: 768px) {
    /* Evita scroll horizontal por los badges decorativos que sobresalen de la imagen del hero */
    .page-hero-section {
        overflow-x: hidden;
    }

    .btn-hamburger-tesla {
        display: block;
    }

    .nav-tesla-links {
        position: fixed;
        top: 52px;
        left: 0;
        width: 100vw;
        height: calc(100vh - 52px);
        background: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-tesla-links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .contrast-inner,
    .genesys-column-row {
        grid-template-columns: 1fr;
    }

    .footer-grid-5col {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================================
   SECCIÓN PROCESO: LO MEJOR DE AMBOS MUNDOS
   =================================================== */
.process-map-section {
    padding: 70px 20px 60px;
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border-soft);
    text-align: center;
}

.process-map-container {
    max-width: 1250px;
    margin: 0 auto;
}

.process-main-title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: #0B2545;
    margin-bottom: 50px;
    letter-spacing: -0.5px;
}

.process-steps-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
}

.process-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.step-icon-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-icon-circle:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 25px rgba(11, 99, 206, 0.2);
}

.step-icon-circle svg {
    width: 30px;
    height: 30px;
    color: #FFFFFF;
}

.circle-dark-blue {
    background: linear-gradient(135deg, #0B2545 0%, #133A68 100%);
}

.circle-blue-vj {
    background: linear-gradient(135deg, #0B63CE 0%, #257CE6 100%);
}

.circle-shield {
    background: linear-gradient(135deg, #2E6BD9 0%, #4B85EE 100%);
}

.circle-cyan-cloud {
    background: linear-gradient(135deg, #0284C7 0%, #06B6D4 100%);
}

.circle-green-chart {
    background: linear-gradient(135deg, #2E9E66 0%, #38C17B 100%);
}

.step-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 6px;
    line-height: 1.25;
}

.step-desc {
    font-size: 0.82rem;
    color: #64748B;
    line-height: 1.4;
    max-width: 180px;
}

.step-arrow-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    color: #94A3B8;
}

.step-arrow-item svg {
    width: 22px;
    height: 22px;
}

.step-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.step-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================================
   SECCIÓN 2 TARJETAS: CONTROL EN TIERRA vs AGILIDAD
   =================================================== */
.dual-cards-section {
    padding: 70px 20px 80px;
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border-soft);
}

.dual-cards-container {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.dual-card-item {
    position: relative;
    border-radius: 30px;
    padding: 50px 50px 45px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 30px rgba(11, 99, 206, 0.04);
}

.dual-card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(11, 99, 206, 0.15);
}

/* Tarjeta Tierra (On-Premise) */
.card-onpremise {
    background-color: #F8FAFC;
}
.card-onpremise:hover {
    background-color: #FFFFFF;
    border-color: #0B63CE;
}

/* Tarjeta IA (Centro) */
.card-ia {
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F3FF 100%);
}
.card-ia:hover {
    background: linear-gradient(135deg, #FFFFFF 0%, #EDE9FE 100%);
    border-color: #8B5CF6;
}

/* Tarjeta Nube (Cloud) */
.card-cloud {
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F9FF 100%);
}
.card-cloud:hover {
    background: linear-gradient(135deg, #FFFFFF 0%, #E0F2FE 100%);
    border-color: #0284C7;
}

.dual-card-bg-preview {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 310px;
    height: 220px;
    background-size: contain;
    background-position: right bottom;
    background-repeat: no-repeat;
    opacity: 0.11;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dual-card-item:hover .dual-card-bg-preview {
    opacity: 0.18;
    transform: scale(1.05);
}

.dual-card-content {
    position: relative;
    z-index: 2;
}

.dual-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.dual-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dual-card-logo-box {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.dual-card-item:hover .dual-card-logo-box {
    transform: scale(1.05);
}

.dual-card-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.dual-card-icon svg {
    width: 28px;
    height: 28px;
    color: #FFFFFF;
}

.icon-dark-navy {
    background: linear-gradient(135deg, #0B2545 0%, #142C42 100%);
}

.icon-cyan-cloud {
    background: linear-gradient(135deg, #0284C7 0%, #06B6D4 100%);
}

.tag-label {
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.tag-blue {
    color: #0B63CE;
}

.tag-cyan {
    color: #0284C7;
}

.card-main-title {
    font-size: 1.7rem;
    font-weight: 900;
    color: #0F172A;
    letter-spacing: -0.5px;
}

.dual-card-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 24px;
}

.dual-card-body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #F1F5F9;
    padding-top: 20px;
}

.dual-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 65%;
}

.dual-feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1E293B;
    width: 100%;
}

.feature-link-item {
    flex: 1;
    color: inherit;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 5px;
    transition: color 0.2s ease;
    width: 100%;
}


.feature-list-icon {
    width: 20px;
    height: 20px;
    color: #0B63CE;
    flex-shrink: 0;
}

.card-cloud .feature-list-icon {
    color: #0284C7;
}


.card-arrow-action {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #F1F5FA;
    color: #0B63CE;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.card-arrow-action svg {
    width: 22px;
    height: 22px;
}

.card-arrow-action:hover {
    background: #0B63CE;
    color: #FFFFFF;
    transform: translateX(3px);
}

@media (max-width: 992px) {
    .process-steps-row {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .step-arrow-item {
        transform: rotate(90deg);
        margin: 0;
    }

    .dual-cards-container {
        grid-template-columns: 1fr;
    }
    .card-onpremise {
        border-right: none;
        border-bottom: 1px solid #E2E8F0;
    }
}

/* ===================================================
   SECCIÓN: SOLUCIONES POR NECESIDAD (4 Tarjetas Horizontales)
   =================================================== */
.solutions-by-need-section {
    padding: 70px 20px 60px;
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border-soft);
}

.solutions-container {
    max-width: 1250px;
    margin: 0 auto;
}

.solutions-main-title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: #0B2545;
    text-align: center;
    margin-bottom: 45px;
    letter-spacing: -0.5px;
}

.solutions-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sol-card-item {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.sol-card-item:hover {
    transform: translateY(-4px);
    border-color: rgba(11, 99, 206, 0.3);
    box-shadow: 0 12px 30px rgba(11, 99, 206, 0.1);
}

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

.sol-icon-circle svg {
    width: 24px;
    height: 24px;
    color: #FFFFFF;
}

.circle-blue-icon {
    background: #0B63CE;
}

.circle-purple-icon {
    background: #6366F1;
}

.circle-cyan-icon {
    background: #0284C7;
}

.circle-green-icon {
    background: #2E9E66;
}

.sol-card-text {
    flex: 1;
}

.sol-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 4px;
    line-height: 1.25;
}

.sol-desc {
    font-size: 0.8rem;
    color: #64748B;
    line-height: 1.35;
}

.sol-arrow {
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, color 0.25s ease;
    flex-shrink: 0;
}

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

.sol-card-item:hover .sol-arrow {
    color: #0B63CE;
    transform: translateX(3px);
}

/* ===================================================
   SECCIÓN BANNER CTA: UNA SOLA ESTRATEGIA
   =================================================== */
.cta-banner-section {
    padding: 50px 20px 80px;
    background-color: #F8FAFC;
    border-bottom: 1px solid var(--border-soft);
}

.cta-banner-container {
    max-width: 1250px;
    margin: 0 auto;
    background: linear-gradient(135deg, #051937 0%, #0A3C78 100%);
    border-radius: 20px;
    padding: 40px 48px;
    box-shadow: 0 15px 40px rgba(5, 25, 55, 0.22);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.cta-banner-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle at 80% 50%, rgba(56, 189, 248, 0.15) 0%, rgba(56, 189, 248, 0) 70%);
    pointer-events: none;
}

.cta-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.cta-banner-title {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 800;
    line-height: 1.25;
    max-width: 420px;
    letter-spacing: -0.3px;
}

.cta-banner-desc {
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    color: #93C5FD;
    line-height: 1.5;
    max-width: 380px;
}

.cta-banner-action {
    flex-shrink: 0;
}

.btn-cta-white {
    background: #FFFFFF;
    color: #0B3C78;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-cta-white svg {
    width: 18px;
    height: 18px;
}

.btn-cta-white:hover {
    background: #F0F9FF;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

@media (max-width: 1100px) {
    .solutions-grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-banner-title,
    .cta-banner-desc {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .solutions-grid-4col {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   8. PÁGINA DE CONTACTO (Estructura Premium 2 Columnas)
   ========================================================= */
.contact-page-wrapper {
    padding: 120px 5% 80px; /* Espacio para el header fijo */
    max-width: 1200px;
    margin: 0 auto;
}

.contact-hero-section {
    text-align: center;
    margin-bottom: 60px;
}

.contact-hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.contact-hero-section p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.contact-grid-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

/* Panel Izquierdo: Información */
.contact-info-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-card);
}

.contact-info-panel h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.contact-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.1);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-text h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Panel Derecho: Formulario Glassmorphism */
.contact-form-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.contact-form-group {
    margin-bottom: 24px;
}

.contact-form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-input,
.contact-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Ajustes para el tema claro */
body[data-theme="light"] .contact-input,
body[data-theme="light"] .contact-textarea {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-input:focus,
.contact-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);
}

.contact-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: var(--accent-primary);
    color: #FFF;
    border: none;
    padding: 16px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}

.btn-contact-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.6);
}

/* Responsive */
@media (max-width: 900px) {
    .contact-grid-container {
        grid-template-columns: 1fr;
    }
    
    .contact-page-wrapper {
        padding: 100px 5% 60px;
    }
    
    .contact-hero-section h1 {
        font-size: 2.2rem;
    }
}

/* Privacy Modal */
.privacy-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.privacy-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.privacy-modal-content {
    background: var(--bg-alt);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    color: var(--text-primary);
}
.privacy-modal-overlay.active .privacy-modal-content {
    transform: translateY(0) scale(1);
}
.privacy-modal-header {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.privacy-modal-body {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}
.privacy-modal-body ul {
    margin-top: 10px;
    margin-bottom: 10px;
    padding-left: 20px;
}
.privacy-modal-body li {
    margin-bottom: 8px;
}
.privacy-modal-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: var(--accent-blue);
    color: #fff;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}
.privacy-modal-btn:hover {
    opacity: 0.9;
}

/* -------------------------------------------
   Widgets Interactivos del Hero (Módulos VCC Nexus)
------------------------------------------- */
.hero-illustration-container {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    height: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
}

@media (max-width: 768px) {
    .hero-illustration-container {
        height: 380px;
        width: 100%;
        max-width: 100%;
    }
}

#hero-bg-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 600px;
    max-height: 520px;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 20px;
    opacity: 0.75;
    mix-blend-mode: lighten;
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 72%);
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 72%);
    transform: scale(1.05);
    transition: opacity 0.3s ease, filter 0.3s ease;
    display: block;
}

#interactive-hero-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.floating-module-link {
    position: absolute;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-decoration: none;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.4s ease, filter 0.4s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    z-index: 10;
    cursor: pointer;
    user-select: none;
    pointer-events: auto;
    
    /* Inicialmente oculto hasta que JS lo active */
    opacity: 0;
    visibility: hidden;
    filter: blur(10px);
    transform: none;
}

.floating-module-link.smoke-active {
    opacity: 1;
    visibility: visible;
    filter: blur(0);
    transform: none;
    /* Efecto de resplandor sutil sin mover la posición física */
    animation: smoke-glow 6s infinite alternate ease-in-out;
}

.floating-module-link:hover,
.floating-module-link.widget-selected {
    background: var(--widget-color, rgba(255,255,255,0.18));
    border-color: rgba(255,255,255,1);
    color: #ffffff;
    box-shadow: 0 0 25px var(--widget-color, rgba(255,255,255,0.6));
    opacity: 1 !important;
    filter: blur(0) !important;
    visibility: visible !important;
    transform: none !important; /* EL LETRERO NO SE MUEVE EN ABSOLUTO */
    animation: none !important;
    cursor: pointer;
}

/* Animación sutil de resplandor estático sin desplazar la posición */
@keyframes smoke-glow {
    0% {
        box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    }
    100% {
        box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 15px var(--widget-color, rgba(255,255,255,0.25));
    }
}


/* Target / Click highlight animation con contorno iluminado */
@keyframes highlight-contour-pulse {
    0% {
        box-shadow: var(--shadow-card), 0 0 0 0 rgba(56, 189, 248, 0);
    }
    15% {
        box-shadow: var(--shadow-card), 0 0 0 3px rgba(56, 189, 248, 0.95), 0 0 35px rgba(56, 189, 248, 0.7), inset 0 0 15px rgba(56, 189, 248, 0.25);
    }
    45% {
        box-shadow: var(--shadow-card), 0 0 0 4px rgba(96, 165, 250, 1), 0 0 50px rgba(96, 165, 250, 0.85), inset 0 0 25px rgba(96, 165, 250, 0.35);
    }
    75% {
        box-shadow: var(--shadow-card), 0 0 0 3px rgba(56, 189, 248, 0.85), 0 0 35px rgba(56, 189, 248, 0.55), inset 0 0 15px rgba(56, 189, 248, 0.2);
    }
    100% {
        box-shadow: var(--shadow-card), 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

.feature-card.highlight-contour-active {
    animation: highlight-contour-pulse 2.8s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
    scroll-margin-top: 120px;
}

html {
    scroll-behavior: smooth;
}

/* Transición horizontal suave y clara entre páginas */
body.page-enter-horizontal {
    animation: pageSlideInRight 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageSlideInRight {
    0% {
        opacity: 0;
        transform: translateX(45px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Miniaturas de preview en tarjetas de funciones */
.card-preview-thumb {
    position: relative;
    overflow: hidden;
    transition: border-color 0.45s ease, box-shadow 0.45s ease;
}

.card-preview-thumb img {
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease !important;
    transform-origin: center center;
}

.feature-card:hover .card-preview-thumb {
    border-color: rgba(96, 165, 250, 0.5) !important;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.65), 0 0 30px rgba(11, 99, 206, 0.28) !important;
}

.feature-card:hover .card-preview-thumb img {
    transform: scale(1.18) !important;
    filter: brightness(1.08) contrast(1.04) !important;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4) !important;
}

/* Botones de acción en tarjetas de funciones (Azul fuerte con letras blancas) */
.card-btn-action {
    position: relative;
    cursor: pointer;
    background: #0b63ce !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(11, 99, 206, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.card-btn-action span {
    color: #ffffff !important;
}

.card-btn-action svg {
    stroke: #ffffff !important;
}

.feature-card:hover .card-btn-action {
    background: #1573ec !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 6px 22px rgba(21, 115, 236, 0.55) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

@keyframes arrowNudgeContinuous {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(7px);
    }
}

.feature-card:hover .card-btn-action svg,
.feature-card:focus .card-btn-action svg,
.feature-card:focus-within .card-btn-action svg,
.card-btn-action:hover svg {
    animation: arrowNudgeContinuous 0.85s ease-in-out infinite !important;
}

/* Botón blanco 'Conoce más' en el hero de On-Premise, Cloud e IA */
.btn-hero-conoce-mas {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.6);
    margin-top: 28px;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    width: fit-content;
}

.btn-hero-conoce-mas:hover {
    background: #f8fafc !important;
    color: #0b63ce !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 255, 255, 0.7);
}

.btn-hero-conoce-mas svg {
    width: 20px;
    height: 20px;
    transition: transform 0.25s ease;
    animation: bounceDownSoft 1.8s infinite ease-in-out;
}

@keyframes bounceDownSoft {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}








