﻿/* === Estilos base para móviles (hasta 700px) === */
.contenedor-reportes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1em;
    justify-content: center;
    margin-top: 40px;
    overflow: hidden;
}

    .contenedor-reportes .card {
        transition: all 1s ease-in-out;
        height: 41vmin;
        position: relative;
    }

        .contenedor-reportes .card:last-child:nth-child(odd) {
            grid-column: 1 / -1;
            max-width: 50%;
            justify-self: center;
        }

    .contenedor-reportes .fila-2 {
        display: contents;
    }

    .contenedor-reportes .card img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: top center;
        transition: all 1s ease-in-out;
        filter: grayscale(0) !important;
    }

    .contenedor-reportes .card .card__head {
        color: white;
        background: #00aabb;
        padding: 0.5em;
        font-size: 1em;
        transform: rotate(0deg);
        transform-origin: 0% 0%;
        transition: all 0.5s ease-in-out;
        text-align: center;
        position: absolute;
        bottom: 0;
        left: 0;
        min-width: 100%;
        line-height: 14px;
        white-space: nowrap;
        font-family: 'DIN Regular';
        font-weight: 700;
    }

    .contenedor-reportes .card:hover .card__head {
        text-align: center;
        color: white;
        font-size: 1.3em;
        transform: rotate(0deg);
        min-width: 100%;
    }

/* === Tablets: entre 701px y 1099px === */
@media (min-width: 701px) and (max-width: 1099px) {
    .contenedor-reportes {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1em;
    }

        .contenedor-reportes .card {
            height: 37vmin;
            width: 100%;
        }

            .contenedor-reportes .card:last-child:nth-child(odd) {
                grid-column: auto;
                max-width: none;
                justify-self: auto;
            }

        .contenedor-reportes .fila-2 {
            display: flex;
            flex-direction: row;
            justify-content: center;
            gap: 1em;
            grid-column: 1 / -1;
        }

            .contenedor-reportes .fila-2 .card {
                width: calc(25% - 0.75em);
                flex: 0 0 auto;
                height: 37vmin;
            }

        .contenedor-reportes .card img {
            object-position: 20% center;
        }

        .contenedor-reportes .card .card__head {
            font-size: 0.9em;
            min-width: 100%;
            bottom: 0;
            left: 0;
        }


}

    /* === Escritorio: desde 1100px === */
    @media (min-width: 1100px) {
        .contenedor-reportes {
            display: flex;
            flex-wrap: nowrap;
            justify-content: center;
            align-items: stretch;
            gap: 1em;
        }

            .contenedor-reportes .card {
                flex: 1 1 0;
                height: 40vmin;
                margin-right: 0;
                min-width: 0;
            }

                .contenedor-reportes .card:last-child:nth-child(odd) {
                    max-width: none;
                }

                .contenedor-reportes .card img {
                    filter: grayscale(75%);
                    object-position: top center;
                }

                .contenedor-reportes .card .card__head {
                    color: white;
                    background: #00aabb;
                    padding: 0.5em;
                    transform: rotate(-90deg);
                    transform-origin: 0% 0%;
                    transition: all 0.5s ease-in-out;
                    min-width: 80%;
                    text-align: center;
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    font-size: 20px;
                    white-space: nowrap;
                    font-family: 'DIN Regular';
                    font-weight: 700;
                }

                .contenedor-reportes .card:hover {
                    flex-grow: 3;
                }

                    .contenedor-reportes .card:hover img {
                        filter: grayscale(0);
                    }

                    .contenedor-reportes .card:hover .card__head {
                        text-align: center;
                        color: white;
                        font-size: 2em;
                        min-width: 40%;
                        transform: rotate(-90deg);
                    }
    }

    /* ===================================================== */

    .ReporteGrande {
        position: relative;
        width: 100%;
        height: 350px;
        background-image: url('https://luzzpstayee001.blob.core.windows.net/portadas-reporte/ReporteYLUZ2025Horizontal.jpg');
        background-size: cover;
        background-position-y: 85% !important;
        background-position-x: center;
        border-radius: 10px;
        overflow: hidden;
    }

    .ReporteGrandeEng {
        position: relative;
        width: 100%;
        height: 350px;
        background-image: url('https://luzzpstayee001.blob.core.windows.net/portadas-reporte/ReporteYLUZ2025HorizontalENG.jpg');
        background-size: cover;
        background-position-y: 85%;
        background-position-x: center;
        border-radius: 10px;
        overflow: hidden;
    }

    .button-overlay {
        position: absolute;
        bottom: 61px;
        left: 75%;
        transform: translateX(-50%);
        background-color: rgba(0, 0, 0, 0.4);
        border: 2px solid white;
        color: white !important;
        padding: 4px 14px;
        border-radius: 20px;
        font-weight: bold;
        text-align: center;
        width: 45%;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

        .button-overlay h4 {
            font-size: 19px;
            font-family: 'DIN Regular';
        }

        .button-overlay:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

@media (min-width: 740px) and (max-width: 1099px) {
    .button-overlay {
        bottom: 46px;
        left: 75%;
    }
}

    @media (max-width: 576px) {
        .ReporteGrande, .ReporteGrandeEng {
            background-position-x: 14%;
        }

        .button-overlay {
            position: absolute;
            bottom: 260px;
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0, 0, 0, 0.4);
            border: 2px solid white;
            color: white;
            padding: 4px 14px;
            border-radius: 20px;
            font-weight: bold;
            text-align: center;
            cursor: pointer;
            transition: background-color 0.3s ease;
            width: 59%;
        }

            .button-overlay h4 {
                font-size: 15px;
            }
    }

    @media (min-width: 1600px) and (max-width: 1999px) {
        .ReporteGrande, .ReporteGrandeEng {
            height: 420px;
            background-position-y: 85% !important;
            background-position-x: center;
        }
    }

    @media (min-width: 2000px) {
        .ReporteGrande, .ReporteGrandeEng {
            height: 620px;
            background-position-y: 85%;
        }
    }

    /* ===================================================== */
    /* === Opción B === */
    .reportes-b {
        display: flex;
        flex-direction: column;
        gap: 1em;
        margin-top: 1em;
        width: 100%;
    }

    .reportes-b__destacado {
        position: relative;
        width: 100%;
        height: 200px;
        border-radius: 10px;
        overflow: hidden;
    }
        .reportes-b__destacado::after {
            pointer-events: none;
        }

        .reportes-b__destacado img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center 60%;
        }

        .reportes-b__destacado::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 60%;
            height: 100%;
            background: linear-gradient(to right, rgba(0,0,0,0.45), transparent);
        }

    .reportes-b__destacado-label {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: #00aabb;
        color: white;
        text-align: center;
        padding: 0.15em;
        font-size: 1em;
        font-family: 'DIN Regular';
        font-weight: 700;
    }

    .reportes-b__grilla {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.7em;
    }

    .reportes-b__card {
        position: relative;
        height: 28vmin;
        border-radius: 6px;
        overflow: hidden;
    }

        .reportes-b__card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: top center;
        }

    .reportes-b__card-label {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: #00aabb;
        color: white;
        text-align: center;
        padding: 0.15em;
        font-size: 0.9em;
        font-family: 'DIN Regular';
        font-weight: 700;
    }

    /* === desktop desde 768px === */
    @media (min-width: 768px) {
        .reportes-b {
            flex-direction: row;
            align-items: stretch;
            padding-left: 0em;
            padding-right: 0em;
            align-items: stretch;
        }

        .reportes-b__destacado {
            flex: 2;
            height: auto;
            max-height: none;
            align-self: stretch
        }

            .reportes-b__destacado img {
                height: 100%;
                width: 100%;
                object-fit: cover;
            }

        .reportes-b__destacado-label {
            font-size: 1.6em;
            padding: 0.3em;
        }

        .reportes-b__card:nth-child(1) img {
            object-position: center 20%;
        }

        .reportes-b__card:nth-child(3) img {
            object-position: center 30%;
        }

        .reportes-b__card:nth-child(4) img {
            object-position: center 10%;
        }

        .reportes-b__card:nth-child(5) img {
            object-position: center 10%;
        }

        .reportes-b__grilla {
            flex: 3;
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: repeat(2, 1fr);
            gap: 0.7em;
        }

        .reportes-b__card {
            height: 22vmin;
        }

        .reportes-b__card-label {
            font-size: 1.1em;
            padding: 0.25em;
        }
    }

    @media (min-width: 1200px) {

        .reportes-b {
            padding-left: 0;
            padding-right: 0;
        }

        .fila-reportes {
            overflow: hidden;
        }
    }

    @media (min-width: 1400px) {
        .reportes-b {
            padding-left: 0;
            padding-right: 0;
        }

        .fila-reportes {
            overflow: hidden;
        }
    }
