/*
 * Ajustes para que la maqueta se vea bien en cualquier ancho. Va después de main.css
 * (compilado, no se toca) y sólo pisa lo que estaba roto: altos fijos, botones fijos
 * que tapaban el título en móvil y textos que se salían de la pantalla.
 */

html, body { overflow-x: hidden; }
img, video { max-width: 100%; }

/* ---------- Encabezado ---------- */
.top-video {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background-image: url(../video/fallback.jpeg);
    background-position: center;
    background-size: cover;
}
/* Velo para que el texto blanco se lea sobre cualquier parte de la foto. */
.top-video::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 20, 45, .55) 0%, rgba(0, 20, 45, .15) 45%, rgba(0, 20, 45, .45) 100%);
}

.marca {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #2d5a83;
    align-self: flex-start;
    padding: 6px 16px 6px 14px;
    border-bottom-right-radius: 6px;
}
.marca__logo { width: 40px; height: auto; }
.marca .green-stripe {
    height: auto;
    padding: 0;
    background: none;
    font-size: clamp(16px, 2.2vw, 22px);
    line-height: 1.2;
}

.donate-button__small a {
    position: fixed;
    top: 16px;
    right: 24px;
    height: auto;
    min-width: 0;
    padding: 10px 20px;
    font-size: 15px;
    line-height: 1.4;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

.top-video .l-one-column {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}
.top-video__inner-wrapper {
    padding: 40px 24px 90px;
    max-width: 900px;
    margin: 0 auto;
}
.top-video .title:first-child { padding-top: 0; }
.title--es-redimir {
    padding-top: 0;
    font-size: clamp(24px, 7.2vw, 64px);
    line-height: 1.1;
    white-space: nowrap;
}
.title--white--backbox {
    font-size: clamp(17px, 2.2vw, 24px);
    line-height: 1.45;
    padding: 10px 16px;
    max-width: 760px;
}

/* ---------- Quiénes somos ---------- */
.who-we-are .l-one-column {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px 60px;
    box-sizing: border-box;
}
.who-we-are .title {
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.2;
}
.who-we-are .column__wrapper,
.who-we-are .column {
    width: 100%;
    float: none;
    margin: 0;
    padding: 0;
}
.who-we-are p {
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.65;
    margin: 0 0 18px;
}

/* ---------- Fotos y vídeo: siempre enteras, sin recorte ---------- */
.foto-seccion { line-height: 0; }
.img-section,
#video-footer {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.thank-you {
    position: relative;
    height: auto;
    min-height: 0;
    background: #000;
    line-height: 0;
}
#video-footer { max-height: 90vh; margin: 0 auto; }

/* ---------- Pie ---------- */
.footer__bottom {
    height: auto;
    padding: 30px 0;
}
.footer-grid {
    grid-template-columns: minmax(140px, 1fr) 3fr auto auto;
    gap: 30px;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}
.footer-gracias { text-align: center; gap: 10px; }
.footer-gracias img { max-width: 160px; }
.footer-gracias h2 { margin: 0; font-size: clamp(22px, 2.4vw, 28px); }
.footer__bottom h3 { margin: 0 0 12px; }
.footer-contacto { display: flex; flex-direction: column; gap: 14px; }
.social-item { overflow-wrap: anywhere; }

@media (max-width: 1000px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-gracias { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .donate-button__small a {
        top: auto;
        bottom: 16px;
        right: 16px;
        left: 16px;
        text-align: center;
        font-size: 16px;
        padding: 14px 20px;
    }
    .top-video__inner-wrapper { padding: 30px 16px 110px; }
    .who-we-are .l-one-column { padding: 0 16px 40px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-item { justify-content: center; text-align: left; }
    .footer__bottom { padding-bottom: 90px; }
}
