﻿.years-container {
    display: flex;
    flex-direction: column;
    row-gap: 40px; 
    padding: 10px;
}

.year-block {
    /* nada especial, agrupa el año + sus celdas */
}

    .year-block h1 {
        margin: 0 0 8px;
        font-size: 3em;
        font-weight: bold;
    }


.cells-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: auto;
    gap: 65px;
}

.cell {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    max-height: 500px;
}

    .cell img {
        width: 100%;
        height: auto;
        object-fit: contain;
        max-height: 210px;
    }

    .cell span {
        margin-top: auto;
        padding: 8px;
        font-size: 1em;
        color: black;
    }

    .cell a {
        display: flex;
        flex-direction: column;
        height: 100%;
        text-decoration: none;
        color: inherit;
    }

        .cell a:hover {
            text-decoration: underline;
        }


@media (max-width: 1024px) {
    .cells-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 50px;
    }
}
@media (max-width: 768px) {
    .cells-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .year-block h1 {
        font-size: 2.5em;
    }

    .cell span {
        font-size: 0.9em;
    }
}

@media (max-width: 600px) {
    .cells-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-items: center;
    }

    .year-block h1 {
        position: relative;
        font-size: 2em;
        margin: 0 0 8px;
       /* padding-right: 20px; */
    }

        .year-block h1::after {
            content: "";
            position: absolute;
            top: 50%;
            right: 0;
            transform: translateY(-50%);
            height: 2px;
            width: 80%;
            background-color: #691c32;
        }

    .cell {
        max-height: none;
        width: 60%;
        margin: 0 auto;
    }

        .cell span {
            font-size: 0.9em;
            padding: 6px;
            text-align: center;
        }

    .years-container {
        row-gap: 30px;
        padding: 5px;
    }
}


