/* UMBRAL · estilos propios de la página de inicio */

/* Hero ------------------------------------------------------------------ */
.hero {
    position: relative;
    min-height: min(820px, calc(100vh - var(--header-h)));
    display: flex;
    align-items: center;
    padding: 96px 0 120px;
    color: var(--white);
    background: var(--forest-900);
    overflow: hidden;
    isolation: isolate;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(100deg, rgba(14, 28, 19, 0.92) 0%, rgba(14, 28, 19, 0.72) 45%, rgba(14, 28, 19, 0.35) 100%),
        linear-gradient(0deg, rgba(14, 28, 19, 0.6) 0%, transparent 40%);
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 64px;
    background: var(--bg);
    clip-path: ellipse(70% 100% at 50% 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
    gap: 56px;
    align-items: center;
}

.hero .eyebrow {
    color: var(--sun-500);
}

.hero h1 {
    margin-bottom: 20px;
    font-size: clamp(2.6rem, 6.4vw, 4.6rem);
    line-height: 1.02;
    color: var(--white);
}

.hero h1 em {
    font-style: italic;
    font-weight: 500;
    color: var(--leaf-200);
}

.hero-lead {
    max-width: 560px;
    margin-bottom: 32px;
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    color: rgba(248, 244, 234, 0.88);
}

.hero-card {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    background: rgba(20, 40, 28, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-lg);
}

.hero-card .thermo-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.86rem;
    color: rgba(248, 244, 234, 0.72);
}

.hero-card-foot a {
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
}

.hero-card-foot a:hover {
    color: var(--sun-500);
}

@media (max-width: 960px) {
    .hero {
        min-height: 0;
        padding: 72px 0 112px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
}

/* Cifras ---------------------------------------------------------------- */
.stats-strip {
    position: relative;
    z-index: 2;
    margin-top: -40px;
}

.stats-strip .grid {
    gap: 16px;
}

.stats-strip .stat {
    box-shadow: var(--shadow);
    text-align: center;
}

/* Historia -------------------------------------------------------------- */
.story {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 56px;
    align-items: center;
}

.story-media {
    position: relative;
}

.story-media img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.story-media .story-media-badge {
    position: absolute;
    left: -20px;
    bottom: 28px;
    max-width: 260px;
    padding: 16px 20px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    color: var(--ink-700);
}

.story-media .story-media-badge strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--clay-600);
}

.story-text p {
    font-size: 1.04rem;
    color: var(--ink-700);
}

.story .callout {
    margin: 24px 0;
}

@media (max-width: 960px) {
    .story {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .story-media .story-media-badge {
        left: 16px;
    }
}

/* Espacios de la casa */
.space-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.space-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.space-card h4 {
    margin-bottom: 2px;
    font-size: 1.02rem;
}

.space-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* Campaña --------------------------------------------------------------- */
.campaign {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.campaign-figure {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1;
    color: var(--sun-500);
    margin: 8px 0 16px;
}

.campaign-terms {
    display: grid;
    gap: 12px;
    margin: 28px 0 32px;
    padding: 0;
    list-style: none;
}

.campaign-terms li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.campaign-terms i {
    margin-top: 4px;
    color: var(--leaf-400);
}

.campaign-terms strong {
    color: var(--white);
}

.campaign .thermo-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.campaign blockquote {
    margin: 28px 0 0;
    padding: 0 0 0 20px;
    border-left: 3px solid var(--sun-500);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.4;
    color: var(--white);
}

@media (max-width: 960px) {
    .campaign {
        grid-template-columns: minmax(0, 1fr);
    }
}

.info-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    font-size: 0.95rem;
    color: var(--ink-700);
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--leaf-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%232f6a47' stroke-width='2' d='M4.5 8.2l2.2 2.2 4.8-4.8'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* Recursos -------------------------------------------------------------- */
.resource-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 36px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(500px 200px at 100% 0%, rgba(229, 163, 58, 0.25), transparent 70%),
        var(--clay-100);
    border: 1px solid #efcdb7;
}

.resource-banner h3 {
    margin-bottom: 6px;
    font-size: 1.5rem;
}

.resource-banner p {
    margin: 0;
    color: var(--ink-700);
}

.resource-banner .feature {
    align-items: center;
}

/* Iniciativas ----------------------------------------------------------- */
.initiative {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: start;
}

.initiative + .initiative {
    margin-top: 96px;
}

.initiative:nth-of-type(even) .initiative-media {
    order: 2;
}

.initiative-media {
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.initiative-cover {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--cream-200);
    box-shadow: var(--shadow-lg);
    cursor: zoom-in;
}

.initiative-cover img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.initiative-cover:hover img {
    transform: scale(1.03);
}

.thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.thumbs button {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    background: var(--cream-200);
    cursor: zoom-in;
    transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.thumbs button:hover {
    border-color: var(--leaf-400);
    transform: translateY(-2px);
}

.thumbs img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.initiative-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.initiative h3 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.initiative-body p {
    color: var(--ink-700);
}

.initiative-body h4 {
    margin: 28px 0 12px;
    font-size: 1.05rem;
}

.initiative-body .callout {
    margin: 20px 0;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.tag-list li {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: var(--white);
    border: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--ink-700);
}

.tag-list li strong {
    color: var(--forest-700);
}

.more {
    margin-top: 16px;
    border-top: 1px solid var(--border);
}

.more summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0 4px;
    font-weight: 600;
    color: var(--forest-600);
    cursor: pointer;
    list-style: none;
}

.more summary::-webkit-details-marker {
    display: none;
}

.more summary i {
    transition: transform 0.2s var(--ease);
}

.more[open] summary i {
    transform: rotate(180deg);
}

.more[open] summary .more-label-closed,
.more:not([open]) summary .more-label-open {
    display: none;
}

.more-content {
    padding-top: 12px;
}

@media (max-width: 900px) {
    .initiative {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .initiative:nth-of-type(even) .initiative-media {
        order: 0;
    }

    .initiative-media {
        position: static;
        max-width: 480px;
    }

    .initiative + .initiative {
        margin-top: 72px;
    }
}

/* Organizaciones -------------------------------------------------------- */
.org-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.org-intro img {
    width: 100%;
    border-radius: var(--radius-lg);
}

@media (max-width: 860px) {
    .org-intro {
        grid-template-columns: minmax(0, 1fr);
    }

    .org-intro img {
        max-width: 280px;
    }
}

.org-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.org-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.org-card p {
    font-size: 0.94rem;
    color: var(--ink-700);
}

.org-card details p:first-child {
    margin-top: 4px;
}

.org-contact {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
    font-size: 0.86rem;
    color: var(--text-muted);
}

.org-contact i {
    margin-right: 6px;
    color: var(--leaf-500);
}

.org-mini {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.org-mini li {
    font-size: 0.94rem;
    color: var(--ink-700);
}

.org-mini span {
    display: block;
    font-size: 0.84rem;
    color: var(--text-muted);
}

/* Testimonios ----------------------------------------------------------- */
.quote-card {
    margin: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px 28px 28px;
}

.quote-card::before {
    content: '“';
    position: absolute;
    top: -6px;
    left: 22px;
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1;
    color: var(--leaf-200);
}

.quote-card p {
    position: relative;
    flex: 1;
    font-size: 1.02rem;
    font-style: italic;
    color: var(--ink-700);
}

.quote-card footer {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--forest-800);
}

.quote-card footer div span {
    display: block;
    font-size: 0.84rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Proceso / línea de tiempo --------------------------------------------- */
.process {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
}

.timeline {
    position: relative;
    margin: 0;
    padding: 0 0 0 28px;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--leaf-200);
}

.timeline li {
    position: relative;
    padding-bottom: 28px;
}

.timeline li:last-child {
    padding-bottom: 0;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--leaf-500);
}

.timeline time {
    display: block;
    margin-bottom: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clay-600);
}

.timeline h4 {
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.timeline p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--ink-700);
}

@media (max-width: 900px) {
    .process {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Llamado final --------------------------------------------------------- */
.final-cta {
    position: relative;
    padding: 72px 48px;
    border-radius: 28px;
    text-align: center;
    color: var(--white);
    background:
        radial-gradient(600px 260px at 15% 0%, rgba(229, 163, 58, 0.3), transparent 65%),
        radial-gradient(600px 300px at 100% 100%, rgba(111, 168, 79, 0.35), transparent 65%),
        var(--forest-800);
    overflow: hidden;
}

.final-cta h2 {
    color: var(--white);
    font-size: clamp(2rem, 4.4vw, 3rem);
}

.final-cta p {
    max-width: 560px;
    margin: 0 auto 32px;
    font-size: 1.1rem;
    color: rgba(248, 244, 234, 0.85);
}

.final-cta .btn-row {
    justify-content: center;
}

.alias-pill {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    padding: 8px 8px 8px 18px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.92rem;
    color: rgba(248, 244, 234, 0.85);
}

.alias-pill code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
}

@media (max-width: 640px) {
    .final-cta {
        padding: 56px 22px;
        border-radius: 22px;
    }
}

/* Botón flotante -------------------------------------------------------- */
.floating-donate {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: var(--radius-pill);
    background: var(--clay-500);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(180, 83, 42, 0.4);
    transform: translateY(120px);
    transition: transform 0.35s var(--ease), background 0.2s var(--ease);
}

.floating-donate.is-visible {
    transform: none;
}

.floating-donate:hover {
    background: var(--clay-600);
    color: var(--white);
}

/* Visor de PDF ---------------------------------------------------------- */
.pdf-frame {
    flex: 1;
    width: 100%;
    min-height: 0;
    margin-top: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--cream-100);
}

/* Ajustes móviles ------------------------------------------------------- */
.story-media {
    margin: 0;
}

@media (max-width: 640px) {
    .stats-strip .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .stats-strip .stat {
        padding: 18px 12px;
    }

    .story-media .story-media-badge {
        position: relative;
        left: auto;
        bottom: auto;
        max-width: none;
        margin: -28px 16px 0;
    }

    .resource-banner {
        padding: 24px 20px;
    }

    .resource-banner .feature {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-card {
        padding: 22px;
    }

    .floating-donate {
        right: 16px;
        bottom: 16px;
        padding: 12px 18px;
    }
}

/* Campaña «Un hogar» ---------------------------------------------------- */
.hero-note {
    margin: 22px 0 0;
    font-size: 0.92rem;
}

.hero-note a {
    color: rgba(248, 244, 234, 0.85);
    text-decoration: none;
    font-weight: 500;
}

.hero-note a:hover {
    color: var(--sun-500);
}

.appeal {
    padding-top: 72px;
}

.appeal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 56px;
    align-items: start;
}

.appeal-text p {
    font-size: 1.08rem;
    color: var(--ink-700);
}

.appeal-quote {
    margin: 28px 0;
    padding: 24px 28px;
    border-left: 4px solid var(--clay-500);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--clay-100);
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    font-style: italic;
    line-height: 1.45;
    color: var(--forest-900);
}

.appeal-strong {
    font-family: var(--font-display);
    font-size: 1.4rem !important;
    font-weight: 600;
    color: var(--forest-800) !important;
}

.appeal-card {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    padding: 36px;
}

.appeal-goal {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1;
    color: var(--forest-700);
}

.appeal-actions {
    display: grid;
    gap: 10px;
    margin: 24px 0 20px;
}

.appeal-actions .btn {
    white-space: normal;
    text-align: center;
}

.appeal-small {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.appeal-share {
    margin-bottom: 24px;
}

.appeal-sign {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.appeal-sign strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--forest-900);
}

@media (max-width: 960px) {
    .appeal-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .appeal-card {
        position: static;
        padding: 26px 22px;
    }
}

.hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.7rem);
    line-height: 1.06;
}

/* GoFundMe como vía principal */
.appeal-or {
    margin: -2px 0 6px;
    font-size: 0.84rem;
    text-align: center;
    color: var(--text-muted);
}

.floating-donate--gfm {
    background: var(--gfm);
    box-shadow: 0 10px 30px rgba(2, 169, 92, 0.45);
}

.floating-donate--gfm:hover {
    background: var(--gfm-dark);
}

.floating-donate--gfm .gfm-logo {
    height: 1.45em;
    margin-top: -0.2em;
}

.hero-note i.fa-lock {
    margin-right: 4px;
    color: var(--leaf-200);
}

/* Hero con video */
.hero-aside {
    display: grid;
    gap: 14px;
}

.hero-progress {
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(20, 40, 28, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-progress-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: rgba(248, 244, 234, 0.85);
    font-size: 0.9rem;
}

.hero-progress-top strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--white);
}

.hero-progress .thermo-bar {
    height: 10px;
}

.hero-progress-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 12px;
    margin-top: 10px;
    font-size: 0.84rem;
    color: rgba(248, 244, 234, 0.75);
}

.hero-progress-foot a {
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
}

.hero-progress-foot a:hover {
    color: var(--sun-500);
}

.hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
}

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