* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            min-height: 100vh;
            padding: 40px 20px;
        }
body::-webkit-scrollbar {
  display: none;
}
        .contenedor {
            max-width: 1000px;
            margin: 0 auto;
        }

        .galeria {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 25px;
            animation: fadeInUp 0.8s ease;
        }

        .item-galeria {
            position: relative;
            overflow: hidden;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            height: 300px;
        }

        .item-galeria:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
        }

        .item-galeria img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease, filter 0.4s ease;
        }

        .item-galeria:hover img {
            transform: scale(1.1);
            filter: brightness(0.8);
        }

        .overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .item-galeria:hover .overlay {
            opacity: 1;
        }

        .overlay-contenido {
            text-align: center;
            color: white;
            transform: translateY(20px);
            transition: transform 0.4s ease;
        }

        .item-galeria:hover .overlay-contenido {
            transform: translateY(0);
        }

        .overlay-titulo {
            font-size: 1.5rem;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .overlay-descripcion {
            font-size: 0.95rem;
            opacity: 0.9;
            margin-bottom: 15px;
        }

        .btn-ver {
            background: white;
            color: #667eea;
            border: none;
            padding: 10px 25px;
            border-radius: 25px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .btn-ver:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
            background: #f0f0f0;
        }

        /* Variantes de altura para efecto masonry */
        .item-galeria:nth-child(3) {
            height: 350px;
        }

        .item-galeria:nth-child(5) {
            height: 320px;
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            animation: fadeIn 0.3s ease;
        }

        .modal-contenido {
            background-color: white;
            margin: 5% auto;
            padding: 0;
            border-radius: 15px;
            width: 90%;
            max-width: 600px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            overflow: hidden;
            animation: slideDown 0.4s ease;
        }

        .modal-imagen {
            width: 100%;
            height: 400px;
            object-fit: cover;
        }

        .modal-info {
            padding: 30px;
        }

        .modal-titulo {
            font-size: 1.8rem;
            color: #667eea;
            margin-bottom: 10px;
        }

        .modal-fecha {
            color: #999;
            font-size: 0.9rem;
            margin-bottom: 15px;
        }

        .modal-descripcion {
            color: #555;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .cerrar-modal {
            position: absolute;
            right: 20px;
            top: 20px;
            font-size: 2rem;
            font-weight: bold;
            color: white;
            cursor: pointer;
            transition: color 0.3s ease;
            z-index: 1001;
        }

        .cerrar-modal:hover {
            color: #667eea;
        }

        /* Animaciones */
        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        @keyframes slideDown {
            from {
                transform: translateY(-50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        /* Responsive - Tablet */
        @media (max-width: 768px) {
            .titulo-seccion h1 {
                font-size: 2.2rem;
            }

            .galeria {
                gap: 20px;
            }

            .item-galeria {
                height: 280px;
            }

            .item-galeria:nth-child(3) {
                height: 280px;
            }

            .item-galeria:nth-child(5) {
                height: 280px;
            }

            .modal-contenido {
                width: 95%;
                margin: 10% auto;
            }

            .modal-imagen {
                height: 300px;
            }
        }

        /* Responsive - Móvil */
        @media (max-width: 480px) {
            body {
                padding: 20px 15px;
            }

            .titulo-seccion h1 {
                font-size: 1.8rem;
            }

            .titulo-seccion p {
                font-size: 1rem;
            }

            .galeria {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .item-galeria {
                height: 250px;
            }

            .overlay-titulo {
                font-size: 1.2rem;
            }

            .overlay-descripcion {
                font-size: 0.85rem;
            }

            .modal-contenido {
                width: 98%;
                margin: 20% auto;
            }

            .modal-imagen {
                height: 250px;
            }

            .modal-info {
                padding: 20px;
            }

            .modal-titulo {
                font-size: 1.5rem;
            }

            .cerrar-modal {
                right: 15px;
                top: 15px;
            }
        }

        /* Pequeñas pantallas */
        @media (max-width: 360px) {
            .titulo-seccion h1 {
                font-size: 1.5rem;
            }

            .overlay-titulo {
                font-size: 1rem;
            }

            .btn-ver {
                padding: 8px 20px;
                font-size: 0.9rem;
            }
        }