body {
    background-color: #1a1c20; 
    color: #eeeeee;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h2 {
    text-align: center;
    color: #ffffff;
    margin-top: 40px;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

form {
    background: #25282e;
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column; 
    gap: 15px;
}

form input, 
form input[type="file"],
form textarea {
    padding: 12px;
    background-color: #1a1c20;
    border: 1px solid #444;
    color: white;
    border-radius: 6px;
    font-size: 1rem;
}

form button {
    background-color: #1976d2; 
    color: white;
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    background-color: #1565c0;
    transform: scale(1.02);
}


.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}


.card {
    background: #25282e;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}


.card:hover {
    transform: translateY(-10px); 
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
    border-color: #1976d2;
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    border-radius: 8px;
    background-color: #111; 
}

.card p {
    font-weight: bold;
    font-size: 1.1rem;
    margin: 15px 0;
    color: #fff;
}

.botones {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 10px;
}

.botones a {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.botones a:hover {
    opacity: 0.8;
}

.eliminar { background-color: #d32f2f; } 
.editar { background-color: #1976d2; }   


.footer {
    background-color: #111;
    color: #aaa;
    padding: 30px 20px; 
    text-align: center;
    margin-top: auto;
    border-top: 1px solid #333;
    display: flex;
    flex-direction: column; 
    align-items: center;    
    gap: 10px;             
}


.footer a {
    color: #1976d2; 
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline;
}