/* 
   Estilos unificados para Travesía Literaria
   Combinación de ambos archivos CSS
*/

/* Variables y reset */
:root {
    --primary-color: #c68e3c; /* Color naranja de la cabecera */
    --secondary-color: #e2b76b; /* Versión más clara del naranja */
    --accent-color: #8b5e1f; /* Versión más oscura del naranja */
    --text-color: #2b2d42;
    --light-text: #f8f9fa;
    --background-color: #ffffff;
    --light-background: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-size: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Botones */
.btn, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-2px);
}

/* Header y Navegación */
header {
    background-color: var(--background-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-banner {
    width: 100%;
    overflow: hidden;
    max-height: 300px;
}

.header-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    padding: 15px 0;
}

.logo-image {
    height: 50px;
    margin-right: 15px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

.tagline {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Secciones principales */
main {
    padding: 30px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1, .page-header h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Hero Section */
.hero {
    background-color: var(--light-background);
    padding: 5rem 0;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* Sección de libros */
.featured {
    padding: 5rem 0;
}

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

.book-card {
    background-color: var(--light-background);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.book-cover {
    text-align: center;
    padding: 20px;
    background-color: white;
    height: 320px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 0 0;
}

.book-cover-image {
    max-height: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-info {
    padding: 1.5rem;
}

.book-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.book-info p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* Detalle de libro */
.book-detail {
    margin-bottom: 40px;
}

.book-detail-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.book-detail-image {
    flex: 0 0 300px;
    text-align: center;
    width: 50%;
    margin: 0 auto 2rem;
}

.book-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.book-detail-info {
    flex: 1 1 300px;
}

.book-detail-info h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.book-description {
    margin-bottom: 20px;
    line-height: 1.7;
}

.authors-list {
    margin-bottom: 20px;
}

.authors-list h3, .authors-list h4 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.authors-list ul {
    list-style: disc;
    padding-left: 20px;
}

.authors-list ul li {
    margin-bottom: 5px;
}

.book-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* Sección de muestra */
.book-sample {
    background-color: var(--light-background);
    padding: 40px 0;
    margin-top: 30px;
}

.sample-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* About Brief Section */
.about-brief {
    background-color: var(--light-background);
    padding: 5rem 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 1.5rem;
}

/* Sección de próximos lanzamientos */
.upcoming {
    margin-bottom: 40px;
}

.upcoming-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.upcoming-image {
    flex: 0 0 300px;
    text-align: center;
}

.placeholder-cover {
    width: 100%;
    height: 400px;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #999;
    border-radius: 5px;
}

.upcoming-info {
    flex: 1 1 300px;
}

.release-date {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.upcoming-description {
    margin-bottom: 20px;
}

/* Ideas futuras */
.upcoming-ideas {
    background-color: var(--light-background);
    padding: 40px 0;
    margin-top: 30px;
}

.ideas-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.idea-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.idea-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.estimated-date {
    margin-top: 15px;
    font-style: italic;
    color: #666;
}

/* Newsletter */
.newsletter {
    text-align: center;
    padding: 40px 0;
    background-color: white;
}

.newsletter h3 {
    margin-bottom: 15px;
}

.newsletter p {
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Contacto */
.contact-info {
    margin-bottom: 40px;
}

.contact-form-section {
    margin-bottom: 40px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

/* FAQ */
.faq {
    margin-bottom: 40px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    padding: 15px;
    background-color: var(--light-background);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
}

.faq-answer {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: white;
}

.faq-answer.active {
    padding: 15px;
    max-height: 500px;
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-question i.rotate {
    transform: rotate(180deg);
}

/* Autor */
.author-image {
    width: 300px;
    height: 300px;
    overflow: hidden;
    margin-right: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.author-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Estilos para las imágenes de la colección */
.volume-image {
    width: 200px;
    height: auto;
    margin: 0 auto 1rem;
}

.volume-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Estilos para la sección de colección actualizada */
.volume-card {
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #fff;
}

.volume-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.collection .btn {
    margin-top: 0;
}

.collection {
    margin-bottom: 30px;
}

.collection h3 {
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

/* Survey */
.survey {
    background-color: var(--light-background);
    padding: 3rem 0;
}

.survey-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.survey-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    opacity: 0.8;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a,
.footer-social a {
    color: var(--light-text);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links ul li a:hover,
.footer-social a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--background-color);
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
    }

    nav ul.active {
        left: 0;
    }

    nav ul li {
        margin: 1rem 0;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
    
    .book-detail-content, .upcoming-content {
        flex-direction: column;
    }

    .book-detail-image, .upcoming-image {
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 3rem 0;
    }

    .featured, .about-brief {
        padding: 3rem 0;
    }

    .book-card {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .books-grid, .ideas-content {
        grid-template-columns: 1fr;
    }

    .book-actions {
        flex-direction: column;
    }
}
