:root {
    --cream: #f7f3ed;
    --cream-dark: #ede5da;
    --paper: #fffdf9;

    --dark: #1d2926;
    --dark-soft: #2c3a36;

    --gold: #b8945f;
    --gold-light: #d7bb8a;

    --green: #314c43;

    --text: #26312e;
    --text-light: #707874;

    --white: #ffffff;

    --shadow: 0 15px 40px rgba(29, 41, 38, 0.08);

    --serif: "Cormorant Garamond", serif;
    --sans: "Montserrat", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--cream);
    color: var(--text);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
    border: none;
}


/* =========================
   HEADER
========================= */

.header {
    width: 100%;
    min-height: 90px;

    padding: 20px 7%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(247, 243, 237, 0.96);

    position: sticky;
    top: 0;

    z-index: 100;

    border-bottom: 1px solid rgba(29, 41, 38, 0.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo > span {
    width: 50px;
    height: 50px;

    border: 1px solid var(--gold);

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.logo div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.logo strong {
    font-family: var(--serif);
    font-size: 1.35rem;
    letter-spacing: 0.5px;
}

.logo small {
    font-size: 0.55rem;
    letter-spacing: 2px;
    color: var(--gold);
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    font-size: 0.78rem;
    font-weight: 500;
    position: relative;
}

.nav a::after {
    content: "";

    width: 0;
    height: 1px;

    background: var(--gold);

    position: absolute;
    left: 0;
    bottom: -7px;

    transition: 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-button,
.cart-button,
.menu-button {
    width: 44px;
    height: 44px;

    border-radius: 50%;

    background: transparent;
    color: var(--dark);

    position: relative;

    transition: 0.3s;
}

.icon-button:hover,
.cart-button:hover {
    background: var(--cream-dark);
}

.cart-button span {
    position: absolute;

    width: 17px;
    height: 17px;

    top: 2px;
    right: 0;

    background: var(--gold);
    color: white;

    font-size: 0.6rem;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-button {
    display: none;
}


/* =========================
   BOTONES
========================= */

.btn {
    min-height: 52px;

    padding: 0 26px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    font-size: 0.75rem;
    font-weight: 600;

    letter-spacing: 0.4px;

    transition: 0.3s ease;
}

.btn-primary {
    background: var(--dark);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

.btn-secondary {
    border: 1px solid rgba(29, 41, 38, 0.2);
    color: var(--dark);
}

.btn-secondary:hover {
    background: var(--dark);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--dark);
    color: var(--dark);
}

.btn-outline:hover {
    background: var(--dark);
    color: white;
}

.btn-light {
    background: var(--cream);
    color: var(--dark);
}

.btn-light:hover {
    transform: translateY(-3px);
    background: white;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 760px;

    padding: 90px 7%;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;

    gap: 70px;

    position: relative;

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(184, 148, 95, 0.15),
            transparent 30%
        );
}

.hero-content {
    max-width: 700px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 0.65rem;
    font-weight: 700;

    letter-spacing: 2px;

    color: var(--gold);

    margin-bottom: 22px;
}

.hero h1,
.section-heading h2,
.about-content h2,
.contact-info h2 {
    font-family: var(--serif);
    font-size: clamp(3.5rem, 6vw, 6.5rem);
    font-weight: 500;
    line-height: 0.9;

    color: var(--dark);
}

.hero h1 span,
.about-content h2 span,
.contact-info h2 span,
.marketing-text h2 span {
    color: var(--gold);
    display: block;
    font-style: italic;
}

.hero-description {
    max-width: 580px;

    margin: 30px 0;

    line-height: 1.9;

    color: var(--text-light);

    font-size: 0.9rem;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 50px;

    margin-top: 70px;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hero-stats strong {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--dark);
}

.hero-stats span {
    font-size: 0.65rem;
    color: var(--text-light);
}


/* HERO VISUAL */

.hero-visual {
    height: 580px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-circle {
    width: 430px;
    height: 430px;

    border-radius: 50%;

    background: var(--cream-dark);

    position: absolute;
}

.main-book {
    width: 300px;
    height: 410px;

    position: relative;
    z-index: 3;

    padding: 55px 35px;

    background: var(--green);

    box-shadow:
        25px 25px 0 var(--gold),
        0 30px 60px rgba(0, 0, 0, 0.2);

    color: white;

    transform: rotate(-5deg);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.book-decoration {
    width: 80px;
    height: 3px;

    background: var(--gold-light);
}

.main-book span {
    font-size: 0.6rem;
    letter-spacing: 4px;
    color: var(--gold-light);
}

.main-book h2 {
    font-family: var(--serif);
    font-size: 3rem;
    line-height: 0.9;
    font-weight: 500;
}

.main-book h2 em {
    color: var(--gold-light);
}

.main-book p {
    font-size: 0.65rem;
    letter-spacing: 1px;
}

.floating-book {
    width: 170px;
    height: 230px;

    padding: 28px;

    position: absolute;

    background: white;

    box-shadow: var(--shadow);

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    z-index: 2;
}

.floating-book span {
    font-size: 0.55rem;
    letter-spacing: 2px;
}

.floating-book strong {
    font-family: var(--serif);
    font-size: 1.8rem;
    line-height: 0.9;
}

.book-one {
    top: 30px;
    left: 20px;

    transform: rotate(12deg);

    background: #b8945f;
    color: white;
}

.book-two {
    right: 20px;
    bottom: 30px;

    transform: rotate(8deg);

    background: var(--dark);
    color: white;
}


/* =========================
   SECCIONES GENERALES
========================= */

section {
    padding: 120px 7%;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 60px;
}

.section-heading.center {
    display: block;
    text-align: center;
}

.section-heading.center .eyebrow {
    justify-content: center;
}

.section-heading h2 {
    font-size: clamp(3rem, 5vw, 5rem);
}

.section-description {
    margin-top: 20px;
    max-width: 550px;

    font-size: 0.85rem;
    line-height: 1.8;

    color: var(--text-light);
}


/* =========================
   CATEGORÍAS
========================= */

.categories {
    background: var(--paper);
}

.categories-grid {
    display: grid;

    grid-template-columns:
        repeat(8, 1fr);

    gap: 12px;
}

.category-card {
    min-height: 130px;

    padding: 20px 10px;

    background: var(--cream);

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 15px;

    color: var(--dark);

    transition: 0.3s;
}

.category-card i {
    font-size: 1.5rem;
    color: var(--gold);
}

.category-card span {
    font-size: 0.65rem;
    font-weight: 600;
}

.category-card:hover,
.category-card.active {
    background: var(--dark);
    color: white;

    transform: translateY(-7px);
}


/* =========================
   LIBROS
========================= */

.books-section {
    background: var(--cream);
}

.books-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 28px;
}

.book-card {
    background: var(--paper);

    transition: 0.35s ease;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.book-cover {
    height: 350px;

    padding: 30px;

    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: end;

    overflow: hidden;
}

.book-cover::before {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    border-radius: 50%;

    top: -70px;
    right: -70px;

    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cover-one {
    background: #344b43;
    color: white;
}

.cover-two {
    background: #b8945f;
    color: white;
}

.cover-three {
    background: #765d50;
    color: white;
}

.cover-four {
    background: #34465e;
    color: white;
}

.book-cover-content {
    position: relative;
    z-index: 2;
}

.book-cover-content small {
    font-size: 0.55rem;
    letter-spacing: 2px;
}

.book-cover-content h3 {
    font-family: var(--serif);
    font-size: 2.5rem;

    line-height: 0.9;

    margin: 15px 0;

    font-weight: 500;
}

.book-cover-content span {
    font-size: 0.65rem;
}

.favorite-button {
    position: absolute;

    width: 40px;
    height: 40px;

    top: 20px;
    right: 20px;

    background: rgba(255, 255, 255, 0.15);

    color: white;

    border-radius: 50%;
}

.book-badge {
    position: absolute;

    top: 25px;
    left: 0;

    background: var(--dark);

    color: white;

    padding: 7px 15px;

    font-size: 0.55rem;

    letter-spacing: 1px;

    z-index: 5;
}

.book-info {
    padding: 25px;
}

.book-category {
    font-size: 0.55rem;

    letter-spacing: 1.5px;

    color: var(--gold);

    margin-bottom: 10px;
}

.book-info h3 {
    font-family: var(--serif);

    font-size: 1.8rem;

    font-weight: 600;
}

.author {
    margin-top: 5px;

    color: var(--text-light);

    font-size: 0.7rem;
}

.book-bottom {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-top: 25px;

    padding-top: 20px;

    border-top:
        1px solid rgba(0, 0, 0, 0.08);
}

.book-bottom strong {
    font-size: 0.9rem;
}

.add-cart {
    padding: 10px 13px;

    background: var(--cream);

    color: var(--dark);

    font-size: 0.65rem;

    transition: 0.3s;
}

.add-cart:hover {
    background: var(--dark);
    color: white;
}


/* =========================
   PAYPAL BANNER
========================= */

.payment-banner {
    margin-top: 70px;

    padding: 35px 45px;

    display: flex;

    align-items: center;

    gap: 25px;

    background: var(--dark);

    color: white;
}

.payment-icon {
    width: 60px;
    height: 60px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.1);

    font-size: 1.8rem;
}

.payment-banner h3 {
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 500;
}

.payment-banner p {
    margin-top: 5px;

    font-size: 0.7rem;

    color: rgba(255, 255, 255, 0.65);
}

.paypal-button {
    margin-left: auto;

    padding: 15px 25px;

    background: white;

    color: var(--dark);

    font-weight: 600;

    font-size: 0.75rem;
}


/* =========================
   MARKETING
========================= */

.marketing-section {
    background: var(--dark);

    color: white;
}

.marketing-content {
    display: grid;

    grid-template-columns:
        0.9fr 1.1fr;

    gap: 80px;

    align-items: center;
}

.marketing-text h2 {
    font-family: var(--serif);

    font-size: clamp(3.5rem, 5vw, 5.5rem);

    line-height: 0.9;

    font-weight: 500;
}

.marketing-text > p:not(.eyebrow) {
    margin: 30px 0;

    max-width: 550px;

    line-height: 1.9;

    font-size: 0.85rem;

    color: rgba(255, 255, 255, 0.65);
}

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}

.service-card {
    min-height: 250px;

    padding: 35px;

    background: rgba(255, 255, 255, 0.06);

    position: relative;

    transition: 0.3s;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-7px);
}

.service-number {
    position: absolute;

    top: 20px;
    right: 20px;

    color: var(--gold);

    font-size: 0.65rem;
}

.service-card > i {
    font-size: 1.8rem;

    color: var(--gold);

    margin-bottom: 35px;
}

.service-card h3 {
    font-family: var(--serif);

    font-size: 1.8rem;

    font-weight: 500;
}

.service-card p {
    margin-top: 15px;

    line-height: 1.7;

    font-size: 0.7rem;

    color: rgba(255, 255, 255, 0.6);
}


/* =========================
   ABOUT
========================= */

.about-section {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    align-items: center;

    gap: 100px;

    background: var(--paper);
}

.about-image {
    min-height: 500px;

    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;
}

.image-shape {
    width: 370px;
    height: 430px;

    background: var(--cream-dark);

    border-radius:
        200px 200px 20px 20px;
}

.about-monogram {
    position: absolute;

    width: 280px;
    height: 360px;

    background: var(--green);

    display: flex;

    align-items: center;
    justify-content: center;

    color: var(--gold-light);

    font-family: var(--serif);

    font-size: 6rem;

    box-shadow:
        25px 25px 0 var(--gold);
}

.quote-card {
    position: absolute;

    width: 260px;

    padding: 30px;

    background: white;

    right: -20px;
    bottom: 30px;

    box-shadow: var(--shadow);
}

.quote-card i {
    color: var(--gold);
    font-size: 1.4rem;
}

.quote-card p {
    margin-top: 15px;

    font-family: var(--serif);

    font-size: 1.4rem;

    line-height: 1.1;
}

.about-content h2 {
    font-size: clamp(3rem, 5vw, 5rem);
}

.about-content > p:not(.eyebrow) {
    margin-top: 25px;

    max-width: 600px;

    line-height: 1.9;

    font-size: 0.85rem;

    color: var(--text-light);
}

.about-signature {
    margin-top: 40px;

    display: flex;

    flex-direction: column;

    gap: 5px;
}

.about-signature strong {
    font-family: var(--serif);

    font-size: 1.8rem;

    font-weight: 500;
}

.about-signature span {
    font-size: 0.65rem;

    letter-spacing: 1px;

    color: var(--gold);
}


/* =========================
   CONTACTO
========================= */

.contact-section {
    background: var(--cream-dark);
}

.contact-container {
    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns:
        0.8fr 1.2fr;

    gap: 100px;
}

.contact-info h2 {
    font-size: clamp(3.5rem, 5vw, 5rem);
}

.contact-info > p:not(.eyebrow) {
    margin-top: 25px;

    max-width: 480px;

    font-size: 0.85rem;

    line-height: 1.9;

    color: var(--text-light);
}

.contact-details {
    margin-top: 50px;

    display: flex;

    flex-direction: column;

    gap: 25px;
}

.contact-item {
    display: flex;

    align-items: center;

    gap: 15px;
}

.contact-icon {
    width: 45px;
    height: 45px;

    background: var(--dark);

    color: var(--gold-light);

    display: flex;

    align-items: center;
    justify-content: center;
}

.contact-item div:last-child {
    display: flex;

    flex-direction: column;

    gap: 5px;
}

.contact-item span {
    font-size: 0.6rem;

    color: var(--text-light);
}

.contact-item strong {
    font-size: 0.75rem;
}

.contact-form {
    padding: 45px;

    background: var(--paper);

    box-shadow: var(--shadow);
}

.form-row {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}

.form-group {
    display: flex;

    flex-direction: column;

    margin-bottom: 22px;

    gap: 9px;
}

.form-group label {
    font-size: 0.65rem;

    font-weight: 600;

    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;

    border: 1px solid rgba(29, 41, 38, 0.12);

    background: transparent;

    padding: 15px;

    outline: none;

    font-size: 0.75rem;

    resize: vertical;

    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
}

.submit-button {
    width: 100%;
}

.contact-form small {
    display: block;

    margin-top: 18px;

    text-align: center;

    font-size: 0.6rem;

    color: var(--text-light);
}


/* =========================
   FOOTER
========================= */

.footer {
    padding: 80px 7% 25px;

    background: var(--dark);

    color: white;
}

.footer-content {
    display: flex;

    justify-content: space-between;

    gap: 60px;

    padding-bottom: 60px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--gold);

    color: var(--gold);

    font-family: var(--serif);

    font-size: 1.4rem;
}

.footer-brand h3 {
    margin-top: 20px;

    font-family: var(--serif);

    font-size: 2rem;

    font-weight: 500;
}

.footer-brand p {
    margin-top: 15px;

    font-size: 0.75rem;

    line-height: 1.8;

    color: rgba(255, 255, 255, 0.55);
}

.footer-links {
    display: flex;

    gap: 100px;
}

.footer-links div {
    display: flex;

    flex-direction: column;

    gap: 15px;
}

.footer-links h4 {
    color: var(--gold);

    font-size: 0.65rem;

    letter-spacing: 1.5px;

    margin-bottom: 8px;
}

.footer-links a {
    font-size: 0.7rem;

    color: rgba(255, 255, 255, 0.65);

    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 25px;

    border-top:
        1px solid rgba(255, 255, 255, 0.1);

    display: flex;

    justify-content: space-between;

    font-size: 0.6rem;

    color: rgba(255, 255, 255, 0.4);
}


/* =========================
   RESPONSIVE TABLET
========================= */

@media (max-width: 1100px) {

    .books-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns:
            repeat(4, 1fr);
    }

    .hero {
        grid-template-columns:
            1fr;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-visual {
        margin-top: 30px;
    }

    .marketing-content,
    .about-section,
    .contact-container {
        grid-template-columns:
            1fr;
    }

    .about-content {
        max-width: 700px;
    }

}


/* =========================
   RESPONSIVE MOBILE
========================= */

@media (max-width: 750px) {

    .header {
        padding: 15px 6%;
        min-height: 75px;
    }

    .logo strong {
        font-size: 1rem;
    }

    .logo small {
        font-size: 0.45rem;
    }

    .logo > span {
        width: 42px;
        height: 42px;
    }

    .nav {
        display: none;

        position: absolute;

        top: 75px;
        left: 0;

        width: 100%;

        padding: 30px;

        flex-direction: column;

        align-items: flex-start;

        background: var(--paper);

        box-shadow: var(--shadow);
    }

    .nav.active {
        display: flex;
    }

    .menu-button {
        display: block;
    }

    .icon-button {
        display: none;
    }

    section {
        padding: 80px 6%;
    }

    .hero {
        padding: 80px 6%;
        min-height: auto;
    }

    .hero h1 {
        font-size: 3.8rem;
    }

    .hero-stats {
        gap: 25px;
        flex-wrap: wrap;

        margin-top: 50px;
    }

    .hero-visual {
        height: 480px;
        transform: scale(0.8);
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .categories-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .books-grid {
        grid-template-columns:
            1fr;
    }

    .book-cover {
        height: 380px;
    }

    .payment-banner {
        padding: 30px;

        flex-direction: column;

        align-items: flex-start;
    }

    .paypal-button {
        margin-left: 0;

        width: 100%;
    }

    .services-grid {
        grid-template-columns:
            1fr;
    }

    .about-section {
        gap: 60px;
    }

    .about-image {
        min-height: 420px;
        transform: scale(0.85);
    }

    .quote-card {
        right: -10px;
    }

    .contact-container {
        gap: 50px;
    }

    .contact-form {
        padding: 25px;
    }

    .form-row {
        grid-template-columns:
            1fr;
    }

    .footer-content,
    .footer-bottom {
        flex-direction: column;
    }

    .footer-links {
        gap: 60px;
    }

    .footer-bottom {
        gap: 15px;
    }

}


/* =========================
   MOBILE PEQUEÑO
========================= */

@media (max-width: 450px) {

    .hero h1 {
        font-size: 3rem;
    }

    .hero-visual {
        transform: scale(0.62);
        margin: -80px 0;
    }

    .hero-stats {
        gap: 20px;
    }

    .main-book {
        width: 280px;
    }

    .section-heading h2,
    .marketing-text h2,
    .about-content h2,
    .contact-info h2 {
        font-size: 3.2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 35px;
    }

}
