/* =======================================================
   COLECCIÓN HISTORIA EN FEMENINO - ESTILO GLOBAL
======================================================= */

/* ============================== FUENTES ============================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Poppins:wght@300;400;500&display=swap');

/* ============================== VARIABLES ============================== */
:root {
    --color-principal: #7c2d37;
    --color-secundario: #d87093;
    --color-fondo: #fdfaf7;
    --color-acento: #fbeef3;
    --color-texto: #333;
}

/* ============================== RESET GLOBAL ============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.6;
}

/* ============================== HEADER Y NAVEGACIÓN ============================== */
header {
    background-color: var(--color-principal);
    color: white;
    text-align: center;
    padding: 1rem 0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.barra-navegacion nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.barra-navegacion button {
    background-color: var(--color-secundario);
    border: none;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 500;
}

.barra-navegacion button:hover {
    background-color: #b14a70;
}

/* ============================== HERO ============================== */
.hero {
    background: linear-gradient(to right, #7c2d37cc, #d87093cc), url('imgs/hero.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 6rem 2rem;
}

.hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: white;
    color: var(--color-principal);
    padding: 0.8rem 1.4rem;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: var(--color-acento);
}

/* ============================== NOVEDADES ============================== */
.novedades {
    padding: 3rem 1rem;
    text-align: center;
}

.novedades h2 {
    font-family: 'Playfair Display', serif;
    color: var(--color-principal);
    margin-bottom: 1rem;
}

.novedades p {
    margin-bottom: 1.5rem;
}

.btn-secondary {
    background-color: var(--color-principal);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-secondary:hover {
    background-color: #5d212a;
}

/* ============================== SECCIÓN LIBROS ============================== */
.libros {
    background-color: var(--color-acento);
    padding: 3rem 1rem;
    text-align: center;
}

.libros .container {
    max-width: 1000px;
    margin: auto;
}

.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.libro {
    background-color: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.libro:hover {
    transform: translateY(-5px);
}

.libro img {
    width: 100%;
    border-radius: 10px;
}

.libro h3 {
    color: var(--color-principal);
    margin-top: 1rem;
}

.acciones {
    margin-top: 1rem;
}

/* ============================== FORMULARIO DE RESERVA ============================== */
.reserva {
    max-width: 600px;
    margin: 3rem auto;
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.reserva h1 {
    color: var(--color-principal);
    text-align: center;
    margin-bottom: 1rem;
}

.reserva label {
    display: block;
    margin-top: 1rem;
    font-weight: 500;
}

.reserva input,
.reserva select {
    width: 100%;
    padding: 0.6rem 1.2rem;
    margin-top: 0.3rem;
    border: 2px solid var(--color-principal);
    border-radius: 20px;
    background-color: var(--color-acento);
    color: var(--color-principal);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(124, 45, 55, 0.05);
    cursor: pointer;
}

.reserva select:focus {
    outline: none;
    border-color: var(--color-secundario);
    box-shadow: 0 0 0 2px var(--color-secundario)33;
}

.reserva select option {
    background: #fff;
    color: var(--color-principal);
    font-family: 'Poppins', sans-serif;
}

.reserva input[type="submit"] {
    background-color: var(--color-principal);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 25px;
    margin-top: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.reserva input[type="submit"]:hover {
    background-color: #5d212a;
}

/* Sección Bizum */
.pago-bizum {
    margin-top: 3rem;
    background-color: var(--color-acento);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.bizum-numero {
    font-size: 1.2rem;
    color: var(--color-principal);
    font-weight: bold;
}

/* ============================== FOOTER ============================== */
.footer {
    background-color: var(--color-principal);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.footer h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.footer a:hover {
    color: var(--color-secundario);
}

.redes div {
    margin-bottom: 0.5rem;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
}

/* ============================== SECCIÓN DE AUTORAS ============================== */
.autoras {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    text-align: center;
}

.autoras h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c2c2c;
}

.autoras .intro {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Tarjetas individuales */
.autora {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    background-color: #fafafa;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.autora:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.foto-autora {
    flex: 1 1 200px;
    max-width: 250px;
    border-radius: 12px;
    object-fit: cover;
}

.info-autora {
    flex: 2 1 400px;
    text-align: left;
}

.info-autora h2 {
    margin-top: 0;
    font-size: 1.6rem;
    color: #222;
}

.info-autora p {
    color: #555;
    line-height: 1.6;
}

.redes-autora {
    margin-top: 1rem;
}

.redes-autora a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 15px;
    text-decoration: none;
    color: #c74b50;
    font-weight: 500;
}

.redes-autora a:hover {
    text-decoration: underline;
}

/* ============================== RESPONSIVE ============================== */
@media (max-width: 768px) {
    .autora {
        flex-direction: column;
        text-align: center;
    }

    .info-autora {
        text-align: center;
    }

    .foto-autora {
        max-width: 200px;
    }

    .barra-navegacion nav {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ============================== SECCIÓN PRÓXIMAMENTE ============================== */
.proximamente {
    text-align: center;
    padding: 80px 20px;
}

.proximamente h2 {
    font-size: 2.2rem;
    color: var(--color-principal);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.proximamente p {
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    margin: auto;
    line-height: 1.6;
}

/* ============================== SLIDER ============================== */
.slider {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider .slide {
    display: none;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.slider .slide.active {
    display: block;
}

.slider .prev,
.slider .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 0 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
}

.slider .prev {
    left: 5px;
}

.slider .next {
    right: 5px;
}

.touch-slider {
    position: relative;
    width: 100%;
    max-width: 300px;
    min-height: 320px;
    margin-bottom: 1rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.touch-slider .slide {
    display: none;
    width: 100%;
    height: auto;
    max-height: 320px;
    border-radius: 8px;
    user-select: none;
    pointer-events: none;
    opacity: 1;
    position: static;
    object-fit: contain;
    transition: none;
}

.touch-slider .slide.active {
    display: block;
    pointer-events: auto;
}

/* Flechas de navegación para el slider */
.touch-slider .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-principal);
    color: #fff;
    border: none;
    font-size: 2.2rem;
    padding: 0 14px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 3;
    opacity: 0.85;
    transition: background 0.2s, opacity 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
}

.touch-slider .slider-arrow:hover {
    background: var(--color-secundario);
    opacity: 1;
}

.touch-slider .slider-arrow.prev {
    left: 8px;
}

.touch-slider .slider-arrow.next {
    right: 8px;
}

.libro-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
}
