﻿/* === Estilos base para móviles (hasta 600px) === */
.contenedor-reportes {
    display: grid;
    grid-template-columns: repeat(3, 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 img {
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;
            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 601px y 1024px === */
@media (min-width: 601px) and (max-width: 1024px) {
    .contenedor-reportes {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1em;
    }

        .contenedor-reportes .card {
            flex: 1 1 calc(50% - 1em);
            margin-right: 0;
            height: 37vmin;
            width: 8vmin;
        }

            .contenedor-reportes .card .card__head {
                font-size: 1em;
                min-width: 85%;
                bottom: 7px;
                left: 19px;
            }

            .contenedor-reportes .card:hover {
                flex-grow: 1;
            }

                .contenedor-reportes .card:hover .card__head {
                    font-size: 1.5em;
                    min-width: 84%;
                }
}

/* === Escritorio: desde 1025px en adelante === */
@media (min-width: 1025px) {
    .contenedor-reportes {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 1em;
    }

        .contenedor-reportes .card {
            flex: 1;
            height: 40vmin;
            margin-right: 1em;
        }

            .contenedor-reportes .card:nth-child(6) {
                margin-right: 0;
            }

            .contenedor-reportes .card img {
                filter: grayscale(75%);
            }

            .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/ReporteYLUZ2024HorizontalENG.jpg'); /* Reemplaza con tu imagen */
    background-size: cover;
    background-position-y: 60%;
    background-position-x: center;
    border-radius: 10px;
    overflow: hidden;
}

.button-overlay {
    position: absolute;
    bottom: 20px;
    left: 31%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.4); /* Oscurece un poco el fondo */
    border: 2px solid white;
    color: white;
    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 (max-width: 576px) {
    .ReporteGrande {
        background-position-x: unset;
    }

    .button-overlay {
        position: absolute;
        bottom: 20px;
        left: 34%;
        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;
        width: 45%;
        cursor: pointer;
        transition: background-color 0.3s ease;
        width: 59%;
    }

        .button-overlay h4 {
            font-size: 15px;
        }
}

/* Pantallas grandes (1601px en adelante) */
@media (min-width: 1601px) {
    .ReporteGrande {
        background-position-y: 55%;
    }
}

@media (min-width: 2000px) {
    .ReporteGrande {
        height: 400px;
        background-position-y: 50%;
    }
}