/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1a2e 50%, #16213e 100%);
    background-attachment: fixed;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

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

/* Efectos hover globales */
.hover-effect {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hover-effect:hover {
    background-color: #8B0000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.4);
}

/* Header y Navigation */
.header {
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1a2e 100%);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #2a2a4e;
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand h1 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 4px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-brand h1:hover {
    color: #8B0000;
    text-shadow: 0 0 20px rgba(139, 0, 0, 0.8);
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.search-icon {
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.search-icon:hover {
    background-color: #8B0000;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
}

/* Hero Section */
.hero {
    margin-top: 100px;
    height: 70vh;
    min-height: 600px;
    max-height: 700px;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(139, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    height: 100%;
    gap: 80px;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    max-height: 500px;
    overflow: hidden;
}

.book-cover {
    max-width: 400px;
    max-height: 450px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, opacity 0.5s ease;
}

.book-cover:hover {
    transform: scale(1.05);
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    transition: opacity 0.5s ease;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #8B0000, transparent);
}

.hero-subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 1.3rem;
    color: #b8c6db;
    margin-bottom: 30px;
    max-width: 500px;
    font-style: italic;
    line-height: 1.5;
    min-height: 80px;
    display: flex;
    align-items: center;
    transition: opacity 0.5s ease;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-cover {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.book-cover:hover {
    transform: scale(1.05);
}

.hero-dots {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #2a2a4e;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #555;
}

.dot.active,
.dot:hover {
    background-color: #8B0000;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.6);
    border-color: #8B0000;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about-text p {
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    color: #b8c6db;
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.7;
}

.author-photo {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.author-photo:hover {
    transform: scale(1.05);
}

/* Works Section */
.works-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1a2e 100%);
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.work-card {
    background: linear-gradient(135deg, #2a2a4e 0%, #1a1a2e 100%);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    padding: 20px;
    border: 1px solid #3a3a5e;
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 0, 0, 0.3);
    border-color: #8B0000;
}

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

.work-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.work-description {
    font-family: 'Crimson Text', serif;
    color: #b8c6db;
    margin-bottom: 15px;
    line-height: 1.6;
}

.work-year {
    color: #8B0000;
    font-weight: 600;
    font-family: 'Cinzel', serif;
}

/* Upcoming Section */
.upcoming-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    text-align: center;
}

/* Decodificando el Onírico Styles */
.onirico-hero {
    position: relative;
    margin: 60px 0;
    border-radius: 15px;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.onirico-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.onirico-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.2);
}

.onirico-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(10, 14, 26, 0.8) 0%, 
        rgba(139, 0, 0, 0.3) 50%, 
        rgba(26, 26, 46, 0.8) 100%);
    z-index: 2;
}

.onirico-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 40px;
    text-align: center;
}

.onirico-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    letter-spacing: 2px;
    line-height: 1.1;
}

.onirico-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: #8B0000;
    margin-bottom: 30px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.onirico-description {
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    color: #e0e0e0;
    line-height: 1.7;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.onirico-description em {
    color: #8B0000;
    font-style: italic;
    font-weight: 600;
}

/* Sección promocional */
.promo-section {
    position: relative;
    margin: 80px 0;
    border-radius: 15px;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.promo-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3) contrast(1.3);
}

.promo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(139, 0, 0, 0.6) 0%, 
        rgba(10, 14, 26, 0.4) 50%, 
        rgba(139, 0, 0, 0.6) 100%);
    z-index: 2;
}

.promo-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 40px;
}

.promo-quote {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Grid de expectativas */
.expectation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 60px;
}

.expectation-card {
    background: linear-gradient(135deg, #2a2a4e 0%, #1a1a2e 100%);
    padding: 30px 25px;
    border-radius: 10px;
    border: 1px solid #3a3a5e;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.expectation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.expectation-card:hover::before {
    left: 100%;
}

.expectation-card:hover {
    border-color: #8B0000;
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.3);
    transform: translateY(-5px);
}

.expectation-card p {
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    color: #e0e0e0;
    margin: 0;
    text-align: center;
    line-height: 1.6;
    font-style: italic;
    position: relative;
    z-index: 2;
}

.upcoming-content p {
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    color: #b8c6db;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-style: italic;
}

/* News Section */
.news-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1a2e 100%);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: linear-gradient(135deg, #2a2a4e 0%, #1a1a2e 100%);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #8B0000;
    transition: all 0.3s ease;
    border: 1px solid #3a3a5e;
}

.news-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.news-card p {
    font-family: 'Crimson Text', serif;
    color: #b8c6db;
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-card time {
    color: #8B0000;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Cinzel', serif;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0a0e1a 0%, #16213e 100%);
    padding: 60px 0 20px;
    border-top: 1px solid #2a2a4e;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.footer-info p {
    font-family: 'Crimson Text', serif;
    color: #b8c6db;
}

.footer-contact h4 {
    margin-bottom: 15px;
    color: #8B0000;
    font-family: 'Cinzel', serif;
}

.footer-contact p {
    font-family: 'Crimson Text', serif;
    color: #b8c6db;
}

.footer-contact a {
    color: #b8c6db;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: 'Crimson Text', serif;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2a2a4e;
    color: #7a7a9e;
    font-family: 'Crimson Text', serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero {
        height: auto;
        min-height: 500px;
        max-height: none;
        padding: 40px 20px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        height: auto;
    }
    
    .hero-text {
        height: auto;
    }
    
    .hero-image {
        height: auto;
        max-height: 300px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        min-height: 80px;
    }
    
    .hero-subtitle {
        min-height: 60px;
        font-size: 1.1rem;
    }
    
    .book-cover {
        max-width: 300px;
        max-height: 350px;
    }
    
    .onirico-title {
        font-size: 2.5rem;
    }
    
    .promo-quote {
        font-size: 1.8rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .expectation-grid {
        grid-template-columns: 1fr;
    }
    
    .onirico-content {
        padding: 20px;
    }
    
    .promo-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .onirico-title {
        font-size: 2rem;
    }
    
    .promo-quote {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .onirico-hero,
    .promo-section {
        min-height: 400px;
    }
}
