/* ===========================
   CONTENEDORES FIJOS
   =========================== */

.button-container {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 10vh;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
}

/* Barra superior con título */
.title-container {
  position: fixed;
  top: 0;
  width: 100%;
  height: 5vh;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #00594f91;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.title-container h5 {
  text-align: center;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 400;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}

/* ===========================
   BOTÓN CENTRAL
   =========================== */

.circle-button {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: transparent;
  /* ⚠️ RUTA CORRECTA: CSS está en /planeacion/css → imágenes en /planeacion/images */
  background-image: url("../images/menu_flotante/01.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.circle-button:hover {
  background-image: url("../images/menu_flotante/02.png");
  width: 100px;
  height: 100px;
  background-size: 80%;
}

/* ===========================
   BOTONES LATERALES (ESCRITORIO)
   =========================== */

.side-button {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background-color: transparent;
  border: none;
  position: absolute;
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.5s ease 0.2s;
  cursor: pointer;
}

.side-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Posición base */
.left {
  right: 50%;
  transform: translateX(50%);
}

.right {
  left: 50%;
  transform: translateX(-50%);
}

/* Hover sobre el contenedor muestra los botones (desktop) */
.button-container:hover .side-button {
  opacity: 1;
  pointer-events: auto;
}

/* Ajuste hover botón central (desktop) */
.button-container:hover .circle-button {
  width: 70px;
  height: 70px;
}

/* Posiciones “desplegadas” (desktop) */
.button-container:hover .left:nth-child(2) {
  transform: translateX(calc(-130%));
}

.button-container:hover .left:nth-child(3) {
  transform: translateX(calc(-270%));
}

.button-container:hover .left:nth-child(4) {
  transform: translateX(calc(-410%));
}

.button-container:hover .right:nth-child(5) {
  transform: translateX(calc(130%));
}

.button-container:hover .right:nth-child(6) {
  transform: translateX(calc(270%));
}

.button-container:hover .right:nth-child(7) {
  transform: translateX(calc(410%));
}

/* ===========================
   VERSIÓN MÓVIL (<= 576px)
   =========================== */

@media (max-width: 576px) {
  .title-container {
    height: 44px;
    padding: 0 10px;
  }

  .title-container h5 {
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .button-container {
    height: auto;
    bottom: 10px;
    padding: 6px 10px;
    justify-content: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    max-width: 360px;
    margin: 0 auto;
    left: 0;
    right: 0;
  }

  /* En móvil los botones son en línea, siempre visibles */
  .button-container .circle-button,
  .button-container .side-button {
    position: static;
    opacity: 1;
    transform: none !important;
    width: 46px;
    height: 46px;
    pointer-events: auto;
  }

  /* Suavizamos el hover en móvil (afecta sólo cuando hay mouse) */
  .button-container:hover .circle-button {
    width: 50px;
    height: 50px;
  }

  .button-container:hover .side-button {
    opacity: 1;
  }
}

/* ===========================
   OPCIONAL: AJUSTE TABLET
   (si quieres mantener el radial solo en desktop grande)
   =========================== */

/* Ejemplo: ocultar en tablets si no se ve bien
@media (min-width: 577px) and (max-width: 991px) {
  .button-container {
    transform: scale(0.9);
    bottom: 5px;
  }
}
*/
