/* ==========================================================
   VARIABLES
========================================================== */

:root {

    --podcast-red: #9d2235;
    --podcast-rojo: #fd0046;
    --podcast-red-dark: #801b2b;
    --podcast-grad: linear-gradient(to right, rgba(177, 0, 51, 1) 0%, rgba(255, 0, 70, 1) 100%);

    --black: #111111;
    --dark: #1a1a1a;

    --grey: #6d6d6d;
    --light-grey: #eeeeee;
    --warm-grey: #f5f3f0;

    --white: #ffffff;

    --playfair: "Playfair Display", Georgia, serif;
    --sans: "Noto Sans", Arial, sans-serif;
    --oswald: "Oswald", sans-serif;
}


/* ==========================================================
   BASE
========================================================== */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--black);
    background: var(--white);
    padding-bottom: 85px;
}

html,
body {
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

button {
    font-family: inherit;
}


/* ==========================================================
   HEADER
========================================================== */

.podcast-header {

    padding: 12px 0;

    border-bottom: 1px solid #dedede;

    background: #3A0B1F;

}

.inbal-brand {

    font-size: 1.35rem;

    font-weight: 700;

    letter-spacing: .08em;

    color: var(--white);

}

.logo-header {
  display: block;
  width: auto;
  height: 45px;
  max-width: 100%;
  margin: 0 auto;
}

.back-link {
    color: #dddddd;
    font-size: .8rem;
    letter-spacing: .08em;
    transition: color .25s ease;
}

.back-link i {
    color: #ebdad9;
    margin-right: 7px;
    transition: transform .25s ease;
}

.back-link:hover {
    color:  #D4C19B;
}

.back-link:hover i {
    color:  #D4C19B;
    transform: translateX(-5px);
}

/* ==========================================================
   HERO
========================================================== */

.podcast-hero {

    padding: 100px 0 120px;

    background: var(--warm-grey);

    overflow: hidden;

}

.eyebrow {

    display: block;

    margin-bottom: 18px;

    color: var(--podcast-red);

    font-size: .72rem;

    font-weight: 700;

    letter-spacing: .18em;

    text-transform: uppercase;

}

.podcast-hero h1 {

    max-width: 800px;

    margin: 0;

    font-family: var(--oswald);

    font-size: clamp(3.5rem, 7vw, 7rem);

    line-height: .95;

    font-weight: 600;

    letter-spacing: -.04em;

}

.podcast-hero h1 span {
    background: linear-gradient(to right, rgba(177, 0, 51, 1) 0%, rgba(255, 0, 70, 1) 100%);
    -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero-description {

    max-width: 600px;

    margin: 35px 0 35px;

    color: #444;

    font-size: 1.1rem;

    line-height: 1.8;

}

.hero-actions {

    display: flex;

    gap: 12px;

    flex-wrap: wrap;

}

.btn-podcast {

    padding: 13px 22px;

    color: var(--white);
    border-radius: 0;

    background: var(--podcast-grad);

    font-size: .82rem;

    font-weight: 600;

    letter-spacing: .04em;
    border-radius: 25px;
    transition: all .25s ease;

}

.btn-podcast:hover {
    background: var(--podcast-red-dark);
    color: var(--white);

}

.btn-podcast i {
    margin-right: 8px;
}

.btn-outline-podcast {

    padding: 13px 22px;

    border: 1px solid var(--black);

    border-radius: 25px;

    color: var(--black);

    font-size: .82rem;

    font-weight: 600;

    transition: all .25s ease;

}

.btn-outline-podcast:hover {

    color: var(--white);

    background: var(--black);

}


/* ==========================================================
   COVER
========================================================== */

.podcast-cover-wrapper {

    position: relative;

    max-width: 470px;

    margin-left: auto;

}

.podcast-cover {

    display: block;

    width: 100%;

    height: auto;

    position: relative;

    z-index: 2;

    box-shadow: 25px 25px 0 rgba(157, 34, 53, .12);

}

.cover-number {

    position: absolute;

    z-index: 1;

    top: -30px;

    right: -30px;

    font-family: var(--oswald);

    font-size: 8rem;

    line-height: 1;

    color: rgba(0, 0, 0, .06);

}


/* ==========================================================
   FEATURED EPISODE
========================================================== */

.featured-episode {
    padding: 100px 0;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    color: var(--black);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18em;
}

.section-label span {
    display: block;
    width: 35px;
    height: 2px;
    background: var(--black);

}

.featured-card {
    overflow: hidden;
    border: 1px solid #dddddd;
    background: var(--white);
}

.featured-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    background: var(--podcast-grad);
    color: var(--white);
}

.featured-number span {
    font-family: var(--oswald);
    font-size: 7rem;
    line-height: 1;
}

.featured-number small {

    margin-top: 12px;

    font-size: .65rem;

    letter-spacing: .18em;

}

.featured-content {

    padding: 55px 50px;

}

.episode-meta {

    margin-bottom: 20px;

    color: var(--podcast-red);

    font-size: .7rem;

    font-weight: 700;

    letter-spacing: .13em;

}

.episode-meta span {
    margin: 0 7px;
}

.featured-content h2 {

    margin: 0 0 22px;

    font-family: var(--oswald);

    font-size: clamp(2rem, 3vw, 3rem);

    line-height: 1.1;

    font-weight: 600;

}

.featured-content p {

    max-width: 650px;

    margin-bottom: 25px;

    color: var(--grey);

    line-height: 1.75;

}

.episode-link {
    color: var(--black);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.episode-link i {
    margin-left: 7px;
    transition: transform .25s ease;
}

.episode-link:hover {
    color: var(--podcast-red);
}

.episode-link:hover i {
    transform: translateX(5px);
}

.featured-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 40px;
    background: var(--warm-grey);
}

.player-label {
    color: var(--grey);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .15em;
}

.play-button {
    width: 72px;
    height: 72px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: var(--black);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all .25s ease;
}

.play-button:hover {
    background: var(--podcast-grad);
    transform: scale(1.06);
}

.player-duration {
    color: var(--grey);
    font-size: .75rem;
}


/* ==========================================================
   ABOUT
========================================================== */

.about-podcast {

    padding: 110px 0;

    color: var(--white);

    background: var(--black);

}

.about-title h2 {

    max-width: 500px;

    margin: 0;

    font-family: var(--oswald);

    font-size: clamp(2.7rem, 5vw, 4.8rem);

    line-height: 1.05;

}

.about-text {

    max-width: 700px;

    margin-bottom: 25px;

    color: #cfcfcf;

    font-size: 1rem;

    line-height: 1.9;

}


/* ==========================================================
   EPISODES
========================================================== */

.episodes-section {

    padding: 110px 0;

}

.episodes-heading {

    display: flex;

    align-items: end;

    justify-content: space-between;

    margin-bottom: 45px;

}

.episodes-heading h2 {

    margin: 0;

    font-family: var(--oswald);

    font-size: clamp(2.5rem, 5vw, 4rem);

    line-height: 1;

}

.episode-count {

    color: var(--grey);

    font-size: .75rem;

    font-weight: 600;

    letter-spacing: .1em;

    text-transform: uppercase;

}

.episodes-list {

    border-top: 1px solid #d7d7d7;

}

.episode-item {

    display: grid;

    grid-template-columns: 90px 1fr 70px;

    align-items: center;

    gap: 30px;

    min-height: 145px;

    padding: 25px 0;

    border-bottom: 1px solid #d7d7d7;

    transition: all .25s ease;

}

.episode-item:hover {

    padding-left: 15px;

    padding-right: 15px;

    background: var(--warm-grey);

}

.episode-index {

    font-family: var(--oswald);

    font-size: 2.4rem;

    color: #aaa;

}

.episode-info {

    min-width: 0;

}

.episode-date {

    margin-bottom: 8px;

    color: var(--podcast-red);

    font-size: .67rem;

    font-weight: 700;

    letter-spacing: .12em;

}

.episode-date span {
    margin: 0 6px;
}

.episode-info h3 {

    max-width: 850px;

    margin: 0;

    font-family: var(--oswald);

    font-size: 1.45rem;

    line-height: 1.3;

    font-weight: 600;

}

.episode-play {

    width: 52px;

    height: 52px;

    border: 1px solid #cfcfcf;

    border-radius: 50%;

    color: var(--black);

    background: transparent;

    cursor: pointer;

    transition: all .25s ease;

}

.episode-play:hover {

    color: var(--white);

    border-color: var(--white);

    background: var(--podcast-grad);

}

.load-more-wrapper {

    display: flex;

    justify-content: center;

    padding-top: 50px;

}

.btn-load-more {

    padding: 14px 24px;

    border: 1px solid var(--black);

    border-radius: 25px;

    color: var(--black);

    background: transparent;

    font-size: .75rem;

    font-weight: 700;

    letter-spacing: .1em;

    text-transform: uppercase;

    transition: all .25s ease;

}

.btn-load-more:hover {

    color: var(--white);

    background: var(--black);

}

.btn-load-more i {

    margin-left: 8px;

}


/* ==========================================================
   AUDIO PLAYER
========================================================== */

.audio-player {

    position: fixed;

    z-index: 1000;

    right: 0;

    bottom: 0;

    left: 0;

    height: 80px;

    color: var(--white);

    background: #151515;

    box-shadow: 0 -5px 25px rgba(0, 0, 0, .15);

}

.audio-player-inner {

    display: grid;

    grid-template-columns: 1.5fr 60px 2fr 40px;

    align-items: center;

    gap: 25px;

    height: 80px;

}

.audio-current {

    display: flex;

    align-items: center;

    gap: 14px;

    min-width: 0;

}

.audio-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    width: 42px;

    height: 42px;

    color: var(--white);

    background: var(--podcast-grad);

}

.audio-current span {

    display: block;

    margin-bottom: 3px;

    color: #999;

    font-size: .55rem;

    font-weight: 700;

    letter-spacing: .12em;

}

.audio-current strong {

    display: block;

    overflow: hidden;

    max-width: 300px;

    color: var(--white);

    font-size: .75rem;

    font-weight: 500;

    text-overflow: ellipsis;

    white-space: nowrap;

}

.audio-main-button {

    width: 42px;

    height: 42px;

    border: 0;

    border-radius: 50%;

    color: var(--black);

    background: var(--white);

    cursor: pointer;

}

.audio-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    width: 100%;
}

.progress-track {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 3px;
    background: #4a4a4a;
}

.progress-value {

    width: 0;

    height: 100%;

    background: var(--podcast-red);

}

.audio-time {

    color: #999;

    font-size: .6rem;

    white-space: nowrap;

}

.audio-volume {

    border: 0;

    color: #ccc;

    background: transparent;

}


/* ==========================================================
   FOOTER
========================================================== */

.podcast-footer {

    padding: 55px 0;

    color: #aaa;

    background: #3A0B1F;

    border-top: 1px solid #333;

}

.footer-brand {

    margin-bottom: 8px;

    color: var(--white);

    font-size: 1.3rem;

    font-weight: 700;

    letter-spacing: .08em;

}


.footer-logo {
    display: block;
    width: auto;
    height: 75px;
    max-width: 100%;
    margin: 0 auto;
}

@media (max-width: 575.98px) {

    .footer-logo {
        height: auto;
        width: 100%;
        max-width: 300px;
    }

}

.podcast-footer p {

    margin: 0;

    font-size: .75rem;

}

.podcast-footer a {

    color: var(--white);

    font-size: .75rem;

}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 991.98px) {

    .podcast-hero {

        padding: 75px 0 90px;

    }

    .podcast-cover-wrapper {

        margin: 30px auto 0;

    }

    .featured-number {

        min-height: 180px;

    }

    .featured-content {

        padding: 40px;

    }

    .featured-player {

        min-height: 220px;

    }

    .audio-player {
        height: auto;
    }

    .audio-player-inner {
        grid-template-columns: 45px 1fr 45px;
        height: auto;
        padding: 12px 0;
    }

    .audio-current {
        grid-column: 1 / -1;
    }

    .audio-progress {
        grid-column: 1 / -1;
        min-width: 0;
        width: 100%;
    }

}


@media (max-width: 575.98px) {

    body {
        padding-bottom: 125px;
    }

    .podcast-header {
        padding: 17px 0;
    }

    .podcast-hero {

        padding: 60px 0 70px;

    }

    .podcast-hero h1 {
        font-size: 3.2rem;
    }

    .hero-description {

        font-size: .95rem;

    }

    .podcast-cover-wrapper {

        max-width: 85%;

    }

    .cover-number {

        right: -15px;

        font-size: 5rem;

    }

    .featured-episode,
    .episodes-section {

        padding: 70px 0;

    }

    .featured-content {

        padding: 30px 25px;

    }

    .featured-content h2 {

        font-size: 2rem;

    }

    .featured-player {

        min-height: 190px;

    }

    .about-podcast {

        padding: 75px 0;

    }

    .episodes-heading {

        display: block;

    }

    .episode-count {

        margin-top: 15px;

    }

    .episode-item {

        grid-template-columns: 50px 1fr 48px;

        gap: 12px;

        min-height: 125px;

    }

    .episode-index {

        font-size: 1.8rem;

    }

    .episode-info h3 {

        font-size: 1.15rem;

    }

    .episode-play {

        width: 45px;

        height: 45px;

    }

    .audio-player-inner {

        grid-template-columns: 45px 1fr 40px;

        gap: 12px;

    }


    .progress-track {
        min-width: 0;
        flex: 1 1 auto;
    }

    .audio-volume {
        display: none;
    }

    .audio-current strong {
        max-width: 240px;
    }

}

/* =========================================================
   MODAL — ESTRUCTURA GENERAL
   ========================================================= */

#episodeModal .modal-dialog {
    max-width: 850px;
}

#episodeModal .modal-content {
    border: none;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}


/* =========================================================
   MODAL — HEADER
   ========================================================= */

#episodeModal .modal-header {
    position: relative;

    display: block;

    padding: 2.5rem 4.5rem 1.5rem 2.5rem;

    border-bottom: none;
    background: #fff;
}


/* Número */

#episodeModal .modal-episode-number {
    margin-bottom: 0.7rem;

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: var(--podcast-red);
}

#episodeModal .modal-episode-number span {
    color: var(--podcast-red);
}


/* Título */

#episodeModal .modal-title {
    margin: 0;

    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.15;
    font-weight: 700;
    font-family: var(--oswald);
    color: #111;
}


/* =========================================================
   MODAL — BOTÓN CERRAR
   ========================================================= */

#episodeModal .btn-close {
    position: absolute;

    top: 1.25rem;
    right: 1.25rem;

    width: 2.5rem;
    height: 2.5rem;

    margin: 0;
    padding: 0;

    border-radius: 50%;

    opacity: 1;

    background-color: #f1f1f1;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

#episodeModal .btn-close:hover {
    background-color: #e5e5e5;
    transform: rotate(90deg);
}

#episodeModal .btn-close:focus {
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.2);
}


/* =========================================================
   MODAL — BODY
   ========================================================= */

#episodeModal .modal-body {
    padding: 0 2.5rem 2.5rem;
}


/* Fecha / duración */

#episodeModal .modal-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;

    margin-bottom: 2rem;

    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;

    color: #777;
}


/* =========================================================
   MODAL — CONTENIDO
   ========================================================= */

#episodeModal .modal-description {
    font-size: 1rem;
    line-height: 1.75;
    color: #333;
}

#episodeModal .modal-description p {
    margin-top: 0;
    margin-bottom: 1.2rem;
}

#episodeModal .modal-description strong,
#episodeModal .modal-description b {
    font-weight: 700;
    color: #111;
}

#episodeModal .modal-description a {
    color: #e30613;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#episodeModal .modal-description a:hover {
    text-decoration: none;
}

#episodeModal .modal-description ul,
#episodeModal .modal-description ol {
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

#episodeModal .modal-description li {
    margin-bottom: 0.5rem;
}


/* =========================================================
   MODAL — FOOTER / MINI PLAYER
   ========================================================= */

#episodeModal .modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 82px;
    padding: 0 2.5rem;
    border-top: none;
    background: var(--podcast-grad);

}

.modal-footer{
border-bottom-right-radius: 0!important;
border-bottom-left-radius: 0!important;
}

/* =========================================================
   MODAL — BOTÓN ESCUCHAR
   ========================================================= */

#modal-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;

    min-width: 190px;
    height: 48px;

    padding: 0 1.25rem;

    border: 1px solid #dddddd;
    border-radius: 24px;

    background: #fff;
    color: #111;

    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

#modal-play i {
    width: 18px;

    font-size: 0.9rem;

    margin-left: 2px;
}

#modal-play:hover {
    background: black;
    color: #fff;
    border: 0;
}

#modal-play:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.5);

}


/* =========================================================
   MODAL — RESPONSIVE
   ========================================================= */

@media (max-width: 767.98px) {

    #episodeModal .modal-dialog {
        margin: 0.75rem;
    }

    #episodeModal .modal-header {
        padding: 2rem 3.5rem 1.25rem 1.5rem;
    }

    #episodeModal .modal-body {
        padding: 0 1.5rem 2rem;
    }

    #episodeModal .modal-footer {
        padding: 0 1.5rem;
    }

    #episodeModal .modal-title {
        font-size: 1.5rem;
    }

    #modal-play {
        width: 100%;
        min-width: 0;
    }

    .podcast-hero .row {
        row-gap: 2rem;
    }

}


/* =========================================================
   PLAYER — ESTADO DESHABILITADO
   ========================================================= */

.audio-main-button:disabled,
.audio-volume:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.audio-main-button:disabled:hover {
    transform: none;
}

.audio-volume:disabled:hover {
    transform: none;
}

.progress-track.disabled {
    opacity: 0.25;
    cursor: not-allowed;
}


.progress-track.disabled .progress-value {
    width: 0 !important;
}
