/* Reset básico para mejorar la consistencia entre navegadores */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Playfair Display', 'Roboto', sans-serif;
}

/* Estilos generales del cuerpo */
body {
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Barra de navegación */
.navbar {
    background: #198754 !important;
}

/* Estilo de la marca (logo) */
.navbar-brand img {
    border-radius: 50%;
}

/* Estilo de los enlaces del menú */
.navbar-nav .nav-link {
    color: white !important;
    transition: color 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
    color: #d4edda !important;
}

/* ========== Estilos para el Menú Desplegable ========== */

/* Fondo del dropdown para mejor visibilidad */
.dropdown-menu {
    background-color: #198754 !important; /* Mismo color que la barra de navegación */
    border: none; /* Quitar bordes */
}

/* Cambiar color del texto  */
.dropdown-item {
    color: white !important;
    font-weight: bold;  /* Hace que el texto sea más visible */
    padding: 10px 15px; /* Mejor espaciado */
    transition: background 0.3s ease-in-out;
}

/* Efecto al pasar el mouse */
.dropdown-item:hover {
    background-color: #145a32 !important; /* Verde más oscuro para resaltar */
    color: #fff !important;
}
/* Sección principal */
.principal {
    background: url('../images/herbario_fondo.jpg') no-repeat center center/cover;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 50px 20px;
}

.principal h1 {
    font-size: 3rem;
    font-weight: 700;
}

/* Secciones generales (Quiénes somos y Galería) */
.qsomos, .galeria {
    background: #e9ecef;
    padding: 50px 20px;
    border-radius: 10px;
}

/* Estilos para las tarjetas de Catálogos */
.card {
    border: none;
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    border-radius: 10px 10px 0 0;
}
/* ========== Estilos para la Galería ========== */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    justify-content: center;
    padding: 10px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* Recorta la imagen sin distorsionarla */
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}


/* Establece un tamaño fijo y responsivo para todas las imágenes */
.galeria img {
    width: 250px; /* Tamaño fijo para mantener uniformidad */
    height: 250px; /* Misma altura para evitar desajustes */
    object-fit: cover; /* Recorta la imagen si es necesario */
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

/* Efecto de zoom al pasar el mouse */
.galeria img:hover {
    transform: scale(1.05);
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .galeria img {
        width: 100%;
        max-width: 200px; /* Reduce el tamaño en móviles */
        height: auto;
    }
}

/* Pie de página */
.footer {
    text-align: center;
    padding: 15px;
    background: #198754;
    color: white;
    margin-top: 20px;
    border-radius: 8px;
}

