/* ==========================================================
   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: 42px;
    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: 38px;
    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;
}

/* Una edición por fila, al mismo ancho que el resto de las secciones:
   la caja es .wph-container, así que la tarjeta ocupa todo su contenido.
   Las imágenes de fondo (cta1.png, 1408 × 353) están diseñadas como banda
   a ancho completo, no como media tarjeta. */
.wph-ediciones__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
}

.wph-edicion {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 40px 28px;
    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: 1300px;
}

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

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

.wph-edicion__claim {
    display: block;
    margin-top: 6px;
    font-size: 38px;
    font-weight: 400;
    line-height: 1.1;
}

/* CTA dentro de la tarjeta. Es un <span>, no un <a>: la tarjeta entera
   ya es el enlace y no se pueden anidar anclas. El hover lo dispara la
   tarjeta, así que el botón responde aunque el cursor esté fuera de él. */
.wph-edicion__cta {
    display: inline-block;
    margin-top: 20px;
    padding: 11px 26px;
    border: 2px solid var(--wph-white);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    transition: background-color .25s ease, color .25s ease;
}

.wph-edicion:hover .wph-edicion__cta,
.wph-edicion:focus-visible .wph-edicion__cta {
    background-color: var(--wph-white);
    color: var(--wph-cyan-dark);
}

/* Edición 2026: fondo negro con la trama de cruces.
   La trama se ancla arriba (que es donde la imagen es casi toda negra), así
   las cruces quedan más abajo, y un velo radial oscuro detrás del texto las
   apaga para que el titular se lea. isolation crea el contexto de apilado
   para que el velo (z-index -1) quede sobre el fondo y bajo el texto. */
.wph-edicion--2026 {
    position: relative;
    isolation: isolate;
    background-color: var(--wph-black);
    background-size: 100% auto;
    background-position: center top;
}

.wph-edicion--2026::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse 65% 75% at 50% 50%,
            rgba(0, 0, 0, .88) 0%,
            rgba(0, 0, 0, .7) 55%,
            rgba(0, 0, 0, .35) 100%);
}

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

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

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

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

    .wph-edicion {
        min-height: 300px;
        padding: 30px 22px;
    }

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

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

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

@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-ediciones__list {
        gap: 22px;
    }

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

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

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

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

    .wph-edicion__cta {
        margin-top: 16px;
        padding: 10px 22px;
        font-size: 14px;
    }
}

/* ----------------------------------------------------------
   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);
}
