:root {
    --verde-oscuro: #1a4a2e;
    --verde-medio: #2d7a4f;
    --verde-claro: #3da06a;
    --amarillo: #f0c040;
    --amarillo-claro: #fdf3cc;
    --gris-oscuro: #1e2328;
    --gris-medio: #3a4048;
    --gris-claro: #f4f5f6;
    --blanco: #ffffff;
    --texto-claro: #6c757d;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 16px;
    color: var(--gris-oscuro);
    background: var(--blanco);
}

/* ─── TOPBAR ─── */
.topbar {
    background: var(--verde-oscuro);
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 2px solid var(--amarillo);
}
.topbar a { color: rgba(255,255,255,0.75); text-decoration: none; }
.topbar a:hover { color: var(--amarillo); }

/* ─── HEADER ─── */
header {
    background: var(--blanco);
    border-bottom: 3px solid var(--verde-medio);
    padding: 18px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.header-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
}
.header-title {
    font-family: 'Merriweather', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--verde-oscuro);
    line-height: 1.2;
}
.header-subtitle {
    font-size: 0.85rem;
    color: var(--texto-claro);
    font-weight: 300;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ─── NAVBAR ─── */
.navbar-main {
    background: var(--verde-oscuro);
    padding: 0;
}
.navbar-main .nav-link {
    color: rgba(255,255,255,0.88) !important;
    font-size: 13.5px;
    font-weight: 600;
    padding: 14px 14px !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
    color: var(--amarillo) !important;
    border-bottom-color: var(--amarillo);
    background: rgba(255,255,255,0.06);
}
.navbar-toggler { border-color: rgba(255,255,255,0.4); }
.navbar-toggler-icon { filter: invert(1); }

/* ─── HERO ─── */
.hero {
    background: linear-gradient(135deg, var(--verde-oscuro) 0%, var(--verde-medio) 100%);
    color: var(--blanco);
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: rgba(240,192,64,0.08);
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -60px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.hero h1 {
    font-family: 'Merriweather', serif;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.25;
}
.hero .lead { font-size: 1.1rem; opacity: 0.88; font-weight: 300; }
.hero .badge-hero {
    background: var(--amarillo);
    color: var(--verde-oscuro);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
}
.btn-hero {
    background: var(--amarillo);
    color: var(--verde-oscuro);
    font-weight: 700;
    border: none;
    padding: 12px 32px;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    border-radius: 4px;
    transition: background 0.2s, transform 0.15s;
}
.btn-hero:hover { background: #ffd93d; transform: translateY(-1px); color: var(--verde-oscuro); }
.btn-hero-outline {
    background: transparent;
    color: var(--blanco);
    border: 2px solid rgba(255,255,255,0.5);
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    transition: border-color 0.2s, background 0.2s;
}
.btn-hero-outline:hover { border-color: var(--amarillo); background: rgba(255,255,255,0.08); color: var(--blanco); }

.stat-pill {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    padding: 14px 20px;
    text-align: center;
}
.stat-pill .num {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--amarillo);
}
.stat-pill .lbl { font-size: 0.78rem; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.05em; }

/* ─── SECCIONES GENERALES ─── */
section { padding: 72px 0; }
.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--verde-medio);
}
.section-title {
    font-family: 'Merriweather', serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--gris-oscuro);
}
.divider-green {
    width: 48px; height: 3px;
    background: var(--verde-medio);
    margin: 12px 0 28px;
    border-radius: 2px;
}

/* ─── NOTICIAS ─── */
.section-noticias { background: var(--gris-claro); }
.noticia-card {
    background: var(--blanco);
    border-radius: 8px;
    border: 1px solid #dee2e6;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    height: 100%;
}
.noticia-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.1); transform: translateY(-3px); }
.noticia-card .card-img-top { height: 180px; object-fit: cover; }
.noticia-img-placeholder {
    height: 180px;
    background: linear-gradient(135deg, var(--verde-oscuro), var(--verde-medio));
    display: flex; align-items: center; justify-content: center;
}
.noticia-img-placeholder i { font-size: 3rem; color: rgba(255,255,255,0.3); }
.tag-noticia {
    display: inline-block;
    background: var(--amarillo-claro);
    color: var(--verde-oscuro);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.noticia-card .card-title {
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gris-oscuro);
    line-height: 1.4;
}
.noticia-card .fecha { font-size: 12px; color: var(--texto-claro); }
.btn-leer-mas {
    color: var(--verde-medio);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    letter-spacing: 0.03em;
}
.btn-leer-mas:hover { color: var(--verde-oscuro); }
.btn-leer-mas i { transition: transform 0.2s; }
.btn-leer-mas:hover i { transform: translateX(4px); }

/* ─── SERVICIOS ─── */
.servicio-item {
    text-align: center;
    padding: 24px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}
.servicio-item:hover { background: var(--gris-claro); }
.servicio-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--verde-oscuro);
    color: var(--amarillo);
    font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
}
.servicio-item h6 {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--gris-oscuro);
    margin-bottom: 6px;
}
.servicio-item p { font-size: 0.82rem; color: var(--texto-claro); }

/* ─── AVISO OCEBA ─── */
.banner-oceba {
    background: var(--verde-oscuro);
    color: var(--blanco);
    padding: 40px;
    border-radius: 10px;
}
.banner-oceba h4 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
}
.btn-oceba {
    background: var(--amarillo);
    color: var(--verde-oscuro);
    font-weight: 700;
    border: none;
    padding: 10px 28px;
    border-radius: 4px;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}
.btn-oceba:hover { background: #ffd93d; color: var(--verde-oscuro); }

/* ─── ORGANISMOS ─── */
.section-organismos { background: #f8f9fa; }
.organismo-card {
    background: var(--blanco);
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
.organismo-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.09); transform: translateY(-2px); }
.organismo-logo-wrap {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--gris-claro);
    border: 2px solid #e9ecef;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
}
.organismo-logo-wrap img { width: 60px; height: 60px; object-fit: contain; }
.organismo-logo-wrap i { font-size: 2rem; color: var(--verde-medio); }
.organismo-card h6 {
    font-family: 'Merriweather', serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gris-oscuro);
    line-height: 1.3;
    margin-bottom: 8px;
}
.organismo-card p { font-size: 0.78rem; color: var(--texto-claro); margin-bottom: 14px; flex: 1; }
.btn-organismo {
    display: inline-block;
    background: var(--verde-oscuro);
    color: var(--blanco);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-organismo:hover { background: var(--verde-medio); color: var(--blanco); }

/* ─── FOOTER ─── */
footer {
    background: var(--gris-oscuro);
    color: rgba(255,255,255,0.72);
}
.footer-top {
    padding: 52px 0 36px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-title {
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    color: var(--blanco);
    font-weight: 700;
    margin-bottom: 16px;
}
.footer-link {
    color: rgba(255,255,255,0.62);
    text-decoration: none;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 8px;
    transition: color 0.2s;
}
.footer-link:hover { color: var(--amarillo); }
.footer-bottom {
    padding: 18px 0;
    font-size: 0.8rem;
}
.footer-bottom a { color: var(--amarillo); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.7rem; }
    .section-title { font-size: 1.5rem; }
    .navbar-main .nav-link { font-size: 13px; padding: 12px 10px !important; }
}
