:root {
    --tierra-colorada: #b8301c;
    --tierra-oscura: #8b2416;
    --arcilla: #d88254;
    --bosque: #29473d;
    --niebla: #f5f1ec;
    --arena: #e9dfd0;
    --negro: #1a1a1a;
    --gris-oscuro: #2c2c2c;
    --gris-medio: #5b5b5b;
    --gris-claro: #ddd4c7;
    --blanco: #ffffff;
    --sombra: 0 18px 40px rgba(26, 26, 26, 0.08);
}

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

body {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.6;
    color: var(--negro);
    background:
        radial-gradient(circle at top left, rgba(216, 130, 84, 0.08), transparent 30%),
        linear-gradient(180deg, #fcfbf9 0%, #f7f2ec 100%);
}

a {
    color: inherit;
}

.landing-screen {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(12, 26, 21, 0.72) 0%, rgba(23, 47, 40, 0.56) 100%),
        var(--bosque);
}

.landing-media,
.landing-overlay {
    position: absolute;
    inset: 0;
}

.landing-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.landing-overlay {
    display: none;
}

.landing-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 12vh 32px 16vh;
    color: rgba(255, 255, 255, 0.96);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    text-align: center;
}

.landing-title,
.landing-subtitle,
.landing-copy {
    opacity: 0;
    transform: translateY(24px);
    animation: landing-fade-up 0.9s ease-out forwards;
}

.landing-title {
    font-size: clamp(64px, 7vw, 90px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
    text-transform: uppercase;
    animation-delay: 0.18s;
}

.landing-subtitle {
    font-size: clamp(20px, 2.1vw, 28px);
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 10px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
    animation-delay: 0.45s;
}

.landing-copy {
    margin-left: auto;
    margin-right: auto;
    max-width: 640px;
    font-size: clamp(14px, 1.35vw, 18px);
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
    animation-delay: 0.72s;
}

@keyframes landing-fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-title,
    .landing-subtitle,
    .landing-copy {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

.site-frame {
    position: relative;
    margin-top: 0;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(252, 251, 249, 0.96) 0%, rgba(247, 242, 236, 1) 100%);
}

.top-bar {
    background-color: var(--gris-oscuro);
    padding: 12px 0;
}

.top-bar-content,
.header-content,
.nav-content,
.reports-content,
.footer-content,
.footer-bottom,
.page-shell,
.listing-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
}

.top-bar a {
    color: var(--blanco);
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

header {
    background-color: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(221, 212, 199, 0.7);
    backdrop-filter: blur(10px);
}

.header-content {
    padding-top: 28px;
    padding-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
}

.logo {
    font-size: 40px;
    letter-spacing: -0.04em;
}

.logo a {
    text-decoration: none;
}

.logo-accent {
    color: var(--tierra-colorada);
}

.header-tagline {
    max-width: 460px;
    text-align: right;
    color: var(--gris-medio);
    font-size: 14px;
}

nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: rgba(252, 251, 249, 0.94);
    border-bottom: 1px solid rgba(221, 212, 199, 0.9);
    backdrop-filter: blur(12px);
}

.nav-content {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-content a {
    text-decoration: none;
    padding: 16px 0;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 3px solid transparent;
}

.nav-content a:hover,
.nav-content a.active {
    color: var(--tierra-colorada);
    border-bottom-color: var(--tierra-colorada);
}

.search-icon {
    margin-left: auto;
    padding: 16px 0;
}

.hero,
.listing-shell,
.page-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 32px;
}

.hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 42px;
}

.featured-article,
.article-card,
.report-card,
.listing-card,
.article-body {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(221, 212, 199, 0.9);
    box-shadow: var(--sombra);
}

.featured-article {
    padding: 22px;
}

.featured-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.14;
    margin-bottom: 14px;
}

.featured-title a,
.article-info h3 a,
.listing-card h2 a {
    text-decoration: none;
}

.featured-excerpt,
.article-summary,
.section-intro,
.report-description,
.listing-card p,
.article-body p {
    color: var(--gris-medio);
}

.image-card {
    display: block;
    border-radius: 2px;
    text-decoration: none;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-featured {
    min-height: 420px;
    margin-bottom: 24px;
    background:
        linear-gradient(160deg, rgba(41, 71, 61, 0.45), rgba(184, 48, 28, 0.25)),
        linear-gradient(135deg, #894023 0%, #b8301c 46%, #cf8556 100%);
    position: relative;
    overflow: hidden;
}

.image-featured.has-photo {
    background: var(--tierra-colorada);
}

.image-featured span {
    position: absolute;
    left: 24px;
    bottom: 24px;
    color: var(--blanco);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 1;
}

.image-featured::after,
.image-forest::after,
.image-farm::after,
.image-water::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(130deg, transparent 0 55%, rgba(255, 255, 255, 0.18) 55% 62%, transparent 62%),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 24%);
}

.image-featured.has-photo::after {
    background: linear-gradient(180deg, transparent 45%, rgba(26, 26, 26, 0.28) 100%);
}

.recent-articles {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.article-card {
    display: flex;
    gap: 18px;
    padding: 16px;
}

.article-thumbnail {
    width: 150px;
    min-height: 130px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.image-forest {
    background: linear-gradient(135deg, #29473d 0%, #59775e 48%, #b8663b 100%);
}

.image-farm {
    background: linear-gradient(135deg, #aa5e26 0%, #d8a15b 52%, #405f44 100%);
}

.image-water {
    background: linear-gradient(135deg, #456c79 0%, #83a8ad 42%, #b85b35 100%);
}

.article-info h3 {
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 8px;
}

.eyebrow {
    color: var(--tierra-colorada);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    margin-bottom: 10px;
}

.article-meta,
.report-meta {
    font-size: 14px;
    color: var(--gris-medio);
}

.text-link {
    align-self: flex-start;
    color: var(--tierra-colorada);
    text-decoration: none;
    font-weight: 700;
    margin-top: 6px;
}

.reports-section {
    padding-bottom: 72px;
}

.section-header {
    margin-bottom: 28px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.reports-grid,
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.reports-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.report-cover {
    min-height: 420px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: var(--sombra);
}

.report-cover-link {
    display: block;
    height: 100%;
    text-decoration: none;
}

.report-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
}

.report-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(20, 13, 9, 0.08) 0%, rgba(20, 13, 9, 0.22) 38%, rgba(20, 13, 9, 0.92) 100%);
}

.cover-selva::before {
    background-image: url("../img/SelvaMisionera-1-scaled.jpg");
}

.cover-jaguar::before {
    background-image: url("../img/jaguar-americano-en-el-habitat-natural-de-la-jungla-sudamericana-3.jpg");
}

.cover-tierra::before {
    background-image:
        linear-gradient(145deg, rgba(184, 48, 28, 0.3), rgba(41, 71, 61, 0.15)),
        url("../img/1.webp");
}

.report-cover-overlay {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    padding: 26px 24px 24px;
    color: var(--blanco);
}

.report-cover-type {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.report-cover-overlay h2 {
    font-size: 1.7rem;
    line-height: 1.1;
    margin-bottom: 12px;
    max-width: 12ch;
}

.report-cover-authors {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
}

.report-card,
.listing-card {
    padding: 24px;
}

.report-type {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--tierra-colorada);
    color: var(--blanco);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.report-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.25;
}

.download-btn,
.button-link {
    display: inline-block;
    margin-top: 14px;
    padding: 11px 18px;
    border: 1px solid var(--tierra-colorada);
    color: var(--tierra-colorada);
    text-decoration: none;
    font-weight: 700;
}

.download-btn:hover,
.button-link:hover,
.text-link:hover {
    color: var(--bosque);
    border-color: var(--bosque);
}

footer {
    background: var(--negro);
    color: var(--blanco);
    margin-top: 56px;
}

.footer-content {
    padding-top: 48px;
    padding-bottom: 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-section h4 {
    color: #f2b79a;
    margin-bottom: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ddd4c7;
    text-decoration: none;
}

.footer-bottom {
    padding-top: 24px;
    padding-bottom: 28px;
    border-top: 1px solid rgba(233, 223, 208, 0.2);
    color: #ddd4c7;
    font-size: 13px;
}

.page-intro,
.listing-intro {
    max-width: 780px;
    margin-bottom: 32px;
}

.page-intro h1,
.listing-intro h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.08;
    margin-bottom: 14px;
}

.page-kicker {
    color: var(--tierra-colorada);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    margin-bottom: 12px;
}

.article-hero {
    min-height: 360px;
    margin-bottom: 30px;
}

.article-body {
    padding: 28px;
}

.article-body p + p {
    margin-top: 16px;
}

.article-body h2 {
    margin-top: 30px;
    margin-bottom: 12px;
    font-size: 1.6rem;
}

.article-body ul {
    margin: 16px 0 0 18px;
}

.article-body li + li {
    margin-top: 10px;
}

.back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--tierra-colorada);
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .reports-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .top-bar-content,
    .header-content,
    .nav-content,
    .reports-content,
    .footer-content,
    .footer-bottom,
    .page-shell,
    .listing-shell,
    .hero {
        padding-left: 20px;
        padding-right: 20px;
    }

    .top-bar-content,
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-tagline {
        text-align: left;
    }

    .nav-content {
        flex-wrap: wrap;
        gap: 18px;
    }

    .search-icon {
        display: none;
    }

    .article-card {
        flex-direction: column;
    }

    .article-thumbnail {
        width: 100%;
        min-height: 180px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .reports-gallery {
        grid-template-columns: 1fr;
    }

    .landing-content {
        padding: 18vh 24px 14vh;
    }

    .landing-title {
        font-size: clamp(38px, 11vw, 56px);
        line-height: 1.05;
        letter-spacing: 2px;
        margin-bottom: 18px;
    }

    .landing-subtitle {
        font-size: clamp(18px, 5vw, 22px);
    }

    .landing-copy {
        font-size: clamp(14px, 3.6vw, 16px);
    }

    .site-frame {
        margin-top: 0;
        border-radius: 0;
    }
}
