.bazinga-hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #0f0f0f;
}

.hero-background {
    position: absolute;
    inset: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: .5s ease;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(90deg,
            rgba(0, 0, 0, .85) 20%,
            rgba(0, 0, 0, .1) 55%,
            rgba(0, 0, 0, .85) 100%);
}

.bazinga-hero .container {
    position: relative;
    z-index: 2;
    max-width: var(--max-page-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 40px 70px;
}

.hero-content {
    max-width: 600px;
}

.comic-number {
    display: block;

    font-size: 120px;
    font-weight: 200;
    line-height: 1;
    color: var(--bazinga-gold);
    opacity: .2;
    display: none;
}

.hero-content h1 {
    margin: 0;

    font-size: 64px;
    font-family: var(--header-font);
    line-height: 1;

    color: var(--bazinga-light);
}

.comic-meta {
    margin: 15px 0;

    color: var(--bazinga-gold);

    font-weight: 600;
}

.comic-description {
    color: white;
    opacity: .8;

    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary,
.btn-secondary {
    text-decoration: none;
    padding: 14px 26px;
    border-radius: 6px;

    font-weight: 600;
}

.btn-primary {
    background: #ffc400;
    color: black;
}

.btn-secondary {
    border: 1px solid white;
    color: white;
}

.hero-slider {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    width: 720px;
}

/*
 * La miniatura es un <button>: cambia la diapositiva, no navega. Antes era
 * un <div> con un listener de click, así que no se podía alcanzar con el
 * teclado. Se reinicia el estilo del control para que el aspecto no cambie.
 */
.bazinga-hero .hero-slide {
    width: 140px;
    transition: all .45s cubic-bezier(.16, 1, .3, 1);
    cursor: pointer;
    opacity: 1;
    position: relative;

    appearance: none;
    padding: 0;
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    text-align: inherit;
}

.bazinga-hero .hero-slide.is-active {
    width: 220px;
    opacity: 1;
}

.bazinga-hero .hero-slide img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--bazinga-border-color);
}

.bazinga-hero .hero-slide span {
    display: none;

    margin-top: 10px;

    color: white;
    text-align: center;
    position: absolute;
    bottom: 16px;
    padding: 0 16px;
    width: 100%;
}

.bazinga-hero .hero-slide.is-active img {
    box-shadow:
        0 15px 40px rgba(0, 0, 0, .5);
}

.bazinga-hero .hero-slide.is-active img {
    box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
}

@media screen and (min-width:768px) {
    .bazinga-hero .hero-slide:hover {
        transform: translateY(-15px);
    }
}

#comic-title-container {
    margin-bottom: 20px;
}

#comic-logo {
    max-width: 470px;
    max-height: 140px;
    object-fit: contain;
    display: block;
    margin-left: -15px;
}

#comic-title {
    color: #fff;
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    right: 780px;

    display: flex;
    gap: 12px;
}

.slider-prev,
.slider-next {
    width: 52px;
    height: 52px;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, .3);

    background: rgba(0, 0, 0, .5);

    color: white;

    cursor: pointer;

    transition: .3s;
}

.slider-prev:hover,
.slider-next:hover {
    background: #ffc400;
    color: black;
}

@media (max-width: 991px) {

    .bazinga-hero {
        height: auto;
    }

    .bazinga-hero .container {
        flex-direction: column;
        gap: 160px;
        padding: 40px 24px 9px;
        align-items: center;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .comic-number {
        font-size: 80px;
    }

    .hero-slider {
        overflow-x: auto;
        width: 100%;
        padding-bottom: 10px;
    }

    .hero-content {
        width: 100%;
    }

    .bazinga-hero .hero-slide img {
        height: 100px;
    }

    #comic-logo {
        width: 100%;

    }

    .hero-overlay {
        position: absolute;
        inset: 0;

        background:
            linear-gradient(180deg,
                rgba(0, 0, 0, .85) 20%,
                rgba(0, 0, 0, .1) 55%,
                rgba(0, 0, 0, .85) 100%);
    }

    .comic-description,
    .comic-meta,
    #comic-title {
        text-align: center;
    }

    .hero-buttons {
        align-items: center;
        justify-content: center;
    }

    #comic-title-container {
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
}