/* Estilos globales */
body {
  background: linear-gradient(135deg, #fce4ec, #ffffff);
  /* Fondo en tonos rosados y blancos */
  color: #4a2c3a;
  /* Color oscuro para mejor legibilidad */
  margin: 0;
  font-family: 'Playfair Display', serif;
  /* Tipografía elegante para fotografía */
}

/* Importar Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

.navbar {
  background-color: #f8bbd0;
  /* Color rosado suave para la barra de navegación */
  /* Fondo negro */
  padding: 1rem;
}

.navbar-brand img.logo {
  width: 100px;
  /* Tamaño del logo ajustable */
  height: auto;
}

.nav-link {
  color: #4a2c3a;
  font-weight: bold;
  text-transform: uppercase;
  font-family: 'Playfair Display', serif;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #d3ad7f;
  /* Color dorado al hacer hover */
}

.navbar-nav {
  display: flex;
  align-items: center;
}

.navbar-toggler {
  background-color: #fff;
  /* Botón para pantallas pequeñas */
}

/* Carrusel */
.carousel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.carousel-container {
  max-height: 500px;
  /* Limitar altura */
  overflow: hidden;
  /* Para evitar desbordamientos */
}

.carousel-caption h5,
.carousel-caption p {
  font-family: 'Playfair Display', serif;
  font-weight: bold;
  color: #ffffff;
}

/* SECCION SOBRE MI*/

#about {
  background-color: #ffffff;
  padding: 15px 0;
  text-align: center;
}

#about h2,
#about p {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.6;
}

/*ALBUMES*/

#albumes {
  background-color: #fce4ec;
  padding: 15px 0;
}

#albumes h2 {
  font-family: 'Playfair Display', serif;
}

#albumes .event-card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
}

#albumes .event-card:hover {
  transform: scale(1.05);
}

#albumes .card-body {
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#albumes .card-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

#albumes .card-text {
  font-size: 1rem;
  margin-bottom: 20px;
}

#albumes .event-card .card-img-top {
  height: 290px;
  width: 100%;
  /* ✅ corregido */
  object-fit: cover;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

/* Navbar fix: eliminar forzado display:block */
.navbar-collapse {
  display: none;
  /* Bootstrap manejará la visibilidad */
}

/*TRABAJO*/

#trabajo {
  background-color: #1e1e1e;
}

#trabajo h2 {
  font-family: 'Playfair Display', serif;
  font-weight: bold;
  color: #fff;
}

/* Carrusel de videos - corregido */
#trabajo .carousel-inner video {
  width: 100%;
  height: 500px;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
  display: block;
  margin: 0 auto;
}

#trabajo .carousel-inner {
  width: 100%;
}

#trabajo .carousel {
  max-width: 100%;
  margin: 0 auto;
}

/* Controles del carrusel */
#trabajo .carousel-control-prev,
#trabajo .carousel-control-next {
  width: 5%;
}

/* === NUEVA SECCIÓN BOOKS === */

#books {
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
}

#books h2 {
  font-family: 'Playfair Display', serif;
  font-weight: bold;
  color: #4a2c3a;
}

/* Imágenes de la sección Books */

#books .img-book {
  width: 100%;
  height: auto;
  /* 🔥 IMPORTANTE: para que no se deformen */
  object-fit: cover;
  /* Ajusta bien sin deformar para miniaturas */
  border-radius: 12px;
  transition: transform 0.4s ease;
  cursor: pointer;
  display: block;
  margin: 0 auto;
}

#books .img-book:hover {
  transform: scale(1.05);
}

#books p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #4a2c3a;
}

/* Imágenes dentro de los modals de Books */

#books .modal-body img,
#books .modal-content img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  /* 🔥 No ocupa más del 80% de altura de la pantalla */
  object-fit: contain;
  /* 🔥 Para mostrar toda la foto sin recortar ni deformar */
  display: block;
  margin: 0 auto;
}

/* FOTOGRAFO */

#fotografo {
  background-color: #ffffff;
  padding: 15px 0;
  text-align: center;
}

#fotografo h2,
#fotografo p {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.6;
}

/*GALERIA*/

#gallery {
  background-color: #f8bbd0;
  padding: 15px 0;
}

#gallery h2 {
  color: #4a2c3a;
  font-family: 'Playfair Display', serif;
}

#gallery img {
  width: 100%;
  height: auto;
  max-width: 700px;
  object-fit: cover;
  aspect-ratio: 4/3;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

#gallery .img-fluid:hover {
  transform: scale(1.05);
}

.testimonial-wrapper {
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
  padding: 30px 20px;
  border-radius: 0;
}

.testimonial-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #4a2c3a;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.testimonial-title::after {
  content: "✦";
  position: absolute;
  left: 50%;
  bottom: -15px;
  transform: translateX(-50%);
  font-size: 1.2rem;
}

.testimonial-card {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 20px;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  border-color: #f8bbd0;
}

.testimonial-card h5 {
  font-weight: bold;
  color: #d81b60;
  margin-bottom: 5px;
}

.testimonial-card small {
  color: #6b6b6b;
  display: block;
  margin-bottom: 10px;
}

.testimonial-card p {
  color: #444;
  font-style: italic;
  min-height: 60px;
  margin-bottom: 10px;
}

.testimonial-card .stars {
  color: #ffc107;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.testimonial-card .read-more {
  color: #d81b60;
  font-weight: 500;
  text-decoration: none;
}

.testimonial-card .read-more:hover {
  text-decoration: underline;
}

.testimonial-card.expanded {
  transition: all 0.3s ease-in-out;
  height: auto;
}

.full-text {
  display: none;
}

.full-text.expanded {
  display: block;
}

/* Botones SOLO para testimoniales */
#testimonials .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;
  padding: 10px 15px;
  z-index: 20;
}

#testimonials #prevBtn {
  left: 15px;
}

#testimonials #nextBtn {
  right: 15px;
}


.footer {
  background-color: #000;
  color: #ffffff;
  text-align: center;
  padding: 30px 10px;
  font-family: 'Playfair Display', serif;
}

.footer a {
  color: #f8bbd0;
}

.footer h2 {
  font-weight: bold;
  margin-bottom: 20px;
}

.footer .provider {
  margin: 20px 0 10px;
  font-weight: bold;
}

.footer .logos img {
  width: 80px;
  margin: 10px;
}

.footer .nav-links {
  margin: 20px 0;
}

.footer .nav-links a {
  color: #c97d49;
  text-decoration: none;
  margin: 0 10px;
}

.footer .social-links {
  margin: 20px 0;
}

.footer .social-links a {
  display: inline-block;
  margin: 10px;
  color: #fff;
  text-decoration: none;
}

.footer .social-links img {
  width: 45px;
  height: 45px;
  vertical-align: middle;
  margin-right: 5px;
}

.footer .copyright {
  margin-top: 20px;
  font-size: 25px;
}

/* === RESPONSIVE === */

/* Tablets y menores */
@media (max-width: 992px) {
  .navbar-collapse {
    display: none;
  }

  .nav-link {
    font-size: 1rem;
  }

  .carousel-caption h5 {
    font-size: 1.5rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .testimonial-card {
    margin: 10px 0;
  }
}

/* Celulares horizontales */
@media screen and (max-height: 500px) and (orientation: landscape) {

  html,
  body {
    overflow-x: hidden;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 0.3rem;
  }

  .carousel-item img,
  .carousel-item video,
  #trabajo .carousel-inner video {
    max-height: 60vh;
    object-fit: cover;
  }

  #books .img-book {
    max-height: 40vh;
    object-fit: cover;
  }

  .testimonial-card {
    padding: 15px;
    min-height: 200px;
  }
}

/* Celulares medianos */
@media (max-width: 768px) {
  .nav-link {
    font-size: 0.9rem;
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  #gallery img {
    max-width: 100%;
  }

  .testimonial-card {
    padding: 15px;
  }
}

/* Celulares pequeños */
@media (max-width: 576px) {
  .nav-link {
    font-size: 0.8rem;
  }

  h2 {
    font-size: clamp(1.2rem, 7vw, 1.8rem);
  }

  .testimonial-card {
    padding: 12px;
    min-height: auto;
  }

  .footer h2 {
    font-size: 1.3rem;
  }

  .footer .logos img,
  .footer .social-links img {
    width: 35px;
    height: 35px;
  }
}

/* Pantallas muy grandes (TVs, 4K) */
@media (min-width: 1600px) {
  body {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 3rem;
  }

  .testimonial-card {
    max-width: 500px;
    margin: 20px auto;
  }
}