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

.hero-cover {
    position: relative;
    overflow: hidden;

    padding-top: 76px;

    background:
        linear-gradient(
            rgba(248, 243, 232, 0.34),
            rgba(248, 243, 232, 0.72)
        ),
        url("../../img/fondo-alborada.png");

    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-cover::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at top,
            rgba(255,255,255,.26),
            transparent 42%
        );

    pointer-events: none;
}

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

.hero-top {
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: center;
    align-items: center;

    padding-top: 10px;
    padding-bottom: 0;
}

.hero-logo-block {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-main-logo {
    width: min(158px, 42vw);

    height: auto;

    object-fit: contain;

    filter:
        drop-shadow(0 12px 24px rgba(0,0,0,.08));

    animation:
        heroLogoFade 1s ease;
}

@keyframes heroLogoFade {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.hero-page-panel {
    position: relative;
    z-index: 2;

    width: min(1120px, calc(100% - 22px));

    margin: 14px auto 0;

    padding:
        26px
        0
        48px;

    border-radius: 38px 38px 0 0;

    background:
        rgba(248, 243, 232, 0.88);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        0 20px 54px rgba(0,0,0,.06);
}

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

.hero-quotes-section {
    width: 100%;

    padding: 0 0 16px;
}

.hero-quotes-section__inner {
    width: min(950px, calc(100% - 26px));

    margin: 0 auto;

    text-align: center;
}

.hero-quotes-slider {
    position: relative;

    width: 100%;

    min-height: 250px;

    overflow: hidden;
}

.hero-quote-slide {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding:
        18px
        18px
        34px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(10px);

    transition:
        opacity .55s ease,
        transform .55s ease,
        visibility .55s ease;
}

.hero-quote-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
}

.hero-quote-title {
    width: 100%;
    max-width: 860px;

    margin: 0;

    color: #0f376d;

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

    font-weight: 800;

    line-height: 1.1;

    letter-spacing: -0.045em;

    text-wrap: balance;
}

.hero-quote-title--long {
    max-width: 900px;

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

    line-height: 1.14;
}

.hero-quote-author {
    margin-top: 16px;

    color: #c39a49;

    font-size: .88rem;
    font-style: italic;
}

.hero-quotes-dots {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 7px;

    margin-top: -4px;
}

.hero-quote-dot {
    width: 8px;
    height: 8px;

    padding: 0;

    border: none;
    border-radius: 999px;

    cursor: pointer;

    background:
        rgba(201,170,99,.34);

    transition:
        width .25s ease,
        background .25s ease,
        transform .25s ease;
}

.hero-quote-dot:hover {
    transform: scale(1.08);
}

.hero-quote-dot.active {
    width: 24px;

    background: #cfa34c;
}

/* =========================
   DARK MODE
========================= */

html[data-theme="dark"] .hero-cover {
    background:
        linear-gradient(
            rgba(8, 13, 23, 0.38),
            rgba(8, 13, 23, 0.58)
        ),
        url("../../img/fondo-alborada.png");

    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

html[data-theme="dark"] .hero-cover::before {
    background:
        radial-gradient(
            circle at top,
            rgba(255,255,255,.08),
            transparent 42%
        );
}

html[data-theme="dark"] .hero-page-panel {
    background:
        rgba(15, 24, 38, 0.82);
}

html[data-theme="dark"] .hero-quote-title {
    color: #f8ead2;
}

html[data-theme="dark"] .hero-quote-author {
    color: #d6b161;
}

html[data-theme="dark"] .hero-quote-dot {
    background:
        rgba(214,177,97,.26);
}

html[data-theme="dark"] .hero-quote-dot.active {
    background: #d6b161;
}

/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

    .hero-cover {
        padding-top: 72px;

        background-attachment: scroll;
    }

    .hero-main-logo {
        width: min(145px, 40vw);
    }

    .hero-page-panel {
        width: calc(100% - 16px);

        margin-top: 10px;

        padding:
            22px
            0
            40px;

        border-radius: 30px 30px 0 0;
    }

    .hero-quotes-slider {
        min-height: 220px;
    }

    .hero-quote-title {
        font-size: clamp(1.75rem, 5vw, 2.7rem);
    }

    .hero-quote-title--long {
        font-size: clamp(1.35rem, 4vw, 2rem);
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 640px) {

    .hero-cover {
        padding-top: 64px;
    }

    .hero-top {
        padding-top: 6px;
    }

    .hero-main-logo {
        width: min(122px, 38vw);
    }

    .hero-page-panel {
        width: calc(100% - 8px);

        margin-top: 8px;

        padding:
            18px
            0
            28px;

        border-radius: 24px 24px 0 0;
    }

    .hero-quotes-section {
        padding-bottom: 10px;
    }

    .hero-quotes-slider {
        min-height: 205px;
    }

    .hero-quote-slide {
        padding:
            10px
            10px
            30px;
    }

    .hero-quote-title {
        font-size: clamp(1.38rem, 7vw, 2rem);

        line-height: 1.12;
    }

    .hero-quote-title--long {
        font-size: clamp(1.08rem, 5vw, 1.55rem);

        line-height: 1.15;
    }

    .hero-quote-author {
        margin-top: 12px;

        font-size: .8rem;
    }

    .hero-quotes-dots {
        margin-top: 2px;
    }
}

/* =========================
   EXTRA SMALL
========================= */

@media (max-width: 420px) {

    .hero-quotes-slider {
        min-height: 225px;
    }

    .hero-main-logo {
        width: min(112px, 36vw);
    }

    .hero-quote-title {
        font-size: clamp(1.22rem, 7vw, 1.7rem);
    }

    .hero-quote-title--long {
        font-size: clamp(1rem, 5vw, 1.35rem);
    }
}
