@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --brand-primary: #009a44;
    --brand-primary-dark: #007a36;
    --brand-primary-light: #d7f2e1;
    --text-primary: #333;
    --surface-muted: #f9f9f9;
    --surface-dark: #333;
    --surface-darker: #222;
    --nav-primary: #006633;
    --nav-gradient-start: #007a3d;
    --nav-gradient-end: #004f29;
    --font-ui: "Roboto", "Segoe UI", Arial, sans-serif;
    --font-display: "Roboto", "Segoe UI", Arial, sans-serif;
    --font-heading: "Roboto", "Segoe UI", Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-ui);
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background: #fff;
}

body.is-modal-open {
    overflow: hidden;
}

.footer-anchor {
    scroll-margin-top: 110px;
}

.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: linear-gradient(90deg, #069541 0%, var(--brand-primary) 48%, #05833a 100%);
    color: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 14px 34px rgba(0, 68, 30, 0.16);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    min-height: 86px;
    padding: 0.75rem 20px;
}

.logo img {
    height: 64px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.75rem 0.95rem;
    border-radius: 999px;
    white-space: nowrap;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    right: 0.95rem;
    bottom: 0.5rem;
    left: 0.95rem;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-caret {
    display: inline-block;
    margin-left: 0.45rem;
    font-size: 0.58rem;
    vertical-align: middle;
    transition: transform 0.25s ease;
}

.has-submenu > a {
    gap: 0.15rem;
}

.submenu {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 0;
    min-width: 230px;
    padding: 0.5rem;
    margin: 0;
    list-style: none;
    background: linear-gradient(90deg, #069541 0%, var(--brand-primary) 48%, #05833a 100%);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 120;
}

.submenu li {
    margin-left: 0;
}

.submenu a {
    display: block;
    padding: 0.8rem 0.95rem;
    color: #fff;
    white-space: nowrap;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    border-radius: 12px;
}

.submenu a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu-toggle {
    display: none;
}

.nav-links a:hover {
    color: #fff;
    background: transparent;
}

.nav-links a:hover::after,
.has-submenu:hover > a::after,
.has-submenu:focus-within > a::after {
    transform: scaleX(1);
}

.has-submenu:hover .nav-caret,
.has-submenu:focus-within .nav-caret {
    transform: rotate(180deg);
}

.nav-social {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-left: 1rem;
}

.nav-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.nav-social svg {
    width: 18px;
    height: 18px;
    color: #fff;
    fill: currentColor;
    display: block;
}

.nav-social a:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.36);
    transform: translateY(-1px);
}

.burger {
    display: none;
    cursor: pointer;
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.25s ease, transform 0.25s ease;
}

.truck-icon {
    position: relative;
    display: block;
    width: 28px;
    height: 24px;
}

.truck-bed,
.truck-cab,
.truck-base,
.truck-wheel,
.truck-load {
    position: absolute;
    display: block;
}

.truck-bed {
    top: 3px;
    left: 1px;
    width: 14px;
    height: 8px;
    border: 2px solid #fff;
    border-radius: 3px 3px 2px 2px;
    background: transparent;
    transform-origin: 100% 100%;
    transition: transform 0.3s ease;
}

.truck-cab {
    top: 7px;
    right: 1px;
    width: 9px;
    height: 8px;
    border: 2px solid #fff;
    border-left: 0;
    border-radius: 0 3px 3px 1px;
    background: transparent;
}

.truck-cab::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -5px;
    width: 7px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    border-radius: 0 3px 0 0;
    transform: skewX(-18deg);
}

.truck-base {
    right: 2px;
    bottom: 6px;
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
}

.truck-wheel {
    bottom: 1px;
    width: 6px;
    height: 6px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
}

.truck-wheel-left {
    left: 4px;
}

.truck-wheel-right {
    right: 3px;
}

.truck-load {
    top: 0;
    left: 2px;
    width: 10px;
    height: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.truck-load::before,
.truck-load::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
}

.truck-load::before {
    top: 3px;
    left: 0;
}

.truck-load::after {
    top: 7px;
    left: 4px;
}

.toggle .truck-bed {
    transform: rotate(-34deg) translate(-1px, -5px);
}

.toggle .truck-load {
    opacity: 1;
    animation: truckDump 0.7s ease forwards;
}

.toggle .truck-wheel-left,
.toggle .truck-wheel-right {
    animation: truckBounce 0.45s ease;
}

@keyframes truckDump {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    100% {
        transform: translate(-6px, 9px);
        opacity: 0;
    }
}

@keyframes truckBounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-1px);
    }
}

#hero {
    padding: 0;
    background:
        radial-gradient(circle at 14% 18%, rgba(0, 154, 68, 0.1), transparent 22%),
        radial-gradient(circle at 86% 14%, rgba(0, 122, 54, 0.08), transparent 18%),
        linear-gradient(135deg, #f7f4ec 0%, #f3efe4 44%, #e9f3eb 100%);
    color: #284536;
}

#hero .container {
    max-width: none;
    padding: 0;
}

.hero-actions {
    position: absolute;
    right: 2.1rem;
    bottom: 4rem;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: flex-end;
}

.hero-primary-link,
.hero-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.3rem;
    border-radius: 999px;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.hero-primary-link {
    background: var(--brand-primary);
    color: #fff;
}

.hero-primary-link:hover {
    transform: translateY(-2px);
    background: var(--brand-primary-dark);
}

.hero-secondary-link {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    backdrop-filter: blur(6px);
}

.hero-secondary-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.24);
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.22);
    border: 0;
    box-shadow: none;
    min-width: 0;
    height: 100vh;
    min-height: 520px;
}

.hero-slides {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.035);
    transition: opacity 0.85s ease, transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-slide img,
.hero-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.72) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.46) 0%, rgba(0, 0, 0, 0.16) 48%, transparent 75%);
}

.hero-slide-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    padding: 1.9rem 21rem 7rem 2.4rem;
    color: #fff;
}

.hero-slide-tag {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.38rem 0.88rem;
    background: rgba(0, 0, 0, 0.34);
    border-radius: 999px;
    font-family: var(--font-ui);
    font-size: 0.74rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px);
}

.hero-slide-content h2 {
    max-width: 30rem;
    font-size: clamp(1.7rem, 2.55vw, 2.45rem);
    line-height: 1.05;
    color: #fff;
    text-wrap: balance;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.hero-slide-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 1.25rem;
    padding: 0.85rem 1.35rem;
    border-radius: 4px;
    background: var(--brand-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.98rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, background 0.25s ease;
}

.hero-slide-button:hover {
    transform: translateY(-2px);
    background: var(--brand-primary-dark);
    color: #fff;
}

.hero-control {
    display: none;
}

.hero-dots {
    position: absolute;
    right: 0;
    bottom: 1.8rem;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 0.55rem;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
}

.hero-carousel.is-clickable {
    cursor: pointer;
}

.hero-dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

.quick-links {
    padding: 2rem 0 2.4rem;
    background: #fff;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
    align-items: start;
}

.quick-link-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.55rem;
    min-height: 122px;
    padding: 1rem 5.6rem 0.95rem 1.2rem;
    background:
        radial-gradient(circle at top right, rgba(0, 154, 68, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
    color: #17643b;
    text-align: left;
    text-decoration: none;
    font-family: var(--font-ui);
    border-radius: 18px;
    border: 1px solid rgba(0, 154, 68, 0.12);
    box-shadow: 0 18px 36px rgba(20, 62, 37, 0.08);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.quick-link-icon {
    position: absolute;
    top: 50%;
    right: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    opacity: 0.48;
    transform: translateY(-50%);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.quick-link-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.quick-link-icon-gallery {
    opacity: 0.42;
}

.gallery-icon-frame {
    position: absolute;
    display: block;
    width: 42px;
    height: 34px;
    border: 2px solid currentColor;
    border-radius: 5px;
    color: #5f6963;
    background: rgba(255, 255, 255, 0.45);
}

.gallery-icon-frame-back {
    top: 17px;
    left: 8px;
    transform: rotate(-7deg);
}

.gallery-icon-frame-front {
    top: 13px;
    left: 14px;
    overflow: hidden;
    background: #fff;
}

.gallery-icon-sun {
    position: absolute;
    top: 6px;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.gallery-icon-mountain {
    position: absolute;
    right: 5px;
    bottom: 5px;
    left: 5px;
    height: 13px;
    background: currentColor;
    clip-path: polygon(0 100%, 34% 38%, 52% 66%, 68% 24%, 100% 100%);
}

.quick-link-title {
    display: block;
    width: 100%;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: #17643b;
    text-transform: uppercase;
    text-wrap: balance;
}

.quick-link-description {
    display: block;
    width: 100%;
    max-width: 19rem;
    font-size: 0.84rem;
    line-height: 1.48;
    color: rgba(23, 100, 59, 0.8);
    text-wrap: pretty;
}

.quick-link-card:hover {
    transform: translateY(-6px);
    background:
        radial-gradient(circle at top right, rgba(0, 154, 68, 0.2), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(227, 244, 233, 0.98) 100%);
    border-color: rgba(0, 154, 68, 0.22);
    box-shadow: 0 24px 42px rgba(23, 55, 35, 0.14);
}

.quick-link-card:hover .quick-link-icon {
    opacity: 0.64;
    transform: translateY(-50%) translateX(-2px);
}

.document-modal {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem;
    background: rgba(5, 29, 18, 0.56);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.document-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.document-modal-panel {
    width: min(780px, 100%);
    max-height: min(82vh, 760px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(0, 154, 68, 0.1), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f8fbf8 100%);
    border: 1px solid rgba(0, 154, 68, 0.16);
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(6, 25, 15, 0.26);
}

.document-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1.5rem 1.2rem;
    border-bottom: 1px solid rgba(0, 154, 68, 0.1);
}

.document-modal-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    padding: 0.38rem 0.82rem;
    border-radius: 999px;
    background: rgba(0, 154, 68, 0.1);
    color: #0f6338;
    font-family: var(--font-ui);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.document-modal-header h2 {
    margin-bottom: 0.45rem;
    color: #173f2c;
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.document-modal-header p {
    color: rgba(23, 63, 44, 0.76);
    font-size: 0.98rem;
    line-height: 1.65;
}

.document-modal-close {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(0, 154, 68, 0.1);
    color: #0f6338;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.document-modal-close:hover {
    background: rgba(0, 154, 68, 0.16);
    transform: translateY(-1px);
}

.document-list {
    display: grid;
    gap: 1rem;
    padding: 1.4rem 1.5rem 1.5rem;
    overflow-y: auto;
}

.document-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 154, 68, 0.12);
    background: rgba(255, 255, 255, 0.92);
}

.document-item-title {
    display: block;
    margin-bottom: 0.32rem;
    color: #173f2c;
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.document-item-meta {
    display: block;
    color: rgba(23, 63, 44, 0.7);
    font-size: 0.9rem;
}

.document-item-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.document-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.78rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.document-action-primary {
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 10px 22px rgba(0, 154, 68, 0.14);
}

.document-action-primary:hover {
    background: var(--brand-primary-dark);
    transform: translateY(-1px);
}

.document-action-secondary {
    border: 1px solid rgba(0, 154, 68, 0.16);
    background: #fff;
    color: #0f6338;
}

.document-action-secondary:hover {
    background: rgba(0, 154, 68, 0.08);
    border-color: rgba(0, 154, 68, 0.24);
    transform: translateY(-1px);
}

.document-empty {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(0, 154, 68, 0.08);
    color: rgba(23, 63, 44, 0.8);
}

.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 2.8vw, 2.4rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: #173f2c;
    text-wrap: balance;
}

.noticias-grid {
    padding: 4rem 0;
    background: #fff;
}

.news-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.noticias-grid h2 {
    margin-bottom: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 2.8vw, 2.4rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: #173f2c;
    text-wrap: balance;
}

.news-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 48px;
    padding: 0.78rem 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 154, 68, 0.18);
    background: #fff;
    color: var(--brand-primary);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 28px rgba(0, 122, 54, 0.08);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.news-more-link:hover,
.news-more-link:focus-visible,
.news-more-link:active {
    background: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(0, 122, 54, 0.2);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.noticias-grid article {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.noticias-grid article:hover {
    transform: translateY(-5px);
}

.news-card-media {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eef3ef;
}

.news-card-media img,
.news-card-media video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.noticias-grid article h3 {
    padding: 1rem;
    font-size: 1.2rem;
}

.noticias-grid article p {
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    background: var(--brand-primary);
    color: #fff;
    padding: 0.5rem 1rem;
    margin: 1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.noticias-grid article .btn {
    margin-top: auto;
}

.btn:hover {
    background: var(--brand-primary-dark);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
    transition:
        opacity 0.55s ease,
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.55s ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform, filter;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.media-links {
    padding: 0 0 4.5rem;
    background: #fff;
}

.media-links-header {
    max-width: 52rem;
    margin: 0 auto 2rem;
    text-align: center;
}

.media-links-header h2 {
    margin-bottom: 0.8rem;
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 2.8vw, 2.4rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: #173f2c;
    text-wrap: balance;
}

.media-links-header p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(23, 63, 44, 0.78);
    text-wrap: pretty;
}

.media-links-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 1.5rem;
    align-items: stretch;
}

.media-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    min-height: 100%;
    padding: 1.7rem;
    background: #fff;
    border: 0;
    border-radius: 26px;
    box-shadow: 0 14px 34px rgba(16, 51, 30, 0.05);
    overflow: hidden;
}

.media-card-copy {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.media-label {
    display: inline-flex;
    width: fit-content;
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    background: rgba(0, 154, 68, 0.1);
    color: #11673c;
    font-family: var(--font-ui);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.media-card h3 {
    color: #173f2c;
    font-size: 1.55rem;
    line-height: 1.1;
    text-wrap: balance;
}

.media-card p {
    color: rgba(23, 63, 44, 0.8);
    font-size: 0.98rem;
    line-height: 1.72;
    text-wrap: pretty;
}

.media-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
}

.media-actions .btn {
    margin: 0;
    border-radius: 999px;
    padding: 0.72rem 1.15rem;
    font-weight: 700;
}

.media-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #0b6b3b;
    font-family: var(--font-ui);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.media-link::after {
    content: "\2197";
    font-size: 0.9em;
}

.media-link:hover {
    color: var(--brand-primary-dark);
    transform: translateX(2px);
}

.media-card-radio,
.media-card-video {
    justify-content: flex-start;
}

.radio-player-panel {
    position: relative;
    overflow: hidden;
    padding: 1.15rem 1.2rem 1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, #f8fbf8 0%, #f1f8f3 100%);
    border: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    color: #173f2c;
}

.media-card-radio.is-playing .radio-player-panel {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.55),
        0 8px 22px rgba(0, 154, 68, 0.08);
}

.radio-player-top,
.radio-player-meta {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.radio-live,
.radio-frequency {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-family: var(--font-ui);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.radio-live {
    gap: 0.45rem;
    background: rgba(0, 154, 68, 0.1);
    color: #11673c;
}

.radio-live::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0da857;
    box-shadow: 0 0 0 6px rgba(13, 168, 87, 0.12);
}

.radio-frequency {
    border: 1px solid rgba(0, 154, 68, 0.14);
    background: rgba(255, 255, 255, 0.78);
    color: #11673c;
}

.radio-wave {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: end;
    gap: 0.35rem;
    height: 78px;
    margin: 1.2rem 0 1rem;
}

.radio-wave span {
    display: block;
    height: 100%;
    border-radius: 999px 999px 6px 6px;
    background: linear-gradient(180deg, rgba(0, 154, 68, 0.9), rgba(0, 154, 68, 0.22));
    opacity: 0.8;
}

.radio-wave span:nth-child(1),
.radio-wave span:nth-child(7) {
    height: 34%;
}

.radio-wave span:nth-child(2),
.radio-wave span:nth-child(10) {
    height: 58%;
}

.radio-wave span:nth-child(3),
.radio-wave span:nth-child(11) {
    height: 82%;
}

.radio-wave span:nth-child(4),
.radio-wave span:nth-child(9) {
    height: 50%;
}

.radio-wave span:nth-child(5),
.radio-wave span:nth-child(12) {
    height: 92%;
}

.radio-wave span:nth-child(6),
.radio-wave span:nth-child(8) {
    height: 68%;
}

.media-card-radio.is-playing .radio-wave span {
    animation: radioWavePulse 1.15s ease-in-out infinite;
}

.media-card-radio.is-playing .radio-wave span:nth-child(2n) {
    animation-delay: 0.12s;
}

.media-card-radio.is-playing .radio-wave span:nth-child(3n) {
    animation-delay: 0.22s;
}

.radio-player-meta strong,
.radio-player-meta span,
.radio-player-meta small {
    position: relative;
    z-index: 1;
    display: block;
}

.radio-player-meta strong {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.1;
}

.radio-player-meta span,
.radio-player-meta small {
    color: rgba(23, 63, 44, 0.68);
    font-size: 0.88rem;
}

.radio-stream {
    display: none;
}

.radio-status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.5rem;
    padding: 0.48rem 0.82rem;
    border-radius: 999px;
    background: rgba(0, 154, 68, 0.08);
    color: #11673c;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 700;
}

.radio-status-inline {
    background: rgba(255, 255, 255, 0.78);
}

.radio-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(17, 103, 60, 0.38);
}

.media-card-radio.is-playing .radio-status {
    background: rgba(0, 154, 68, 0.12);
    color: #0b6b3b;
}

.media-card-radio.is-playing .radio-status::before {
    background: #0da857;
    box-shadow: 0 0 0 6px rgba(13, 168, 87, 0.12);
}

.radio-player-controls {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.55rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(0, 154, 68, 0.1);
}

.radio-player-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.radio-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.72rem 1rem;
    border: 1px solid rgba(0, 154, 68, 0.16);
    border-radius: 999px;
    background: rgba(0, 154, 68, 0.06);
    color: #0f6338;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.radio-secondary-button:hover {
    background: rgba(0, 154, 68, 0.12);
    border-color: rgba(0, 154, 68, 0.22);
    transform: translateY(-1px);
}

@keyframes radioWavePulse {
    0%,
    100% {
        transform: scaleY(0.72);
        opacity: 0.7;
    }
    50% {
        transform: scaleY(1.06);
        opacity: 1;
    }
}

.media-video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at top right, rgba(0, 154, 68, 0.07), transparent 22%),
        #0c2517;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.media-video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.media-link-channel {
    margin-top: auto;
    align-self: flex-start;
    padding-top: 0.15rem;
}

.delegations-directory {
    padding: 0 0 4.5rem;
    background:
        radial-gradient(circle at top center, rgba(0, 154, 68, 0.1), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
}

.delegations-directory-heading {
    margin-bottom: 3.2rem;
    text-align: center;
}

.delegations-directory-heading h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 4.9vw, 4.1rem);
    line-height: 1.04;
    letter-spacing: 0;
    color: #173f2c;
    text-wrap: balance;
}

.delegations-directory-layout {
    width: min(1150px, 100%);
    margin: 0 auto;
}

.delegations-accordion {
    display: grid;
    gap: 1rem;
}

.delegation-item {
    border: 1px solid rgba(0, 154, 68, 0.14);
    border-radius: 26px;
    background:
        radial-gradient(circle at center right, rgba(0, 154, 68, 0.1), transparent 20%),
        linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
    box-shadow: none;
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.delegation-item:hover {
    box-shadow: 0 18px 32px rgba(20, 62, 37, 0.08);
}

.delegation-item[open] {
    border-color: #173f2c;
    box-shadow: 0 16px 28px rgba(20, 62, 37, 0.06);
}

.delegation-summary {
    position: relative;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 66px;
    padding: 1rem 4.9rem 1rem 1.45rem;
    cursor: pointer;
}

.delegation-summary::marker {
    content: "";
}

.delegation-summary::-webkit-details-marker {
    display: none;
}

.delegation-summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 1.25rem;
    width: 43px;
    height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 154, 68, 0.08);
    color: #0c7a3e;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    transform: translateY(-50%);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.delegation-item[open] .delegation-summary::after {
    content: "-";
    background: rgba(0, 154, 68, 0.12);
    color: #095d30;
}

.delegation-name {
    color: #053d2d;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.delegation-summary-meta {
    display: none;
}

.delegation-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem 1.8rem;
    padding: 0.4rem 1.45rem 1.05rem;
    border-top: 1px solid rgba(23, 61, 42, 0.1);
}

.delegation-field {
    display: grid;
    gap: 0.16rem;
    padding: 0.78rem 0;
    border-bottom: 1px solid rgba(23, 61, 42, 0.14);
}

.delegation-field:nth-child(2) {
    grid-column: span 2;
}

.delegation-field:last-child {
    border-bottom: 0;
}

.delegation-label {
    color: rgba(23, 63, 44, 0.64);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.delegation-field p,
.delegation-field a {
    color: #111;
    font-size: 1.1rem;
    line-height: 1.38;
    text-decoration: none;
    word-break: break-word;
}

.delegation-field a:hover {
    color: var(--brand-primary-dark);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll,
    .reveal-on-scroll.is-visible {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

@media (max-width: 768px) {
    #hero {
        padding: 0;
    }

    .hero-actions {
        left: auto;
        right: 0.9rem;
        bottom: 3rem;
        gap: 0.55rem;
        justify-content: flex-end;
        flex-wrap: wrap;
        max-width: calc(100% - 1.8rem);
    }

    .hero-primary-link,
    .hero-secondary-link {
        width: auto;
        min-height: 40px;
        padding: 0.68rem 1rem;
        font-size: 0.82rem;
        letter-spacing: 0.01em;
    }

    .hero-carousel {
        height: 100vh;
        min-height: 420px;
        border-radius: 0;
    }

    .hero-slide-content h2 {
        font-size: 1.08rem;
        max-width: 80%;
    }

    .hero-slide-content {
        padding: 1.1rem 1rem 5rem;
    }

    .hero-dots {
        bottom: 1.6rem;
    }

    .quick-links {
        padding: 1.25rem 0 1.4rem;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .quick-link-card {
        min-height: 104px;
        padding: 0.9rem 5rem 0.85rem 0.95rem;
        border-radius: 16px;
        gap: 0.4rem;
    }

    .quick-link-icon {
        right: 0.9rem;
        width: 56px;
        height: 56px;
    }

    .quick-link-icon img {
        width: 42px;
        height: 42px;
    }

    .quick-link-title {
        font-size: 0.9rem;
    }

    .quick-link-description {
        max-width: none;
        font-size: 0.78rem;
        line-height: 1.42;
    }

    .news-section-head {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
        text-align: left;
    }

    .noticias-grid h2 {
        flex: 1 1 auto;
        min-width: 0;
    }

    .news-more-link {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 0.72rem 0.95rem;
        font-size: 0.84rem;
        box-shadow: 0 10px 20px rgba(0, 122, 54, 0.08);
    }

    .document-modal {
        padding: 1rem;
    }

    .document-modal-panel {
        border-radius: 24px;
    }

    .document-modal-header {
        padding: 1.2rem 1.2rem 1rem;
    }

    .document-modal-header p {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .document-list {
        padding: 1rem 1.2rem 1.2rem;
    }

    .document-item {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .document-item-actions {
        justify-content: flex-start;
    }

    .document-action {
        width: auto;
    }

    .media-links {
        padding: 0 0 3.5rem;
    }

    .delegations-directory {
        padding: 0 0 3.5rem;
    }

    .media-links-header {
        margin-bottom: 1.5rem;
    }

    .media-links-header h2 {
        font-size: 1.9rem;
    }

    .media-links-header p {
        font-size: 0.94rem;
        line-height: 1.6;
    }

    .media-links-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .delegations-directory-heading {
        margin-bottom: 2.25rem;
        text-align: left;
    }

    .delegations-directory-heading h2 {
        font-size: 1.95rem;
    }

    .delegations-directory-layout {
        width: 100%;
    }

    .delegation-panel {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .delegation-field:nth-child(2) {
        grid-column: auto;
    }

    .media-card {
        padding: 1.2rem;
        border-radius: 22px;
    }

    .radio-player-panel {
        padding: 1.15rem 1.1rem 1rem;
        border-radius: 20px;
    }

    .radio-wave {
        height: 62px;
        gap: 0.28rem;
        margin: 1rem 0 0.9rem;
    }

    .radio-player-controls {
        align-items: flex-start;
    }

    .radio-player-actions {
        width: 100%;
    }

    .media-card h3 {
        font-size: 1.35rem;
    }

    .media-card p {
        font-size: 0.92rem;
        line-height: 1.62;
    }

    .media-video-frame {
        border-radius: 18px;
    }

    .media-actions {
        gap: 0.7rem;
    }

    .media-actions .btn {
        width: auto;
        margin: 0;
    }

    .delegations-entry p,
    .delegations-entry a,
    .delegations-entry strong {
        font-size: 0.92rem;
        line-height: 1.45;
    }

    .reveal-on-scroll {
        transform: translateY(20px);
        filter: blur(4px);
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 0.45rem);
        right: 1rem;
        left: 1rem;
        width: auto;
        max-height: calc(100vh - 6.5rem);
        overflow-y: auto;
        overflow-x: hidden;
        background: #07853d;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-left: 0;
        padding: 0.9rem;
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: 0 22px 45px rgba(0, 0, 0, 0.26);
        transform: translateY(-12px) scale(0.98);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    .navbar .container {
        min-height: 88px;
        padding: 0.9rem 16px;
    }

    .nav-links li {
        opacity: 0;
        width: 100%;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0.9rem 1rem;
        border-radius: 14px;
        font-size: 0.92rem;
        background: rgba(255, 255, 255, 0.06);
    }

    .nav-links a::after {
        right: 1rem;
        bottom: 0.42rem;
        left: 1rem;
    }

    .submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .submenu {
        position: static;
        min-width: unset;
        max-height: 0;
        padding: 0;
        margin-top: 0.3rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        transform: none;
        overflow: hidden;
        border: 0;
        transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.2s ease;
    }

    .submenu a {
        padding: 0.72rem 1rem 0.72rem 1.2rem;
        color: #fff;
        font-size: 0.86rem;
        background: transparent;
    }

    .submenu a:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }

    .has-submenu:hover .submenu,
    .has-submenu:focus-within .submenu {
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        padding: 0;
    }

    .has-submenu.is-open .submenu {
        max-height: 220px;
        padding: 0.35rem;
        opacity: 1;
        visibility: visible;
    }

    .has-submenu.is-open .nav-caret {
        transform: rotate(180deg);
    }

    .burger {
        display: inline-flex;
    }

    .nav-social {
        margin-left: auto;
        margin-right: 0.55rem;
        gap: 0.4rem;
    }

    .nav-social a {
        min-width: 38px;
        min-height: 38px;
        padding: 0 0.65rem;
    }

    .nav-social svg {
        width: 16px;
        height: 16px;
    }

    .nav-active {
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-active li {
        opacity: 1;
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(18px);
        }
        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

}

@media (max-width: 640px) {
    .delegations-directory-layout {
        width: 100%;
    }

    .delegation-summary {
        padding: 0.9rem 3.8rem 0.9rem 1rem;
        align-items: start;
    }

    .delegation-name {
        font-size: 1rem;
    }

    .delegation-panel {
        padding: 0 1rem 0.9rem;
    }
}
