/* Estilos del menú */
nav {
    width: 100%;
    background-color: rgba(10, 25, 40, 0.9);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 25px;
}

nav ul li a {
    color: #E0E0E0;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: bold;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav ul li a:hover {
    color: #4ECDC4;
    text-shadow: 0 0 5px #4ECDC4;
}

/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 70px; /* Espacio para el menú fijo */
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('malapascua-isla-maldita.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #E0E0E0; /* Gris claro para el texto */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    display: flex;
    max-width: 1000px;
    background-color: rgba(10, 25, 40, 0.85); /* Azul muy oscuro y semitransparente */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 40px;
    margin: 20px;
    flex-wrap: wrap; /* Permite que los elementos se apilen en pantallas pequeñas */
}

/* Sección de la imagen (portada) */
.book-cover {
    flex: 1;
    min-width: 300px; /* Ancho mínimo para la imagen */
    margin-right: 40px;
    text-align: center;
}

.book-cover img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

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

/* Sección del contenido (texto y botón) */
.content {
    flex: 2;
    min-width: 350px; /* Ancho mínimo para el contenido */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    color: #4ECDC4; /* Color turquesa para el título */
    font-size: 2.5em;
    margin-top: 0;
    margin-bottom: 10px;
}

h2 {
    color: #FFC300; /* Color amarillo/dorado para el subtítulo */
    font-size: 1.2em;
    margin-bottom: 25px;
}

p {
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.1em;
    color: #F0F0F0;
}

/* Estilos del botón de compra */
.buy-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #FFFFFF;
    background-color: #E74C3C; /* Rojo vibrante */
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 6px #C0392B; /* Sombra para efecto 3D */
    border: none;
    cursor: pointer;
}

.buy-button:hover {
    background-color: #C0392B; /* Rojo más oscuro al pasar el ratón */
    transform: translateY(2px); /* Efecto de "presionar" */
    box-shadow: 0 4px #A5362A;
}

.buy-button:active {
    transform: translateY(6px);
    box-shadow: 0 0 #A5362A;
}

/* Media Queries para responsividad */
@media (max-width: 800px) {
    .container {
        flex-direction: column;
        padding: 20px;
    }

    .book-cover {
        margin-right: 0;
        margin-bottom: 30px;
    }

    h1 {
        font-size: 2em;
    }

    .buy-button {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 500px) {
    .book-cover img {
        max-width: 80%;
    }
    .content {
        min-width: auto;
    }
}
