@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600&family=Libre+Baskerville&display=swap');


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

body {
  font-family: 'Libre Baskerville', serif;
  scroll-behavior: smooth;
  background-color: white;
  color: black;
}

h1, h2, h3,
.menu-nombre,
nav a {
  font-family: 'Cinzel', serif;
}
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }

header {
  background-color: #f5f5f5;
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px;
  width: 100%;
}

.menu-nombre {
  background-color: black;
  color: white;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 10px;
}

nav {
  width: 100%;
  max-width: 1200px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  list-style: none;
  text-transform: capitalize;
}

.nav-links li a {
  text-decoration: none;
  color: black;
  font-weight: bold;
  position: relative;
  transition: color 0.3s ease;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background-color: black;
}

/* Icono hamburguesa */
.hamburguesa {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-top: 10px;
}

.hamburguesa span {
  height: 3px;
  width: 25px;
  background: black;
  margin: 4px 0;
  border-radius: 2px;
}

/* Secciones */
section {
  width: 100%;
  padding: 60px 20px;
  box-sizing: border-box;
}

#inicio {
  padding: 0 !important;
  margin: 0 !important;
  height: 0;
}
#biografia { background-color: #f5f5f5; }
#novelas {
  background-color: white;
  padding: 20px 20px 40px;
}
#resenas { background-color: #f5f5f5; }
#galeria { background-color: white; }
#contacto { background-color: #f5f5f5; }

/* Swiper carrusel */
.swiper-container {
  width: 100%;
  overflow: hidden;
}
.swiper-container.swiper-novelas {
  position: relative;
}

.swiper-pagination-novelas {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  z-index: 10;
  text-align: center;
}

.swiper-pagination-novelas .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0 4px;
  background-color: black;
  opacity: 0.5;
}

.swiper-pagination-novelas .swiper-pagination-bullet-active {
  opacity: 1;
}

.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 40px 0;
  flex-shrink: 0;
}

.slide-content {
  display: flex;
  flex-direction: row;
  gap: 30px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  align-items: center;
}

/* Columnas novelas */
.col-left, .col-right {
  flex: 1 1 45%;
}

.col-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.col-right img {
  width: 280px;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.texto-novela {
  max-width: 480px;
  margin: 0 auto;
  text-align: justify;
}

.col-left h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.col-left .intro {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 10px;
  color: #333;
}

.botones {
  margin: 15px 0;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: start;
}

.btn {
  background-color: black;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: red;
}

.sinopsis {
  margin-top: 15px;
  max-width: 100%;
  text-align: justify;
  line-height: 1.6;
}

.oculto {
  display: none;
}

/* Swiper puntos */
.swiper-pagination {
  margin-top: 20px;
}

.swiper-pagination-bullet {
  background-color: black;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

/* Responsive novelas */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 10px;
    background-color: #f5f5f5;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburguesa {
    display: flex;
  }

  .slide-content {
    flex-direction: column;
    gap: 20px;
  }

  .col-left, .col-right {
    flex: 1 1 100%;
  }

  .col-right {
    order: -1;
    max-width: 100%;
  }

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

  .col-left {
    text-align: center;
  }

  .botones {
    justify-content: center;
  }

  .texto-novela {
    max-width: 90%;
    text-align: left;
  }
}

/* Biografía */
.bio-seccion {
  background-color: #f5f5f5;
  padding: 60px 20px;
}

.bio-contenedor {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.bio-imagen img {
  width: 300px;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.bio-texto {
  flex: 1;
  max-width: 700px;
}

.bio-texto h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.bio-texto p {
  margin-bottom: 15px;
  line-height: 1.6;
  text-align: justify;
}

.firma {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 10px;
}

.firma img {
  height: 50px;
  object-fit: contain;
}

.firma span {
  font-style: italic;
  color: #555;
}

@media (max-width: 768px) {
  .bio-contenedor {
    flex-direction: column;
    text-align: center;
  }

  .bio-texto {
    max-width: 100%;
  }

  .bio-imagen img {
    width: 100%;
    max-width: 300px;
    height: auto;
  }

  .firma {
    align-items: center;
  }
}

/* Reseñas */
.resenas-seccion {
  background-color: #f5f5f5;
  padding: 60px 20px;
}

.titulo-seccion {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

.redes-sociales {
  text-align: center;
  margin-bottom: 40px;
}

.iconos-redes {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 10px;
}

.iconos-redes img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.iconos-redes img:hover {
  transform: scale(1.2);
}

.swiper-resenas .swiper-slide {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.resena-card {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  flex: 1 1 calc(33.333% - 20px);
  min-width: 250px;
  max-width: 350px;
}

.resena-card p {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 10px;
}

.resena-card span {
  font-size: 0.9rem;
  color: #666;
}
@media (max-width: 768px) {
  .swiper-resenas .swiper-slide {
    flex-direction: column;
    align-items: center;
  }

  .resena-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  /* SOLO los bullets del carrusel de novelas */
  .swiper-pagination-novelas {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }

  .swiper-pagination-novelas .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: black;
    opacity: 0.5;
  }

  .swiper-pagination-novelas .swiper-pagination-bullet-active {
    opacity: 1;
  }
}



/* Galería */
.galeria-seccion {
  background-color: white;
  padding: 60px 20px;
}

.galeria-seccion .titulo-seccion {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.galeria-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.galeria-grid img:hover {
  transform: scale(1.03);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 10000;
  display: none; /* ✅ oculto por defecto */
}

.lightbox:not(.oculto) {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.5);
}

.lightbox .cerrar {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.lightbox .cerrar:hover {
  transform: scale(1.2);
}

#contacto {
  background-color: #f5f5f5;
  padding: 60px 20px;
}

.formulario-contacto {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.formulario-contacto label {
  font-weight: bold;
}

.formulario-contacto input,
.formulario-contacto textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.formulario-contacto .btn {
  width: fit-content;
  align-self: flex-start;
}

.respuesta {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  font-weight: bold;
}

.respuesta.exito {
  background-color: #dff0d8;
  color: #3c763d;
  border: 1px solid #3c763d;
}

.respuesta.error {
  background-color: #f2dede;
  color: #a94442;
  border: 1px solid #a94442;
}
.footer-legal {
  background-color: #f0f0f0;
  padding: 20px 10px;
  font-size: 0.85rem;
  text-align: center;
  color: #333;
}

.footer-contenido {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-enlaces {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-enlaces a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-enlaces a:hover {
  color: black;
}
.swiper-pagination-bullet {
  background-color: black !important;
  opacity: 0.3 !important;
}

.swiper-pagination-bullet-active {
  background-color: black !important;
  opacity: 1 !important;
}

.swiper-container.swiper-novelas {
  margin-bottom: 20px;
  padding-bottom: 0;
}
