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

.pod-page-template {
    --pod-cyan: #53AEC3;
    --pod-cyan-dark: #326B78;
    --pod-cyan-soft: #BADFE7;
    --pod-cyan-bg: #EAF6F9;
    --pod-black: #000000;
    --pod-white: #FFFFFF;
    --pod-ink: #141414;
    --pod-container: 1500px;
    --pod-font: "Lato", Arial, Helvetica, sans-serif;
    --pod-font-title: "Roboto", Arial, Helvetica, sans-serif;

    width: 100%;
    font-family: var(--pod-font);
    color: var(--pod-ink);
}

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

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

.pod-container--narrow {
    max-width: 1180px;
}

/* El hero va pegado al header, igual que en la plantilla de whitepaper. */
body.page-template-template-podcast .site-main,
.pod-page-template {
    margin-top: 0;
    padding-top: 0;
}


/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */

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

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

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

.pod-hero__title {
    margin: 0;
    max-width: 900px;
    font-family: var(--pod-font-title);
    font-size: 46px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--pod-white);
}


/* ----------------------------------------------------------
   Introducción
   ---------------------------------------------------------- */

.pod-intro {
    padding: 46px 0 40px;
}

.pod-text {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    color: var(--pod-ink);
}

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

.pod-text strong {
    font-weight: 700;
}


/* ----------------------------------------------------------
   Cita destacada
   ---------------------------------------------------------- */

.pod-quote {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 230px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 48px 20px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.pod-quote::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(50, 107, 120, .74);
}

.pod-quote__inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
}

.pod-quote__text {
    margin: 0;
    font-family: var(--pod-font-title);
    font-size: 34px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--pod-white);
}


/* ----------------------------------------------------------
   Títulos de sección
   ---------------------------------------------------------- */

.pod-heading {
    margin: 0 0 34px;
    font-family: var(--pod-font-title);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    color: var(--pod-cyan);
}


/* ----------------------------------------------------------
   Últimos episodios
   ---------------------------------------------------------- */

.pod-latest {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 54px 0 60px;
    background-color: var(--pod-cyan-bg);
}


/* ----------------------------------------------------------
   Rejilla y tarjeta de episodio
   ---------------------------------------------------------- */

/* Rejilla: columnas de 548px como en el diseño, pero fluidas por debajo
   de ese ancho para no romper el responsive. */
.pod-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 548px));
    justify-content: center;
    gap: 56px;
}

.pod-card {
    display: flex;
    flex-direction: column;
    padding: 14px;
    border: 2px solid var(--pod-cyan);
    border-radius: 30px;
    opacity: 1;
}

/* Últimos episodios: sin fondo propio, deja ver el azul claro de la sección. */
.pod-latest .pod-card {
    background-color: transparent;
}

/* Temporadas: tarjetas con velo cyan sobre el fondo blanco de la sección. */
.pod-seasons .pod-card {
    background-color: rgba(186, 223, 231, .31);
}

.pod-card[hidden] {
    display: none;
}

/* Radio interior = radio exterior (30) menos el padding de la tarjeta (14). */
.pod-card__media {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    line-height: 0;
}

.pod-card__img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.pod-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 16px 4px 4px;
}

.pod-card__title {
    margin: 0 0 14px;
    font-family: var(--pod-font);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--pod-ink);
}

.pod-card__title a {
    color: inherit;
    text-decoration: none;
}

.pod-card__title a:hover,
.pod-card__title a:focus {
    text-decoration: underline;
}

/* Chip con el nombre del invitado */
.pod-card__guest {
    display: inline-block;
    align-self: flex-start;
    margin: 0 0 10px;
    padding: 5px 12px;
    border: 1px solid var(--pod-cyan-soft);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--pod-cyan-dark);
}

.pod-card__duration {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 400;
    color: var(--pod-cyan);
}

/* Fila de iconos de plataforma */
.pod-card__platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.pod-card__platform {
    display: inline-flex;
    line-height: 0;
    border-radius: 9px;
    transition: opacity .2s ease, transform .2s ease;
}

.pod-card__platform:hover,
.pod-card__platform:focus-visible {
    opacity: .75;
    transform: translateY(-1px);
}

.pod-card__platform svg {
    width: 32px;
    height: 32px;
    display: block;
}

/* Botón "Escuchar" */
.pod-card__cta {
    display: block;
    margin-top: auto;
    padding: 12px 20px;
    border-radius: 6px;
    background-color: var(--pod-black);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    color: var(--pod-white);
    transition: background-color .2s ease;
}

.pod-card__cta:hover,
.pod-card__cta:focus {
    background-color: var(--pod-cyan-dark);
    color: var(--pod-white);
}


/* ----------------------------------------------------------
   Temporadas
   ---------------------------------------------------------- */

.pod-seasons {
    padding: 60px 0 70px;
}

.pod-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 0 0 44px;
}

/**
 * Pestañas de temporada. Medidas del diseño: 544x142 y radio de 30px, con el
 * cian corporativo rgba(83, 174, 195, 1) en la pestaña activa.
 *
 * El ancho lo reparte la rejilla, así que del diseño se conserva el radio
 * literal y la altura en proporción (142/544 sobre el ancho real del tab).
 *
 * Inactiva: fondo verde azulado oscuro con el texto en cian claro.
 * Activa:   fondo cian corporativo con el texto en blanco.
 *
 * Se escriben con el prefijo .pod-page-template .pod-tabs para ganar a las
 * reglas genéricas de `button` del tema padre y de Elementor sin recurrir a
 * !important; los resets de apariencia evitan que un estilo de UA o de plugin
 * reintroduzca borde, degradado o tipografía del sistema.
 */
.pod-page-template .pod-tabs .pod-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 18px 24px;
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    border-radius: 30px;
    background-color: var(--pod-cyan-dark);
    background-image: none;
    box-shadow: 0 4px 10px rgba(20, 20, 20, .12);
    font-family: var(--pod-font-title);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .02em;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--pod-cyan-soft);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.pod-page-template .pod-tabs .pod-tab:hover,
.pod-page-template .pod-tabs .pod-tab:focus-visible {
    color: var(--pod-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(20, 20, 20, .18);
}

.pod-page-template .pod-tabs .pod-tab:focus-visible {
    outline: 2px solid var(--pod-cyan-dark);
    outline-offset: 3px;
}

.pod-page-template .pod-tabs .pod-tab.is-active {
    background-color: rgba(83, 174, 195, 1);
    color: var(--pod-white);
    box-shadow: 0 6px 14px rgba(83, 174, 195, .35);
}

.pod-season-title {
    margin: 0 0 30px;
    font-family: var(--pod-font-title);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    color: var(--pod-cyan);
    text-transform: uppercase;
}

.pod-panel[hidden] {
    display: none;
}

.pod-empty {
    margin: 0;
    text-align: center;
    font-size: 16px;
    color: var(--pod-cyan-dark);
}


/* ----------------------------------------------------------
   Paginación
   ---------------------------------------------------------- */

.pod-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 38px;
}

.pod-pagination:empty {
    display: none;
}

.pod-page {
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border: 1px solid var(--pod-cyan-soft);
    border-radius: 6px;
    background-color: var(--pod-white);
    font-family: var(--pod-font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: var(--pod-cyan-dark);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.pod-page:hover:not(:disabled),
.pod-page:focus-visible:not(:disabled) {
    background-color: var(--pod-cyan-bg);
}

.pod-page.is-active {
    background-color: var(--pod-cyan);
    border-color: var(--pod-cyan);
    color: var(--pod-white);
}

.pod-page:disabled {
    opacity: .4;
    cursor: default;
}


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

@media (max-width: 1024px) {

    .pod-grid,
    .pod-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pod-grid {
        gap: 28px;
    }

    .pod-hero__title {
        font-size: 36px;
    }

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

    .pod-quote__text {
        font-size: 27px;
    }

    .pod-page-template .pod-tabs .pod-tab {
        min-height: 96px;
        padding: 16px 18px;
        border-radius: 24px;
        font-size: 20px;
    }
}

@media (max-width: 767px) {

    .pod-grid,
    .pod-tabs {
        grid-template-columns: minmax(0, 1fr);
    }

    .pod-grid {
        gap: 24px;
    }

    .pod-hero {
        height: 280px;
        padding-bottom: 32px;
    }

    .pod-hero__title {
        font-size: 28px;
    }

    .pod-intro {
        padding: 34px 0 30px;
    }

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

    .pod-quote {
        min-height: 190px;
        padding: 38px 20px;
    }

    .pod-quote__text {
        font-size: 22px;
    }

    .pod-latest {
        padding: 40px 0 44px;
    }

    .pod-seasons {
        padding: 44px 0 50px;
    }

    .pod-tabs {
        gap: 14px;
        margin-bottom: 32px;
    }

    .pod-page-template .pod-tabs .pod-tab {
        min-height: 72px;
        padding: 14px 16px;
        border-radius: 20px;
        font-size: 18px;
    }

    .pod-season-title {
        font-size: 22px;
    }
}
