:root {
    --primary-color: #006837;
    --secondary-color: #8BC53F;
    --text-color: #333;
    --bg-light: #f8f9fa;
    --footer-bg: #1a1a1a;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: var(--secondary-color);
}

/* Header & Nav */
.top-bar {
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 0;
    font-size: 0.9rem;
}

.navbar {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.navbar-brand img {
    height: 70px;
}

.nav-link {
    color: #333 !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Slider */
.carousel-item img {
    height: 500px;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

/* Sections */
.section-title {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
}

.section-padding {
    padding: 60px 0;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-date {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.5rem;
}

/* Stats Footer */
.stats-header {
    background: var(--secondary-color);
    color: var(--primary-color);
    font-weight: bold;
    padding: 10px;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: #ccc;
    padding: 60px 0 20px;
}

footer h5 {
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
}

footer a {
    color: #ccc;
    display: block;
    margin-bottom: 10px;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.copyright {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    line-height: 44px;
    /* Ajustado por el borde de 2px top y bottom */
    border-radius: 50%;
    font-size: 20px;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    border: 2px solid white;
}