
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #fcfbf7; 
    color: #333333;
}
/* Enlaces */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}
/* Imágenes */
img {
    max-width: 100%;
    height: auto;
    display: block;
}
/* Cabecera y navegación */
header {
    background-color: #1a2f4c;
    color: #ffffff;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    font-weight: 500;
    font-size: 1.1rem;
    opacity: 0.9;
}

nav a:hover {
    color: #e5a93b; 
    opacity: 1;
}

/* section hero */
.hero {
    background: linear-gradient(rgba(26, 47, 76, 0.85), rgba(26, 47, 76, 0.85)), 
                url('https://unsplash.com') no-repeat center center/cover;
    color: #ffffff;
    text-align: center;
    padding: 6rem 1.5rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}
/* Botones */
.btn {
    display: inline-block;
    background-color: #e5a93b; /* Dorado */
    color: #1a2f4c;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    background-color: #d4962a;
    transform: translateY(-2px);
}
/* Secciones */
.featured-books, .about {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}
/* Títulos de secciones */
.featured-books h2, .about h2 {
    text-align: center;
    font-size: 2rem;
    color: #1a2f4c;
    margin-bottom: 2.5rem;
    position: relative;
}
/* Línea decorativa debajo de los títulos */
.featured-books h2::after, .about h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #e5a93b;
    margin: 0.5rem auto 0 auto;
    border-radius: 2px;
}
/* Lista de libros */
.book-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}
/* Estilo para cada libro */
.book-item {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee7db;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Efecto hover para los libros */
.book-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
/* Imagen del libro */
.book-item img {
    height: 320px;
    object-fit: cover;
    margin: 0 auto 1.5rem auto;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Título del libro */
.book-item h3 {
    font-size: 1.3rem;
    color: #1a2f4c;
    margin-bottom: 0.5rem;
    min-height: 3.2rem; 
    display: flex;
    align-items: center;
}

/* Autor del libro */
.book-item h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #8c7e65;
    margin-top: 0.8rem;
    letter-spacing: 0.5px;
}
/* Descripción del libro */
.book-item p {
    font-size: 0.95rem;
    color: #4a4a4a;
}
/* Estilo específico para el precio, asegurando que esté siempre al final del contenedor */
.book-item h4:nth-of-type(3) + p {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2e7d32; 
    margin-top: 0.2rem;
}
/* Asegura que el precio siempre esté al final del contenedor */
.book-item h4:last-of-type {
    margin-top: auto; 
}
/* Sección "Sobre Nosotros" */
.about {
    background-color: #f0ebd8;
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
}
/* Título de la sección "Sobre Nosotros" */
.about h2 {
    font-size: 2rem;
    color: #1a2f4c;
    margin-bottom: 1.5rem;
}
/* Párrafo de la sección "Sobre Nosotros" */
.about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #4a4a4a;
}
/* Estilos para el pie de página */
footer {
    background-color: #111e30;
    color: #ffffff;
    text-align: center;
    padding: 2rem 1.5rem;
    margin-top: 4rem;
    font-size: 0.9rem;
    opacity: 0.8;
}
