/* ===================================
   CUSTOM FONTS
   =================================== */

/* Ivy Ora Display - For Headings */
@font-face {
    font-family: 'Ivy Ora Display';
    src: url('fonts/fonnts.com-Ivy-Ora-Display-.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ivy Ora Display';
    src: url('fonts/fonnts.com-Ivy-Ora-Display-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ivy Ora Display';
    src: url('fonts/fonnts.com-Ivy-Ora-Display-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Ivy Ora Text - For Body Text (Optional) */
@font-face {
    font-family: 'Ivy Ora Text';
    src: url('fonts/fonnts.com-Ivy-Ora-Text-.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Ivy Presto Headline - Main Font */
@font-face {
    font-family: 'Ivy Presto';
    src: url('fonts/fonnts.com-Ivy-Presto-Headline-Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ivy Presto';
    src: url('fonts/fonnts.com-Ivy-Presto-Headline-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ivy Presto';
    src: url('fonts/fonnts.com-Ivy-Presto-Headline-Semi-Bold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-style: normal !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Ivy Presto', Georgia, serif;
    background-color: #F4EFE3;
    color: #2C2C2C;
    line-height: 1.7;
    font-size: 18px;
    font-weight: 100;
    font-style: normal !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body *, p, span, div, a, h1, h2, h3, h4, h5, h6, strong, em, i {
    font-style: normal !important;
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Ivy Ora Display', Georgia, serif;
    font-weight: 500;
    line-height: 1.2;
    color: #000000;
}

h1 {
    font-size: 4rem;
    letter-spacing: 0.02em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

strong {
    font-weight: 600;
}

a {
    color: #000000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* ===================================
   LAYOUT CONTAINERS
   =================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===================================
   NAVIGATION
   =================================== */

.navigation {
    background-color: #F4EFE3;
    padding: 2.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navigation .container {
    display: flex;
    justify-content: flex-end;
    gap: 2.5rem;
    padding: 0 42px 0 2rem;
    margin: 0;
    max-width: none;
}

.nav-link {
    font-family: 'Ivy Presto', Georgia, serif;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #000000;
    position: relative;
}

.nav-link.active {
    font-weight: 500;
}

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

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

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #F4EFE3;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    width: 100%;
    min-height: 100vh;
}

.hero-image {
    position: relative;
    overflow: hidden;
    padding-left: 6rem;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0 32px 0 32px;
    background-color: #F4EFE3;
    min-height: 100vh;
}

.hero-label {
    font-family: 'Ivy Presto', Georgia, serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: #000000;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

.hero-title {
    font-family: 'Ivy Presto', serif;
    font-size: calc(5rem + 6px);
    font-weight: 300;
    color: #002397;
    margin-bottom: 1.875rem;
    letter-spacing: 0.05em;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: 'Ivy Presto', Georgia, serif;
    font-size: 18px;
    color: #002397;
    font-weight: 300;
    font-style: normal !important;
    line-height: 1.6;
    letter-spacing: 0.03em;
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about {
    padding: 6rem 0 0 0;
    background-color: #F4EFE3;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

.about-text {
    padding: 2rem 0;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #2C2C2C;
}

.about-text-only {
    max-width: none;
    margin: 0;
    padding: 2rem 0;
}

.about-text-only p {
    font-family: 'Ivy Presto', Georgia, serif;
    font-size: 23px;
    font-weight: 300;
    line-height: 1.1;
    color: #002397;
    margin-bottom: 0;
}

.about-image-full {
    width: 100%;
    margin-top: 3rem;
}

.about-image-full img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    margin-bottom: 0;
}

.about-text-columns p {
    font-family: 'Ivy Presto', Georgia, serif;
    font-weight: 300;
    line-height: 1.4;
    color: #000000;
    margin: 0;
}

.column-left p {
    font-size: 16px;
}

.column-right p {
    font-size: 18px;
    color: #002397;
}

/* ===================================
   BOOK TEASER SECTION
   =================================== */

.book-teaser {
    padding: 6rem 0;
    background-color: #000000;
    color: #F4EFE3;
    text-align: center;
}

.book-teaser h2 {
    font-size: 3.5rem;
    color: #F4EFE3;
    margin-bottom: 1rem;
}

.book-tagline {
    font-size: 1.3rem;
    font-style: normal;
    margin-bottom: 1.5rem;
    color: #F4EFE3;
}

.book-teaser p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   BUTTONS
   =================================== */

.btn-primary {
    display: inline-block;
    padding: 0;
    background-color: transparent;
    color: #002397;
    border: none;
    border-bottom: 1px solid #002397;
    font-family: 'Ivy Presto', Georgia, serif;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    opacity: 0.7;
}

.book-teaser .btn-primary {
    color: #F4EFE3;
    border-color: #F4EFE3;
}

.book-teaser .btn-primary:hover {
    background-color: #F4EFE3;
    color: #000000;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1rem;
}

.btn-libro {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #002397;
    color: #F4EFE3;
    border: 2px solid #002397;
    font-family: 'Ivy Presto', Georgia, serif;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-libro:hover {
    background-color: transparent;
    color: #002397;
    opacity: 1;
}

.btn-libro-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #F4EFE3;
    color: #002397;
    border: 2px solid #F4EFE3;
    font-family: 'Ivy Presto', Georgia, serif;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-libro-cta:hover {
    background-color: transparent;
    color: #F4EFE3;
    border-color: #F4EFE3;
    opacity: 1;
}

/* ===================================
   FOOTER WITH CONTACT AND SOCIAL
   =================================== */

.footer {
    padding: 4rem 0 3rem 0;
    background-color: #F4EFE3;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.encuentrame-column h2,
.contacto-column h2 {
    font-family: 'Ivy Presto', serif;
    font-size: calc(1.2rem - 3px);
    font-weight: 300;
    color: #000000;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-align: center;
}

.encuentrame-column,
.contacto-column {
    text-align: center;
}

.social-list,
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-item,
.contact-item {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.social-label,
.contact-label {
    font-family: 'Ivy Presto', Georgia, serif;
    font-size: 9px;
    font-weight: 300;
    color: #999;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.social-link-text,
.contact-link {
    font-family: 'Ivy Presto', Georgia, serif;
    font-size: 13px;
    font-weight: 300;
    color: #000000;
    text-decoration: none;
    transition: opacity 0.3s ease;
    border-bottom: 1px solid transparent;
}

.social-link-text:hover,
.contact-link:hover {
    opacity: 0.7;
    border-bottom-color: #000000;
}

.footer-copyright {
    font-family: 'Ivy Presto', Georgia, serif;
    font-size: 0.85rem;
    color: #999;
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-link {
    color: #002397;
    font-weight: 300;
}

/* ===================================
   BOOK PAGE STYLES
   =================================== */

.book-hero {
    padding: 6rem 0;
    background-color: #F4EFE3;
}

.book-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: center;
}

.book-image-wrapper {
    text-align: center;
}

.book-cover {
    width: 100%;
    max-width: 400px;
    height: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.book-hero-content {
    padding: 2rem 0;
}

.book-title {
    font-family: 'Ivy Presto', serif;
    font-size: 3rem;
    font-weight: 300;
    color: #002397;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: 0;
}

.book-subtitle {
    font-family: 'Ivy Presto', serif;
    font-size: 1.2rem;
    font-weight: 300;
    font-style: normal;
    color: #000000;
    margin-bottom: 1rem;
}

.book-author {
    font-family: 'Ivy Presto', Georgia, serif;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: #999;
    margin-bottom: 2.5rem;
}

/* Book Main Section - Editorial Style */
.book-main {
    padding: 0 0 6rem 0;
    background-color: #F4EFE3;
}

.book-main-header {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.book-main-title {
    font-family: 'Ivy Presto', serif;
    font-size: 3rem;
    font-weight: 300;
    color: #002397;
    text-align: left;
    letter-spacing: 0;
}

.book-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.book-main-left p,
.book-main-right p {
    font-family: 'Ivy Presto', Georgia, serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color: #000000;
}

.book-main-right p {
    font-size: 18px;
    color: #002397;
}

.book-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 5rem;
}

.book-image-item {
    position: relative;
    overflow: hidden;
}

.book-image-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.book-bottom-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.book-bottom-image-item {
    position: relative;
    overflow: hidden;
}

.book-bottom-image-item img {
    width: 100%;
    height: auto;
    display: block;
}

.author-note {
    padding: 0 0 6rem 0;
    background-color: #F4EFE3;
}

.author-note h2 {
    font-family: 'Ivy Presto', serif;
    font-size: 3.5rem;
    font-weight: 300;
    text-align: left;
    color: #002397;
    margin-bottom: 3rem;
    letter-spacing: 0;
    line-height: 1.1;
}

.note-content {
    max-width: 900px;
    margin: 0 auto;
}

.note-content p {
    font-family: 'Ivy Presto', serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
}

.book-cta {
    padding: 6rem 0;
    background-color: #F4EFE3;
    text-align: center;
}

.cta-content h2 {
    font-family: 'Ivy Presto', serif;
    color: #002397;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 0;
}

.cta-content p {
    font-family: 'Ivy Presto', serif;
    color: #000000;
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 2.5rem;
}

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

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-image {
        min-height: 60vh;
    }

    .hero-content {
        padding: 4rem 3rem;
    }

    .hero-title {
        font-size: 4rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .book-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .book-image-wrapper {
        order: 1;
    }

    .book-hero-content {
        order: 2;
        text-align: center;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 0 1.5rem;
    }

    .navigation .container {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-image {
        min-height: 45vh;
    }

    .hero-content {
        padding: 1rem 1.5rem;
        min-height: 30vh;
    }

    .hero-title {
        font-size: 3.5rem;
        line-height: 0.95;
        white-space: normal;
        margin-bottom: 0.3rem;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 0;
    }

    .about {
        padding: 2rem 0 2rem 0;
    }

    .about-text-columns {
        margin-top: 2rem;
    }

    .about-image-full {
        margin-top: 2rem;
    }

    .book-main {
        padding: 2rem 0 4rem 0;
    }

    .author-note,
    .social,
    .contact {
        padding: 4rem 0;
    }

    .book-main-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .book-main-title {
        font-size: 3.5rem;
        text-align: left;
        line-height: 1.1;
    }

    .book-image-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 0;
    }

    .book-image-item img {
        height: 300px;
    }

    .book-teaser,
    .book-cta {
        padding: 4rem 0;
    }

    .book-hero {
        padding: 2rem 0;
    }

    .book-teaser h2,
    .cta-content h2 {
        font-size: 2.5rem;
    }

    .author-note h2 {
        font-size: 3.5rem;
    }

    .book-title {
        font-size: 2.8rem;
    }

    .book-subtitle {
        font-size: 1.2rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .points-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .btn-primary {
        padding: 0.9rem 2rem;
        font-size: 0.85rem;
    }

    .btn-large {
        padding: 1rem 2.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 2.5rem 1.5rem;
    }

    .hero-title {
        font-size: 3.5rem;
        line-height: 0.95;
        white-space: normal;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .book-title {
        font-size: 2rem;
    }

    .navigation .container {
        flex-direction: column;
        gap: 1rem;
    }

    .book-teaser h2,
    .cta-content h2 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
    }
}
