﻿        /* GRID 4 COLUMNAS */
        .grid-modelos {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            max-width: 1200px;
            margin: auto;
        }

        .thumbnail-container {
            display: inline-block;
            margin: 10px;
            text-align: center;
        }

        .thumb-img {
            /*width: 100px;*/
            max-width: 90%;
            height: auto;
            cursor: pointer;
            border-radius: 8px;
            box-shadow: 0 0 4px gray;
        }

        .thumb-img:hover {
            transform: scale(1.05);
            border-color: #007bff;
        }

        .etiqueta-imagen {
            font-size: 0.9em;
            font-weight: bold;
            color: #444;
            display: block;
            margin-bottom: 4px;
        }

        .btn-eliminar {
            margin-top: 5px;
            background-color: red;
            color: white;
            border: none;
            padding: 4px 6px;
            border-radius: 4px;
            cursor: pointer;
        }

        /* Modal */
        .modal-img {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.8);
        }

        .modal-img-content {
            margin: 5% auto;
            display: block;
            max-width: 90%;
            max-height: 80%;
            border-radius: 8px;
        }

        .modal-img-close {
            position: absolute;
            top: 20px;
            right: 35px;
            color: white;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
        }

        .modal-img-close:hover {
            color: #bbb;
        }

        .nav-button {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: 40px;
            color: white;
            background-color: rgba(0, 0, 0, 0.4);
            border: none;
            cursor: pointer;
            padding: 10px;
            border-radius: 50%;
            z-index: 10000;
        }

        .nav-button:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        .prev-btn {
            left: 30px;
        }

        .next-btn {
            right: 30px;
        }

        /* RESPONSIVE */
        @media (max-width: 900px) {
            .grid-modelos {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 480px) {
            .grid-modelos {
                grid-template-columns: 1fr;
                justify-items: center;
            }
        }
