/* =====================================================
   FONDO GENERAL CON EFECTO PUNTOS (GLOBAL)
   ===================================================== */
html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;

    /* Fondo gris con puntos */
    background-color: #c7c7c7;
    background-image: radial-gradient(circle, rgba(0,0,0,0.15) 1px, transparent 1px);
    background-size: 18px 18px;
    background-attachment: fixed;

    color: #000;
}

/* =====================================================
   HEADER GLOBAL
   ===================================================== */
header {
    padding: 30px 20px;
    text-align: center;
    background: transparent;
    position: relative;
    z-index: 2;
}

header h1 {
    margin: 0;
    color: #000;
}

/* =====================================================
   NAVEGACIÓN
   ===================================================== */
nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

/* =====================================================
   CONTENIDO PRINCIPAL
   ===================================================== */
main {
    min-height: calc(100vh - 160px);
    padding: 20px;
    position: relative;
    z-index: 2;
    background: transparent;
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
    text-align: center;
    padding: 10px;
    color: #000;
    background: transparent;
    position: relative;
    z-index: 2;
}

/* =====================================================
   GALERÍA
   ===================================================== */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 30px;
    overflow: visible;
    background: transparent;
}

.gallery-item {
    width: 300px;
    height: 200px;
    background: #000;
    border-radius: 10px;
    position: relative;
    overflow: visible;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);

    transition: transform 250ms ease, box-shadow 250ms ease;
    transform: scale(1);
    transform-origin: center;
}

.gallery-item:hover {
    transform: scale(2);
    z-index: 20;
    box-shadow: 0 16px 32px rgba(0,0,0,0.6);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* Botón eliminar galería */
.gallery-item form {
    position: absolute;
    top: 10px;
    right: 10px;
    display: none;
    z-index: 30;
}

.gallery-item:hover form {
    display: block;
}

.gallery-item form button {
    background: rgba(255, 0, 0, 0.9);
    color: white;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 4px;
}

/* =====================================================
   NOTICIAS
   ===================================================== */
.noticias-container {
    padding: 30px;
    background: transparent;
}

/* Tarjeta noticia */
.noticia {
    background: rgba(255,255,255,0.95);
    color: #000;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.noticia h2 {
    margin: 0 0 10px 0;
}

.noticia p {
    margin: 0 0 10px 0;
}

/* Botón eliminar noticia */
.noticia form {
    text-align: right;
}

.noticia form button {
    background: red;
    color: white;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 4px;
}

/* =====================================================
   FORMULARIO AGREGAR NOTICIA
   ===================================================== */
.agregar-noticia {
    text-align: center;
    margin: 40px 0;
}

.agregar-noticia form {
    background: rgba(255,255,255,0.95);
    color: #000;
    padding: 25px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    display: inline-block;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.agregar-noticia input,
.agregar-noticia textarea {
    width: 100%;
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.agregar-noticia button {
    background: #0078D7;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.agregar-noticia button:hover {
    background: #0056A4;
}
