@import url("./Styles-general.css");



/*BURBUJA DE BUSQUEDA*/
/* Contenedor de la burbuja y mensaje */
.floating-container {
  position: fixed;
  left: 30px;
  bottom: 35px;
  display: flex;
  align-items: center;
  z-index: 1000;
}

/* Burbuja flotante */
.floating-bubble {
  width: 60px;
  height: 60px;
  background-color: #000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #0099cf;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: none;
}

.floating-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.brands-menu-header {
  position: sticky;
  top: -15px;
  background: white;
  /* Para que no se vea lo que está debajo al hacer scroll */
  padding-bottom: 10px;
  z-index: 1;
  /* Asegura que quede encima de los botones al hacer scroll */
}


.brands-menu {
  position: fixed;
  left: 30px;
  bottom: 105px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 15px;
  width: 260px;
  /* Ancho fijo */
  height: 400px;
  /* Alto fijo */
  overflow-y: auto;
  display: none;
  flex-direction: column;
  z-index: 999;
  resize: both;
  /* Opcional: permite redimensionar manualmente */
  cursor: grab;
  /* Cursor visual para indicar que se puede mover */
}


/* Mostrar el menú */
.brands-menu.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Mensaje de la burbuja */
.bubble-message {
  margin-left: 15px;
  background-color: #333;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.brands-menu {
  position: fixed;
  left: 30px;
  bottom: 105px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 15px;
  width: 290px;
  /* Ancho fijo */
  height: 295px;
  /* Alto fijo */
  overflow-y: auto;
  display: none;
  flex-direction: column;
  z-index: 999;
  resize: both;
  /* Opcional: permite redimensionar manualmente */
  cursor: grab;
  /* Cursor visual para indicar que se puede mover */
}


/* Mostrar el menú */
.brands-menu.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Botones de marcas */
.brand-button {
  padding: 10px 15px;
  margin: 5px 0;
  background-color: #f0f0f0;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s;
}

.brand-button:hover {
  background-color: #000;
  color: #0099cf;
}

/* Barra de búsqueda */
.search-box {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
}

/* Lista de accesorios */
.accessory-list {
  display: none;
  flex-direction: column;
  margin-left: 15px;
  border-left: 2px solid #00618A;
  padding-left: 10px;
}

.accessory-list.show {
  display: flex;
}

/* Botón para cerrar */
.close-button {
  background: transparent;
  border: none;
  font-size: 20px;
  color: #333;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.close-button:hover {
  color: red;
}

/* Título del menú */
.menu-title {
  margin: 5px 0 10px 0;
  font-size: 16px;
  font-weight: bold;
  color: #00618A;
  text-align: center;
}

/* Ocultar mensaje */
.message-hidden {
  opacity: 0;
  pointer-events: none;
}


.accessory-button {
  padding: 6px 10px;
  background-color: #f0f0f0;
  border: none;
  text-align: left;
  cursor: pointer;
  margin-bottom: 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.accessory-button:hover {
  background-color: #ddd;
}

.highlighted {
  outline: 4px solid #007bff;
  outline-offset: 4px;
  border-radius: 8px;
  animation: fadeHighlight 2s ease-in-out;
}

@keyframes fadeHighlight {
  0% {
    outline-color: #007bff;
  }

  100% {
    outline-color: transparent;
  }
}


.burbuja-inicio {
  position: fixed;
  bottom: 110px;
  right: 30px;
  background-color: #000;
  color: white;
  padding: 12px 12px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease;
}

.burbuja-inicio:hover {
  background-color: #000;
  color: #0099cf;
  transform: scale(1.1);
}

/* Estilo base */
.logo-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  font-family: 'Arial', sans-serif;
}

.logo-container {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.logo-logo img {
  width: 60px;
  height: 60px;
  transition: all 0.3s ease;
  border: 2px solid #000; /* Borde negro de 2px */
  border-radius: 8px;      /* Esquinas redondeadas (opcional) */
}

/* Globo de texto - Visible inicialmente */
.speech-bubble {
  position: absolute;
  right: 70px;
  background: white;
  padding: 10px 15px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  line-height: 1.4;
  width: max-content;
  max-width: 180px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.speech-bubble:after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid white;
}

/* Menú de opciones */
.contact-options {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 180px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.contact-option {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
}

.contact-option:hover {
  background: #f5f5f5;
  transform: translateX(-5px);
}

.contact-option img {
  width: 28px;
  height: 28px;
  margin-right: 12px;
  object-fit: contain;
}

.whatsapp-option {
  color: #075E54;
}

.facebook-option {
  color: #1877F2;
}

.instagram-option {
  color: #E4405F;
  /* Color oficial de Instagram */
}

.tiktok-option {
  color: #010101;
  /* TikTok usa un negro casi puro */
}

/* Estados interactivos */
.logo-container:hover .logo-logo img {
  transform: scale(1.1);
}

.logo-container.active .contact-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.logo-container.active .speech-bubble {
  opacity: 0;
  /* Oculta el mensaje al activar */
}

.logo-container.active .logo-logo img {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .logo-float {
    bottom: 20px;
    right: 20px;
  }

  .logo-logo img {
    width: 50px;
    height: 50px;
  }

  .speech-bubble {
    font-size: 13px;
    right: 60px;
    max-width: 150px;
    padding: 8px 12px;
  }

  .contact-options {
    width: 160px;
    bottom: 70px;
  }
}










.carousel-indicators [data-bs-target] {
  background-color: #ff9c17 !important;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
  background-color: #ff9c17 !important;
}

.div-transparent:before {
  background-image: linear-gradient(
    to right,
    transparent,
    #ffbc62,
    transparent
  );
}

/* === Secciones === */
.examen {
  margin-top: 90px;

  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    black 0%,
    black 99%,
    transparent
  );
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 0%,
    black 99%,
    transparent
  );
  background-repeat: no-repeat;
  background-size: cover;
  padding: 40px 0;
}

.examen-container {
  align-items: flex-start;
  display: flex;
  justify-content: space-evenly;
  gap: 50px;
}

.examen-item {
  margin-top: 20px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

.examen-box h2 {
  text-align: left;
  font-size: 32px;
}

.examen-box .paragraph {
  margin: 20px 0 0;
}

.examen-item p {
  padding: 10px;
  background-color: #ffbc62;
  border-radius: 16px;
  font-size: 16px;
  text-align: left;
  color: #000;
}

.img {
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  width: 100%;
  margin: 0 auto;
}

/* === Servicios === */
.servicio {

  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    black 1%,
    black 99%,
    transparent
  );
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 1%,
    black 99%,
    transparent
  );
  background-repeat: no-repeat;
  background-size: cover;
  padding: 40px 0;
}

.servicio-section h2:first-of-type {
  text-align: initial;
}

.servicio-section .subtitulo {
  font-size: 26px;
  margin: 10px 0 0;
  text-transform: none;
}

.servicio-box {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 40px;
}

.servicio-item {
  background-color: #fff;
  padding: 20px;
  border-radius: 24px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 350px;
  margin: 0 auto;
}

.servicio-content h3 {
  color: #ff6500;
  font-size: 20px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.1);
  min-height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.servicio-text {
  display: flex;
  flex-direction: column;
}

.servicio-text p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 8px 0 0;
}

.servicio-text.expanded p {
  -webkit-line-clamp: 9999; /* Mostrar todo el contenido */
  overflow: visible;
}

.toggle-btn {
  background: none;
  border: none;
  color: #ff6500;
  cursor: pointer;
  font-weight: bold;
  text-decoration: underline;
  padding: 10px 0;
}

/* Estilos base para todos los contenedores de imágenes */
.image-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 12px;
}
.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  border-radius: 12px;
}

/*ANIMACION NUEVA */

.fade-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  border-radius: 12px;
  z-index: 1;
}

.fade-img.img-visible {
  opacity: 1;
  z-index: 2;
}



/* Animación compartida */
@keyframes fadeSlide {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  5% {
    opacity: 1;
    transform: translateX(0);
  }
  45% {
    opacity: 1;
    transform: translateX(0);
  }
  55% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 0;
    transform: translateX(-20px);
  }
}




/* Animaciones específicas para cada servicio-item */

.servicio-item:nth-child(1) .img1,
.servicio-item:nth-child(1) .img2 {
  animation-duration: 8s;
}
.servicio-item:nth-child(2) .img1,
.servicio-item:nth-child(2) .img2 {
  animation-duration: 10s;
}


/* Animación común para todos */
@keyframes fadeImages {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  45% {
    opacity: 1;
  }
  55% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.toggle-btn {
  background: none;
  border: none;
  color: #ff6500;
  cursor: pointer;
  font-weight: bold;
  text-decoration: underline;
  padding: 10px 0;
}

/* === images === */

.consultoria {
  margin-bottom: 50px;
}

.consultoria-container h2 {
  font-size: 40px;
}

.consultoria-box {
  display: flex;
  margin-top: 40px;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
}

@media only screen and (max-width: 1024px) {
  .examen-container {
    align-items: center;
    flex-direction: column;
  }
}

@media only screen and (max-width: 640px) {
  .examen {
    margin-top: 80px;
  }

  .examen-container {
    gap: 24px;
  }

  .consultoria-container h2,
  .examen-box h2 {
    font-size: 28px;
    text-align: left;
  }

  .examen-box .paragraph {
    font-size: 16px;
    margin: 12px 0 0;
  }

  .servicio-section .subtitulo {
    font-size: 24px;
    text-align: left;
  }

  .servicio-box {
    margin-top: 20px;
  }

  .consultoria-box {
    margin-top: 20px;
  }
}

@media only screen and (max-width: 480px) {
  .servicio-section .subtitulo {
    font-size: 22px;
    text-align: left;
  }

  .consultoria-container h2,
  .examen-box h2 {
    font-size: 22px;
  }

  .servicio-item {
    max-width: 100%;
  }

  .servicio-item h3 {
    font-size: 16px;
    min-height: 40px;
  }

  .servicio-text p {
    font-size: 16px;
  }
}
