@font-face {
    font-family: 'Montserrat';
    src: url('../visual/fuentes/montserrat/montserrat.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../visual/fuentes/montserrat/montserrat_italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

:root {
    --primary: #006b2c;
    --primary-container: #02873a;
    --primary-hover: #2d9e4e;
    --on-primary: #ffffff;
    --surface: #fcf9f8;
    --surface-container: #f0edec;
    --surface-container-low: #f6f3f2;
    --surface-container-high: #ebe7e7;
    --surface-container-highest: #e5e2e1;
    --surface-container-lowest: #ffffff;
    --on-surface: #1c1b1b;
    --secondary: #5f5e5e;
    --outline-variant: #bdcabb;
    --font-main: 'Montserrat', sans-serif;
    --editorial-shadow: 0 32px 64px -12px rgba(28, 27, 27, 0.06);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background: var(--surface);
    color: var(--on-surface);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: rgba(0, 107, 44, 0.1);
    color: var(--primary);
}

button,
a {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.top-nav {
    position: fixed;
    top: 0;
    z-index: 50;
    width: 100%;
    background: rgba(252, 249, 248, 0.8);
    backdrop-filter: blur(24px);
    box-shadow: 0 1px 2px rgba(231, 229, 228, 0.5);
    transition: 300ms ease;
}

.nav-inner,
.section-container,
.footer-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.nav-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
}

.brand,
.footer-brand {
    color: var(--on-surface);
    font-family: var(--font-main);
    font-weight: 700;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    width: auto;
    height: 52px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    color: rgba(28, 27, 27, 0.7);
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.nav-links a,
.footer-links a {
    transition: color 300ms ease;
}

.nav-links a:hover {
    color: var(--primary-hover);
}

.nav-links .nav-link-featured,
.nav-links .nav-link-featured:visited,
.mobile-nav-panel .nav-link-featured,
.mobile-nav-panel .nav-link-featured:visited {
    border: 1px solid rgba(0, 107, 44, 0.18);
    border-radius: 9999px;
    background: rgba(0, 107, 44, 0.08);
    color: var(--primary);
    font-weight: 800;
}

.nav-links .nav-link-featured {
    padding: 8px 14px;
}

.mobile-nav-panel .nav-link-featured {
    text-align: center;
}

.nav-links .nav-link-featured:hover,
.nav-links .nav-link-featured:visited:hover,
.mobile-nav-panel .nav-link-featured:hover,
.mobile-nav-panel .nav-link-featured:visited:hover {
    background: rgba(0, 107, 44, 0.14);
    color: var(--primary);
}

.btn {
    border-radius: 9999px;
    font-family: var(--font-main);
    font-weight: 600;
    transition: transform 300ms ease, background 300ms ease, opacity 300ms ease;
}

.btn:active {
    transform: scale(0.95);
}

.btn-nav {
    padding: 10px 24px;
    background: var(--primary-hover);
    color: #ffffff;
    font-size: 14px;
    transform: scale(0.95);
}

.btn-nav:hover {
    opacity: 0.8;
}

.mobile-nav {
    display: none;
}

.mobile-nav-toggle {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(0, 107, 44, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--editorial-shadow);
    cursor: pointer;
    list-style: none;
}

.mobile-nav-toggle::-webkit-details-marker {
    display: none;
}

.mobile-nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 9999px;
    background: var(--primary);
    transition: transform 250ms ease, opacity 250ms ease;
}

.mobile-nav[open] .mobile-nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-nav[open] .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
}

.mobile-nav[open] .mobile-nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 32px;
    display: flex;
    width: min(320px, calc(100vw - 48px));
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(0, 107, 44, 0.12);
    border-radius: 24px;
    background: rgba(252, 249, 248, 0.98);
    box-shadow: 0 24px 56px -34px rgba(28, 27, 27, 0.28);
    backdrop-filter: blur(24px);
}

.mobile-nav-panel a {
    padding: 12px 14px;
    border-radius: 14px;
    color: rgba(28, 27, 27, 0.78);
    font-size: 15px;
    font-weight: 600;
}

.mobile-nav-panel a:hover {
    background: rgba(0, 107, 44, 0.08);
    color: var(--primary);
}

.mobile-nav-panel .mobile-nav-cta {
    margin-top: 8px;
    text-align: center;
}

main {
    flex: 1;
    padding-top: 96px;
}

footer {
    width: 100%;
    padding: 48px 32px;
    background: var(--surface-container-low);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.footer-copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    font-size: 18px;
    text-align: right;
}

.footer-brand img {
    width: 150px;
    height: auto;
}

.footer-brand p {
    width: 100%;
    margin: 0;
    color: rgba(28, 27, 27, 0.5);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-align: right;
    text-transform: uppercase;
}

.footer-copy p,
.footer-links {
    color: rgba(28, 27, 27, 0.5);
    font-family: var(--font-main);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.footer-copy p {
    max-width: 448px;
}

.footer-legal-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-copy a {
    word-break: break-word;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-links:has(.footer-links-row) {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.footer-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-links a {
    text-decoration: underline;
    text-decoration-color: rgba(45, 158, 78, 0.3);
    text-underline-offset: 4px;
}

.footer-links-row-secondary {
    opacity: 0.76;
}

.footer-links a:hover {
    color: var(--on-surface);
}

@media (max-width: 767px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    footer {
        padding: 40px 24px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .footer-inner,
    .footer-copy {
        text-align: center;
    }

    .footer-links {
        align-items: center;
        justify-content: center;
        gap: 16px 24px;
    }

    .footer-links:has(.footer-links-row) {
        gap: 16px;
    }

    .footer-links-row {
        justify-content: center;
        gap: 16px 24px;
    }

    .footer-copy {
        align-items: center;
        gap: 12px;
    }

    .footer-copy p {
        max-width: 320px;
        line-height: 1.6;
    }

    .footer-brand {
        align-items: center;
        gap: 12px;
    }

    .footer-brand img {
        width: 132px;
    }
}
