/* === ESTILOS DELGISALCLIC.COM (V2.5 IMPACTO TOTAL) === */

:root {
    --bg-color: #fcfaf7;
    --text-color: #1a1a1a;
    --accent-color: #1a3a5a;
    --gold-subtle: #c5a059;
    --font-main: 'EB Garamond', serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 19px;
    overflow-x: hidden;
}

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

/* NAV */
.header-main {
    padding: 1.5rem 0;
    background: rgba(252, 250, 247, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 800; letter-spacing: 4px; font-size: 1.3rem; color: var(--accent-color); }
.nav-links { display: flex; list-style: none; gap: 2.5rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-color); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; transition: 0.3s; font-weight: 600; }
.nav-links a:hover { color: var(--gold-subtle); }

.btn-adquirir {
    background-color: var(--accent-color);
    color: white !important;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* HERO: LIBRO 3D DINÁMICO */
.hero {
    display: flex;
    align-items: center;
    min-height: 90vh;
    padding: 4rem 0;
    gap: 5rem;
}
.hero-content { flex: 1.2; }
.hero-title { font-size: 4.5rem; line-height: 1; margin-bottom: 2rem; font-weight: 400; font-style: italic; color: var(--accent-color); }
.hero-subtitle { font-size: 1.5rem; margin-bottom: 3rem; color: #555; }

.hero-image { flex: 1; perspective: 2000px; display: flex; justify-content: center; }
.book-3d {
    width: 320px;
    height: 480px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-25deg) rotateX(5deg);
    transition: transform 1s ease;
}
.book-3d:hover { transform: rotateY(0deg) rotateX(0deg); }

.book-cover {
    position: absolute;
    width: 100%; height: 100%;
    background: url('../assets/portada.jpg') no-repeat center/cover;
    z-index: 5;
    transform-origin: left;
    transition: transform 1s ease;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.2);
    border-radius: 2px 5px 5px 2px;
}
.book-3d:hover .book-cover { transform: rotateY(-145deg); }

.book-inside {
    position: absolute;
    width: 98%; height: 98%;
    top: 1%; left: 1%;
    background: #fff;
    z-index: 1;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
    background: url('../assets/intro1.jpg') no-repeat top/cover;
}

/* SECCIÓN HOJEA EL LIBRO */
.section-browse { padding: 8rem 0; background: #fff; }
.pages-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 1.5rem; 
    margin-top: 3rem;
}
.page-thumb { 
    background: #f9f9f9; 
    border: 1px solid #eee; 
    padding: 5px; 
    transition: transform 0.3s;
    cursor: pointer;
}
.page-thumb:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.page-thumb img { width: 100%; height: auto; }

/* ESQUEMA Y TABLAS */
.section-visuals { padding: 8rem 0; background: var(--bg-color); }
.visual-box { background: white; padding: 3rem; border-radius: 8px; margin-bottom: 4rem; box-shadow: 0 10px 40px rgba(0,0,0,0.02); text-align: center; }
.visual-box img { max-width: 100%; height: auto; mix-blend-mode: multiply; margin-top: 2rem; }

/* VIDEO */
.section-video { padding: 8rem 0; text-align: center; background: #fff; }
.video-container { max-width: 900px; margin: 3rem auto; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,0.15); }

/* FOOTER */
.footer-main { padding: 6rem 0; background: #1a1a1a; color: #888; text-align: center; }
.footer-main a { color: #fff; text-decoration: none; }

/* MODAL ADQUIRIR */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); display: none; align-items: center; justify-content: center; z-index: 2000;
}
.modal-content {
    background: white; padding: 4rem; border-radius: 8px; max-width: 600px; width: 90%;
    position: relative;
}
.close-btn { position: absolute; top: 1.5rem; right: 2rem; font-size: 2.5rem; cursor: pointer; }
.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-group label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.form-group input, .form-group textarea { width: 100%; padding: 1rem; border: 1px solid #ddd; font-family: var(--font-main); font-size: 1.1rem; }
.btn-submit { background: var(--accent-color); color: white; border: none; padding: 1rem 2rem; width: 100%; font-size: 1.1rem; cursor: pointer; transition: 0.3s; }
.btn-submit:hover { background: var(--gold-subtle); }

@media (max-width: 900px) {
    .hero { flex-direction: column; text-align: center; padding-top: 2rem; }
    .hero-title { font-size: 3rem; }
    .nav-links { display: none; }
}
