/* ==========================================================
   WHITEPAPER - Página oficial (template-whitepaper.php)
   Hereda la paleta de whitepaper-2026.css y el ritmo tipográfico
   de las landings del tema hijo (agenda 2030 / becas / otras iniciativas).
   ========================================================== */

.wph-page-template {
    --wph-cyan: #53AEC3;
    --wph-cyan-dark: #326B78;
    --wph-black: #000000;
    --wph-white: #FFFFFF;
    --wph-container: 1500px;
    --wph-font: "Lato", Arial, Helvetica, sans-serif;
    --wph-font-title: "Roboto", Arial, Helvetica, sans-serif;

    width: 100%;
    font-family: var(--wph-font);
}

.wph-page-template *,
.wph-page-template *::before,
.wph-page-template *::after {
    box-sizing: border-box;
}

.wph-container {
    max-width: var(--wph-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ----------------------------------------------------------
   Hero: título sobre imagen, velado en azul corporativo.
   Va pegado al header: las migas se ocultan desde header.php
   ($header_hide_breadcrumbs) y aquí anulamos cualquier
   separación heredada del wrapper de contenido.
   ---------------------------------------------------------- */

body.page-template-template-whitepaper .site-main,
.wph-page-template {
    margin-top: 0;
    padding-top: 0;
}

.wph-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 400px;
    width: 100vw;
    margin-top: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0 0 40px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    overflow: hidden;
}

.wph-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(50, 107, 120, .88) 0%, rgba(50, 107, 120, .72) 100%);
}

.wph-hero .wph-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.wph-hero__title {
    margin: 0;
    max-width: 900px;
    font-family: var(--wph-font-title);
    font-size: 52px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--wph-white);
}

/* ----------------------------------------------------------
   Bloques de texto
   ---------------------------------------------------------- */

.wph-intro {
    padding: 60px 0 20px;
}

.wph-impacto {
    padding: 20px 0 80px;
}

.wph-heading {
    margin: 0 0 20px;
    font-family: var(--wph-font);
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    color: rgba(50, 107, 120, 1);
}

/* Encabezado que arranca un bloque nuevo dentro de la misma sección */
.wph-heading--tight {
    margin-top: 50px;
}

.wph-heading--center {
    max-width: 1500px;
    margin: 0 auto 40px;
    text-align: center;
}

.wph-text {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--wph-black);
}

.wph-text:last-child {
    margin-bottom: 0;
}

.wph-list {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.wph-list li {
    position: relative;
    margin: 0 0 6px;
    padding-left: 18px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--wph-black);
}

.wph-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--wph-black);
}

/* ----------------------------------------------------------
   Ediciones: tarjetas-enlace a cada whitepaper
   ---------------------------------------------------------- */

.wph-ediciones {
    padding: 40px 0;
}

.wph-ediciones__list {
    display: grid;
    gap: 24px;
}

.wph-edicion {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 40px 32px;
    border-radius: 24px;
    background-color: var(--wph-cyan-dark);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    color: var(--wph-white);
    text-align: center;
    text-decoration: none;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.wph-edicion:hover,
.wph-edicion:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(50, 107, 120, .28);
    color: var(--wph-white);
}

.wph-edicion__content {
    display: block;
    max-width: 1280px;
}

.wph-edicion__anio {
    display: block;
    margin-bottom: 4px;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.2;
}

.wph-edicion__titulo {
    display: block;
    font-size: 55px;
    font-weight: 700;
    line-height: 1.2;
}

.wph-edicion__claim {
    display: block;
    margin-top: 4px;
    font-size: 48px;
    font-weight: 300;
    line-height: 1.2;
}

/* Edición 2026: fondo negro con la trama de cruces alineada abajo */
.wph-edicion--2026 {
    background-color: var(--wph-black);
    background-size: 100% auto;
    background-position: center;
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */

@media (max-width: 1024px) {
    .wph-hero {
        height: 320px;
    }

    .wph-hero__title {
        font-size: 40px;
    }

    .wph-heading {
        font-size: 28px;
    }

    .wph-edicion__titulo {
        font-size: 26px;
    }

    .wph-edicion__claim {
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    .wph-hero {
        height: 260px;
        padding: 0 0 30px;
    }

    .wph-hero__title {
        font-size: 30px;
    }

    .wph-hero__title br {
        display: none;
    }

    .wph-intro {
        padding: 40px 0 10px;
    }

    .wph-impacto {
        padding: 10px 0 50px;
    }

    .wph-ediciones {
        padding: 30px 0;
    }

    .wph-heading {
        font-size: 24px;
    }

    .wph-text,
    .wph-list li {
        font-size: 16px;
    }

    .wph-edicion {
        min-height: 160px;
        padding: 32px 22px;
        border-radius: 18px;
    }

    .wph-edicion__anio {
        font-size: 26px;
    }

    .wph-edicion__titulo {
        font-size: 21px;
    }

    .wph-edicion__claim {
        font-size: 18px;
    }
}

/* ----------------------------------------------------------
   CTA final (banda de newsletter del footer global): en esta
   plantilla usa la foto propia del whitepaper (cta-final.jpg,
   inyectada como inline style desde template-whitepaper.php),
   con un velo intermedio y encuadrada hacia la parte baja de
   la foto.
   ---------------------------------------------------------- */

body.page-template-template-whitepaper .eed-footer__newsletter {
    background-position: center 65%;
}

body.page-template-template-whitepaper .eed-footer__newsletter-overlay {
    background: rgba(50, 107, 120, .8);
}
