/* VARIABLES DE DISEÑO PRESET (Estilo Místico/Premium) */
:root {
    --bg-dark: #0f1115;       /* Fondo oscuro profundo */
    --bg-light: #161920;      /* Tarjetas y secciones secundarias */
    --gold: #d4af37;          /* Acento místico dorado */
    --gold-hover: #f3cd57;
    --text-main: #f5f5f7;     /* Texto principal ultra claro */
    --text-muted: #a0a5b5;    /* Texto secundario */
    --font-title: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s ease;
}

/* RESET GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* NAVBAR */
.navbar {
    background-color: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold);
}

/* SECTION TITLE GLOBAL */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: var(--text-main);
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-title .subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 10px;
    letter-spacing: 1px;
}

/* HERO SECTION */
.hero-section {
    padding: 6rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
}

.hero-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background-color: var(--gold);
    color: #000;
    font-family: var(--font-title);
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 4px;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.hero-content h1 {
    font-family: var(--font-title);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero-content .lead {
    font-size: 1.15rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* SOCIAL CONNECT */
.social-connect {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.social-connect span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background-color: var(--bg-light);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--gold);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(212, 175, 55, 0.2);
}

/* BOOK SECTION */
.book-section {
    background-color: var(--bg-light);
    padding: 6rem 0;
    border-top: 1px solid rgba(212, 175, 55, 0.05);
    border-bottom: 1px solid rgba(212, 175, 55, 0.05);
}

.book-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: flex-start;
}

/* 3D BOOK FLIP EFFECT */
.book-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 1000px; /* Necesario para el efecto 3D */
}

.book-card-3d {
    width: 320px;
    height: 480px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
    border-radius: 4px;
}

.book-card-3d.flipped {
    transform: rotateY(180deg);
}

.book-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 4px;
    overflow: hidden;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-cover.back {
    transform: rotateY(180deg);
}

.hint-text {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* BOOK DETAILS */
.book-tag {
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 600;
}

.book-details h3 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    margin: 0.5rem 0 1.5rem;
}

.book-tagline {
    font-size: 1.2rem;
    color: var(--text-main);
    font-style: italic;
    border-left: 3px solid var(--gold);
    padding-left: 1rem;
    margin-bottom: 2rem;
}

.book-synopsis p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-size: 1rem;
    text-align: justify;
}

/* BOTÓN DE ACCIÓN LLAMATIVO */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background-color: var(--gold);
    color: #000;
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    margin-top: 1.5rem;
    transition: var(--transition);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.cta-btn:hover {
    background-color: var(--gold-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(212, 175, 55, 0.3);
}

/* TESTIMONIOS */
.testimonials-section {
    padding: 6rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--bg-light);
    padding: 2.5rem 2rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.02);
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.2);
}

.quote-icon {
    color: rgba(212, 175, 55, 0.2);
    font-size: 2rem;
    position: absolute;
    top: 15px;
    left: 20px;
}

.testimonial-card p {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.testimonial-card h4 {
    font-family: var(--font-title);
    color: var(--text-main);
    font-size: 1.1rem;
}

.testimonial-card span {
    color: var(--gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* FOOTER */
footer {
    background-color: #090a0d;
    padding: 3rem 0;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* RESPONSIVE (Celulares y Tablets) */
@media (max-width: 992px) {
    .hero-grid, .book-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none; /* Simplificación para móvil, ideal añadir menú hamburguesa luego */
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .book-card-3d {
        width: 260px;
        height: 390px;
    }
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}