/* =========================================================================
   ESTILOS GENERALES Y CABECERA LIMPIA
   Namespace: .cifras-landing
   ========================================================================= */
.cifras-landing .seccion-cifras {
    background-color: #ffffff;
    padding: 40px 0; 
}

.cifras-landing .cifras-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: transparent;
    margin-bottom: 20px;
}

.cifras-landing .cifras-icon-wrapper img {
    width: 50px; 
    height: auto;
}

.cifras-landing .cifras-title {
    color: #911046; 
    font-weight: 800;
    margin: 0;
    font-size: 2.5rem;
}

/* =========================================================================
   SEPARADOR MATRIX (CANVAS JS)
   ========================================================================= */
.cifras-landing .cifras-matrix-spacer-js {
    width: 100%;
    height: 120px;
    margin: 0 auto 30px auto;
    max-width: 900px;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent), linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent), linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.cifras-landing canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* =========================================================================
   FRASE BREVE Y CAJA DE CIFRAS CON BRILLO
   ========================================================================= */
.cifras-landing .texto-italico-cifras {
    font-size: 1.2rem;
    color: #6c757d;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
}

.cifras-landing .cifras-data-card {
    background-color: #911046; 
    color: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(145, 16, 70, 0.3);
    max-width: 450px;
    margin: 0 auto 50px auto;
    position: relative;
    overflow: hidden; 
}

.cifras-landing .cifras-data-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shimmerGlow 4s infinite;
    z-index: 1;
}

@keyframes shimmerGlow {
    0% { left: -150%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.cifras-landing .cifras-data-card .card-body {
    padding: 30px;
    position: relative;
    z-index: 2;
}

.cifras-landing .card-main-number {
    font-size: 3.5rem; 
    font-weight: 800;
    line-height: 1;
    display: block;
    margin-bottom: 5px;
}

.cifras-landing .card-label {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* =========================================================================
   TABLAS DE DATOS
   ========================================================================= */
.cifras-landing .cifras-table-wrapper {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden; 
}

.cifras-landing .tabla-datos-cifras {
    margin-bottom: 0; 
    width: 100%;
    border-collapse: collapse;
}

.cifras-landing .tabla-datos-cifras thead th {
    background-color: #911046; 
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 18px 15px;
    border: none;
    text-align: center;
}

.cifras-landing .tabla-datos-cifras thead th.text-start { text-align: left; }

.cifras-landing .tabla-datos-cifras tbody td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
    color: #4A0E2A !important; 
    text-align: center;
}

.cifras-landing .tabla-datos-cifras tbody td.text-start {
    text-align: left; 
    font-weight: 600;
}

.cifras-landing .cifras-negative {
    color: #ba372a !important; 
    font-weight: 700;
}

.cifras-landing .tabla-datos-cifras .fila-total td {
    background-color: #f8f9fa; 
    color: #4A0E2A !important; 
    font-weight: 800 !important; 
}

/* =========================================================================
   ADAPTACIÓN PARA SMARTPHONES (Evita que la tabla se corte)
   ========================================================================= */
@media (max-width: 768px) {
    /* Reducimos el padding y la fuente de la tabla para que quepan las 5 columnas */
    .cifras-landing .tabla-datos-cifras thead th {
        padding: 12px 6px;
        font-size: 0.7rem;
        letter-spacing: 0;
    }
    
    .cifras-landing .tabla-datos-cifras tbody td,
    .cifras-landing .tabla-datos-cifras .fila-total td {
        padding: 12px 6px;
        font-size: 0.85rem;
    }
    
    /* Ajustes menores para elementos grandes en móvil */
    .cifras-landing .cifras-title {
        font-size: 2rem;
    }
    
    .cifras-landing .card-main-number {
        font-size: 2.8rem;
    }
}