/* ==========================================================================
   MÓDULO: CENTROS LOGÍSTICOS (Front Page - Dark Theme)
   ========================================================================== */

/* Fondo del Contenedor Principal */
.section-centros-home {
    padding: 90px 4vw;
    background-color: #111111; 
}

.section-centros-home .section-header h2 {
    color: #ffffff;
}

/* Grilla Flexbox Centrada */
.centros-grid-home {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 60px auto 0;
}

/* Comportamiento del enlace envolvente */
.centro-card-link {
    flex: 1 1 350px;
    max-width: 450px;
    text-decoration: none;
    display: block;
}

/* Estética de la Tarjeta */
.centro-card-home {
    background-color: #222222;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    border: none;
}

.centro-card-home:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* Contenedor Fotográfico */
.centro-img-home {
    height: 260px;
    position: relative;
    overflow: hidden;
}

.centro-img-home img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.centro-card-home:hover .centro-img-home img {
    transform: scale(1.05);
}

/* Contenido de Texto Inferior */
.centro-content-home {
    padding: 25px 20px;
    text-align: center;
}

.centro-content-home h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.centro-card-home:hover .centro-content-home h3 {
    color: var(--color-red, #e3001b);
}

/* --- ETIQUETA "CENTRO NUEVO" --- */
.centro-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 4px;
    color: #ffffff;
    z-index: 2;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.badge-nuevo {
    background-color: var(--color-red, #e3001b); 
}

/* ==========================================================================
   RESPONSIVIDAD MÓVIL
   ========================================================================== */
@media (max-width: 768px) {
    .section-centros-home {
        padding: 60px 5vw;
    }
    .centros-grid-home {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .centro-card-link {
        width: 100%;
        max-width: 100%;
    }
    .centro-img-home {
        height: 220px;
    }
}