/* --- HERO CASE STUDY --- */
.dx-hero-case {
    /* Altura completa de la pantalla para dar impacto inicial */
    min-height: 100vh; 
}

.dx-bg-absolute {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.dx-overlay-dark {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Gradiente sutil: más oscuro a la izquierda para el texto y abajo para el texto gigante */
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 100%), 
                linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 60%);
    z-index: 1;
}

.dx-hero-spacing {
    /* Empuja el contenido un poco hacia arriba para que el texto gigante respire */
    padding-bottom: 10vw; 
}

/* El texto gigante de CasaGrande */
.dx-giant-text {
    position: absolute;
    bottom: -1vw;
    left: 49%;
    transform: translateX(-50%);
    font-size: 18vw;
    font-weight: 700;
    color: #fff;
    line-height: .75;
    letter-spacing: -.05em;
    white-space: nowrap;
    z-index: 5;
    pointer-events: none;
}
/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .dx-giant-text { 
        font-size: 26vw; 
        bottom: -3vw; 
    }
}

@media (max-width: 768px) {
    .dx-hero-case { 
        min-height: 80vh; 
    }
    .dx-hero-spacing {
        padding-bottom: 15vw;
    }
    .dx-giant-text { 
        font-size: 32vw; 
        bottom: -2vw; 
    }
}

@media (max-width: 480px) {
    .dx-giant-text { 
        font-size: 36vw; 
        bottom: -1vw; 
    }
}
.relative{
    position: relative;
}
.overflow-hidden{
    overflow: hidden;
}

/* CSS Específico para este bloque */

/* Aseguramos la proporción de las imágenes del carrusel */
.dx-gallery-item img {
    
    object-fit: cover;
    width: 100%;
    border-radius: 10px;
}
.max-95{
    max-width: 95%;
}

/* Estilos para la lista de riesgos (sin viñetas y espaciada) */

.dx-risk-list {
    /* margin-left: 0px; */
    padding-left: 20px;
}

.dx-risk-list li {
    margin-bottom: 10px;
}

.dx-risk-list li:last-child {
    margin-bottom: 0;
}

    /* --- COMPONENTE ARQUITECTURA / DEPARTAMENTOS --- */

/* Hace que la columna izquierda te persiga al bajar */
.dx-sticky-col {
    position: sticky;
    top: 120px; /* Ajusta este valor según la altura de tu menú principal */
    align-self: start; /* Vital para que el sticky funcione dentro de CSS Grid */
}

/* Tarjeta interactiva (Link) */
.dx-dept-card {
    display: block;
    padding: 40px;
    color: #111111;
    text-decoration: none;
    border-bottom: 1px solid #eaeaea;
    transition: background-color 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
    cursor: pointer;
}

/* Borde superior solo para el primer elemento (como en el diseño) */
.dx-dept-card:first-child {
    border-top: 1px solid #eaeaea;
}

/* Colores de soporte */
.dx-dept-tag {
    color: #666666;
    margin-bottom: 5px; /* Para alinearlo bien con la base del título grande */
}

/* =========================================================
   EFECTO HOVER (Inversión a Negro)
========================================================= */
.dx-dept-card:hover {
    background-color: #111111;
    color: #ffffff;
    padding-left: 50px; /* Pequeño desplazamiento hacia la derecha para feedback táctil */
    border-radius: 20px;
}

/* Cambiamos el color de los textos secundarios al estar en hover */
.dx-dept-card:hover .dx-dept-tag {
    color: rgba(255, 255, 255, 0.7);
}

.dx-dept-card:hover .dx-dept-desc {
    color: rgba(255, 255, 255, 0.9);
}
.block{
    display: block;
}

.item-areas {
    padding-bottom: 20px;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
    .dx-dept-card {
        padding: 30px 20px;
    }
    .dx-dept-card:hover {
        padding-left: 30px; /* Menos desplazamiento en tablet */
    }
}

@media (max-width: 768px) {
    /* En móviles quitamos el sticky porque las columnas se apilan */
    .dx-sticky-col {
        position: relative;
        top: 0;
    }
}

.list-none{
    list-style: none;
    padding: 0px;
}
.img-caso {
    min-height: 500px;
    border-radius: 10px;
    overflow: hidden;
}
.img-caso img{
    min-height: 550px;
    display: block;
}
.list-none li {
    margin-bottom: 20px;
}

   /* ==========================================================================
   TIMELINE DE ECOSISTEMA (NODOS Y LÍNEAS)
   ========================================================================== */

.dx-timeline-wrap {
    padding-top: 15px; /* Espacio para el nodo superior */
}

/* La línea horizontal que conecta las tarjetas */
.dx-timeline-line {
    position: absolute;
    top: 20px; /* Alineado con el centro del nodo */
    left: 15px; /* Empieza en el primer nodo */
    width: calc(100% - 30px); /* Termina en el último nodo */
    height: 1px;
    background-color: #e5e5e5;
    z-index: 1;
}

/* El punto (Nodo) de cada fase */
.dx-timeline-node {
    position: absolute;
    top: -15px; /* Lo subimos para que quede sobre el texto de FASE */
    left: 0;
    width: 12px;
    height: 12px;
    background-color: #111111;
    border-radius: 50%;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease;
}

/* Al hacer hover en la tarjeta, el nodo crece y cambia al azul vibrante de Disefix */
.dx-eco-card:hover .dx-timeline-node {
    transform: scale(1.5);
    background-color: #1a1aff; /* O el color exacto de tu CTA azul */
}

/* Ocultar la línea en móviles porque las tarjetas se apilan hacia abajo */
@media (max-width: 768px) {
    .dx-timeline-line {
        display: none;
    }
    .dx-timeline-node {
        /* En móvil podemos dejar el nodo o quitarlo, dejarlo le da estilo bullet */
        top: 2px;
    }
    .dx-timeline-wrap {
        padding-top: 0;
    }
}

   /* ==========================================================================
   COMPONENTE CTA FINAL (SPLIT BLUE) - CSS GRID 12 COLUMNAS
   ========================================================================== */

/* Contenedor principal convertido a Grid */
.dx-cta-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

/* Lado izquierdo (Imagen) - Ocupa 6 de las 12 columnas */
.dx-cta-img-box {
    grid-column: span 6;
    min-height: 50vh; /* Para asegurar que no colapse */
}

/* Lado derecho (Azul) - Ocupa 6 de las 12 columnas */
.dx-cta-blue-bg {
    grid-column: span 6;
}

/* Botón Blanco */
.dx-btn-cta-final {
    display: inline-block;
    background-color: #ffffff;
    color: #111111; 
    text-decoration: none;
    padding: 18px 45px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 18px;
    transition: transform 0.3s cubic-bezier(0.17, 0.67, 0.83, 0.67), box-shadow 0.3s ease;
    will-change: transform;
}

.dx-btn-cta-final:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

/* Utilidades de posicionamiento */
.h-100 { height: 100%; }
.h-50 { height: 50%; }
.z-10 { z-index: 10; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.bottom-40 { bottom: 40px; }
.left-40 { left: 40px; }

/* Responsive ajustes */
@media (max-width: 1024px) {
    .dx-cta-split {
        min-height: auto;
    }
    
    /* En tablet/móvil, ambas secciones pasan a ocupar las 12 columnas (apiladas) */
    .dx-cta-img-box,
    .dx-cta-blue-bg {
        grid-column: span 12;
    }
    
    .dx-cta-blue-bg {
        padding: 60px 5%;
    }
    .bottom-40 { bottom: 20px; }
    .left-40 { left: 20px; }
}

   /* ==========================================================================
   COMPONENTE: HÍBRIDO MÈTRICAS (BENTO LIGHT MODE)
   ========================================================================== */

.dx-hybrid-section {
    padding: 100px 0;
    background-color: #f4f5f7; /* Gris extra suave para contrastar con el blanco puro */
    font-family: 'Inter', sans-serif;
}

.dx-hybrid-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
}

/* --- LADO IZQUIERDO (Narrativa) --- */
.dx-hybrid-eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.dx-hybrid-title {
    line-height: 1.2;
    color: #111;
    margin-bottom: 25px;
}

.dx-hybrid-p {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 40px;
    max-width: 90%;
}

.dx-hybrid-hero-stat {
    border-top: 1px solid #ddd;
    padding-top: 30px;
}

.dx-stat-huge {
    font-size: 80px;
    font-weight: 800;
    line-height: 1;
    color: #111;
    letter-spacing: -0.04em;
    display: flex;
    align-items: flex-start;
}

.dx-color-blue {
    color: #1a1aff;
    font-size: 40px;
    margin: 5px 5px 0;
}

.dx-stat-label {
    font-size: 16px;
    color: #666;
    margin-top: 10px;
    font-weight: 500;
}

/* --- LADO DERECHO (Bento Grid) --- */
.dx-hybrid-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dx-span-2 {
    grid-column: span 2;
}

.dx-bento-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dx-bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
}

.dx-bg-blue {
    background-color: #1a1aff;
    border: none;
}

/* Textos internos de tarjetas */
.dx-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #444;
}

.dx-val-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

.dx-val-huge {
    font-size: 46px;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.03em;
    margin: 15px 0;
}

.dx-card-foot {
    font-size: 13px;
    color: #888;
}

/* Pastilla Verde */
.dx-pill-green {
    background-color: #e5f8ed;
    color: #0d8246;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
}

/* Barra progreso en tarjeta azul */
.dx-mini-bar {
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.dx-mini-fill {
    width: 85%;
    height: 100%;
    background: #fff;
    border-radius: 10px;
}

/* --- TARJETA FOTO --- */
.dx-card-photo {
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 240px;
    justify-content: flex-end;
}

.dx-photo-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}

.dx-photo-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 80%);
    z-index: 2;
}

.dx-quote-content {
    position: relative;
    z-index: 3;
    padding: 30px;
}

.dx-quote-text {
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

.dx-quote-author {
    color: #ccc;
    font-size: 13px;
    font-weight: 600;
}

/* --- LISTA DE RANKING --- */
.dx-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dx-rank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.dx-rank-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dx-rank-name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.dx-badge-black {
    background: #111;
    color: #fff;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
}

.dx-badge-gray {
    background: #f0f0f0;
    color: #555;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
}

/* Responsive */
@media (max-width: 1024px) {
    .dx-hybrid-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .dx-hybrid-p { max-width: 100%; }
}

@media (max-width: 600px) {
    .dx-hybrid-bento {
        grid-template-columns: 1fr;
    }
    .dx-span-2 {
        grid-column: span 1;
    }
    .dx-stat-huge { font-size: 60px; }
}

.dx-gallery-item {
    aspect-ratio: 4 / 4;
}

.lista-port li {
    padding-bottom: 20px;
}

.bcs {
    display: block;
}