/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100%;
    background: #050505;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}


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

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background-image:
        url("imagenes/lourdes-nava-bg.png");

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

    padding: 35px 7vw 40px;

    isolation: isolate;
}


/* =========================================================
   OVERLAY
========================================================= */

.overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, .96) 0%,
            rgba(0, 0, 0, .88) 25%,
            rgba(0, 0, 0, .25) 60%,
            rgba(0, 0, 0, .45) 100%
        ),

        linear-gradient(
            0deg,
            rgba(0, 0, 0, .8) 0%,
            transparent 35%
        );

    z-index: -1;
}


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

.header {
    width: 100%;

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

.logo {
    color: #c9a65b;

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

    font-style: italic;
    font-size: clamp(1.8rem, 3vw, 3.2rem);
    letter-spacing: -1px;

    position: relative;
}

.logo img {
    max-width: 250px;
    height: auto;
    display: block;
}

.logo::after {
    content: "";
    display: block;

    width: 80%;
    height: 1px;

    margin-top: 3px;

    background: linear-gradient(
        90deg,
        #c9a65b,
        transparent
    );
}

.status {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #c9a65b;

    font-size: 0.65rem;
    letter-spacing: 4px;

    opacity: 0.9;
}

.status span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #c9a65b;

    box-shadow:
        0 0 10px rgba(201, 166, 91, 0.7);
}


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

.content {
    max-width: 720px;

    margin-top: auto;
    margin-bottom: auto;

    padding: 80px 0;
}

.line {
    width: 90px;
    height: 1px;

    background: #c9a65b;

    margin-bottom: 30px;
}


/* =========================================================
   TITULO
========================================================= */

h1 {
    color: #d1ad62;

    font-family: "Cormorant Garamond", serif;

    font-weight: 400;

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

    line-height: 0.78;

    letter-spacing: -5px;

    text-shadow:
        0 5px 25px rgba(0, 0, 0, 0.4);
}

h1 span {
    display: block;

    font-style: italic;

    font-weight: 400;

    font-size: 0.78em;

    letter-spacing: -6px;
}


/* =========================================================
   DESCRIPCIÓN
========================================================= */

.description {
    margin-top: 55px;

    color: rgba(255, 255, 255, 0.8);

    font-size: clamp(1rem, 1.5vw, 1.35rem);
    font-family: "Cormorant Garamond", serif;
    font-weight: 300;
    font-style:italic;
    line-height: 1.7;

    letter-spacing: 0.3px;
}


/* =========================================================
   MUY PRONTO
========================================================= */

.coming-soon {
    margin-top: 60px;

    display: flex;
    align-items: center;

    gap: 20px;

    color: #c9a65b;

    font-size: .8rem;

    letter-spacing: 7px;

    font-weight: 500;
}

.ornament {
    font-family: Georgia, serif;

    color: #c9a65b;

    font-size: 1.2rem;
}


/* =========================================================
   MARKETPLACE
========================================================= */

.books-marketplace {
    position: relative;

    width: 100%;

    min-height: 850px;

    margin-left: calc(-7vw);
    width: calc(100% + 14vw);

    padding:
        120px
        7vw
        100px;

    background:
        radial-gradient(
            circle at 35% 50%,
            rgba(201, 166, 91, .07),
            transparent 35%
        ),
        #050505;

    overflow: hidden;
}

.books-marketplace::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        /* Gradiente superior para fundir con hero */
        linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, .3) 30%,
            rgba(0, 0, 0, .7) 60%,
            rgba(0, 0, 0, .9) 100%
        ),

        /* Gradiente izquierdo para el contenido */
        linear-gradient(
            90deg,
            rgba(0, 0, 0, .95) 0%,
            rgba(0, 0, 0, .85) 20%,
            rgba(0, 0, 0, .6) 40%,
            rgba(0, 0, 0, .3) 60%,
            transparent 85%
        ),

        /* Gradiente inferior */
        linear-gradient(
            to top,
            rgba(0, 0, 0, .95) 0%,
            rgba(0, 0, 0, .7) 15%,
            rgba(0, 0, 0, .3) 30%,
            transparent 50%
        ),

        /* Gradiente derecho */
        linear-gradient(
            270deg,
            rgba(0, 0, 0, .9) 0%,
            rgba(0, 0, 0, .5) 15%,
            rgba(0, 0, 0, .2) 30%,
            transparent 50%
        ),

        /* Radial gradient sutil */
        radial-gradient(
            circle at 35% 50%,
            rgba(201, 166, 91, .03),
            transparent 35%
        );

    z-index: 1;

    pointer-events: none;
}

.books-marketplace::after {
    content: "";

    position: absolute;

    bottom: 0;
    right: 0;

    width: 50%;
    height: 40%;

    background:
        radial-gradient(
            ellipse at bottom right,
            rgba(0, 0, 0, .7),
            transparent 70%
        );

    backdrop-filter:
        blur(20px);

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

    pointer-events: none;

    z-index: 1;
}


/* =========================================================
   CABECERA DE LIBROS
========================================================= */

.books-header {
    max-width: 1200px;

    margin:
        0 auto
        70px;

    position: relative;

    z-index: 2;
}

.books-line {
    width: 70px;
    height: 1px;

    background: #c9a65b;

    margin-bottom: 25px;
}

.books-eyebrow {
    display: block;

    color: #c9a65b;

    font-size: .65rem;

    letter-spacing: 5px;

    margin-bottom: 20px;
}

.books-header h2 {
    margin: 0;

    color: #d1ad62;

    font-family:
        "Cormorant Garamond",
        serif;

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

    font-weight: 400;

    line-height: .85;

    letter-spacing: -3px;
}

.books-header h2 em {
    display: block;

    color:
        rgba(255, 255, 255, .75);

    font-size: .38em;

    font-weight: 300;

    font-style: italic;

    letter-spacing: 0;

    margin-top: 18px;
}


/* =========================================================
   SLIDER
========================================================= */

.books-slider {
    position: relative;

    max-width: 1200px;

    min-height: 520px;

    margin: auto;

    display: flex;

    align-items: center;

    z-index: 2;
}

.books-track {
    width: 100%;

    overflow: hidden;
}

.book-slide {
    width: 100%;

    display: none;

    grid-template-columns:
        50%
        50%;

    align-items: center;

    min-height: 520px;
}

.book-slide.active {
    display: grid;
}


/* =========================================================
   VISUAL DEL LIBRO
========================================================= */

.book-visual {
    min-height: 500px;

    display: flex;

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

    perspective: 1200px;

    padding: 40px;
}


/* =========================================================
   LIBRO 3D
========================================================= */

.book {
    position: relative;

    width: 240px;
    height: 340px;

    perspective: 1200px;

    transform-style: preserve-3d;
}


/* =========================================================
   ESTRUCTURA DE PORTADA
========================================================= */

.hardcover_front,
.hardcover_back,
.book_spine,

.hardcover_front li,
.hardcover_back li,
.book_spine li {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    transform-style: preserve-3d;
}

.hardcover_front,
.hardcover_back {
    transform-origin: 0% 100%;
}

.hardcover_front {
    transform:
        rotateY(-34deg)
        translateZ(8px);

    z-index: 100;

    transition:
        transform 1s cubic-bezier(.2, .7, .2, 1),
        z-index .5s;
}

.hardcover_front li:first-child {
    transform:
        translateZ(3px);

    cursor: pointer;

    backface-visibility: hidden;
}

.hardcover_front li:last-child {
    background: #17130d;

    transform:
        rotateY(180deg)
        translateZ(3px);
}


/* =========================================================
   PORTADA REAL
========================================================= */

.coverDesign {
    position: absolute;

    inset: 0;

    overflow: hidden;

    background: #111;

    backface-visibility: hidden;
}

.coverDesign::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            110deg,
            rgba(255, 255, 255, .18),
            transparent 22%,
            transparent 75%,
            rgba(0, 0, 0, .28)
        );

    pointer-events: none;
}

.libro-portada {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: fill;
}


/* =========================================================
   CONTRAPORTADA
========================================================= */

.hardcover_back {
    transform:
        rotateY(-15deg)
        translateZ(-8px);
}

.hardcover_back li:first-child {
    transform:
        translateZ(3px);

    background: #15110c;
}

.hardcover_back li:last-child {
    transform:
        translateZ(-3px);

    background: #0c0c0c;
}


/* =========================================================
   LOMO
========================================================= */

.book_spine {
    width: 18px;

    transform:
        rotateY(60deg)
        translateX(-6px)
        translateZ(-12px);

    z-index: 0;
}

.book_spine li:first-child {
    transform:
        translateZ(3px);

    background:
        linear-gradient(
            90deg,
            #7c6132,
            #c9a65b,
            #73592e
        );
}

.book_spine li:last-child {
    transform:
        translateZ(-3px);

    background: #17120b;
}


/* =========================================================
   PÁGINAS
========================================================= */

.page,
.page > li {
    position: absolute;

    top: 0;
    left: 0;

    transform-style: preserve-3d;
}

.page {
    width: 100%;
    height: 98%;

    top: 1%;
    left: 3%;

    z-index: 10;
}

.page > li {
    width: 100%;
    height: 100%;

    transform-origin: left center;

    background:
        linear-gradient(
            to right,
            #d9d4ca 0%,
            #fffdf7 5%,
            #f8f5ef 100%
        );

    box-shadow:
        inset 0 -1px 2px rgba(0, 0, 0, .12),
        inset -2px 0 2px rgba(0, 0, 0, .08);

    border-radius:
        0 5px 5px 0;

    transition-property: transform;

    transition-timing-function: ease;
}

.page > li:nth-child(1) {
    transform: rotateY(-28deg);

    transition-duration: .6s;
}

.page > li:nth-child(2) {
    transform: rotateY(-30deg);

    transition-duration: .6s;
}

.page > li:nth-child(3) {
    transform: rotateY(-32deg);

    transition-duration: .5s;
}

.page > li:nth-child(4) {
    transform: rotateY(-34deg);

    transition-duration: .5s;
}

.page > li:nth-child(5) {
    transform: rotateY(-36deg);

    transition-duration: .6s;
}


/* =========================================================
   DETALLE INTERIOR
========================================================= */

.page-decoration {
    position: absolute;

    inset: 0;

    display: flex;

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

    color: #c9a65b;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 5rem;

    font-style: italic;

    opacity: .2;
}


/* =========================================================
   APERTURA DEL LIBRO
========================================================= */

.book:hover > .hardcover_front {
    transform:
        rotateY(-145deg)
        translateZ(0);

    z-index: 0;
}

.book:hover > .page li:nth-child(1) {
    transform: rotateY(-30deg);

    transition-duration: 1.5s;
}

.book:hover > .page li:nth-child(2) {
    transform: rotateY(-35deg);

    transition-duration: 1.8s;
}

.book:hover > .page li:nth-child(3) {
    transform: rotateY(-118deg);

    transition-duration: 1.6s;
}

.book:hover > .page li:nth-child(4) {
    transform: rotateY(-130deg);

    transition-duration: 1.4s;
}

.book:hover > .page li:nth-child(5) {
    transform: rotateY(-140deg);

    transition-duration: 1.2s;
}


/* =========================================================
   INFORMACIÓN
========================================================= */

.book-info {
    padding:
        30px
        60px
        30px
        30px;
}

.book-number {
    display: block;

    color:
        rgba(201, 166, 91, .65);

    font-size: .65rem;

    letter-spacing: 4px;

    margin-bottom: 25px;
}

.book-info h3 {
    margin: 0;

    color: #d1ad62;

    font-family:
        "Cormorant Garamond",
        serif;

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

    font-weight: 400;

    line-height: .82;

    letter-spacing: -2px;
}

.book-info h3 span {
    display: block;

    font-style: italic;
}

.book-author {
    margin-top: 28px;

    color: #c9a65b;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 1.3rem;

    font-style: italic;
}

.book-description {
    max-width: 420px;

    margin-top: 25px;

    color:
        rgba(255, 255, 255, .65);

    font-size: .95rem;

    line-height: 1.8;
}

.book-meta {
    display: flex;

    gap: 10px;

    margin-top: 28px;

    color:
        rgba(201, 166, 91, .65);

    font-size: .6rem;

    letter-spacing: 3px;
}


/* =========================================================
   BOTONES
========================================================= */

.book-actions {
    display: flex;

    align-items: center;

    gap: 30px;

    margin-top: 35px;
}

.book-buy {
    display: inline-flex;

    align-items: center;

    gap: 25px;

    padding: 14px 0;

    color: #c9a65b;

    border-bottom:
        1px solid #c9a65b;

    font-size: .7rem;

    letter-spacing: 3px;

    text-transform: uppercase;

    transition:
        color .3s ease,
        border-color .3s ease;
}

.book-buy span {
    font-size: 1.2rem;

    transition:
        transform .3s ease;
}

.book-buy:hover {
    color: #ffffff;

    border-color: #ffffff;
}

.book-buy:hover span {
    transform:
        translateX(7px);
}


/* VISTA PREVIA */

.book-preview {
    background: transparent;

    border: 0;

    color:
        rgba(255, 255, 255, .45);

    font-family: inherit;

    font-size: .65rem;

    letter-spacing: 2px;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        color .3s ease;
}

.book-preview:hover {
    color: #ffffff;
}


/* =========================================================
   FLECHAS
========================================================= */

.slider-arrow {
    position: absolute;

    top: 50%;

    transform:
        translateY(-50%);

    z-index: 20;

    width: 45px;
    height: 45px;

    border:
        1px solid
        rgba(201, 166, 91, .35);

    border-radius: 50%;

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

    color: #c9a65b;

    font-size: 1rem;

    cursor: pointer;

    transition:
        background .3s ease,
        border-color .3s ease,
        color .3s ease;
}

.slider-arrow:hover {
    background: #c9a65b;

    border-color: #c9a65b;

    color: #050505;
}

.slider-prev {
    left: -15px;
}

.slider-next {
    right: -15px;
}


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

.books-navigation {
    max-width: 1200px;

    margin:
        40px auto 0;

    display: flex;

    justify-content: space-between;

    align-items: center;
}

.books-dots {
    display: flex;

    gap: 10px;
}

.book-dot {
    width: 35px;
    height: 2px;

    border: 0;

    background:
        rgba(255, 255, 255, .2);

    cursor: pointer;

    transition:
        background .3s ease,
        width .3s ease;
}

.book-dot.active {
    width: 70px;

    background: #c9a65b;
}

.books-counter {
    display: flex;

    gap: 8px;

    color:
        rgba(255, 255, 255, .3);

    font-size: .65rem;

    letter-spacing: 3px;
}

.current-book {
    color: #c9a65b;
}


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

footer {
    display: flex;
    gap: 12px;

    color: rgba(201, 166, 91, 0.8);

    font-size: 0.7rem;

    letter-spacing: 4px;

    text-transform: uppercase;
}

footer span {
    position: relative;
}

footer span:not(:last-child)::after {
    content: "·";

    margin-left: 12px;

    color: #c9a65b;
}


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

@media (max-width: 900px) {

    .hero {
        padding:
            30px
            6vw
            35px;

        background-position:
            60% center;
    }


    .content {
        max-width: 600px;
    }

    h1 {
        letter-spacing: -3px;
    }


    .books-marketplace {
        margin-left: -6vw;

        width: calc(100% + 12vw);

        padding:
            90px
            6vw
            80px;
    }


    .books-marketplace::after {
        width: 60%;

        height: 35%;

        backdrop-filter:
            blur(15px);

        -webkit-backdrop-filter:
            blur(15px);
    }


    .book-slide {
        grid-template-columns:
            45%
            55%;
    }


    .book-info {
        padding-right: 20px;
    }


    .book {
        width: 200px;
        height: 280px;
    }


    .book-info h3 {
        font-size: 3.5rem;
    }


    /* E-COMMERCE TABLET */

    .ecommerce-books {
        margin-left: -6vw;

        width: calc(100% + 12vw);

        padding:
            60px
            6vw
            40px;

        min-height: 350px;
    }


    .ecommerce-header {
        margin-bottom: 35px;

        flex-direction: column;

        align-items: flex-start;

        gap: 15px;
    }


    .ecommerce-header h2 {
        font-size: 1.5rem;
    }


    .ecommerce-grid {
        grid-template-columns: repeat(
            auto-fit,
            minmax(120px, 1fr)
        );

        gap: 12px;

        max-width: 100%;
    }


    /* MODAL TABLET */

    .modal-container {
        max-width: 450px;

        padding: 35px;
    }

    .modal-header h2 {
        font-size: 2.2rem;
    }

    /* BOOK MODAL TABLET */

    .book-modal-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 100px 6vw 60px;
        text-align: center;
    }

    .book-modal-visual {
        position: static;
        order: -1;
    }

    .book-modal-visual img {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .book-modal-info {
        width: 100%;
        padding: 0 20px;
    }

    .book-modal-info h2 {
        font-size: 2.2rem;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .book-modal-author {
        text-align: center;
        font-size: 1.3rem;
    }

    .book-modal-rating {
        text-align: center;
        margin-bottom: 25px;
    }

    .book-modal-description {
        font-size: 1.05rem;
        text-align: center;
        line-height: 1.7;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .book-modal-meta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .book-modal-actions {
        justify-content: center;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

}


/* =========================================================
   NAVEGACIÓN PRINCIPAL
========================================================= */

.main-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-family: "Cormorant Garamond", serif;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #c9a65b;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #c9a65b;
}

.nav-link:hover::after {
    width: 100%;
}


/* =========================================================
   SECCIÓN PUEBLO (DENTRO DE MODAL)
========================================================= */

.pueblo-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    padding: 120px 7vw 80px;
    background: #050505;
    overflow: hidden;
}

.pueblo-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 20% 50%,
            rgba(201, 166, 91, .05),
            transparent 40%
        );
    pointer-events: none;
}

.section-header {
    max-width: 1200px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 2;
    padding-top: 20px;
}

.section-line {
    width: 70px;
    height: 1px;
    background: #c9a65b;
    margin-bottom: 20px;
}

.section-eyebrow {
    display: block;
    color: #c9a65b;
    font-size: .65rem;
    letter-spacing: 5px;
    margin-bottom: 15px;
}

.section-header h2 {
    margin: 0;
    color: #d1ad62;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 400;
    line-height: .9;
    letter-spacing: -2px;
}

.section-header h2 em {
    display: block;
    color: rgba(255, 255, 255, .75);
    font-size: .45em;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0;
    margin-top: 12px;
}

.pueblo-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.pueblo-image {
    position: relative;
}

.pueblo-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.pueblo-text {
    color: rgba(255, 255, 255, 0.8);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.1rem;
    line-height: 1.8;
}

.pueblo-text p {
    margin-bottom: 25px;
}


/* =========================================================
   SECCIÓN PADRE RUFINO PÉREZ
========================================================= */

.padre-section {
    margin-bottom: 80px;
    padding: 60px 7vw 40px;
    background: #0a0a0a;
    border-radius: 8px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
}

.padre-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 30% 50%,
            rgba(201, 166, 91, .03),
            transparent 50%
        );
    pointer-events: none;
}

.padre-header {
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    text-align: left;
}

.padre-header h3 {
    color: #d1ad62;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 400;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.padre-subtitle {
    color: #c9a65b;
    font-family: "Cormorant Garamond", serif;
    font-size: 1rem;
    font-style: italic;
}

.padre-content {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 30px;
    margin-bottom: 30px;
    align-items: start;
    position: relative;
    z-index: 2;
}

.padre-image {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0;
    overflow: hidden;
}

.padre-image img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    transform: rotate(90deg);
}

.padre-biography {
    color: rgba(255, 255, 255, 0.85);
    font-family: "Cormorant Garamond", serif;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 100%;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 15px;
}

/* Scroll personalizado elegante */
.padre-biography::-webkit-scrollbar {
    width: 6px;
}

.padre-biography::-webkit-scrollbar-track {
    background: rgba(201, 166, 91, 0.1);
    border-radius: 3px;
}

.padre-biography::-webkit-scrollbar-thumb {
    background: #c9a65b;
    border-radius: 3px;
}

.padre-biography::-webkit-scrollbar-thumb:hover {
    background: #d4b86a;
}

.padre-biography p {
    margin-bottom: 12px;
}

.padre-biography p:first-child {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
}


/* =========================================================
   SECCIÓN VIDEO
========================================================= */

.video-section {
    margin-top: 40px;
}

.video-header {
    text-align: center;
    margin-bottom: 25px;
}

.video-header h3 {
    color: #d1ad62;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 400;
    letter-spacing: -1px;
    margin: 0;
}

.video-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    background: #0a0a0a;
    border: 1px solid rgba(201, 166, 91, 0.2);
}

.video-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(201, 166, 91, 0.05) 0%,
            transparent 50%,
            rgba(201, 166, 91, 0.02) 100%
        );
    pointer-events: none;
    z-index: 1;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-container video:hover {
    transform: scale(1.02);
}

/* Video en pantalla completa */
.video-container.video-fullscreen {
    position: fixed;
    inset: 0;
    max-width: none;
    margin: 0;
    border-radius: 0;
    z-index: 10003;
    border: none;
}

.video-container.video-fullscreen video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-container.video-fullscreen::before {
    display: none;
}


/* =========================================================
   SECCIÓN LIBRO SAN ANTONIO
========================================================= */

.libro-section {
    margin-top: 80px;
    padding: 60px 7vw;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.libro-header {
    text-align: center;
    margin-bottom: 40px;
}

.libro-header h3 {
    color: #d1ad62;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: -1px;
}

.libro-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    align-items: center;
}

.libro-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.libro-info {
    color: #ffffff;
}

.libro-description {
    color: rgba(255, 255, 255, 0.85);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.libro-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    color: rgba(201, 166, 91, 0.65);
    font-size: 0.65rem;
    letter-spacing: 3px;
}

.libro-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}


/* =========================================================
   SECCIÓN TRADICIONES (DENTRO DE MODAL)
========================================================= */

.tradiciones-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    padding: 120px 7vw 80px;
    background:
        radial-gradient(
            circle at 80% 50%,
            rgba(201, 166, 91, .05),
            transparent 40%
        ),
        #050505;
    overflow: hidden;
}

.tradiciones-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
}

.tradicion-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 166, 91, 0.1);
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.tradicion-card:hover {
    transform: translateY(-10px);
    border-color: rgba(201, 166, 91, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.tradicion-icon {
    font-size: 3rem;
    margin-bottom: 25px;
}

.tradicion-card h3 {
    color: #d1ad62;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.tradicion-card p {
    color: rgba(255, 255, 255, 0.7);
    font-family: "Cormorant Garamond", serif;
    font-size: 1rem;
    line-height: 1.6;
}


/* =========================================================
   MODALES DE PANTALLA COMPLETA
========================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: block;
    opacity: 1;
}

.modal-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 100px 7vw 60px;
    background: #050505;
    max-width: none !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

.modal-close {
    position: fixed;
    top: 100px;
    right: 7vw;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(201, 166, 91, 0.3);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #c9a65b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
    z-index: 10001;
}

.modal-close:hover {
    background: #c9a65b;
    border-color: #c9a65b;
    color: #050505;
}

.modal-nav {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 10001;
}

.modal-nav-btn {
    padding: 12px 24px;
    background: rgba(201, 166, 91, 0.1);
    border: 1px solid rgba(201, 166, 91, 0.3);
    color: #c9a65b;
    font-family: "Cormorant Garamond", serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

.modal-nav-btn:hover {
    background: rgba(201, 166, 91, 0.2);
    border-color: #c9a65b;
    color: #ffffff;
}

/* =========================================================
   HEADER DEL MODAL
========================================================= */

.modal-header-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 30px 7vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 166, 91, 0.1);
    z-index: 10002;
}

.modal-logo img {
    max-width: 180px;
    height: auto;
    display: block;
}

.modal-main-nav {
    display: flex;
    align-items: center;
}

.modal-nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.modal-nav-item {
    position: relative;
}

.modal-nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-family: "Cormorant Garamond", serif;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.modal-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #c9a65b;
    transition: width 0.3s ease;
}

.modal-nav-link:hover {
    color: #c9a65b;
}

.modal-nav-link:hover::after {
    width: 100%;
}

.modal-nav-link.active {
    color: #c9a65b;
}

.modal-nav-link.active::after {
    width: 100%;
}

/* =========================================================
   MENÚ HAMBURGUESA
========================================================= */

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
    position: absolute;
    top: 40px;
    right: 20px;
}

.hamburger-menu span {
    width: 100%;
    height: 2px;
    background: #c9a65b;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover span {
    background: #ffffff;
}

/* =========================================================
   MENÚ MÓVIL
========================================================= */

.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: transparent;
    z-index: -1;
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: absolute;
    top: 50px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(201, 166, 91, 0.3);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #c9a65b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: #c9a65b;
    border-color: #c9a65b;
    color: #050505;
}

.mobile-nav {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 30px;
    list-style: none;
    text-align: center;
}

.mobile-nav-item {
    opacity: 0;
    transform: translateY(20px);
}

.mobile-nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #c9a65b;
}

/* =========================================================
   SECCIÓN DIPLOMADO
========================================================= */

.diplomado-section {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 80px 7vw 60px;
    background:
        url('imagenes/lourdes-nava-bg.png');

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

.diplomado-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, .7) 0%,
            rgba(0, 0, 0, .6) 25%,
            rgba(0, 0, 0, .5) 35%,
            rgba(0, 0, 0, .4) 45%,
            rgba(0, 0, 0, .5) 55%,
            rgba(0, 0, 0, .6) 65%,
            rgba(0, 0, 0, .7) 100%
        );
    pointer-events: none;
    z-index: 1;
}

.diplomado-content {
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 40px;
    align-items: start;
    height: 100%;
}

.diplomado-units {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding-right: 15px;
}

/* Scroll personalizado para diplomado */
.diplomado-units::-webkit-scrollbar {
    width: 4px;
}

.diplomado-units::-webkit-scrollbar-track {
    background: rgba(201, 166, 91, 0.1);
    border-radius: 2px;
}

.diplomado-units::-webkit-scrollbar-thumb {
    background: #c9a65b;
    border-radius: 2px;
}

.diplomado-units::-webkit-scrollbar-thumb:hover {
    background: #d4b86a;
}

.diplomado-image {
    display: none;
}

.diplomado-level {
    background: rgba(5, 5, 5, 0.8);
    border: 1px solid rgba(201, 166, 91, 0.15);
    border-radius: 6px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.diplomado-level::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #c9a65b, #d4b86a, #c9a65b);
}

.level-title {
    color: #d1ad62;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-weight: 400;
    letter-spacing: -1px;
    margin-bottom: 12px;
    text-align: center;
}

.diplomado-unit {
    margin-bottom: 8px;
    border: 1px solid rgba(201, 166, 91, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.diplomado-unit:last-child {
    margin-bottom: 0;
}

.accordion-header {
    color: #c9a65b;
    font-family: "Cormorant Garamond", serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    line-height: 1.2;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.04);
}

.accordion-icon {
    color: #c9a65b;
    font-size: 1.2rem;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    display: none;
    padding: 10px 12px;
    background: rgba(5, 5, 5, 0.5);
}

.accordion-item.active .accordion-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.topic-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 6px;
    background: rgba(255, 255, 255, 0.015);
    border-radius: 3px;
    border-left: 1px solid rgba(201, 166, 91, 0.15);
}

.topic-number {
    color: #c9a65b;
    font-family: "Cormorant Garamond", serif;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 35px;
    flex-shrink: 0;
}

.topic-text {
    color: rgba(255, 255, 255, 0.8);
    font-family: "Cormorant Garamond", serif;
    font-size: 0.85rem;
    line-height: 1.3;
    margin: 0;
}

.subtopics {
    margin-left: 43px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.subtopic-item {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    padding: 4px;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 2px;
    border-left: 1px solid rgba(201, 166, 91, 0.1);
}

.subtopic-number {
    color: rgba(201, 166, 91, 0.7);
    font-family: "Cormorant Garamond", serif;
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 40px;
    flex-shrink: 0;
}

.subtopic-text {
    color: rgba(255, 255, 255, 0.7);
    font-family: "Cormorant Garamond", serif;
    font-size: 0.75rem;
    line-height: 1.2;
    margin: 0;
}

.diplomado-cta {
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
}

.diplomado-enroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #c9a65b, #d4b86a);
    color: #050505;
    font-family: "Cormorant Garamond", serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(201, 166, 91, 0.25);
}

.diplomado-enroll-btn span {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.diplomado-enroll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 166, 91, 0.35);
}

.diplomado-enroll-btn:hover span {
    transform: translateX(3px);
}


/* =========================================================
   MODAL DE DETALLES DE LIBRO
========================================================= */

.book-modal-container {
    width: 100%;
    min-height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: none !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

.book-modal-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    max-width: 1600px;
    width: 100%;
    padding: 150px 7vw;
    align-items: start;
}

.book-modal-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 120px;
}

.book-modal-visual img {
    max-width: 100%;
    width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    object-fit: contain;
}

.book-modal-info {
    color: #ffffff;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.book-modal-info h2 {
    color: #d1ad62;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.book-modal-author {
    color: #c9a65b;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 25px;
    display: block;
}

.book-modal-rating {
    margin-bottom: 30px;
}

.book-modal-rating .stars {
    color: #c9a65b;
    font-size: 1.4rem;
}

.book-modal-description {
    color: rgba(255, 255, 255, 0.85);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.book-modal-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    color: rgba(201, 166, 91, 0.65);
    font-size: 0.65rem;
    letter-spacing: 3px;
    flex-wrap: wrap;
}

.book-modal-actions {
    display: flex;
    align-items: center;
    gap: 35px;
    flex-wrap: wrap;
}


/* =========================================================
   MODALES ESPECÍFICOS
========================================================= */

.pueblo-modal-container {
    width: 100%;
    padding: 0;
    max-width: none !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}


/* =========================================================
   SCROLL TO TOP BUTTON
========================================================= */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(201, 166, 91, 0.3);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #c9a65b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #c9a65b;
    border-color: #c9a65b;
    color: #050505;
}


/* =========================================================
   LOADING SCREEN
========================================================= */

.loading-screen {
    position: fixed;
    inset: 0;
    background: #050505;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-logo {
    margin-bottom: 60px;
    opacity: 0;
    transform: scale(0.5);
}

.loading-logo img {
    max-width: 500px;
    height: auto;
    display: block;
}

.loading-bar {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: rgba(201, 166, 91, 0.2);
    overflow: hidden;
}

.loading-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: #c9a65b;
}


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

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .pueblo-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tradiciones-grid {
        grid-template-columns: 1fr;
    }

    .header {
        flex-direction: column;
        gap: 20px;
    }

    .padre-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .padre-image img {
        max-height: 500px;
        transform: rotate(90deg);
    }

    .padre-biography {
        max-height: 400px;
        font-size: 0.95rem;
    }
}


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

@media (max-width: 650px) {

    .hero {
        min-height: 100svh;

        padding:
            25px
            25px
            30px;

        background-position: 58% center;
    }


    .overlay {
        background:
            linear-gradient(
                90deg,
                rgba(0, 0, 0, 0.96) 0%,
                rgba(0, 0, 0, 0.72) 100%
            ),
            linear-gradient(
                0deg,
                rgba(0, 0, 0, 0.85),
                transparent 60%
            );
    }


    .header {
        align-items: flex-start;
    }


    .logo {
        font-size: 1.8rem;
    }


    .status {
        font-size: 0.5rem;

        letter-spacing: 2px;

        margin-top: 10px;
    }


    .overlay {
        background:
            linear-gradient(
                90deg,
                rgba(0, 0, 0, .96) 0%,
                rgba(0, 0, 0, .72) 100%
            ),

            linear-gradient(
                0deg,
                rgba(0, 0, 0, .85),
                transparent 60%
            );
    }


    .header {
        align-items:
            flex-start;
    }


    .logo {
        font-size: 1.8rem;
    }


    .content {
        padding:
            50px 0;
    }


    .line {
        width: 55px;

        margin-bottom: 25px;
    }


    h1 {
        font-size: clamp(3.5rem, 19vw, 6rem);

        line-height: 0.8;

        letter-spacing: -3px;
        font-family: "Rethink Sans", sans-serif;
        font-optical-sizing: auto;
    }

    h1 span {
        letter-spacing: -4px;
    }


    .description {
        margin-top: 40px;

        font-size: 0.95rem;
    }


    .coming-soon {
        margin-top: 45px;

        gap: 10px;

        font-size: 0.65rem;

        letter-spacing: 4px;
    }


    /* MARKETPLACE */

    .books-marketplace {
        margin-left: -25px;

        width: calc(100% + 50px);

        padding:
            80px
            25px
            70px;

        min-height: auto;
    }


    .books-marketplace::after {
        width: 80%;

        height: 50%;

        backdrop-filter:
            blur(10px);

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


    .books-header {
        margin-bottom: 40px;
        padding: 0 25px;
    }


    .books-header h2 {
        font-size: 4rem;
    }


    .books-slider {
        min-height: auto;
    }


    .book-slide {
        grid-template-columns: 1fr;

        min-height: auto;

        text-align: center;
    }


    .book-visual {
        min-height: 390px;

        padding: 30px;
    }


    .book {
        width: 180px;
        height: 250px;
    }


    .book-info {
        padding:
            20px
            25px;
    }


    .book-info h3 {
        font-size: 3.6rem;
    }


    .book-description {
        margin-left: auto;
        margin-right: auto;
    }


    .book-meta {
        justify-content: center;

        flex-wrap: wrap;
    }


    .book-actions {
        justify-content: center;

        flex-direction: column;

        gap: 20px;
    }


    .slider-arrow {
        width: 38px;
        height: 38px;
    }


    .slider-prev {
        left: -5px;
    }


    .slider-next {
        right: -5px;
    }


    .books-navigation {
        margin-top: 30px;
    }


    footer {
        font-size: .55rem;

        letter-spacing: 2px;

        gap: 5px;
    }


    /* E-COMMERCE MOBILE */

    .ecommerce-books {
        margin-left: -25px;

        width: calc(100% + 50px);

        padding:
            40px
            25px
            30px;

        min-height: auto;
    }


    .ecommerce-header {
        margin-bottom: 25px;

        flex-direction: column;

        align-items: flex-start;

        gap: 12px;
    }


    .ecommerce-header h2 {
        font-size: 1.3rem;
    }


    .ecommerce-grid {
        grid-template-columns: repeat(
            auto-fit,
            minmax(100px, 1fr)
        );

        gap: 10px;

        max-width: 100%;
    }


    .product-card {
        padding: 14px;
    }


    .product-title {
        font-size: 1.1rem;
    }


    /* MODAL MOBILE */

    .modal-container {
        margin: 0;
        padding: 0;
        border-radius: 0;
    }

    .modal-header h2 {
        font-size: 2rem;
    }

    .modal-subtitle {
        font-size: .85rem;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"] {
        padding: 12px 14px;

        font-size: .95rem;
    }

    .checkbox-label {
        font-size: .8rem;
    }

    .submit-btn {
        padding: 14px 20px;

        font-size: .75rem;
    }

    /* BOOK MODAL MOBILE */

    .book-modal-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 80px 20px 40px;
        text-align: center;
    }

    .book-modal-visual {
        position: static;
        order: -1;
    }

    .book-modal-visual img {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .book-modal-info {
        width: 100%;
        padding: 0 10px;
    }

    .book-modal-info h2 {
        font-size: 1.8rem;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .book-modal-author {
        text-align: center;
        font-size: 1.1rem;
    }

    .book-modal-rating {
        text-align: center;
        margin-bottom: 20px;
    }

    .book-modal-description {
        font-size: 0.95rem;
        text-align: center;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .book-modal-meta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .book-modal-actions {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }


    /* WHATSAPP MODAL MOBILE */

    .whatsapp-modal {
        margin: 15px;

        padding: 30px 25px;
    }

    .whatsapp-icon {
        width: 70px;
        height: 70px;
    }

    .whatsapp-icon svg {
        width: 40px;
        height: 40px;
    }

    .whatsapp-btn {
        padding: 14px 20px;

        font-size: .75rem;
    }

    /* PADRE SECTION MOBILE */

    .padre-section {
        padding: 50px 25px;
    }

    .padre-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .padre-image img {
        max-height: 350px;
    }

    .padre-biography {
        font-size: 1rem;
    }

    /* MODAL HEADER MOBILE */

    .modal-header-nav {
        padding: 20px 25px;
    }

    .modal-logo img {
        max-width: 120px;
    }

    .modal-nav-menu {
        gap: 15px;
    }

    .modal-nav-link {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .modal-close {
        top: 80px;
        right: 25px;
        width: 40px;
        height: 40px;
    }

    .modal-container {
        padding: 100px 25px 40px;
    }

    /* DIPLOMADO MOBILE */

    .diplomado-section {
        padding: 80px 20px 40px;
        height: auto;
        min-height: 100vh;
    }

    .diplomado-content {
        grid-template-columns: 1fr;
        gap: 20px;
        height: auto;
    }

    .diplomado-units {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }

    .diplomado-image {
        order: -1;
        position: static;
    }

    .diplomado-level {
        padding: 15px;
    }

    .level-title {
        font-size: 1.5rem;
    }

    .accordion-header {
        font-size: 0.85rem;
        padding: 8px 10px;
    }

    .accordion-content {
        padding: 8px 10px;
    }

    .topic-item {
        flex-direction: column;
        gap: 4px;
    }

    .topic-number {
        min-width: auto;
        font-size: 0.85rem;
    }

    .topic-text {
        font-size: 0.8rem;
    }

    .subtopics {
        margin-left: 0;
    }

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

    .subtopic-text {
        font-size: 0.7rem;
    }

    .diplomado-enroll-btn {
        padding: 6px 15px;
        font-size: 0.75rem;
    }

    /* VIDEO MOBILE */

    .video-header h3 {
        font-size: 1.5rem;
    }

    /* MODAL HEADER MOBILE */

    .modal-header-nav {
        padding: 20px;
    }

    .modal-logo img {
        max-width: 100px;
    }

    .modal-nav-menu {
        gap: 10px;
    }

    .modal-nav-link {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .modal-close {
        top: 80px;
        right: 20px;
        width: 35px;
        height: 35px;
    }

    .modal-container {
        padding: 80px 20px 40px;
    }

    /* PUEBLO SECTION MOBILE */

    .pueblo-section {
        padding: 80px 20px 40px;
    }

    .section-header {
        padding-top: 0;
    }

    .padre-section {
        padding: 30px 20px;
    }

    .padre-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .padre-image img {
        max-height: 300px;
    }

}


/* =========================================================
   E-COMMERCE BOOK LISTING
========================================================= */

.ecommerce-books {
    position: relative;

    width: 100%;

    min-height: 400px;

    margin-left: calc(-7vw);
    width: calc(100% + 14vw);

    padding:
        50px
        7vw
        40px;

    background:
        radial-gradient(
            circle at 65% 50%,
            rgba(201, 166, 91, .03),
            transparent 30%
        ),
        #050505;

    overflow: visible;
}


/* =========================================================
   E-COMMERCE HEADER
========================================================= */

.ecommerce-header {
    max-width: 1200px;

    margin:
        0 auto
        30px;

    display: flex;

    justify-content: space-between;

    align-items: center;
}

.ecommerce-header h2 {
    margin: 0;

    color: #ffffff;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 2rem;

    font-weight: 400;

    line-height: 1.2;
}

.view-all-btn {
    color: #c9a65b;

    font-size: .9rem;

    text-decoration: none;

    transition:
        color .3s ease;
}

.view-all-btn:hover {
    color: #ffffff;
}


/* =========================================================
   E-COMMERCE GRID
========================================================= */

.ecommerce-grid {
    display: grid;

    grid-template-columns: repeat(
        auto-fit,
        minmax(140px, 1fr)
    );

    gap: 15px;

    max-width: 1000px;

    margin: 0 auto;
}


/* =========================================================
   PRODUCT CARD
========================================================= */

.product-card {
    position: relative;

    background: rgba(255, 255, 255, 0.02);

    border-radius: 8px;

    padding: 10px;

    overflow: visible;

    cursor: pointer;
}


/* =========================================================
   PRODUCT BADGE
========================================================= */

.product-badge {
    position: absolute;

    top: 15px;
    left: 15px;

    padding: 6px 12px;

    font-size: .65rem;

    font-weight: 600;

    letter-spacing: 1px;

    text-transform: uppercase;

    border-radius: 8px;

    z-index: 10;
}

.product-badge.sale {
    background:
        linear-gradient(
            135deg,
            #c9a65b,
            #d4b86a
        );

    color: #050505;
}

.product-badge.new {
    background:
        rgba(201, 166, 91, .15);

    color: #c9a65b;

    border: 1px solid
        rgba(201, 166, 91, .3);
}


/* =========================================================
   PRODUCT WISHLIST
========================================================= */

.product-wishlist {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 40px;
    height: 40px;

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

    border-radius: 50%;

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

    color:
        rgba(255, 255, 255, .6);

    display: flex;

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

    cursor: pointer;

    transition:
        all .3s ease;

    z-index: 10;
}

.product-wishlist:hover {
    background: #c9a65b;

    border-color: #c9a65b;

    color: #050505;

    transform:
        scale(1.1);
}

.product-wishlist svg {
    transition:
        transform .3s ease;
}

.product-wishlist:hover svg {
    transform:
        scale(1.2);
}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.product-image {
    position: relative;

    width: 100%;

    aspect-ratio: 2/3;

    border-radius: 6px;

    overflow: hidden;

    margin-bottom: 8px;

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

    display: flex;

    align-items: center;

    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    object-position: center;

    image-rendering: -webkit-optimize-contrast;
}


/* =========================================================
   PRODUCT INFO
========================================================= */

.product-info {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.product-title {
    margin: 0;

    color: #ffffff;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: .9rem;

    font-weight: 400;

    line-height: 1.2;
}

.product-author {
    color:
        rgba(255, 255, 255, .6);

    font-size: .75rem;

    font-style: italic;
}

.product-price {
    display: flex;

    align-items: baseline;

    gap: 8px;
}

.current-price {
    color: #ffffff;

    font-size: 1rem;

    font-weight: 600;
}

.original-price {
    color:
        rgba(255, 255, 255, .4);

    font-size: .8rem;

    text-decoration: line-through;
}


/* =========================================================
   PRODUCT RATING
========================================================= */

.product-rating {
    display: flex;

    align-items: center;

    gap: 8px;
}

.stars {
    display: flex;

    gap: 1px;

    color: #c9a65b;

    font-size: .65rem;
}


/* =========================================================
   REGISTRATION MODAL
========================================================= */

.modal-overlay {
    position: fixed;

    inset: 0;

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

    backdrop-filter:
        blur(8px);

    display: flex;

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

    z-index: 1000;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.modal-overlay.active {
    opacity: 1;

    visibility: visible;
}

.modal-container {
    position: relative;

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

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .03),
            rgba(255, 255, 255, .01)
        );

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

    border-radius: 20px;

    padding: 40px;

    margin: 20px;

    transform:
        translateY(30px);

    transition:
        transform .3s cubic-bezier(.4, 0, .2, 1);
}

.modal-overlay.active .modal-container {
    transform:
        translateY(0);
}

.modal-close {
    position: absolute;

    top: 20px;
    right: 20px;

    width: 40px;
    height: 40px;

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

    border-radius: 50%;

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

    color:
        rgba(255, 255, 255, .6);

    display: flex;

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

    cursor: pointer;

    transition:
        all .3s ease;

    z-index: 10;
}

.modal-close:hover {
    background: #c9a65b;

    border-color: #c9a65b;

    color: #050505;

    transform:
        rotate(90deg);
}

.modal-header {
    text-align: center;

    margin-bottom: 35px;
}

.modal-line {
    width: 50px;
    height: 1px;

    background: #c9a65b;

    margin: 0 auto 20px;
}

.modal-header h2 {
    margin: 0;

    color: #d1ad62;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 2.5rem;

    font-weight: 400;

    line-height: .85;

    letter-spacing: -2px;
}

.modal-header h2 em {
    display: block;

    color:
        rgba(255, 255, 255, .75);

    font-size: .4em;

    font-weight: 300;

    font-style: italic;

    letter-spacing: 0;

    margin-top: 10px;
}

.modal-subtitle {
    margin-top: 20px;

    color:
        rgba(255, 255, 255, .6);

    font-size: .9rem;

    line-height: 1.6;
}


/* =========================================================
   REGISTRATION FORM
========================================================= */

.registration-form {
    display: flex;

    flex-direction: column;

    gap: 20px;
}

.form-group {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.form-group label {
    color:
        rgba(201, 166, 91, .8);

    font-size: .75rem;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    padding: 14px 16px;

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

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

    border-radius: 8px;

    color: #ffffff;

    font-size: 1rem;

    font-family: inherit;

    transition:
        border-color .3s ease,
        background .3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    outline: none;

    border-color: #c9a65b;

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

.form-group input::placeholder {
    color:
        rgba(255, 255, 255, .3);
}

.checkbox-group {
    flex-direction: row;

    align-items: flex-start;

    gap: 12px;
}

.checkbox-label {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    color:
        rgba(255, 255, 255, .7);

    font-size: .85rem;

    line-height: 1.5;

    cursor: pointer;

    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;

    opacity: 0;

    cursor: pointer;
}

.checkmark {
    position: relative;

    width: 20px;
    height: 20px;

    min-width: 20px;

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

    border-radius: 4px;

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

    transition:
        all .3s ease;
}

.checkbox-label input:checked ~ .checkmark {
    background: #c9a65b;

    border-color: #c9a65b;
}

.checkmark::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    width: 6px;
    height: 10px;

    border: solid #050505;

    border-width: 0 2px 2px 0;

    transform:
        translate(-50%, -60%)
        rotate(45deg);

    opacity: 0;

    transition:
        opacity .3s ease;
}

.checkbox-label input:checked ~ .checkmark::after {
    opacity: 1;
}

.submit-btn {
    margin-top: 10px;

    padding: 16px 24px;

    background:
        linear-gradient(
            135deg,
            #c9a65b,
            #d4b86a
        );

    border: none;

    border-radius: 8px;

    color: #050505;

    font-size: .8rem;

    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        all .3s ease;
}

.submit-btn:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 8px 25px
        rgba(201, 166, 91, .3);
}

.submit-btn:active {
    transform:
        translateY(0);
}

.form-footer {
    text-align: center;

    color:
        rgba(255, 255, 255, .5);

    font-size: .85rem;

    margin-top: 10px;
}

.login-link {
    color: #c9a65b;

    font-weight: 500;

    transition:
        color .3s ease;
}

.login-link:hover {
    color: #ffffff;
}


/* =========================================================
   WHATSAPP MODAL
========================================================= */

.whatsapp-modal {
    max-width: 500px;
}

.whatsapp-icon {
    display: flex;

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

    width: 80px;
    height: 80px;

    margin: 0 auto 20px;

    background:
        rgba(37, 211, 102, .1);

    border-radius: 50%;
}

.whatsapp-icon svg {
    width: 48px;
    height: 48px;
}

.whatsapp-form {
    display: flex;

    flex-direction: column;

    gap: 20px;
}

.whatsapp-form textarea {
    padding: 14px 16px;

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

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

    border-radius: 8px;

    color: #ffffff;

    font-size: 1rem;

    font-family: inherit;

    resize: vertical;

    transition:
        border-color .3s ease,
        background .3s ease;
}

.whatsapp-form textarea:focus {
    outline: none;

    border-color: #25D366;

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

.whatsapp-form textarea::placeholder {
    color:
        rgba(255, 255, 255, .3);
}

.whatsapp-btn {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    background:
        linear-gradient(
            135deg,
            #25D366,
            #128C7E
        );

    border: none;

    border-radius: 8px;

    color: #ffffff;

    font-size: .8rem;

    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        all .3s ease;
}

.whatsapp-btn:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 8px 25px
        rgba(37, 211, 102, .3);
}

.whatsapp-btn:active {
    transform:
        translateY(0);
}

.whatsapp-btn svg {
    width: 20px;
    height: 20px;
}

#whatsappProductName {
    color: #c9a65b;

    font-weight: 500;
}


/* =========================================================
   REDUCIR ANIMACIONES
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition-duration:
            .01ms !important;

        animation-duration:
            .01ms !important;
    }

}