:root {
    --primary-color: #7d1f2b;
    --primary-dark: #5d1220;
    --accent-color: #d9c268;
    --accent-deep: #b79239;
    --bg-light: #f4f0e7;
    --bg-panel: #fffdf9;
    --text-main: #2b1d1a;
    --text-muted: #5f453d;
    --shadow-soft: 0 18px 40px rgba(36, 16, 19, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: 110px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background: linear-gradient(180deg, #f5f0e6 0%, #f9f5ee 100%);
}

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

a {
    color: inherit;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

header {
    background: rgba(125, 31, 43, 0.98);
    color: #fffaf2;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 8px 20px rgba(49, 12, 17, 0.14);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 1.3rem;
}

.brand-mark {
    width: 76px;
    height: 76px;
    border-radius: 12px;
    object-fit: contain;
    background: #fffaf2;
    padding: 6px;
}

.brand-mark-link {
    display: inline-flex;
}

.nav-links {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-dark);
    padding: 0.8rem 1.4rem;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, background 0.2s ease;
    box-shadow: 0 10px 20px rgba(104, 74, 35, 0.18);
}

.btn:hover {
    background: var(--accent-deep);
    transform: translateY(-1px);
}

.flag-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.btn.secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: none;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hero {
    background: linear-gradient(135deg, #8d2331 0%, #6d1625 100%);
    color: #fffaf1;
    padding: 4rem 0 3rem;
    border-bottom: 5px solid var(--accent-color);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fce7a1;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}

.hero p {
    font-size: 1.15rem;
    max-width: 36rem;
    color: #f6eedf;
    margin-bottom: 1.6rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero-meta {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    color: #f6eedf;
    font-weight: 600;
    font-size: 0.92rem;
}

.hero-visual {
    position: relative;
    padding: 1rem;
}

.photo-stack {
    position: relative;
    display: grid;
    gap: 1rem;
    max-width: 480px;
    margin-left: auto;
}

.photo-card {
    position: relative;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.photo-card.big {
    transform: rotate(-2deg);
}

.photo-row {
    display: flex;
    gap: 1rem;
}

.photo-card.small {
    flex: 1;
    min-width: 0;
    transform: rotate(3deg);
}

.photo-card.small:last-child {
    transform: rotate(-3deg);
}

.photo-row .photo-card img {
    height: 170px;
}

.photo-card.wide {
    transform: rotate(-1deg);
}

.photo-card.wide img {
    height: auto;
    object-fit: contain;
}

.photo-card figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.6rem 0.9rem 0.7rem;
    font-size: 0.78rem;
    color: #f6eedf;
    text-align: center;
    background: linear-gradient(0deg, rgba(24, 6, 9, 0.75) 0%, rgba(24, 6, 9, 0) 100%);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.photo-card:hover figcaption,
.photo-card:focus-within figcaption {
    opacity: 1;
    transform: translateY(0);
}

.photo-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.spanish-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(217, 194, 104, 0.18);
    color: #f3e7b6;
    border: 1px solid rgba(217, 194, 104, 0.35);
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin-top: 1rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.spanish-tag:hover {
    background: rgba(217, 194, 104, 0.3);
    border-color: rgba(217, 194, 104, 0.55);
}

.main {
    padding: 4rem 0;
}

.section-heading {
    margin-bottom: 1.7rem;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    color: var(--primary-color);
    margin-bottom: 0.6rem;
    line-height: 1.1;
}

.section-heading p {
    color: var(--text-muted);
    max-width: 46rem;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-panel);
    border: 1px solid rgba(125, 31, 43, 0.08);
    box-shadow: 0 10px 24px rgba(61, 16, 20, 0.04);
    border-radius: 20px;
    padding: 1.5rem;
}

.manifesto-grid .card {
    border-top: 5px solid var(--accent-color);
}

.card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.card p {
    color: var(--text-muted);
}

.bio-box {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    align-items: center;
    background: linear-gradient(180deg, #fffdf8 0%, #f8f1e6 100%);
    border: 1px solid rgba(125, 31, 43, 0.08);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.bio-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 18px;
    border: 3px solid var(--accent-color);
    background: #e9dec0;
}

.bio-box h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.bio-box p {
    color: var(--text-muted);
    margin-bottom: 0.7rem;
}

.callout {
    margin-top: 4rem;
    background: linear-gradient(180deg, #efe7d7 0%, #f7f3e8 100%);
    border-radius: 26px;
    padding: 2.1rem;
    border: 1px solid rgba(125, 31, 43, 0.08);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.callout h2 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.callout p {
    max-width: 42rem;
    margin: 0 auto 1.5rem;
    color: var(--text-muted);
}

.callout .cta-heading {
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    max-width: 34rem;
    margin: 0 auto 1.5rem;
}

.cta-phrases {
    list-style: none;
    display: grid;
    gap: 0.6rem;
    max-width: 30rem;
    margin: 0 auto 1.8rem;
    text-align: left;
    color: var(--text-muted);
    font-weight: 600;
}

.cta-phrases li {
    padding-left: 1.6rem;
    position: relative;
}

.cta-phrases li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 800;
}

.cta-button {
    margin-bottom: 2rem;
}

.callout .secondary-ways {
    max-width: 42rem;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(125, 31, 43, 0.12);
}

.callout .secondary-ways p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0.8rem;
    line-height: 1.1;
}

.page-intro {
    max-width: 46rem;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.resource-quicknav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
    margin-bottom: 3.5rem;
}

.resource-quicknav a {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    background: var(--bg-panel);
    border: 1px solid rgba(125, 31, 43, 0.15);
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.92rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.resource-quicknav a:hover {
    background: var(--accent-color);
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.resource-category {
    margin-top: 4rem;
}

.resource-category:first-of-type {
    margin-top: 0;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
}

.resource-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.resource-card h3 {
    font-size: 1.1rem;
}

.resource-icon {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
    margin-top: auto;
}

.resource-card .badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    order: 2;
}

.resource-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(217, 194, 104, 0.25);
    color: var(--accent-deep);
    border: 1px solid rgba(217, 194, 104, 0.4);
}

.resource-badge.es {
    background: rgba(125, 31, 43, 0.08);
    color: var(--primary-color);
    border-color: rgba(125, 31, 43, 0.2);
}

.resource-card .resource-link {
    margin-top: auto;
    align-self: flex-start;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.1rem;
}

.resource-card .resource-icon + .resource-link {
    margin-top: 0;
}

.resource-card .resource-link:hover {
    color: var(--primary-dark);
    border-color: var(--primary-color);
}

footer {
    background: var(--primary-dark);
    color: #f2eadc;
    text-align: center;
    padding: 2.2rem 0;
    margin-top: 4rem;
}

footer a {
    color: #f6d577;
}

@media (max-width: 900px) {
    .hero-inner,
    .manifesto-grid {
        grid-template-columns: 1fr;
    }

    .bio-box {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 3rem;
    }

    .photo-row {
        flex-direction: column;
    }

    .photo-card.small,
    .photo-card.small:last-child {
        transform: rotate(1deg);
    }
}

@media (max-width: 560px) {
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .brand {
        font-size: 0.8rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .nav-links .btn {
        width: 42px;
        height: 42px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .nav-links .btn-label {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }
}
