/* ============================================================
   TRANSPORTES FRANCISCO LANDING CORE — Fleet Section Styles
   ============================================================ */
:root {
    --tflc-fleet-primary: var(--project-primary, #223D65);
    --tflc-fleet-white: #ffffff;
    --tflc-fleet-font: var(--project-font, 'Montserrat', sans-serif);
}

.tflc-fleet-section {
    position: relative;
    padding: 80px 0; /* Quitar padding lateral para ancho completo */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: var(--tflc-fleet-font);
    
    /* Forzar Full Width absoluto saltándose los contenedores de Elementor */
    width: 100vw !important;
    max-width: 100vw !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

.tflc-fleet-section__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--tflc-fleet-primary);
    opacity: 0.90;
    z-index: 1;
}

.tflc-fleet-section__inner {
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin: 0;
    padding: 0 60px; /* Margen lateral para centrar y separar de los bordes de la pantalla */
}

.tflc-fleet-section__title {
    text-align: center;
    color: var(--tflc-fleet-white);
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 50px;
}

/* Gallery Grid */
.tflc-fleet-section__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tflc-fleet-section__card {
    height: 380px; /* Altura estricta para garantizar igualdad */
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.tflc-fleet-section__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.4);
}

.tflc-fleet-section__img {
    width: 100% !important;
    height: 100% !important; /* Forzar el 100% del contenedor para anular height: auto de Elementor */
    object-fit: cover !important;
    display: block;
    transition: transform 0.5s ease;
}

.tflc-fleet-section__card:hover .tflc-fleet-section__img {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 991px) {
    .tflc-fleet-section__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tflc-fleet-section__title {
        font-size: 2.4rem;
    }
}

@media (max-width: 767px) {
    .tflc-fleet-section__inner {
        padding: 0 20px;
    }
    .tflc-fleet-section__grid {
        grid-template-columns: 1fr;
    }
    .tflc-fleet-section__img {
        height: 300px;
    }
    .tflc-fleet-section__title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
}
