/* ========================================
   VARIABLES DE TEMA
   ======================================== */
:root {
    --bg: #0b0b10;              /* Color de fondo base */
    --text: #e7e7ee;            /* Texto principal */
    --accent: #ff1a1a;          /* Rojo principal */
    --accent-hover: #ff3333; /* Rojo hover */
    --transition: all 0.25s ease-in-out;
}

/* ========================================
   ESTILOS GENERALES
   ======================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
    background: var(--bg);
    color: var(--text);
}
a { color: inherit; text-decoration: none; }

/* ========================================
   HEADER
   ======================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem;
    text-align: center;
}
header h1 {
    font-size: 2.5rem;
    color: var(--accent);
}

/* ========================================
   MAIN / GALERÍA
   ======================================== */

main { padding-top: 80px; }

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 30px;
    max-width:1700px;
    margin: 0 auto;;
}
.gallery-item {
    background: rgba(20, 20, 20, 0.7);
    border-radius: 10px;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out backwards;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    width: 100%;
    aspect-ratio: 3/2;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    box-shadow: none;
}
.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent);
}

/* ========================================
   PAGINACIÓN
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    flex-wrap: wrap;
   
   /* Evitar selección del texto en los botones */
    -webkit-user-select: none; 
    -moz-user-select: none;    
    -ms-user-select: none;     
     user-select: none;         
}
.pagination a {
    padding: 10px 20px;
    background: #0b0b10;
    color: var(--text);
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid var(--accent-hover);
    transition: all 0.3s;
   
    /* Evitar selección del texto en los botones */
    -webkit-user-select: none; 
    -moz-user-select: none;    
    -ms-user-select: none;     
     user-select: none;    
}
.pagination a:hover,
.pagination a.active {
    background: linear-gradient(45deg, var(--accent-hover1), var(--accent1));
    color: #e7e7ee; 
    font-weight: bold;
    animation: glow 3s infinite;
}
/* ========================================
   FOOTER
   ======================================== */
footer {
    padding: 40px 0;
    color: var(--text);
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}
.social-links a {
    color: var(--accent);
    font-size: 1.5rem;
    transition: var(--transition);
}
.social-links a:hover { color: var(--text); }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width:900px){ .gallery{grid-template-columns:repeat(2,1fr);} }
@media (max-width:600px){ .gallery{grid-template-columns:1fr;} }

/* ========================================
   ANIMACIONES
   ======================================== */
  @keyframes glow {
    0%, 100% { box-shadow: 0 0 5px var(--accent-hover); }
    50% { box-shadow: 0 0 15px var(--accent); }
}

/* ========================================
   BLOQUEAR ARRASTRE DE IMÁGENES COMPLETAMENTE
   ======================================== */
.gallery-item img {
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
}

/* Evitar selección del título */
header h1 {
  -webkit-user-select: none; 
  -moz-user-select: none;   
  -ms-user-select: none;     
  user-select: none;         
}

/* Evitar selección del pie de página */
footer p {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
