
:root {
  --bg: white;
  --text: black;
}
body.dark {
  --bg: #121212;
  --text: #f1f1f1;
}
body {
  margin: 0;
  font-family: sans-serif;
  background-color: #fefaf6;
  color: var(--text);
  transition: all 0.3s;
  background-image: url('fondo-cartoon.png.png');
  background-repeat: repeat;
  background-size: 300px;
  background-attachment: fixed;
  background-position: center;
}
body.dark {
  background-color: #1a1a1a;
  background-image: url('fondo-cartoon.png.png');
  background-repeat: repeat;
  background-size: 300px;
  background-attachment: fixed;
  background-position: center;
}
header {
  background: #070707;
  color: white;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
header h1 {
  text-align: center;
  margin: 0;
}
#toggle-theme {
  background: none;
  border: 2px solid white;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
}
.carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  max-height: 70vh;
}
.slides {
  width: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.slide {
  display: none;
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
}
.slide.active {
  display: block;
}
.services, .testimonial, .contact {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(2px);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem;
  color: var(--text);
}
body.dark .services,
body.dark .testimonial,
body.dark .contact {
  background-color: rgba(18, 18, 18, 0.85);
}
.testimonial-img {
  max-width: 60%;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  margin-top: 1rem;
}
.caption {
  margin-top: 1rem;
  font-style: italic;
  color: var(--text);
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.btn {
  padding: 1rem 2rem;
  text-decoration: none;
  color: white;
  border-radius: 10px;
  font-weight: bold;
}
.whatsapp { background-color: #25D366; }
.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.facebook { background-color: #3b5998; }
.email { background-color: #6c757d; }

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: center;
  }
  #toggle-theme {
    position: static;
    margin-top: 0.5rem;
  }
}

/* NUEVOS ESTILOS PARA COLUMNAS EN PC */
.section-content {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.section-content .image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
@media (min-width: 800px) {
  .section-content {
    flex-direction: row;
  }
  .section-content .text,
  .section-content .image {
    flex: 1;
  }
}

/* Imagen de testimonio más pequeña */
.testimonial-img.small {
  max-width: 40%;
}

.floating-buttons {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 10000;
}
.circle-btn {
  width: 50px;
  height: 50px;
  background-color: #444;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}
.circle-btn:hover {
  transform: scale(1.1);
}
.circle-btn.whatsapp { background-color: #25D366; }
.circle-btn.instagram { background-color: #e1306c; }
.circle-btn.facebook { background-color: #3b5998; }
.circle-btn.email { background-color: #6c757d; }

.only-mobile {
  display: block;
}
.only-desktop {
  display: none;
}
@media (min-width: 800px) {
  .only-mobile {
    display: none;
  }
  .only-desktop {
    display: block;
  }
}

/* Carrusel en móvil ocupa todo el ancho pero altura limitada */
.only-mobile .carousel,
.only-mobile .slides,
.only-mobile .slide {
  width: 100vw;
  max-height: 50vh;
  object-fit: cover;
}

/* Aseguramos que los íconos flotantes estén por encima */
.floating-buttons {
  z-index: 9999;
}


footer {
  background-color: #222;
  color: #eee;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  margin-top: 2rem;
}

body.dark footer {
  background-color: #111;
  color: #ccc;
}

.footer-content p {
  margin: 0.2rem 0;
}


.testimonial-carousel {
  position: relative;
  max-width: 700px;
  margin: 2rem auto;
  padding: 1rem;
  background-color: rgba(255,255,255,0.9);
  border-radius: 12px;
  text-align: center;
  overflow: hidden;
}

body.dark .testimonial-carousel {
  background-color: rgba(18,18,18,0.85);
}

.testimonial-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.5s;
}

.testimonial-slide.active {
  display: flex;
}

.testimonial-slide img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.testimonial-carousel .caption {
  font-style: italic;
  color: var(--text);
}

.testimonial-prev,
.testimonial-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #444;
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.2rem 0.8rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background: #222;
}

.testimonial-prev {
  left: 10px;
}

.testimonial-next {
  right: 10px;
}


.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.lightbox.hidden {
  display: none;
}

.lightbox-content {
  position: relative;
  text-align: center;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.lightbox .caption {
  color: white;
  font-style: italic;
  margin-top: 1rem;
  padding: 0 1rem;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 0.9rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0,0,0,0.9);
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

#lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 1.5rem;
  color: white;
  background: #222;
  padding: 0.3rem 0.6rem;
  border-radius: 50%;
  cursor: pointer;
}


@media (max-width: 600px) {
  .lightbox-content img {
    max-height: 50vh;
  }

  .lightbox .caption {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 1.5rem;
    padding: 0.4rem 0.7rem;
    top: 45%;
  }

  .lightbox-prev {
    left: 5px;
  }

  .lightbox-next {
    right: 5px;
  }

  #lightbox-close {
    top: 5px;
    right: 10px;
    font-size: 1.2rem;
  }
}

.testimonial-video {
  margin: 1.5rem auto;
  max-width: 700px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.testimonial-video video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}


body.dark .testimonial-video {
  background-color: rgba(18, 18, 18, 0.85);
}

.testimonial-video {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  border-radius: 12px;
  margin: 1.5rem auto;
  max-width: 700px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}