/* --- Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --color-bg: #0f1419;
    --color-surface: #1a2332;
    --color-text: #e8e6e3;
    --color-text-muted: #9ca3af;
    --color-accent: #c45c26;
    --color-accent-hover: #d96b32;
    --header-bg: rgba(15, 20, 25, 0.92);
    --header-border: rgba(255, 255, 255, 0.06);
    --nav-hover-bg: rgba(255, 255, 255, 0.05);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --font-sans: 'DM Sans', system-ui, sans-serif;
    --header-height: 92px;
    --margin-lateral: 7%;
}

[data-theme="light"] {
    --color-bg: #f5f5f5;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-text-muted: #555555;
    --color-accent: #b8521f;
    --color-accent-hover: #c45c26;
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-border: rgba(0, 0, 0, 0.08);
    --nav-hover-bg: rgba(0, 0, 0, 0.05);
    --border-subtle: rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-bg);
    box-sizing: border-box;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* --- Sticky Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--header-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--header-height);
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--color-text);
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.85;
}

.logo-img {
    display: block;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Tema oscuro: logo-dark.webp. Tema claro: logo-white.webp. */
.logo-img--dark {
    display: block;
}

.logo-img--white {
    display: none;
}

[data-theme="light"] .logo-img--dark {
    display: none;
}

[data-theme="light"] .logo-img--white {
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.950625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: var(--color-text);
    background: var(--nav-hover-bg);
}

.nav-link.active {
    color: var(--color-accent);
}

.nav-list li:last-child .nav-link {
    background: var(--color-accent);
    color: #fff;
    font-weight: 600;
}

.nav-list li:last-child .nav-link:hover {
    background: var(--color-accent-hover);
    color: #fff;
}

.nav-list li:last-child .nav-link.active {
    background: var(--color-accent-hover);
    color: #fff;
}

/* Selector de idiomas */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.lang-select-li {
    display: flex;
    align-items: center;
}

.lang-select-wrap {
    display: flex;
    align-items: center;
}

.nav-list .lang-select {
    padding: 0.5rem 0.75rem;
    font-size: 0.950625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    background: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 1.75rem;
}

.nav-list .lang-select:hover,
.nav-list .lang-select:focus {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #fff;
    outline: none;
}

.nav-panel__list .lang-select-li {
    margin-top: 0.5rem;
}

.nav-panel__list .lang-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    background: var(--nav-hover-bg);
    border: 1px solid var(--header-border);
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.nav-panel__list .lang-select:hover,
.nav-panel__list .lang-select:focus {
    background-color: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    outline: none;
}

.theme-toggle {
    margin-left: 0.75rem;
    padding: 0.5rem 0.6rem;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--color-text);
    background: var(--nav-hover-bg);
    border: 1px solid var(--header-border);
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.theme-toggle__icon--moon {
    display: none;
}

[data-theme="light"] .theme-toggle__icon--sun {
    display: none;
}

[data-theme="light"] .theme-toggle__icon--moon {
    display: inline;
}

/* Toggle hamburger: solo móvil */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--header-border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--color-text);
    transition: background 0.2s;
}

.nav-toggle:hover {
    background: var(--nav-hover-bg);
}

.nav-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    margin: 0 auto;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Overlay y panel móvil (se abre de derecha a izquierda) */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-panel {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1002;
    width: 85%;
    max-width: 320px;
    background: var(--color-surface);
    border-left: 1px solid var(--border-subtle);
    padding: 2rem 1.5rem;
    align-items: stretch;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

body.nav-open .nav-overlay {
    opacity: 1;
}

body.nav-open .nav-panel {
    transform: translateX(0);
}

.nav-panel__inner {
    display: flex;
    flex-direction: column;
}

.nav-panel__logo {
    display: flex;
    margin-bottom: 2rem;
}

.nav-panel__logo-img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-panel__logo-img--dark {
    display: block;
}
.nav-panel__logo-img--white {
    display: none;
}
[data-theme="light"] .nav-panel__logo-img--dark {
    display: none;
}
[data-theme="light"] .nav-panel__logo-img--white {
    display: block;
}

.nav-panel__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-panel__link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.nav-panel__link:hover,
.nav-panel__link.active {
    background: var(--nav-hover-bg);
    color: var(--color-accent);
}

.nav-panel__link--cta {
    background: var(--color-accent);
    color: #fff;
    font-weight: 600;
    margin-top: 0.5rem;
}
.nav-panel__link--cta:hover,
.nav-panel__link--cta.active {
    background: var(--color-accent-hover);
    color: #fff;
}

/* Menú móvil (sección antes del footer, solo desktop o oculto si solo usamos panel) */
.nav-mobile {
    display: none;
    margin: 0 var(--margin-lateral);
    padding: 3rem 0;
    border-top: 1px solid var(--border-subtle);
    background: var(--color-bg);
}

.nav-mobile__inner {
    max-width: 320px;
    margin: 0 auto;
}

.nav-mobile__logo {
    display: flex;
    margin-bottom: 1.5rem;
}

.nav-mobile__logo-img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-mobile__logo-img--dark {
    display: block;
}
.nav-mobile__logo-img--white {
    display: none;
}
[data-theme="light"] .nav-mobile__logo-img--dark {
    display: none;
}
[data-theme="light"] .nav-mobile__logo-img--white {
    display: block;
}

.nav-mobile__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-mobile__link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.nav-mobile__link:hover,
.nav-mobile__link.active {
    background: var(--nav-hover-bg);
    color: var(--color-accent);
}

.nav-mobile__link--cta {
    background: var(--color-accent);
    color: #fff;
    font-weight: 600;
    margin-top: 0.5rem;
}
.nav-mobile__link--cta:hover,
.nav-mobile__link--cta.active {
    background: var(--color-accent-hover);
    color: #fff;
}

/* --- Hero --- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 85vh;
    margin: 0 var(--margin-lateral);
    padding: 4rem 0;
    overflow: hidden;
}

.hero-slider {
    background: var(--color-bg);
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide--active {
    opacity: 1;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 20, 25, 0.5) 0%, rgba(15, 20, 25, 0.75) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    text-align: center;
}

@keyframes heroTextIn {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content.hero-content--animate .hero-title {
    animation: heroTextIn 0.5s ease-out forwards;
}

.hero-content.hero-content--animate .hero-subtitle {
    animation: heroTextIn 0.5s ease-out 0.12s forwards;
    opacity: 0;
}

.hero-title {
    margin: 0 0 1rem;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--color-text);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    margin: 0;
    font-size: 1.125rem;
    color: var(--color-text);
    font-weight: 400;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, border-color 0.2s;
}

.hero-dot:hover {
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.3);
}

.hero-dot--active {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

/* --- Hero grid (e.g. voluntary-fund page) — bento / modern --- */
.hero-grid {
    overflow: hidden;
}

/* Voluntary-fund hero: 7% lateral margin (desktop) */
.hero-grid--bento {
    margin: 1.5rem var(--margin-lateral);
    padding: 0;
}

/* Hero 2 imágenes (ej. program-health) */
.hero-grid--pair {
    margin: 1.5rem var(--margin-lateral);
    padding: 0;
}

.hero-grid--pair .hero-grid-inner {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero-grid--pair .hero-grid-item {
    border-radius: 6px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-grid--pair .hero-grid-inner {
        grid-template-columns: 1fr;
        grid-template-rows: 180px 180px;
    }
}

.hero-grid--bento .hero-grid-inner {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 180px 180px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero-grid-inner {
    display: grid;
    gap: 0.375rem;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, minmax(180px, 26vh));
    grid-auto-flow: dense;
}

.hero-grid-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 120px;
    cursor: pointer;
}

.hero-grid--bento .hero-grid-item {
    border-radius: 6px;
    overflow: hidden;
}

/* 6×2: imagen 1 y 4 ocupan 2×2; 2,3,5,6 ocupan 1×1 */
.hero-grid--bento .hero-grid-item--large {
    grid-column: span 2;
    grid-row: span 2;
}

.hero-grid--bento .hero-grid-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.hero-grid--bento .hero-grid-item:nth-child(2) { grid-column: 3; grid-row: 1; }
.hero-grid--bento .hero-grid-item:nth-child(3) { grid-column: 4; grid-row: 1; }
.hero-grid--bento .hero-grid-item:nth-child(4) { grid-column: 5 / 7; grid-row: 1 / 3; }
.hero-grid--bento .hero-grid-item:nth-child(5) { grid-column: 3; grid-row: 2; }
.hero-grid--bento .hero-grid-item:nth-child(6) { grid-column: 4; grid-row: 2; }

/* Móvil: hero bento en 3 columnas × 2 filas, ancho del contenido */
@media (max-width: 768px) {
    .hero-grid--bento {
        margin: 1.5rem auto;
        padding: 0 var(--margin-lateral);
        max-width: 1280px;
        box-sizing: border-box;
    }

    .hero-grid--bento .hero-grid-inner {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, minmax(160px, 22vh));
    }

    .hero-grid--bento .hero-grid-item,
    .hero-grid--bento .hero-grid-item--large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .hero-grid--bento .hero-grid-item:nth-child(1) { grid-column: 1; grid-row: 1; }
    .hero-grid--bento .hero-grid-item:nth-child(2) { grid-column: 2; grid-row: 1; }
    .hero-grid--bento .hero-grid-item:nth-child(3) { grid-column: 3; grid-row: 1; }
    .hero-grid--bento .hero-grid-item:nth-child(4) { grid-column: 1; grid-row: 2; }
    .hero-grid--bento .hero-grid-item:nth-child(5) { grid-column: 2; grid-row: 2; }
    .hero-grid--bento .hero-grid-item:nth-child(6) { grid-column: 3; grid-row: 2; }
}

/* --- Lightbox (hero grid) --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox__wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__content {
    max-width: 100%;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox__close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-text);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox__prev { left: -4rem; }
.lightbox__next { right: -4rem; }

.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 600px) {
    .lightbox__prev { left: 0.5rem; }
    .lightbox__next { right: 0.5rem; }
}

/* --- Intro (below hero) --- */
.intro {
    margin: 0 var(--margin-lateral);
    padding: 4rem 0;
    background: var(--color-bg);
    box-sizing: border-box;
}

.intro-inner {
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
}

.intro-title {
    margin: 0 0 1.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.intro-lead {
    margin: 0 0 1.25rem;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--color-text);
}

.intro-back {
    margin: 0 0 1.5rem !important;
}

.intro-back a {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    transition: color 0.2s;
}

.intro-back a:hover {
    color: var(--color-accent);
}

/* --- Home: oferta (debajo del hero, grid 6 cols, colores Google) --- */
.home-offer {
    margin: 0 var(--margin-lateral);
    padding: 4rem 0;
    box-sizing: border-box;
}

.home-offer__inner {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.home-offer__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.home-offer__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.home-offer__lead {
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--color-text-muted);
    max-width: 42rem;
}

.home-offer__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem 1rem;
    align-items: stretch;
}

.home-offer__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    border-radius: 10px;
    min-height: 7rem;
}

/* Google colors: blue, red, yellow, green */
.home-offer__item:nth-child(1) { background-color: #4285F4; }
.home-offer__item:nth-child(2) { background-color: #EA4335; }
.home-offer__item:nth-child(3) { background-color: #FBBC05; }
.home-offer__item:nth-child(4) { background-color: #34A853; }
.home-offer__item:nth-child(5) { background-color: #4285F4; }
.home-offer__item:nth-child(6) { background-color: #EA4335; }

.home-offer__item:nth-child(1) .home-offer__icon,
.home-offer__item:nth-child(1) .home-offer__label,
.home-offer__item:nth-child(2) .home-offer__icon,
.home-offer__item:nth-child(2) .home-offer__label,
.home-offer__item:nth-child(4) .home-offer__icon,
.home-offer__item:nth-child(4) .home-offer__label,
.home-offer__item:nth-child(5) .home-offer__icon,
.home-offer__item:nth-child(5) .home-offer__label,
.home-offer__item:nth-child(6) .home-offer__icon,
.home-offer__item:nth-child(6) .home-offer__label {
    color: #fff;
}

.home-offer__item:nth-child(3) .home-offer__icon,
.home-offer__item:nth-child(3) .home-offer__label {
    color: #202124;
}

.home-offer__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
}

.home-offer__icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-offer__label {
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-offer__actions {
    margin: 2rem 0 0;
    text-align: center;
}

.home-offer__btn {
    display: inline-block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.15em;
    letter-spacing: 0.02em;
    transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.home-offer__btn:hover {
    color: var(--color-accent-hover);
    border-bottom-color: var(--color-accent-hover);
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .home-offer__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 520px) {
    .home-offer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

/* --- Home: grid programas 4×4 --- */
.home-programs {
    margin: 0 var(--margin-lateral);
    padding: 4rem 0;
    box-sizing: border-box;
}

.home-programs__inner {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.home-programs__title {
    margin: 0 0 1.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-text);
}

.home-programs__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, minmax(140px, 20vh));
    gap: 1.25rem;
    grid-auto-flow: dense;
}

.home-programs__item {
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.home-programs__item:hover {
    transform: scale(1.02);
}

.home-programs__img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home-programs__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%);
}

.home-programs__text {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Fondos cálidos y alegres por programa */
.home-programs__item:nth-child(1) .home-programs__text {
    background: linear-gradient(to top, rgba(196, 92, 38, 0.92), rgba(180, 78, 28, 0.9));
}
.home-programs__item:nth-child(2) .home-programs__text {
    background: linear-gradient(to top, rgba(213, 119, 53, 0.92), rgba(198, 98, 40, 0.9));
}
.home-programs__item:nth-child(3) .home-programs__text {
    background: linear-gradient(to top, rgba(184, 98, 62, 0.92), rgba(160, 78, 48, 0.9));
}
.home-programs__item:nth-child(4) .home-programs__text {
    background: linear-gradient(to top, rgba(205, 133, 63, 0.92), rgba(185, 110, 50, 0.9));
}
.home-programs__item:nth-child(5) .home-programs__text {
    background: linear-gradient(to top, rgba(210, 105, 30, 0.92), rgba(188, 85, 22, 0.9));
}
.home-programs__item:nth-child(6) .home-programs__text {
    background: linear-gradient(to top, rgba(199, 121, 80, 0.92), rgba(175, 98, 58, 0.9));
}
.home-programs__item:nth-child(7) .home-programs__text {
    background: linear-gradient(to top, rgba(218, 145, 80, 0.92), rgba(195, 120, 55, 0.9));
}

.home-programs__label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.home-programs__desc {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.35;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.home-programs__actions {
    margin: 2rem 0 0;
    text-align: center;
}

/* 1º: 2 columnas × 2 filas */
.home-programs__item:nth-child(1),
.home-programs__item--large {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
}

.home-programs__item--large .home-programs__label {
    font-size: 1.125rem;
}

.home-programs__item--large .home-programs__desc {
    font-size: 0.875rem;
}

/* 2º y 3º: 1 col × 2 filas (derecha del primero) */
.home-programs__item:nth-child(2) {
    grid-column: 3;
    grid-row: 1 / span 2;
}

.home-programs__item:nth-child(3) {
    grid-column: 4;
    grid-row: 1 / span 2;
}

/* 4º, 5º, 6º, 7º: 1 col × 2 filas (segunda fila) */
.home-programs__item:nth-child(4) {
    grid-column: 1;
    grid-row: 3 / span 2;
}

.home-programs__item:nth-child(5) {
    grid-column: 2;
    grid-row: 3 / span 2;
}

.home-programs__item:nth-child(6) {
    grid-column: 3;
    grid-row: 3 / span 2;
}

.home-programs__item:nth-child(7) {
    grid-column: 4;
    grid-row: 3 / span 2;
}

@media (max-width: 900px) {
    .home-programs__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 1rem;
    }

    .home-programs__item:nth-child(1),
    .home-programs__item--large {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 220px;
    }

    .home-programs__item:nth-child(2),
    .home-programs__item:nth-child(3),
    .home-programs__item:nth-child(4),
    .home-programs__item:nth-child(5),
    .home-programs__item:nth-child(6),
    .home-programs__item:nth-child(7) {
        grid-column: auto;
        grid-row: auto;
        min-height: 180px;
    }
}

/* --- Home: parallax Sponsor a child (50% imagen | 50% texto) --- */
.home-parallax {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    min-height: 65vh;
    overflow: hidden;
    box-sizing: border-box;
}

.home-parallax__image {
    width: 50%;
    min-width: 0;
    min-height: 65vh;
    box-sizing: border-box;
    background-size: 50vw auto;
    background-position: left center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.home-parallax__content {
    width: 50%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg) 100%);
    box-sizing: border-box;
}

.home-parallax__title {
    margin: 0 0 1.25rem;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.15;
    color: var(--color-accent);
    text-transform: uppercase;
    text-shadow: 0 0 40px rgba(196, 92, 38, 0.2);
}

.home-parallax__text {
    margin: 0;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.7;
    color: var(--color-text);
}

.home-parallax__text strong {
    color: var(--color-accent);
    font-weight: 700;
}

.home-parallax__cta {
    display: inline-block;
    margin-top: 1.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: var(--color-accent);
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(196, 92, 38, 0.4);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.home-parallax__cta:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(196, 92, 38, 0.5);
}

@media (max-width: 900px) {
    .home-parallax {
        flex-direction: column;
        min-height: auto;
    }

    .home-parallax__image {
        width: 100%;
        min-height: 45vh;
        background-attachment: scroll;
    }

    .home-parallax__content {
        width: 100%;
        padding: 3rem var(--margin-lateral);
    }
}

/* --- Home: video voluntarios (después del parallax) --- */
.home-video {
    margin: 0 var(--margin-lateral);
    padding: 4rem 0;
    box-sizing: border-box;
}

.home-video__inner {
    max-width: 80rem;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
}

.home-video__title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.home-video__subtitle {
    margin: 0 0 2rem;
    font-size: 1.0625rem;
    color: var(--color-text-muted);
}

.home-video__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.home-video__wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    background: var(--color-surface);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

@media (max-width: 640px) {
    .home-video__grid {
        grid-template-columns: 1fr;
    }
}

.home-video__iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Program list (index of programs) — grid 3 columnas con foto */
.program-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.program-list__item {
    margin: 0;
}

.program-list__link {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
}

.program-list__link:hover {
    border-color: rgba(196, 92, 38, 0.4);
}

.program-list__img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.program-list__title {
    display: block;
    padding: 1rem 1rem 0.25rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text);
}

.program-list__desc {
    display: block;
    padding: 0 1rem 1rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .program-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .program-list {
        grid-template-columns: 1fr;
    }
}

.intro p {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-text-muted);
}

.intro p:last-child {
    margin-bottom: 0;
}

.intro strong {
    color: var(--color-text);
    font-weight: 600;
}

.intro h2 {
    margin: 2.5rem 0 1rem;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-text);
}

.intro h2:first-of-type {
    margin-top: 0;
}

.intro h3 {
    margin: 1.5rem 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
}

.intro ul {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.intro li {
    margin-bottom: 0.35rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.intro li::marker {
    color: var(--color-accent);
}

/* --- Voluntary Fund: 60% contenido | 40% formulario --- */
.voluntary-fund-section {
    margin: 0 var(--margin-lateral);
    padding: 4rem 0;
    box-sizing: border-box;
}

.voluntary-fund-inner {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: start;
    max-width: 100%;
    box-sizing: border-box;
}

.voluntary-fund-content,
.voluntary-fund-form-wrap {
    min-width: 0;
    box-sizing: border-box;
}

.voluntary-fund-title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-text);
}

.voluntary-fund-content p {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-text);
}

.voluntary-fund-subtitle {
    margin: 2rem 0 1rem;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-text);
}

.voluntary-fund-form-wrap {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}

.voluntary-fund-form-box {
    background: var(--color-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1.75rem;
    box-sizing: border-box;
    max-width: 100%;
}

.voluntary-fund-form-title {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.voluntary-fund-form-desc {
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.voluntary-fund-form label {
    display: block;
    margin: 0 0 0.35rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

.voluntary-fund-form input,
.voluntary-fund-form select,
.voluntary-fund-form textarea {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    box-sizing: border-box;
}

.voluntary-fund-form textarea {
    resize: vertical;
    min-height: 100px;
}

.voluntary-fund-form input:focus,
.voluntary-fund-form select:focus,
.voluntary-fund-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.voluntary-fund-form-btn {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-sans);
    color: #fff;
    background: var(--color-accent);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    box-sizing: border-box;
}

.voluntary-fund-form-btn:hover {
    background: var(--color-accent-hover);
}

@media (max-width: 900px) {
    .voluntary-fund-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .voluntary-fund-form-wrap {
        position: static;
    }
}

/* --- Volunteering: 2 columnas (contenido | formulario) --- */
.volunteering-main {
    margin: 0 var(--margin-lateral);
    padding: 4rem 0;
    box-sizing: border-box;
}

.volunteering-inner {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: start;
    max-width: 100%;
    box-sizing: border-box;
}

.volunteering-content,
.volunteering-form-wrap {
    min-width: 0;
    box-sizing: border-box;
}

.volunteering-title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-text);
}

.volunteering-heading {
    margin: 2rem 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.volunteering-heading:first-of-type {
    margin-top: 0;
}

.volunteering-content p {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-text);
}

.volunteering-form-wrap {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}

.volunteering-form-box {
    background: var(--color-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1.75rem;
    box-sizing: border-box;
    max-width: 100%;
}

.volunteering-form-title {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.volunteering-form-desc {
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.volunteering-form label {
    display: block;
    margin: 0 0 0.35rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

.volunteering-form input,
.volunteering-form select,
.volunteering-form textarea {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    box-sizing: border-box;
}

.volunteering-form textarea {
    resize: vertical;
    min-height: 100px;
}

.volunteering-form input:focus,
.volunteering-form select:focus,
.volunteering-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.volunteering-form-btn {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-sans);
    color: #fff;
    background: var(--color-accent);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    box-sizing: border-box;
}

.volunteering-form-btn:hover {
    background: var(--color-accent-hover);
}

@media (max-width: 900px) {
    .volunteering-inner {
        grid-template-columns: 1fr;
    }
    .volunteering-form-wrap {
        position: static;
    }
}

/* --- Volunteering: FAQ acordeón (1 columna) --- */
.volunteering-faq {
    margin: 0 var(--margin-lateral);
    padding: 4rem 0;
    border-top: 1px solid var(--border-subtle);
    box-sizing: border-box;
}

.volunteering-faq-inner {
    max-width: 48rem;
    margin: 0 auto;
    box-sizing: border-box;
}

.volunteering-faq-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-text);
}

.volunteering-faq-intro {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    color: var(--color-text-muted);
}

.volunteering-faq-intro a {
    color: var(--color-accent);
    text-decoration: underline;
}

.volunteering-faq-intro a:hover {
    color: var(--color-accent-hover);
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.accordion__item {
    border: 1px solid var(--border-subtle);
    border-bottom: none;
    background: var(--color-surface);
    border-radius: 0;
}

.accordion__item:first-child {
    border-radius: 8px 8px 0 0;
}

.accordion__item:last-child {
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 0 0 8px 8px;
}

.accordion__item[open] .accordion__trigger::after {
    transform: rotate(180deg);
}

.accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-sans);
    text-align: left;
    color: var(--color-text);
    background: transparent;
    border: none;
    cursor: pointer;
    list-style: none;
    transition: background 0.2s, color 0.2s;
}

.accordion__trigger::-webkit-details-marker {
    display: none;
}

.accordion__trigger::after {
    content: '\25BC';
    font-size: 0.65rem;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-left: 0.75rem;
    transition: transform 0.2s;
}

.accordion__trigger:hover {
    background: rgba(196, 92, 38, 0.08);
}

.accordion__content {
    padding: 0 1.25rem 1.25rem;
}

.accordion__content p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--color-text-muted);
}

/* --- Contact: formulario simple --- */
.contact-section {
    margin: 0 var(--margin-lateral);
    padding: 4rem 0;
    box-sizing: border-box;
}

.contact-inner {
    max-width: 36rem;
    margin: 0 auto;
    box-sizing: border-box;
}

.contact-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-text);
}

.contact-intro {
    margin: 0 0 2rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.form-message {
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: 8px;
    font-size: 0.9375rem;
}
.form-message--success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: var(--color-text);
}
.form-message--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: var(--color-text);
}

.contact-form-box {
    background: var(--color-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 2rem;
    box-sizing: border-box;
}

.contact-form label {
    display: block;
    margin: 0 0 0.35rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1.25rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    box-sizing: border-box;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.contact-form-btn {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 0.25rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-sans);
    color: #fff;
    background: var(--color-accent);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    box-sizing: border-box;
}

.contact-form-btn:hover {
    background: var(--color-accent-hover);
}

/* --- Gallery (2 columnas por programa) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-section {
    background: var(--color-surface);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    padding: 1.25rem;
}

.gallery-section__title {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.gallery-section__title a {
    color: var(--color-text);
    transition: color 0.2s;
}

.gallery-section__title a:hover {
    color: var(--color-accent);
}

.gallery-section__photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.gallery-section__thumb {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 6px;
    overflow: hidden;
}

.gallery-section__link {
    margin: 0;
    font-size: 0.9375rem;
}

.gallery-section__link a {
    color: var(--color-accent);
    font-weight: 500;
    transition: color 0.2s;
}

.gallery-section__link a:hover {
    color: var(--color-accent-hover);
}

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

/* --- Footer --- */
.site-footer {
    padding: 4rem var(--margin-lateral) 0;
    background: var(--color-surface);
    border-top: 1px solid var(--border-subtle);
}

.footer-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-col__title {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
}

.footer-col--org .footer-col__address,
.footer-col--org .footer-col__phone {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
    color: var(--color-text);
    line-height: 1.5;
}

.footer-col--org .footer-col__phone a {
    color: var(--color-text);
    transition: color 0.2s;
}

.footer-col--org .footer-col__phone a:hover {
    color: var(--color-accent);
}

.footer-nav,
.footer-social {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav li,
.footer-social li {
    margin: 0 0 0.5rem;
}

.footer-nav a,
.footer-social a {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    transition: color 0.2s;
}

.footer-nav a:hover,
.footer-social a:hover {
    color: var(--color-accent);
}

.footer-col--cta {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.footer-volunteer-btn {
    display: inline-block;
    padding: 1rem 1.75rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent) 0%, #a84a1a 100%);
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(196, 92, 38, 0.45);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.footer-volunteer-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 32px rgba(196, 92, 38, 0.55);
    filter: brightness(1.08);
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
    }

    .footer-col--cta {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col--cta {
        justify-content: center;
    }
}

/* --- Responsive: menú móvil (panel que se abre de derecha a izquierda; botón fijo abajo a la derecha) --- */
@media (max-width: 900px) {
    .main-nav {
        display: none;
    }

    .nav-toggle {
        display: flex;
        position: fixed;
        right: 20px;
        bottom: 20px;
        z-index: 1002;
        background: var(--header-bg);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    }

    .nav-overlay {
        display: block;
        pointer-events: none;
        opacity: 0;
    }

    .nav-panel {
        display: flex;
        transform: translateX(100%);
    }

    body.nav-open .nav-overlay {
        pointer-events: auto;
        opacity: 1;
    }

    body.nav-open .nav-panel {
        transform: translateX(0);
    }

    body.nav-open {
        overflow: hidden;
    }

    .nav-mobile {
        display: none;
    }
}

@media (min-width: 901px) {
    .nav-toggle {
        display: none !important;
    }

    .nav-overlay,
    .nav-panel {
        display: none !important;
    }

    .nav-mobile {
        display: none !important;
    }
}

/* WhatsApp fijo: desktop derecha, móvil izquierda */
.whatsapp-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #25d366;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    transition: background 0.2s, transform 0.2s;
}
.whatsapp-fixed:hover {
    background: #20bd5a;
    color: #fff;
    transform: translateY(-2px);
}
.whatsapp-fixed::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") center/contain no-repeat;
}
@media (max-width: 900px) {
    .whatsapp-fixed {
        left: 20px;
        right: auto;
    }
}
