/*
 * Renovacion visual de la portada.
 * Inspirada en recursos de composicion (hero cinematografico, contraste,
 * tarjetas y llamadas a la accion), con implementacion y lenguaje propios.
 */

:root {
    --deep: #102d26;
    --deep-2: #0a201b;
    --mint: #42b879;
    --mint-dark: #25875a;
    --coral: #ef6b3b;
    --coral-dark: #cf4e23;
    --warm-white: #fffaf1;
    --soft-shadow: 0 22px 55px rgba(16, 45, 38, .12);
    --strong-shadow: 0 28px 75px rgba(4, 20, 16, .28);
}

body {
    background: var(--warm-white);
}

/* Cabecera sobre el hero */
.site-header {
    height: 96px;
    color: #fff;
    padding-inline: clamp(1.25rem, 6vw, 6rem);
    transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}

.site-header .brand-mark {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--coral), #ff9155);
    box-shadow: 0 10px 25px rgba(239, 107, 59, .28);
}

.main-nav {
    gap: clamp(.9rem, 2vw, 1.8rem);
}

.main-nav > a:not(.button) {
    position: relative;
    color: inherit;
    font-weight: 600;
}

.main-nav > a:not(.button)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -.45rem;
    height: 2px;
    background: var(--coral);
    transition: right .22s ease;
}

.main-nav > a:not(.button):hover::after {
    right: 0;
}

.site-header.is-scrolled {
    position: fixed;
    color: var(--deep);
    background: rgba(255, 250, 241, .94);
    border-bottom: 1px solid rgba(16, 45, 38, .08);
    box-shadow: 0 12px 38px rgba(16, 45, 38, .1);
}

.site-header .button-small {
    background: var(--mint);
    border-color: var(--mint);
    box-shadow: 0 8px 24px rgba(66, 184, 121, .25);
}

.language-switcher {
    border-color: rgba(255, 255, 255, .25);
}

.site-header.is-scrolled .language-switcher {
    border-color: var(--line);
}

/* Hero fotografico de gran impacto */
.hero {
    position: relative;
    isolation: isolate;
    min-height: min(850px, 100vh);
    padding: 155px clamp(1.25rem, 7vw, 7.5rem) 100px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .65fr);
    align-items: center;
    gap: 4vw;
    overflow: hidden;
    background: var(--deep-2);
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;
    background: url("images/mario-cocinando-facebook.jpg") center 42% / cover no-repeat;
    transform: scale(1.02);
}

.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 25, 21, .96) 0%, rgba(9, 31, 26, .9) 43%, rgba(9, 31, 26, .45) 70%, rgba(9, 31, 26, .3) 100%),
        linear-gradient(0deg, rgba(5, 20, 17, .45), transparent 45%);
}

.hero-copy {
    max-width: 850px;
    text-shadow: 0 2px 25px rgba(0, 0, 0, .2);
}

.hero .eyebrow {
    color: #ffb08f;
    letter-spacing: .2em;
}

.hero h1 {
    max-width: 900px;
    margin-bottom: 1.4rem;
    font-size: clamp(3.25rem, 6.4vw, 6.6rem);
    color: #fff;
}

.hero h1 em {
    color: var(--coral);
    text-shadow: none;
}

.hero-lead {
    max-width: 680px;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(1.05rem, 1.45vw, 1.3rem);
}

.button-row {
    margin-top: 2rem;
}

.hero .button {
    min-width: 175px;
    min-height: 56px;
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(239, 107, 59, .23);
}

.hero .button-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(8px);
    box-shadow: none;
}

.hero .button-ghost:hover {
    background: #fff;
    color: var(--deep);
}

.trust-note {
    color: rgba(255, 255, 255, .75);
}

.trust-note span {
    color: #75dca5;
}

.hero-impact {
    color: #ffb08f;
}

.hero-visual {
    min-height: 510px;
    align-self: end;
    pointer-events: none;
}

.hero-visual .photo-placeholder {
    display: none;
}

.floating-card {
    right: 0;
    bottom: 2rem;
    max-width: 300px;
    padding: 1.45rem 1.55rem;
    color: var(--deep);
    border: 0;
    border-top: 5px solid var(--coral);
    border-radius: 6px;
    box-shadow: var(--strong-shadow);
}

.floating-card strong {
    margin-bottom: .25rem;
    font-family: var(--serif);
    font-size: 1.25rem;
}

/* Botones, titulos y ritmo */
.button {
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(239, 107, 59, .18);
}

.button:hover {
    box-shadow: 0 16px 30px rgba(239, 107, 59, .25);
}

.eyebrow {
    color: var(--coral-dark);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .18em;
}

.section-heading h2,
.welcome-copy h2,
.transparency-copy h2 {
    position: relative;
}

.section-heading h2::after,
.welcome-copy h2::after,
.transparency-copy h2::after {
    content: "";
    display: block;
    width: 72px;
    height: 5px;
    margin-top: 1rem;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--coral), var(--mint));
}

.manifesto {
    padding-block: 2.4rem;
    background: linear-gradient(100deg, var(--deep-2), #1a4a3d);
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.manifesto p::before,
.manifesto p::after {
    color: var(--coral);
}

/* Tarjetas y modulos */
.timeline {
    gap: 1.1rem;
    border-top: 0;
}

.timeline li {
    min-height: 235px;
    padding: 2rem;
    border: 1px solid rgba(16, 45, 38, .1);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(16, 45, 38, .07);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.timeline li::before {
    display: none;
}

.timeline li:hover {
    transform: translateY(-7px);
    border-color: rgba(239, 107, 59, .35);
    box-shadow: var(--soft-shadow);
}

.timeline span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: #fff0e9;
}

.campaign-card {
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(16, 45, 38, .1);
    transition: transform .28s ease, box-shadow .28s ease;
}

.campaign-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--soft-shadow);
}

.campaign-image {
    position: relative;
    isolation: isolate;
}

.campaign-image::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .3), transparent 35%);
}

.campaign-body {
    padding: 2rem;
}

.social-grid a,
.youtube-showcase,
.donation-box {
    border-radius: 12px;
    box-shadow: 0 16px 42px rgba(16, 45, 38, .09);
}

.social-grid a {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.social-grid a:hover {
    transform: translateY(-6px);
    border-color: var(--coral);
    box-shadow: var(--soft-shadow);
}

.youtube-showcase {
    overflow: hidden;
}

.documentary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(125deg, var(--deep-2), #1b4b3e);
}

.documentary::after {
    content: "";
    position: absolute;
    right: -180px;
    bottom: -240px;
    width: 520px;
    height: 520px;
    border: 85px solid rgba(239, 107, 59, .09);
    border-radius: 50%;
    pointer-events: none;
}

.video-placeholder {
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    box-shadow: var(--strong-shadow);
}

.video-placeholder.is-playing {
    display: block;
    overflow: hidden;
    background: #000;
}

.video-placeholder iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.play {
    transition: transform .22s ease, box-shadow .22s ease;
}

.play:hover {
    transform: scale(1.08);
    box-shadow: 0 0 0 16px rgba(255, 255, 255, .1), 0 18px 35px rgba(0, 0, 0, .22);
}

.transparency {
    background: linear-gradient(120deg, #f2eadb, #e6d9c1);
}

.transparency-list > div {
    padding: 1.65rem;
    border: 0;
    border-bottom: 1px solid rgba(16, 45, 38, .12);
    transition: background .2s ease, transform .2s ease;
}

.transparency-list > div:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, .42);
}

.donate {
    background:
        radial-gradient(circle at 8% 12%, rgba(66, 184, 121, .18), transparent 28%),
        linear-gradient(135deg, var(--deep-2), var(--deep));
}

.donation-box {
    padding: clamp(1.5rem, 3vw, 2.6rem);
}

.impact-phrase {
    border: 0;
    border-left: 6px solid var(--mint);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(16, 45, 38, .08);
}

.impact-phrase-orange {
    border-left-color: var(--coral);
}

.closing {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(125deg, #f5e8d2, #fffaf1);
}

.closing::before,
.closing::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(2px);
}

.closing::before {
    top: -210px;
    left: -90px;
    background: rgba(239, 107, 59, .16);
}

.closing::after {
    right: -130px;
    bottom: -230px;
    background: rgba(66, 184, 121, .16);
}

footer {
    background: var(--deep-2);
}

/* Mosaico editorial inspirado en una cartelera, con contenido propio. */
.featured-stories {
    background: #edf5f1;
}

.featured-stories .section-heading {
    max-width: 820px;
}

.featured-mosaic {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr;
    grid-template-rows: repeat(2, minmax(230px, 1fr));
    gap: 1.25rem;
}

.featured-tile {
    position: relative;
    isolation: isolate;
    min-height: 250px;
    overflow: hidden;
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 16px 42px rgba(16, 45, 38, .14);
}

.featured-tile-main {
    grid-row: 1 / 3;
}

.featured-tile-story {
    grid-row: 1 / 3;
    grid-column: 3;
}

.featured-tile img {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.2, .75, .25, 1);
}

.featured-tile::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, transparent 28%, rgba(5, 24, 19, .9));
}

.featured-tile:hover img {
    transform: scale(1.055);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: .42rem .7rem;
    border-radius: 4px;
    background: var(--coral);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.featured-caption {
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: 1.1rem;
    padding: 1.15rem;
    border-left: 5px solid var(--mint);
    background: rgba(255, 255, 255, .94);
    color: var(--deep);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}

.featured-tile-main .featured-caption,
.featured-tile-story .featured-caption {
    padding: 1.35rem;
}

.featured-caption small,
.featured-caption strong,
.featured-caption b {
    display: block;
}

.featured-caption small {
    color: var(--coral-dark);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.featured-caption strong {
    margin: .3rem 0;
    font-family: var(--serif);
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    line-height: 1.1;
}

.featured-caption b {
    color: var(--mint-dark);
    font-size: .78rem;
}

/* Cronologia verificable de transparencia. */
.accountability-timeline {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.accountability-timeline::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 18px;
    left: 10px;
    width: 2px;
    background: rgba(16, 45, 38, .17);
}

.accountability-timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 1.2rem;
    padding-bottom: 1.8rem;
}

.timeline-marker {
    z-index: 1;
    width: 22px;
    height: 22px;
    margin-top: .15rem;
    border: 5px solid #e6d9c1;
    border-radius: 50%;
    background: var(--mint-dark);
    box-shadow: 0 0 0 2px var(--mint-dark);
}

.accountability-timeline .is-current .timeline-marker {
    background: var(--coral);
    box-shadow: 0 0 0 2px var(--coral), 0 0 0 8px rgba(239, 107, 59, .12);
}

.accountability-timeline small,
.accountability-timeline strong {
    display: block;
}

.accountability-timeline small {
    margin-bottom: .25rem;
    color: var(--coral-dark);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.accountability-timeline strong {
    font-family: var(--serif);
    font-size: 1.25rem;
}

.accountability-timeline p {
    margin: .35rem 0 0;
    color: var(--muted);
}

/* Entrada escalonada y accesible */
.reveal {
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .75, .25, 1);
}

.campaign-grid .reveal:nth-child(2),
.timeline .reveal:nth-child(2) {
    transition-delay: .08s;
}

@media (max-width: 1120px) {
    .main-nav {
        gap: .9rem;
    }

    .main-nav > a:not(.button) {
        font-size: .82rem;
    }

    .language-switcher {
        display: none;
    }
}

@media (max-width: 900px) {
    .site-header {
        height: 82px;
    }

    .site-header:not(.is-scrolled) .menu-toggle span:not(.sr-only) {
        background: #fff;
    }

    .main-nav {
        top: 74px;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        color: var(--deep);
        border-radius: 10px;
    }

    .language-switcher {
        display: flex;
    }

    .hero {
        min-height: 760px;
        grid-template-columns: 1fr;
        padding-top: 130px;
        padding-bottom: 80px;
    }

    .hero::before {
        background-position: 58% center;
    }

    .hero::after {
        background: linear-gradient(90deg, rgba(6, 25, 21, .95), rgba(6, 25, 21, .65));
    }

    .hero-visual {
        min-height: 0;
    }

    .floating-card {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 1rem;
    }

    .timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 360px 250px;
    }

    .featured-tile-main {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .featured-tile-story {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 560px) {
    .site-header .brand-mark {
        width: 44px;
        height: 44px;
    }

    .hero {
        min-height: 720px;
        padding-top: 118px;
        background-position: 62% center;
    }

    .hero h1 {
        font-size: clamp(3rem, 14vw, 4.35rem);
    }

    .hero::after {
        background: linear-gradient(90deg, rgba(5, 22, 18, .96), rgba(5, 22, 18, .7));
    }

    .hero .button {
        width: 100%;
    }

    .floating-card {
        display: none;
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .featured-mosaic {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .featured-tile,
    .featured-tile-main,
    .featured-tile-story {
        grid-column: auto;
        grid-row: auto;
        min-height: 300px;
    }

    .timeline li {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .timeline li,
    .campaign-card,
    .social-grid a,
    .play,
    .transparency-list > div {
        transition: none;
    }
}
