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

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #121212;
    color: #e0e0e0;
}

/* Wrapper opcional para el contenido principal */
main {
    padding: 30px;
}

/* NAV ajuste para asegurar full width */
nav {
    width: 100%;
}

/* Título de la categoría */
.titulo-categoria {
    font-family: 'Cinzel', serif;
    font-size: 32px;
    color: #f0f0f0;
    text-align: center;
    margin-top: 80px;
    margin-bottom: 40px;
    letter-spacing: 1px;
    position: relative;
    display: block;
    padding-bottom: 10px;
}

.titulo-categoria::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    background: linear-gradient(to right, #00c9ff, #92fe9d);
    animation: underlineGrow 1.2s ease-out forwards;
}

@keyframes underlineGrow {
    from {
        width: 0%;
        opacity: 0;
    }
    to {
        width: 80%;
        opacity: 1;
    }
}

/* Grilla de imágenes */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* Contenedor del thumbnail */
.thumb-box {
    background: #1c1c1c;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
    text-align: center;
}

.thumb-box:hover {
    transform: translateY(-5px);
}

/* Miniatura */
.thumb {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #1e1e1e;
    border: 1px solid #333;
    cursor: pointer;
}

.thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 35px;
    color: #f5f5f5;
    cursor: pointer;
}

/* Botón eliminar */
.btn-eliminar {
    display: inline-block;
    margin-top: 10px;
    background: #c0392b;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-eliminar:hover {
    background: #e74c3c;
}

/* Paginación */
.paginacion {
    margin-top: 30px;
    text-align: center;
}

.paginacion a,
.paginacion strong {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 14px;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    background-color: #2c2c2c;
    transition: background-color 0.2s;
}

.paginacion a:hover {
    background-color: #444;
}

.paginacion strong {
    background-color: #607d8b;
}
