/* ==========================================================================
   Banner DFAC Reestructurado - Tarjetas de Producto Verticales
   ========================================================================== */
.dfac-modern-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    margin: 20px 0;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(-45deg, #091216, #11252c, #0043b4, #1a2633);
    background-size: 300% 300%;
    animation: dfacGradient 12s ease infinite;
    gap: 30px;
    box-shadow: 0 12px 32px rgba(0, 67, 180, 0.25);
    overflow: hidden;
    position: relative;
}

@keyframes dfacGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── BLOQUE DE TEXTO (IZQUIERDA) ── */
.dfac-header {
    flex-shrink: 0;
    width: 280px;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.dfac-badge {
    background: rgba(0, 255, 204, 0.15);
    color: #00ffcc;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    width: max-content;
    margin-bottom: 8px;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 255, 204, 0.3);
}

.dfac-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 6px 0;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.dfac-subtitle {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #b0c4de;
    margin: 0;
}
.dfac-subtitle strong {
    color: #00ffcc;
    font-weight: 600;
}

/* ── CONTENEDOR DEL CARRUSEL (CENTRO) ── */
.dfac-carousel-container {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px 0; /* Más padding para que las tarjetas no se corten */
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.dfac-carousel-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: dfacScroll 35s linear infinite; 
    gap: 20px;
}

.dfac-carousel-track:hover {
    animation-play-state: paused;
}

/* ── NUEVAS TARJETAS VERTICALES (LA SOLUCIÓN AL RECORTE) ── */
.dfac-item {
    display: flex;
    flex-direction: column; /* Imagen arriba, texto abajo */
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff; /* Fondo blanco para fusionar con tus PNGs */
    border-radius: 12px;
    padding: 15px 10px;
    min-width: 140px; /* Ancho asegurado */
    height: 150px; /* Altura asegurada mucho más grande */
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.dfac-item img {
    height: 75px; /* Imagen gigante en comparación a antes */
    width: auto;
    max-width: 110px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.dfac-item span {
    color: #0f172a; /* Texto oscuro sobre el fondo blanco */
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    white-space: normal; /* FUNDAMENTAL: Permite que el texto baje a otra línea si es largo */
    line-height: 1.2;
    width: 100%;
}

/* Efectos Hover por tarjeta */
.dfac-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 255, 204, 0.4);
    border-color: #00ffcc;
}

.dfac-item:hover img {
    transform: scale(1.15); /* La imagen hace zoom al acercar el mouse */
}

@keyframes dfacScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* ── BOTÓN DERECHA ── */
.dfac-action-zone {
    flex-shrink: 0;
    z-index: 2;
}

.dfac-glass-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.dfac-glass-btn:hover {
    background: #00ffcc;
    color: #091216 !important;
    border-color: #00ffcc;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 255, 204, 0.4);
}

/* ── RESPONSIVO ADAPTATIVO ── */
@media (max-width: 1200px) {
    .dfac-modern-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 22px;
        gap: 20px;
    }
    .dfac-header {
        width: 100%;
        text-align: center;
        align-items: center;
    }
    .dfac-subtitle {
        max-width: 600px;
    }
    .dfac-action-zone {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .dfac-item {
        height: 130px;
        min-width: 120px;
        padding: 12px 8px;
    }
    .dfac-item img {
        height: 60px;
    }
    .dfac-item span {
        font-size: 0.75rem;
    }
}