/* Estilos personalizados para el tema de naturaleza */

:root {
    --verde-primario: #2e7d32;
    --verde-secundario: #4caf50;
    --verde-claro: #c8e6c9;
    --verde-oscuro: #1b5e20;
    --beige: #f5f5f5;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Encabezado */
header {
    background: linear-gradient(135deg, var(--verde-primario), var(--verde-oscuro)) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo-universidad {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    color: var(--verde-primario);
}

/* Navegación */
.navbar-dark {
    background-color: var(--verde-oscuro) !important;
}

.navbar-nav .nav-link {
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 0 2px;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--verde-claro);
    color: var(--verde-oscuro);
}

/* Banner */
.banner-section {
    margin-bottom: 2rem;
}

.carousel-item {
    height: 400px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 15px;
}

/* Contenido principal */
.section-title {
    color: var(--verde-oscuro);
    border-bottom: 2px solid var(--verde-claro);
    padding-bottom: 10px;
}

.blog-post {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-post .card-title {
    color: var(--verde-oscuro);
}

.blog-post img {
    transition: transform 0.5s ease;
}

.blog-post:hover img {
    transform: scale(1.05);
}

/* Barra lateral */
.sidebar-widget {
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar-widget .card-title {
    color: var(--verde-oscuro);
    border-bottom: 1px solid var(--verde-claro);
    padding-bottom: 10px;
}

.list-group-item {
    border: none;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: var(--verde-claro);
}

.resource-item {
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.resource-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Botones */
.btn-success {
    background-color: var(--verde-primario);
    border-color: var(--verde-primario);
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: var(--verde-oscuro);
    border-color: var(--verde-oscuro);
    transform: translateY(-2px);
}

/* Pie de página */
footer {
    background: linear-gradient(135deg, var(--verde-oscuro), #000) !important;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white !important;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-item {
        height: 250px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .blog-post .row {
        flex-direction: column;
    }
    
    .blog-post .col-md-4 {
        width: 100%;
    }
    
    .blog-post img {
        height: 200px;
        object-fit: cover;
    }
}