body {
    background-image: url('../img/fondo.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}



main.container {
    background-color: rgba(70, 70, 70, 0.7);
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-grow: 1;
}

.navbar {
    background-color: rgba(0,0,0,0.5) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand img {
    height: 40px;
    border-radius: 5px;
}

.admin-link {
    color: #ffc107 !important;
    font-weight: bold;
}

h1, h2, h3, h4, h5, h6 {
    color: #fff;
}


/* Adaptación de componentes a un tema oscuro */
.form-container,

.card, .card-body, .comments-section.card , .card-footer {
    /*background-color: rgba(20, 20, 20, 0.7) !important;*/
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    
}
 .card-header
 {
    background-color: rgba(20, 20, 20, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    
}


.photo-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
}
.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.photo-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.photo-card .photo-info {
    padding: 1rem;
    background-color: rgba(20, 20, 20, 0.7);
}

/* Galería y responsividad */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.5rem;
    }
    .photo-card img {
        height: 150px;
    }
}

/* === CORRECCIONES PARA VISTA DE COMENTARIOS === */
.comments-section .card-body, .comments-section .card-header, .comments-section p {
    color: #ffff; /* Asegura que todo el texto sea blanco por defecto */
}
.comments-section .comment strong {
    color: #3d4955; /* Nombre del autor en blanco */
}
.comments-section .comment .text-muted {
    color: #fff;!important; /* Fecha más clara */
}
/* Corregir el fondo del texto del comentario para un tema oscuro cohesivo */
.comments-section .comment p.bg-light {
    /* background-color: rgba(255, 255, 255, 0.1) !important; /* Fondo sutilmente más claro */
    color: #3d4955; !important; /* Texto del comentario en blanco */
}
.form-check-label {
    color: #3d4955; /* Asegura que las etiquetas de los radio buttons sean blancas */
}
