:root {
    --primary-color: #a5d9d3;
    /* Soft Teal extracted from cover */
    --accent-color: #df6248;
    /* Terracotta extracted from cover */
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-primary: #ffffff;
    --text-secondary: #b0caca;
    /* Slightly tinted gray/teal for secondary */
    --card-bg: #1a1a1a;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

/* Header */
.main-header {
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

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

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links .btn-primary {
    color: white;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 2;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text .subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.book-cover-3d {
    width: 300px;
    /* Tamaño controlado */
    box-shadow: -20px 20px 50px rgba(0, 0, 0, 0.5);
    transform: rotateY(-15deg);
    transition: var(--transition);
}

.book-cover-3d:hover {
    transform: rotateY(0deg) scale(1.05);
}

.hero-bg-overlay {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

/* Sections General */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-secondary);
}

/* Book Section */
.book-section {
    background-color: var(--bg-darker);
}

.book-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.book-image-context img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.book-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.book-info p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.features {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.feature-item {
    display: flex;
    flex-direction: column;
}

.feature-item .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.feature-item .label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Author Section */
.author-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.author-image {
    flex: 0 0 400px;
}

.author-image img {
    width: 100%;
    border-radius: 12px;
    filter: grayscale(20%);
    transition: var(--transition);
}

.author-image img:hover {
    filter: grayscale(0%);
}

.author-bio h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.author-bio p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Buy Section */
.buy-section {
    background-color: var(--bg-dark);
}

.buy-options {
    display: flex;
    justify-content: center;
}

.buy-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.buy-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.store-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.store-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.store-location {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 10px;
}

.store-note {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 20px;
}

.store-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.btn-secondary {
    display: inline-block;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--bg-darker);
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-col h3 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
}

.footer-col p {
    color: var(--text-secondary);
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-secondary);
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        padding-top: 40px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* Simplificado para primera versión */
    }

    .book-details {
        grid-template-columns: 1fr;
    }

    .author-content {
        flex-direction: column;
    }

    .author-image {
        flex: 0 0 auto;
        width: 100%;
    }
}