:root {
    --primary-color: #00cc66;
    --primary-dark: #00994d;
    --primary-light: #00e676;
    --secondary-color: #ffffff;
    --bg-light: #f5f5f5;
    --text-dark: #555555;
    --text-muted: #888888;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-800: #3a3a3a;
    --dark-section: #2a2a2a;
}

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

body {
    font-family: 'Jost', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ─── Header & Navigation ─── */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ── Barra superior delgada ── */
.subnav-bar {
    background: #ebebeb;
}

.subnav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 34px;
}

.subnav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.subnav-links a {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #444;
    transition: color 0.2s;
}

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

.subnav-first {
    font-weight: 700 !important;
    color: #222 !important;
}

.subnav-sep {
    color: #bbb;
    font-size: 10px;
    user-select: none;
}

.subnav-right {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #444;
    transition: color 0.2s;
}

.subnav-right:hover {
    color: var(--primary-color);
}

/* ── Barra principal ── */
.mainav-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.mainav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Logo: círculo SVG + texto */
.logo {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-dark);
    line-height: 1;
}

/* Nav links principales */
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dark);
    padding-bottom: 4px;
    position: relative;
    white-space: nowrap;
    transition: color 0.2s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* ─── Hero Section ─── */
.hero {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.55) 100%
    );
    z-index: 1;
}

/* Video de fondo */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.55) 100%
    );
    z-index: 1;
}

.hero-video .hero-content {
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 72px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.05;
    margin-bottom: 22px;
}

.hero p {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.3px;
    margin-bottom: 38px;
    opacity: 0.92;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Buttons ─── */
.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 14px 42px;
    border-radius: 0;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-block;
    transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: scale(1.03);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    padding: 14px 42px;
    border-radius: 0;
    border: 2px solid var(--white);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-block;
    transition: background 0.3s, color 0.3s;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-link {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-color);
    display: inline-block;
    margin-top: 14px;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.btn-link:hover {
    border-color: var(--primary-color);
}

/* ─── Sections ─── */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.section-title p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ─── Grids ─── */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* ─── Cards ─── */
.card {
    background: var(--white);
    overflow: hidden;
    transition: 0.3s;
    cursor: pointer;
}

.card:hover {
    opacity: 0.88;
}

.card-img {
    height: 220px;
    background-color: var(--gray-200);
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    margin-bottom: 18px;
}

.card-content {
    padding: 0 4px;
}

.card-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
    line-height: 1.3;
}

.card-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ─── Page Hero (inner pages) ─── */
.page-hero {
    padding: 110px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 18px;
    opacity: 0.85;
    max-width: 560px;
    margin: 0 auto;
}

/* ─── Tagline block ─── */
.tagline-block {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.tagline-block h2 {
    font-size: 38px;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1.35;
    letter-spacing: -0.3px;
}

.tagline-block p {
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 18px;
    line-height: 1.7;
}

/* ─── Dark Section ─── */
.section-dark {
    background: var(--dark-section);
    color: var(--white);
    padding: 100px 0;
}

.section-dark .section-title h2 {
    color: var(--white);
}

.section-dark .card {
    background: transparent;
}

.section-dark .card-content h3 {
    color: var(--white);
}

.section-dark .card-content p {
    color: rgba(255, 255, 255, 0.65);
}

.section-dark .card-img {
    border-radius: 4px;
}

/* ─── CTA Section ─── */
.section-cta {
    background: var(--primary-color);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.section-cta h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-cta p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 38px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Values / Icon blocks ─── */
.value-block {
    text-align: center;
    padding: 30px 20px;
}

.value-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.value-icon svg {
    width: 42px;
    height: 42px;
    color: var(--primary-color);
}

.value-block h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.value-block p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ─── Divider ─── */
.section-divider {
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border: none;
    margin: 12px 0 28px;
    border-radius: 2px;
}

/* ─── About grid alignment ─── */
.about-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 18px;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

.about-text p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.75;
}

.about-image img {
    box-shadow: 20px 20px 0 var(--primary-light);
    width: 100%;
}

/* ─── Parallax ─── */
.parallax-banner {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.parallax-quote {
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    max-width: 700px;
    line-height: 1.4;
    letter-spacing: -0.3px;
    margin: 0;
}

@media (max-width: 768px) {
    .parallax-banner {
        background-attachment: scroll;
        min-height: 280px;
    }
    .parallax-quote {
        font-size: 20px;
    }
}

/* ─── Footer ─── */
footer {
    background: var(--dark-section);
    color: var(--white);
    padding: 90px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 70px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    margin-bottom: 22px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--white);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 16px;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.footer-social a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* ─── Forms ─── */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    height: 160px;
    resize: vertical;
}

.btn-submit {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 14px 36px;
    border-radius: 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background 0.3s;
}

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

/* ─── Blog / Post ─── */
.post-meta {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.post-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

/* ─── Post prose typography ─── */
.post-prose {
    font-size: 17px;
    line-height: 1.85;
    color: var(--text-dark);
}
.post-prose p,
.post-prose br + br {
    margin-bottom: 1.4em;
}
.post-prose h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin: 2em 0 0.6em;
    color: #1a1a1a;
}
.post-prose h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 1.8em 0 0.5em;
    color: #1a1a1a;
}
.post-prose blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 12px 24px;
    margin: 2em 0;
    background: var(--gray-100);
    border-radius: 0;
    font-style: italic;
    color: var(--text-muted);
}
.post-prose a {
    color: var(--primary-color);
    text-decoration: underline;
}
.post-prose ul,
.post-prose ol {
    padding-left: 24px;
    margin-bottom: 1.4em;
}
.post-prose li {
    margin-bottom: 0.4em;
}
.post-prose img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1.5em 0;
}

/* ─── Hamburger button ─── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: 0.3s;
}

/* ─── Mobile menu drawer ─── */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    transition: right 0.35s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 30px rgba(0,0,0,0.12);
}
.mobile-menu.open { right: 0; }

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    overflow-y: auto;
}

.mobile-menu-links a {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    border-bottom: 1px solid #f5f5f5;
    transition: color 0.2s, background 0.2s;
}
.mobile-menu-links a:hover { color: var(--primary-color); background: #f9f9f9; }

.mobile-menu-donate {
    margin: 20px 24px 0;
    background: var(--primary-color) !important;
    color: var(--white) !important;
    text-align: center;
    border-radius: 0;
    border-bottom: none !important;
    padding: 14px 24px !important;
}
.mobile-menu-donate:hover { background: var(--primary-dark) !important; }

.mobile-menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1999;
}
.mobile-menu-backdrop.open { display: block; }

/* ─── Pilares grid ─── */
.pilares-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
}
.pilar-item:hover img { transform: scale(1.06); filter: brightness(0.6); }
.pilar-item:hover .pilar-overlay { background: rgba(0,0,0,0.2); }

/* ─── Stats home ─── */
.home-stats-section {
    background: var(--primary-color);
    padding: 80px 0;
}
.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.home-stat-num   { font-size: 52px; font-weight: 800; color: #fff; line-height: 1; }
.home-stat-label { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 8px; line-height: 1.4; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }

    .subnav-bar { display: none; }
    .nav-links  { display: none; }
    .nav-hamburger { display: flex; }

    .mainav-bar .mainav-inner { justify-content: space-between; }
    .logo-img { height: 48px; }

    .grid-3, .grid-2, .grid-4, .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Pilares: 2 columnas en móvil */
    .pilares-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3px;
    }
    .pilar-item { aspect-ratio: 4/3; }

    /* Stats: 1 columna en móvil */
    .home-stats-section { padding: 60px 0 80px; }
    .home-stats-grid {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 100%;
    }
    .home-stat {
        padding: 28px 0;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    .home-stat:last-child { border-bottom: none; }
    .home-stat-num { font-size: 44px; }

    .hero { height: 100svh; }
    .hero h1 { font-size: 38px; letter-spacing: -0.5px; }
    .hero p  { font-size: 15px; }

    .section { padding: 60px 0; }
    .section-title h2 { font-size: 28px; }
    .tagline-block h2 { font-size: 24px; }
    .page-hero { padding: 70px 0; }
    .page-hero h1 { font-size: 32px; }
    .section-cta h2 { font-size: 28px; }
    .parallax-quote { font-size: 20px; }
    .parallax-banner { background-attachment: scroll; min-height: 280px; }

    .about-image { order: -1; }
    .about-image img { box-shadow: 10px 10px 0 var(--primary-light); }

    .footer-grid { gap: 36px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

    .btn-primary, .btn-outline {
        padding: 12px 28px;
        font-size: 12px;
    }
}
