@font-face {
    font-family: "Catedral Script";
    src: url("../fonts/DancingScript-Regular.4166d03f2359.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}


:root {
    --gold: #BF9534;
    --dark: #25231f;
    --text: #4b4741;
    --soft-text: #6b655d;
    --cream: #fbfaf7;
    --white: #ffffff;
}



/* ======================================================
   CABECERA
   ====================================================== */

.section-header {
    width: 100%;
    box-sizing: border-box;

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

    padding: 24px 7%;

    background: #25231f;
}


.section-logo {
    display: block;
    text-decoration: none;
}


.section-logo img {
    display: block;

    width: 250px;
    max-width: 100%;

    height: auto;
}


.section-nav {
    display: flex;
    align-items: center;

    gap: 38px;
}


.section-nav a {
    position: relative;

    padding-bottom: 10px;

    color: var(--white);

    text-decoration: none;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 0.92rem;
    font-weight: 500;

    letter-spacing: 0.04em;

    transition: color 0.2s ease;
}


.section-nav a:hover {
    color: var(--gold);
}



/* ======================================================
   PÁGINA
   ====================================================== */

.section-page {
    min-height: calc(100vh - 100px);

    padding: 46px 7% 100px;

    background: var(--cream);
}


.section-page-inner {
    width: min(1050px, 100%);

    margin: 0 auto;
}



/* ======================================================
   VOLVER AL INICIO
   ====================================================== */

.section-back-wrapper {
    position: relative;

    z-index: 100;

    width: 100%;

    margin: 0 0 18px;

    text-align: center;
}


.back-home {
    display: inline-block;

    position: relative;

    z-index: 101;

    padding: 8px 12px;

    color: var(--gold);

    text-decoration: none;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 0.76rem;
    font-weight: 600;

    letter-spacing: 0.12em;

    cursor: pointer;

    transition: opacity 0.2s ease;
}


.back-home:hover {
    opacity: 0.65;
}



/* ======================================================
   CABECERA DEL CONTENIDO
   ====================================================== */

.section-page-heading {
    width: min(940px, 100%);

    margin: 0 auto 68px;

    text-align: center;
}



/* ======================================================
   TÍTULO
   ====================================================== */

.section-page-heading h1 {
    max-width: 900px;

    margin: 0 auto;

    padding: 0 0 0.22em;

    color: var(--gold);

    font-family:
        "Catedral Script",
        cursive;

    font-size:
        clamp(
            3.2rem,
            4.4vw,
            5rem
        );

    font-weight: 400;

    line-height: 1.14;

    letter-spacing: 0;

    text-align: center;

    text-wrap: balance;
}



/* ======================================================
   REPRODUCTOR DE AUDIO
   ====================================================== */

.audio-player-wrapper {
    margin-top: 16px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;
}


.audio-controls {
    display: flex;

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

    gap: 18px;
}



/* ======================================================
   BOTONES ±10 SEGUNDOS
   ====================================================== */

.audio-skip-button {
    width: 58px;
    height: 58px;

    display: flex;

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

    padding: 0;

    border:
        1.5px
        solid
        var(--gold);

    border-radius: 50%;

    background: transparent;

    color: var(--gold);

    cursor: pointer;

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


.audio-skip-button:hover {
    transform: scale(1.05);

    background: var(--gold);

    color: var(--white);
}


.skip-inline {
    display: inline-flex;

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

    gap: 2px;

    line-height: 1;
}


.skip-arrow {
    font-family: Arial, Helvetica, sans-serif;

    font-size: 1rem;
    font-weight: 700;

    line-height: 1;
}


.skip-number {
    font-family: Arial, Helvetica, sans-serif;

    font-size: 0.82rem;
    font-weight: 700;

    line-height: 1;
}



/* ======================================================
   ZONA CENTRAL
   ====================================================== */

.audio-center {
    position: relative;

    width: 64px;
    height: 64px;

    flex: 0 0 64px;
}



/* ======================================================
   PLAY / PAUSA
   ====================================================== */

.audio-play-button {
    position: relative;

    width: 64px;
    height: 64px;

    display: flex;

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

    padding: 0;

    border:
        2px
        solid
        var(--gold);

    border-radius: 50%;

    background: transparent;

    color: var(--gold);

    cursor: pointer;

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


.audio-play-button:hover {
    transform: scale(1.05);

    background: var(--gold);

    color: var(--white);
}


.audio-play-symbol {
    position: relative;

    z-index: 2;

    margin-left: 2px;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 1.2rem;

    line-height: 1;
}



/* ======================================================
   BARRAS DEL AUDIO
   ====================================================== */

.audio-bars {
    position: absolute;

    left: 50%;
    bottom: -17px;

    transform: translateX(-50%);

    display: flex;

    align-items: center;

    gap: 3px;

    height: 13px;

    color: var(--gold);
}


.audio-bars span {
    display: block;

    width: 2px;

    background: currentColor;

    border-radius: 2px;

    opacity: 0.85;
}


.audio-bars span:nth-child(1) {
    height: 4px;
}


.audio-bars span:nth-child(2) {
    height: 7px;
}


.audio-bars span:nth-child(3) {
    height: 11px;
}


.audio-bars span:nth-child(4) {
    height: 6px;
}


.audio-bars span:nth-child(5) {
    height: 13px;
}


.audio-bars span:nth-child(6) {
    height: 9px;
}


.audio-bars span:nth-child(7) {
    height: 11px;
}


.audio-bars span:nth-child(8) {
    height: 7px;
}


.audio-bars span:nth-child(9) {
    height: 4px;
}



/* ======================================================
   ANIMACIÓN BARRAS
   ====================================================== */

.audio-play-button.is-playing
.audio-bars span {
    animation:
        audioBars
        0.75s
        ease-in-out
        infinite
        alternate;
}


.audio-play-button.is-playing
.audio-bars span:nth-child(2) {
    animation-delay: 0.1s;
}


.audio-play-button.is-playing
.audio-bars span:nth-child(3) {
    animation-delay: 0.2s;
}


.audio-play-button.is-playing
.audio-bars span:nth-child(4) {
    animation-delay: 0.3s;
}


.audio-play-button.is-playing
.audio-bars span:nth-child(5) {
    animation-delay: 0.15s;
}


.audio-play-button.is-playing
.audio-bars span:nth-child(6) {
    animation-delay: 0.25s;
}


.audio-play-button.is-playing
.audio-bars span:nth-child(7) {
    animation-delay: 0.35s;
}


.audio-play-button.is-playing
.audio-bars span:nth-child(8) {
    animation-delay: 0.2s;
}


.audio-play-button.is-playing
.audio-bars span:nth-child(9) {
    animation-delay: 0.1s;
}


@keyframes audioBars {

    from {
        transform: scaleY(0.55);
    }

    to {
        transform: scaleY(1.15);
    }

}



/* ======================================================
   CONTADOR DEL AUDIO
   ====================================================== */

.audio-time {
    position: static;

    margin-top: 30px;

    min-width: 120px;

    color: var(--gold);

    font-family: Arial, Helvetica, sans-serif;

    font-size: 0.74rem;

    font-weight: 600;

    letter-spacing: 0.03em;

    line-height: 1;

    text-align: center;

    white-space: nowrap;
}



/* ======================================================
   INTRODUCCIÓN
   ====================================================== */

.section-intro {
    width: min(800px, 100%);

    margin: 0 auto 46px;

    color: var(--soft-text);

    text-align: center;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.15rem;

    font-style: italic;

    line-height: 1.7;
}



/* ======================================================
   IMAGEN PRINCIPAL
   ====================================================== */

.section-main-image {
    width: min(1000px, 100%);

    margin: 0 auto 52px;

    overflow: hidden;

    border-radius: 4px;
}


.section-main-image img {
    display: block;

    width: 100%;

    height: auto;
}



/* ======================================================
   CONTENIDO
   ====================================================== */

.section-content {
    width: min(900px, 100%);

    margin: 0 auto;

    color: var(--text);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.08rem;

    line-height: 1.85;
}


.section-content p {
    margin: 0 0 1.5em;
}


.section-content h2 {
    margin: 2.2em 0 0.8em;

    color: var(--dark);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.7rem;

    font-weight: 400;

    line-height: 1.35;
}


.section-content h3 {
    margin: 2em 0 0.75em;

    color: var(--dark);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.35rem;

    font-weight: 600;

    line-height: 1.4;
}


.section-content ul,
.section-content ol {
    margin: 0 0 1.6em 1.5em;

    padding: 0;
}


.section-content li {
    margin-bottom: 0.5em;
}


.section-content a {
    color: var(--gold);

    text-decoration: underline;

    text-decoration-thickness: 1px;

    text-underline-offset: 3px;
}


.section-content strong {
    color: #36322d;
}



/* ======================================================
   ALINEACIONES
   ====================================================== */

.section-content .text-left {
    text-align: left;
}


.section-content .text-center {
    text-align: center;
}


.section-content .text-right {
    text-align: right;
}


.section-content .text-justify {
    text-align: justify;

    text-justify: inter-word;
}



/* ======================================================
   IMÁGENES RICH TEXT
   ====================================================== */

.section-content
.richtext-image.right {
    float: right;

    width: 45%;

    max-width: 430px;

    height: auto;

    margin:
        0.4rem
        0
        1.6rem
        2.2rem;
}


.section-content
.richtext-image.left {
    float: left;

    width: 45%;

    max-width: 430px;

    height: auto;

    margin:
        0.4rem
        2.2rem
        1.6rem
        0;
}


.section-content
.richtext-image.full-width {
    display: block;

    float: none;

    width: 100%;

    max-width: 100%;

    height: auto;

    margin: 2rem auto;
}


.section-content::after {
    content: "";

    display: block;

    clear: both;
}



/* ======================================================
   NAVEGACIÓN INFERIOR
   ====================================================== */

.section-pagination {
    width: min(900px, 100%);

    margin: 80px auto 0;

    padding-top: 36px;

    border-top:
        1px
        solid
        rgba(191, 149, 52, 0.35);
}


.section-pagination-top {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 12px;

    margin-bottom: 36px;

    text-align: center;
}


.section-counter {
    color: var(--soft-text);

    font-family: Arial, Helvetica, sans-serif;

    font-size: 0.70rem;

    font-weight: 600;

    letter-spacing: 0.15em;
}


.all-sections-link {
    display: inline-block;

    padding: 10px 18px;

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

    border-radius: 3px;

    color: var(--gold);

    text-decoration: none;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 0.72rem;

    font-weight: 600;

    letter-spacing: 0.11em;

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


.all-sections-link:hover {
    background: var(--gold);

    color: var(--white);
}


.section-pagination-links {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 40px;
}


.section-pagination-side {
    min-width: 0;
}


.section-pagination-previous {
    text-align: left;
}


.section-pagination-next {
    text-align: right;
}


.section-pagination-link {
    display: inline-flex;

    flex-direction: column;

    max-width: 100%;

    gap: 7px;

    color: inherit;

    text-decoration: none;
}


.pagination-direction {
    color: var(--gold);

    font-family: Arial, Helvetica, sans-serif;

    font-size: 0.72rem;

    font-weight: 600;

    letter-spacing: 0.12em;
}


.pagination-title {
    color: var(--dark);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.05rem;

    line-height: 1.35;

    transition: color 0.2s ease;
}


.section-pagination-link:hover
.pagination-title {
    color: var(--gold);
}



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

@media (max-width: 900px) {

    .section-header {
        padding: 22px 5%;
    }


    .section-logo img {
        width: 220px;
    }


    .section-nav {
        gap: 18px;
    }


    .section-nav a {
        font-size: 0.78rem;
    }


    .section-page {
        padding: 44px 6% 80px;
    }


    .section-page-heading {
        margin-bottom: 58px;
    }


    .section-page-heading h1 {
        font-size:
            clamp(
                3rem,
                6vw,
                4.5rem
            );
    }


    .section-content {
        font-size: 1.03rem;
    }

}



@media (max-width: 700px) {

    .section-header {
        padding: 18px 6%;
    }


    .section-logo img {
        width: 190px;
    }


    .section-nav {
        display: none;
    }


    .section-page {
        padding: 38px 6% 65px;
    }


    .section-back-wrapper {
        margin-bottom: 14px;
    }


    .section-page-heading {
        margin-bottom: 54px;
    }


    .section-page-heading h1 {
        font-size: 3.4rem;

        line-height: 1.13;

        padding-bottom: 0.22em;
    }


    .audio-player-wrapper {
        margin-top: 12px;
    }


    .audio-controls {
        gap: 12px;
    }


    .audio-skip-button {
        width: 50px;

        height: 50px;
    }


    .skip-arrow {
        font-size: 0.9rem;
    }


    .skip-number {
        font-size: 0.75rem;
    }


    .audio-center {
        width: 58px;

        height: 58px;

        flex-basis: 58px;
    }


    .audio-play-button {
        width: 58px;

        height: 58px;
    }


    .audio-play-symbol {
        font-size: 1.05rem;
    }


    .audio-time {
        margin-top: 28px;

        font-size: 0.68rem;
    }


    .section-intro {
        font-size: 1.05rem;
    }


    .section-main-image {
        margin-bottom: 38px;
    }


    .section-content {
        font-size: 1rem;

        line-height: 1.75;
    }


    .section-content
    .richtext-image.right,
    .section-content
    .richtext-image.left {

        float: none;

        display: block;

        width: 100%;

        max-width: 100%;

        margin: 1.8rem auto;
    }


    .section-pagination {
        margin-top: 58px;

        padding-top: 30px;
    }


    .section-pagination-top {
        margin-bottom: 30px;
    }


    .section-pagination-links {
        grid-template-columns: 1fr;

        gap: 26px;
    }


    .section-pagination-previous,
    .section-pagination-next {
        text-align: center;
    }


    .section-pagination-link {
        align-items: center;
    }


    .pagination-title {
        font-size: 1rem;
    }

}



@media (max-width: 420px) {

    .section-page-heading h1 {
        font-size: 2.9rem;
    }


    .section-logo img {
        width: 170px;
    }

}



/* ======================================================
   APARTADOS TODAVÍA NO DISPONIBLES
   ====================================================== */

.nav-pending {
    display: none !important;
}