/* ============================================================
   FUNDEMASJE - Hoja de estilos principal
   Diseño original restaurado.
   Solo se ajustaron el logo, las imágenes institucionales y
   la información añadida por solicitud.
============================================================ */

:root {
    --red: #E63946;
    --red-dark: #C72735;
    --green: #2A9D8F;
    --green-dark: #1F796F;
    --blue: #457B9D;
    --blue-dark: #28566F;
    --navy: #173447;
    --white: #FFFFFF;
    --off-white: #F8FAFB;
    --gray-50: #F5F7F8;
    --gray-100: #EDF1F3;
    --gray-200: #DDE5E8;
    --gray-500: #6B7A82;
    --gray-700: #3D4A50;
    --gray-900: #182126;
    --text: #2D3A40;
    --shadow-sm: 0 8px 24px rgba(23, 52, 71, 0.08);
    --shadow-md: 0 18px 48px rgba(23, 52, 71, 0.14);
    --shadow-lg: 0 28px 70px rgba(23, 52, 71, 0.2);
    --radius-sm: 12px;
    --radius-md: 22px;
    --radius-lg: 34px;
    --container: 1180px;
    --header-height: 80px;
    --transition: 220ms ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
}

body.menu-open,
body.lightbox-open,
body.donation-dialog-open {
    overflow: hidden;
}

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    color: inherit;
}

::selection {
    color: var(--white);
    background: var(--red);
}

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 9999;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--white);
    background: var(--navy);
    border-radius: 8px;
    transform: translateY(-160%);
    transition: transform var(--transition);
}

.skip-link:focus {
    transform: translateY(0);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    font-family: "Playfair Display", Georgia, serif;
    line-height: 1.08;
}

h2 {
    margin-bottom: 1rem;
    color: var(--navy);
    font-size: clamp(2.25rem, 7vw, 4.25rem);
    letter-spacing: -0.04em;
}

h2 span {
    color: var(--red);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 30px;
    height: 3px;
    content: "";
    background: currentColor;
    border-radius: 999px;
}

.eyebrow-light {
    color: rgba(255, 255, 255, 0.88);
}

.eyebrow-blue {
    color: var(--blue);
}

.eyebrow-green {
    color: var(--green);
}

.title-line {
    width: 72px;
    height: 5px;
    margin: 0 0 1.6rem;
    background: linear-gradient(90deg, var(--red), var(--green));
    border-radius: 99px;
}

.title-line-blue {
    background: linear-gradient(90deg, var(--blue), var(--green));
}

.section {
    padding-block: clamp(5rem, 11vw, 8.5rem);
}

.section-heading {
    max-width: 740px;
    margin-bottom: clamp(2.7rem, 6vw, 4.5rem);
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading.centered .eyebrow {
    justify-content: center;
}

.section-heading p {
    margin: 0;
    color: var(--gray-500);
    font-size: clamp(1rem, 2vw, 1.15rem);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.85rem 1.35rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn:focus-visible,
.main-nav a:focus-visible,
.gallery-open:focus-visible,
.social-links a:focus-visible,
.menu-toggle:focus-visible {
    outline: 3px solid rgba(230, 57, 70, 0.34);
    outline-offset: 4px;
}

.btn-primary {
    color: var(--white);
    background: var(--red);
    box-shadow: 0 14px 34px rgba(230, 57, 70, 0.34);
}

.btn-primary:hover {
    background: var(--red-dark);
    box-shadow: 0 18px 42px rgba(230, 57, 70, 0.44);
}

.btn-ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    color: var(--navy);
    background: var(--white);
    border-color: var(--white);
}

/* Header y navegación */
.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    min-height: var(--header-height);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(23, 52, 71, 0.08);
    box-shadow: 0 4px 18px rgba(23, 52, 71, 0.05);
    backdrop-filter: blur(14px);
    transition: box-shadow var(--transition), min-height var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 10px 30px rgba(23, 52, 71, 0.12);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.brand-logo-wrap {
    display: grid;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    overflow: hidden;
    place-items: center;
    background: var(--white);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(23, 52, 71, 0.18);
    animation: fundemasje-logo-float 4.2s ease-in-out infinite;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.1;
}

.brand-copy strong {
    color: var(--navy);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.brand-copy small {
    display: none;
    margin-top: 0.22rem;
    color: var(--gray-500);
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1.2;
}

.menu-toggle {
    position: relative;
    z-index: 1002;
    display: grid;
    width: 46px;
    height: 46px;
    padding: 10px;
    cursor: pointer;
    background: var(--gray-50);
    border: 0;
    border-radius: 14px;
    place-content: center;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 99px;
    transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
    position: fixed;
    z-index: 1001;
    inset: var(--header-height) 0 auto;
    display: flex;
    max-height: calc(100vh - var(--header-height));
    padding: 1.15rem 1rem 1.5rem;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: 0 22px 44px rgba(23, 52, 71, 0.14);
    opacity: 0;
    transform: translateY(-18px);
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
}

.main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.main-nav > a:not(.btn) {
    padding: 0.85rem 1rem;
    color: var(--gray-700);
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 800;
    transition: color var(--transition), background var(--transition);
}

.main-nav > a:not(.btn):hover,
.main-nav > a:not(.btn).active {
    color: var(--red);
    background: rgba(230, 57, 70, 0.07);
}

.btn-donate {
    margin-top: 0.65rem;
    color: var(--white);
    background: var(--red);
    box-shadow: 0 10px 24px rgba(230, 57, 70, 0.26);
}

.btn-donate:hover { background: var(--red-dark); }

/* Hero */
.hero {
    position: relative;
    display: grid;
    min-height: 100svh;
    padding: calc(var(--header-height) + 4.5rem) 0 6rem;
    overflow: hidden;
    align-items: center;
    color: var(--white);
    background:
        linear-gradient(100deg, rgba(13, 38, 52, 0.94) 0%, rgba(13, 38, 52, 0.79) 48%, rgba(13, 38, 52, 0.52) 100%),
        url("../assets/images/hero-comunidad.jpeg") center 26% / cover no-repeat;
}

.hero::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 84px;
    content: "";
    background: var(--white);
    clip-path: polygon(0 70%, 100% 0, 100% 100%, 0 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 790px;
}

.hero h1 {
    margin-bottom: 0.35rem;
    color: var(--white);
    font-size: clamp(3.5rem, 17vw, 8.3rem);
    letter-spacing: -0.055em;
    text-shadow: 0 12px 38px rgba(0, 0, 0, 0.28);
}

.hero-subtitle {
    max-width: 700px;
    margin-bottom: 1.2rem;
    color: #DDF6F2;
    font-size: clamp(1.35rem, 5vw, 2.35rem);
    font-weight: 800;
    line-height: 1.25;
}

.hero-description {
    max-width: 650px;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1rem, 2.5vw, 1.18rem);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
}

.hero-shape {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(1px);
}

.hero-shape-one {
    top: 12%;
    right: -120px;
    width: 310px;
    height: 310px;
    background: rgba(42, 157, 143, 0.19);
}

.hero-shape-two {
    bottom: 14%;
    left: -150px;
    width: 260px;
    height: 260px;
    background: rgba(230, 57, 70, 0.18);
}

.scroll-indicator {
    position: absolute;
    z-index: 4;
    right: 50%;
    bottom: 4.6rem;
    display: none;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transform: translateX(50%);
}

.scroll-mouse {
    position: relative;
    width: 22px;
    height: 34px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
}

.scroll-mouse::before {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 3px;
    height: 7px;
    content: "";
    background: var(--white);
    border-radius: 99px;
    transform: translateX(-50%);
    animation: scroll-dot 1.7s infinite;
}

@keyframes scroll-dot {
    0% { opacity: 0; transform: translate(-50%, 0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 11px); }
}

@keyframes fundemasje-logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Franja de impacto */
.impact-strip {
    position: relative;
    z-index: 5;
    margin-top: -1.3rem;
    padding-bottom: 1.5rem;
}

.impact-grid {
    display: grid;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.impact-item {
    display: flex;
    min-height: 112px;
    padding: 1.35rem;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.impact-item:last-child { border-bottom: 0; }

.impact-icon {
    display: grid;
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    color: var(--white);
    background: var(--red);
    border-radius: 16px;
    place-items: center;
    font-size: 1.3rem;
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.24);
}

.impact-item:nth-child(2) .impact-icon {
    background: var(--green);
    box-shadow: 0 8px 20px rgba(42, 157, 143, 0.24);
}

.impact-item:nth-child(3) .impact-icon {
    background: var(--blue);
    box-shadow: 0 8px 20px rgba(69, 123, 157, 0.24);
}

.impact-item strong,
.impact-item span { display: block; }
.impact-item strong { color: var(--navy); font-size: 1rem; }
.impact-item div > span { color: var(--gray-500); font-size: 0.82rem; }

/* Misión y Visión */
.split-layout {
    display: grid;
    align-items: center;
    gap: clamp(2.6rem, 8vw, 6.7rem);
}

.section-copy p {
    color: var(--gray-700);
    font-size: clamp(1rem, 2vw, 1.12rem);
}

.media-card {
    position: relative;
    max-width: 480px;
    margin-inline: auto;
    padding: 0.7rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.media-card::before {
    position: absolute;
    z-index: -1;
    top: -24px;
    left: -22px;
    width: 56%;
    height: 43%;
    content: "";
    background: rgba(230, 57, 70, 0.13);
    border-radius: 38px;
    transform: rotate(-6deg);
}

.media-card::after {
    position: absolute;
    z-index: -1;
    right: -19px;
    bottom: -25px;
    width: 51%;
    height: 35%;
    content: "";
    background: rgba(42, 157, 143, 0.15);
    border-radius: 38px;
    transform: rotate(6deg);
}

.media-card img {
    width: 100%;
    max-height: 610px;
    object-fit: cover;
    object-position: center;
    border-radius: calc(var(--radius-lg) - 9px);
}

/* Solo para las nuevas imágenes institucionales: no se recortan. */
.media-card img.institutional-poster {
    height: auto;
    max-height: none;
    object-fit: contain;
    background: var(--white);
}

.media-card-blue::before { background: rgba(69, 123, 157, 0.15); }

.media-badge {
    position: absolute;
    right: -4px;
    bottom: 30px;
    display: flex;
    max-width: 210px;
    padding: 0.85rem 1.1rem;
    align-items: center;
    gap: 0.7rem;
    color: var(--white);
    background: var(--red);
    border-radius: 16px 0 0 16px;
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.28);
}

.media-badge span { font-size: 1.2rem; }
.media-badge strong { font-size: 0.76rem; line-height: 1.25; }
.media-badge-blue { background: var(--blue); box-shadow: 0 10px 30px rgba(69, 123, 157, 0.28); }

.feature-note {
    display: flex;
    margin-top: 1.7rem;
    padding: 1.1rem;
    align-items: center;
    gap: 0.95rem;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.07), rgba(42, 157, 143, 0.07));
    border: 1px solid rgba(230, 57, 70, 0.11);
    border-radius: 18px;
}

.feature-note-icon {
    display: grid;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    color: var(--red);
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    place-items: center;
}

.feature-note-icon svg { width: 24px; fill: currentColor; }
.feature-note strong,
.feature-note span { display: block; }
.feature-note strong { color: var(--navy); }
.feature-note div > span { color: var(--gray-500); font-size: 0.83rem; line-height: 1.4; }
.objective-note { border-color: rgba(42, 157, 143, 0.18); }
.objective-note-icon { color: var(--green); font-weight: 900; }

.section-vision {
    position: relative;
    background: var(--off-white);
}

.section-vision::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 36%;
    height: 100%;
    content: "";
    background: radial-gradient(circle at 100% 18%, rgba(69, 123, 157, 0.12), transparent 56%);
    pointer-events: none;
}

.check-list {
    display: grid;
    margin: 1.7rem 0 0;
    padding: 0;
    list-style: none;
    gap: 0.75rem;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    color: var(--navy);
    font-weight: 800;
}

.check-list li::before {
    position: absolute;
    top: 0.24rem;
    left: 0;
    display: grid;
    width: 22px;
    height: 22px;
    content: "✓";
    color: var(--white);
    background: var(--green);
    border-radius: 50%;
    place-items: center;
    font-size: 0.72rem;
}

/* Valores */
.section-values {
    position: relative;
    overflow: hidden;
}

.section-values::before {
    position: absolute;
    top: 15%;
    left: -160px;
    width: 330px;
    height: 330px;
    content: "";
    background: rgba(42, 157, 143, 0.07);
    border-radius: 50%;
}

.values-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.value-card {
    position: relative;
    min-height: 230px;
    padding: 1.55rem;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.value-card:hover {
    transform: translateY(-7px);
    border-color: rgba(230, 57, 70, 0.24);
    box-shadow: var(--shadow-md);
}

.value-number {
    position: absolute;
    top: 1rem;
    right: 1.1rem;
    color: var(--gray-100);
    font-family: "Playfair Display", serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.value-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 1.1rem;
    color: var(--white);
    background: var(--red);
    border-radius: 17px;
    box-shadow: 0 10px 24px rgba(230, 57, 70, 0.25);
    place-items: center;
    font-size: 1.25rem;
    font-weight: 900;
}

.value-card:nth-child(3n + 2) .value-icon { background: var(--green); box-shadow: 0 10px 24px rgba(42, 157, 143, 0.25); }
.value-card:nth-child(3n) .value-icon { background: var(--blue); box-shadow: 0 10px 24px rgba(69, 123, 157, 0.25); }
.value-card h3 { position: relative; margin-bottom: 0.55rem; color: var(--navy); font-size: 1.18rem; }
.value-card p { position: relative; margin-bottom: 0; color: var(--gray-500); font-size: 0.92rem; line-height: 1.55; }

.values-poster {
    position: relative;
    min-height: 320px;
    margin: 0;
    overflow: hidden;
    background: var(--navy);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.values-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.values-poster-clean {
    min-height: 0;
    background: var(--white);
}

.values-poster-clean img {
    height: auto;
    object-fit: contain;
}

.values-poster figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 2.5rem 1.25rem 1.1rem;
    color: var(--white);
    background: linear-gradient(transparent, rgba(23, 52, 71, 0.9));
    font-size: 0.85rem;
    font-weight: 800;
}

/* Galería */
.section-gallery { background: var(--navy); }

.gallery-heading {
    display: grid;
    max-width: none;
    align-items: end;
    gap: 1rem;
}

.gallery-heading h2 { margin-bottom: 0; color: var(--white); }
.gallery-heading p { max-width: 510px; color: rgba(255, 255, 255, 0.68); }

.gallery-grid {
    display: grid;
    grid-auto-rows: 255px;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.gallery-item {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: var(--gray-700);
    border-radius: 18px;
}

.gallery-open {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    cursor: zoom-in;
    background: transparent;
    border: 0;
}

.gallery-open img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 520ms ease, filter 520ms ease;
}

.gallery-item:hover img { filter: saturate(1.08) contrast(1.03); transform: scale(1.065); }

/* La identidad regenerada se muestra completa, sin recorte. */
.gallery-institutional,
.gallery-institutional .gallery-open { background: var(--white); }
.gallery-institutional .gallery-open img { object-fit: contain; padding: 0.35rem; }
.gallery-institutional:hover img { transform: scale(1.025); }

.gallery-overlay {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    min-height: 46%;
    padding: 3rem 1rem 1rem;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    color: var(--white);
    background: linear-gradient(transparent, rgba(5, 18, 25, 0.86));
    opacity: 0.88;
    transition: opacity var(--transition);
}

.gallery-overlay strong,
.gallery-overlay small { display: block; text-align: left; }
.gallery-overlay strong { font-size: 0.95rem; }
.gallery-overlay small { color: rgba(255, 255, 255, 0.68); font-size: 0.72rem; font-weight: 700; }

.lightbox {
    width: min(94vw, 1100px);
    max-width: 1100px;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
}

.lightbox::backdrop { background: rgba(5, 18, 25, 0.9); backdrop-filter: blur(8px); }
.lightbox img { width: 100%; max-height: 86vh; object-fit: contain; background: #050505; border-radius: 18px; box-shadow: var(--shadow-lg); }
.lightbox-close {
    position: absolute;
    z-index: 2;
    top: -18px;
    right: -8px;
    display: grid;
    width: 44px;
    height: 44px;
    cursor: pointer;
    color: var(--navy);
    background: var(--white);
    border: 0;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    place-items: center;
    font-size: 1.75rem;
    line-height: 1;
}

/* Donación */
.donation-section {
    position: relative;
    padding-block: clamp(5.2rem, 12vw, 8.2rem);
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(125deg, var(--red-dark), var(--red) 48%, #F25763);
}

.donation-section::before,
.donation-section::after {
    position: absolute;
    content: "";
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.donation-section::before { top: -190px; right: -130px; width: 440px; height: 440px; }
.donation-section::after { bottom: -250px; left: -160px; width: 520px; height: 520px; }
.donation-pattern { position: absolute; inset: 0; opacity: 0.25; background-image: radial-gradient(rgba(255, 255, 255, 0.28) 1.3px, transparent 1.3px); background-size: 24px 24px; }
.donation-content { position: relative; z-index: 2; max-width: 840px; text-align: center; }
.donation-kicker { display: inline-block; margin-bottom: 1rem; padding: 0.42rem 0.85rem; color: var(--white); background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.27); border-radius: 999px; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; }
.donation-content h2 { color: var(--white); font-size: clamp(2.5rem, 8vw, 5rem); }
.donation-content p { max-width: 700px; margin-inline: auto; color: rgba(255, 255, 255, 0.84); font-size: clamp(1rem, 2.4vw, 1.18rem); }
.btn-donate-large { min-height: 62px; margin-top: 1.3rem; padding-inline: 2.2rem; color: var(--red); background: var(--white); box-shadow: 0 18px 45px rgba(104, 16, 23, 0.3); font-size: 0.95rem; }
.btn-donate-large span { margin-right: 0.55rem; font-size: 1.2rem; }
.btn-donate-large:hover { color: var(--white); background: var(--navy); }
.donation-content > small { display: block; margin-top: 1rem; color: rgba(255, 255, 255, 0.72); }

/* Contacto */
.contact-section { background: var(--off-white); }
.contact-grid { display: grid; align-items: center; gap: 2.4rem; }
.contact-copy > p { max-width: 620px; color: var(--gray-500); font-size: 1.05rem; }
.phone-link { display: inline-flex; margin-top: 1.2rem; padding: 0.85rem 1rem; align-items: center; gap: 0.85rem; background: var(--white); border: 1px solid var(--gray-100); border-radius: 18px; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); }
.phone-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.phone-icon { display: grid; width: 48px; height: 48px; color: var(--white); background: var(--green); border-radius: 15px; place-items: center; }
.phone-icon svg { width: 23px; fill: currentColor; }
.phone-link small,
.phone-link strong { display: block; }
.phone-link small { color: var(--gray-500); font-size: 0.72rem; }
.phone-link strong { color: var(--navy); font-size: 1.1rem; }
.contact-address { margin-top: 1.25rem; }

.contact-card {
    position: relative;
    max-width: 460px;
    margin-inline: auto;
    padding: clamp(1.6rem, 5vw, 2.5rem);
    overflow: hidden;
    color: var(--white);
    background: var(--navy);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.contact-card::before { position: absolute; top: -70px; right: -70px; width: 210px; height: 210px; content: ""; background: rgba(42, 157, 143, 0.18); border-radius: 50%; }
.contact-card img { position: relative; width: 130px; height: 105px; margin: 0 auto 1.3rem; object-fit: contain; background: var(--white); border: 5px solid rgba(255, 255, 255, 0.12); border-radius: 28px; animation: fundemasje-logo-float 4.2s ease-in-out infinite; }
.contact-card h3 { position: relative; margin-bottom: 0.6rem; font-size: clamp(1.2rem, 3vw, 1.55rem); line-height: 1.25; }
.contact-card > p { position: relative; color: rgba(255, 255, 255, 0.65); }
.contact-card-meta { position: relative; display: grid; margin-top: 1.5rem; padding-top: 1.3rem; color: rgba(255, 255, 255, 0.78); border-top: 1px solid rgba(255, 255, 255, 0.12); gap: 0.35rem; font-size: 0.8rem; font-weight: 700; }

/* Footer */
.site-footer { padding-top: 4rem; color: rgba(255, 255, 255, 0.7); background: #0D2533; }
.footer-grid { display: grid; padding-bottom: 3rem; gap: 2.5rem; }
.brand-footer .brand-copy strong { color: var(--white); }
.brand-footer .brand-copy small { display: block; color: rgba(255, 255, 255, 0.55); }
.footer-brand > p { max-width: 410px; margin: 1.2rem 0 0; }
.site-footer h3 { margin-bottom: 1rem; color: var(--white); font-size: 1rem; }
.footer-links,
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.footer-links a,
.footer-contact a { transition: color var(--transition), transform var(--transition); }
.footer-links > a:hover,
.footer-contact > a:hover { color: var(--white); transform: translateX(4px); }
.social-links { display: flex; margin-top: 0.8rem; gap: 0.55rem; }
.social-links a { display: grid; width: 42px; height: 42px; color: var(--white); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 13px; place-items: center; }
.social-links a:hover { color: var(--white); background: var(--red); transform: translateY(-3px); }
.social-links svg { width: 19px; fill: currentColor; }
.footer-bottom { display: flex; padding-block: 1.25rem; flex-direction: column; align-items: flex-start; gap: 0.45rem; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.8rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--white); font-weight: 800; }

/* Animaciones al hacer scroll */
.js-enabled .reveal { opacity: 0; transform: translateY(30px); transition: opacity 700ms ease, transform 700ms ease; }
.js-enabled .reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
    .js-enabled .reveal { opacity: 1; transform: none; }
}

@media (min-width: 540px) {
    .brand-copy small { display: block; }
    .hero-actions { flex-direction: row; align-items: center; }
    .impact-grid { grid-template-columns: repeat(3, 1fr); }
    .impact-item { border-right: 1px solid var(--gray-100); border-bottom: 0; }
    .impact-item:last-child { border-right: 0; }
    .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .values-poster { grid-column: span 2; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-wide { grid-column: span 2; }
    .gallery-tall { grid-row: span 2; }
    .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 760px) {
    :root { --header-height: 88px; }
    .container { width: min(100% - 3rem, var(--container)); }
    .hero { padding-top: calc(var(--header-height) + 5.5rem); }
    .scroll-indicator { display: flex; }
    .media-badge { right: -18px; border-radius: 16px; }
    .values-grid { gap: 1.25rem; }
    .value-card { padding: 1.8rem; }
    .gallery-grid { grid-auto-flow: dense; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gallery-wide { grid-column: span 2; }
    .gallery-heading { grid-template-columns: 1.2fr 0.8fr; }
    .contact-grid { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; }
    .footer-grid { grid-template-columns: 1.5fr 0.75fr 1fr; }
}

@media (min-width: 1020px) {
    .menu-toggle { display: none; }
    .main-nav { position: static; display: flex; max-height: none; padding: 0; overflow: visible; flex-direction: row; align-items: center; gap: 0.15rem; background: transparent; border: 0; box-shadow: none; opacity: 1; transform: none; pointer-events: auto; }
    .main-nav > a:not(.btn) { position: relative; padding: 0.75rem 0.7rem; background: transparent; font-size: 0.82rem; }
    .main-nav > a:not(.btn)::after { position: absolute; right: 0.7rem; bottom: 0.42rem; left: 0.7rem; height: 2px; content: ""; background: var(--red); border-radius: 99px; transform: scaleX(0); transform-origin: center; transition: transform var(--transition); }
    .main-nav > a:not(.btn):hover,
    .main-nav > a:not(.btn).active { background: transparent; }
    .main-nav > a:not(.btn):hover::after,
    .main-nav > a:not(.btn).active::after { transform: scaleX(1); }
    .btn-nav { min-height: 44px; margin: 0 0 0 0.55rem; padding-inline: 1.15rem; }
    .hero { background-position: center 28%; }
    .impact-strip { margin-top: -2.5rem; }
    .split-layout { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
    .split-layout-reverse { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
    .values-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .values-poster { grid-column: span 1; grid-row: span 1; min-height: 230px; }
    .values-poster-clean { min-height: 0; }
    .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .gallery-wide { grid-column: span 2; }
}

@media (min-width: 1200px) {
    .main-nav > a:not(.btn) { padding-inline: 0.9rem; font-size: 0.86rem; }
    .main-nav > a:not(.btn)::after { right: 0.9rem; left: 0.9rem; }
}


/* ============================================================
   Ventana visual de donación tipo PayPal
   Estas reglas están aisladas y no modifican el diseño de la web.
============================================================ */
.donation-dialog {
    width: min(100% - 1.25rem, 520px);
    max-height: calc(100vh - 1.5rem);
    padding: 0;
    overflow: auto;
    color: var(--text);
    background: transparent;
    border: 0;
}

.donation-dialog::backdrop {
    background: rgba(13, 37, 51, 0.76);
    backdrop-filter: blur(5px);
}

.donation-dialog-card {
    position: relative;
    padding: 1.25rem;
    overflow: hidden;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 28px 75px rgba(0, 0, 0, 0.3);
}

.donation-dialog-close {
    position: absolute;
    z-index: 2;
    top: 0.85rem;
    right: 0.85rem;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    cursor: pointer;
    color: var(--gray-700);
    background: var(--gray-50);
    border: 0;
    border-radius: 50%;
    place-items: center;
    font-size: 1.45rem;
    line-height: 1;
}

.donation-dialog-brand {
    display: flex;
    min-height: 42px;
    padding-right: 3rem;
    align-items: center;
    gap: 0.45rem;
    color: #003087;
    font-size: 1.15rem;
}

.paypal-mark,
.paypal-button-mark {
    display: inline-grid;
    color: #ffffff;
    background: linear-gradient(145deg, #003087, #009cde);
    border-radius: 8px;
    place-items: center;
    font-family: Arial, sans-serif;
    font-weight: 900;
    font-style: italic;
}

.paypal-mark {
    width: 30px;
    height: 30px;
}

.demo-label {
    padding: 0.22rem 0.5rem;
    margin-left: 0.2rem;
    color: #52616a;
    background: #eef2f5;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.donation-dialog-heading {
    display: flex;
    padding: 1rem 0;
    align-items: center;
    gap: 0.85rem;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.donation-dialog-logo-wrap {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    padding: 4px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 15px;
    place-items: center;
}

.donation-dialog-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.donation-dialog-heading p,
.donation-dialog-heading h2,
.donation-dialog-heading small {
    margin: 0;
}

.donation-dialog-heading p {
    color: var(--gray-500);
    font-size: 0.75rem;
}

.donation-dialog-heading h2 {
    color: var(--navy);
    font-family: "Nunito", sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}

.donation-dialog-heading small {
    display: block;
    color: var(--gray-500);
    font-size: 0.7rem;
    line-height: 1.3;
}

.donation-frequency {
    display: grid;
    margin: 1rem 0;
    padding: 4px;
    grid-template-columns: repeat(2, 1fr);
    background: var(--gray-50);
    border-radius: 12px;
}

.donation-frequency button {
    min-height: 42px;
    cursor: pointer;
    color: var(--gray-700);
    background: transparent;
    border: 0;
    border-radius: 9px;
    font-size: 0.86rem;
    font-weight: 800;
}

.donation-frequency button.active {
    color: #003087;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(23, 52, 71, 0.1);
}

.donation-amounts {
    padding: 0;
    margin: 0;
    border: 0;
}

.donation-amounts legend {
    margin-bottom: 0.65rem;
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 900;
}

.donation-amount-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
}

.donation-amount-grid button {
    min-height: 48px;
    cursor: pointer;
    color: #003087;
    background: var(--white);
    border: 1px solid #cbd8e7;
    border-radius: 10px;
    font-weight: 900;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.donation-amount-grid button:hover,
.donation-amount-grid button.active {
    background: #f1f7ff;
    border-color: #0070ba;
    box-shadow: 0 0 0 2px rgba(0, 112, 186, 0.12);
}

.donation-custom-label {
    display: block;
    margin: 0.9rem 0 0.35rem;
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 900;
}

.donation-custom-field {
    display: flex;
    min-height: 50px;
    align-items: center;
    overflow: hidden;
    background: var(--white);
    border: 1px solid #cbd8e7;
    border-radius: 10px;
}

.donation-custom-field:focus-within {
    border-color: #0070ba;
    box-shadow: 0 0 0 3px rgba(0, 112, 186, 0.12);
}

.donation-custom-field span {
    padding-left: 0.9rem;
    color: var(--gray-500);
    font-weight: 800;
}

.donation-custom-field input {
    width: 100%;
    min-width: 0;
    padding: 0.75rem 0.9rem 0.75rem 0.45rem;
    color: var(--navy);
    background: transparent;
    border: 0;
    outline: 0;
    font-weight: 900;
}

.donation-summary {
    display: flex;
    margin: 1rem 0;
    padding: 0.85rem 0;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--gray-700);
    border-top: 1px solid var(--gray-100);
}

.donation-summary > strong {
    color: var(--navy);
    font-size: 1.1rem;
}

.paypal-demo-button {
    display: flex;
    width: 100%;
    min-height: 52px;
    padding: 0.8rem 1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    color: #111820;
    background: #ffc439;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    transition: transform var(--transition), background var(--transition);
}

.paypal-demo-button:hover {
    background: #ffb81c;
    transform: translateY(-2px);
}

.paypal-button-mark {
    width: 26px;
    height: 26px;
    border-radius: 7px;
}

.donation-demo-status {
    padding: 0.75rem;
    margin: 0.8rem 0 0;
    color: #155d52;
    background: #eaf7f4;
    border-radius: 10px;
    font-size: 0.8rem;
    text-align: center;
}

.donation-demo-note {
    margin: 0.75rem 0 0;
    color: var(--gray-500);
    font-size: 0.72rem;
    line-height: 1.35;
    text-align: center;
}

@media (min-width: 480px) {
    .donation-dialog-card {
        padding: 1.5rem;
    }

    .donation-amount-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================================
   Integración real de PayPal
   Mantiene el diseño visual de FUNDEMASJE y deja el clic al SDK.
============================================================ */
.secure-label {
    padding: 0.22rem 0.55rem;
    margin-left: 0.2rem;
    color: #155d52;
    background: #eaf7f4;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.donation-live-copy {
    padding: 1.15rem 0 0.9rem;
}

.donation-live-copy h3 {
    margin: 0 0 0.35rem;
    color: var(--navy);
    font-size: 1.45rem;
    line-height: 1.2;
}

.donation-live-copy p {
    margin: 0;
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.55;
}

.donation-live-summary {
    display: grid;
    gap: 0.65rem;
    padding: 0.9rem;
    margin-bottom: 1rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 14px;
}

.donation-live-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.donation-live-summary span {
    color: var(--gray-500);
    font-size: 0.78rem;
}

.donation-live-summary strong {
    color: var(--navy);
    font-size: 0.82rem;
    text-align: right;
}

.paypal-live-button {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 54px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    color: #111820;
    background: #ffc439;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    box-shadow: 0 12px 25px rgba(255, 196, 57, 0.26);
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.paypal-live-button:hover {
    background: #ffb81c;
    box-shadow: 0 15px 30px rgba(255, 184, 28, 0.32);
    transform: translateY(-2px);
}

.paypal-live-button-visual {
    position: relative;
    z-index: 1;
    pointer-events: none;
    font-size: 0.94rem;
    font-weight: 900;
}

.paypal-live-button-visual strong {
    color: #003087;
    font-size: 1.05rem;
}

/* El SDK oficial se mantiene cargado fuera del área visible.
   No se usa display:none para que PayPal pueda inicializar el control. */
.paypal-official-host {
    position: fixed;
    left: -10000px;
    top: -10000px;
    width: 220px;
    height: 60px;
    overflow: hidden;
    opacity: 0.01;
    pointer-events: none;
}

.paypal-sdk-status {
    padding: 0.8rem;
    margin: 0.85rem 0 0;
    color: #155d52;
    background: #eaf7f4;
    border: 1px solid rgba(42, 157, 143, 0.24);
    border-radius: 11px;
    font-size: 0.75rem;
    line-height: 1.45;
    text-align: center;
}

.paypal-sdk-status.is-error {
    color: #8d2530;
    background: #fff0f1;
    border-color: rgba(230, 57, 70, 0.25);
}

@media (min-width: 480px) {
    .donation-live-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .donation-live-summary > div {
        display: block;
    }

    .donation-live-summary strong {
        display: block;
        margin-top: 0.2rem;
        text-align: left;
    }
}
