/* ============================================
   COMPONENTE toastAtencion - Estilos Encapsulados
   ============================================ */

/* Botón flotante del asesor */
.contenedor-asesor {
  position: fixed;
  bottom: 60px;
  right: 19px;
  border-radius: 50%;
  border: 2px solid #f28f32;
  padding: 10px;
  width: 85px;
  height: 85px;
  cursor: pointer;
  z-index: 100;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contenedor-asesor:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(242, 143, 50, 0.4);
}

.contenedor-asesor img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

/* Contenedor principal del toast */
.contenedorAtencion {
  display: none;
  background-color: #f8f5ff;
  border-radius: 10px;
  height: auto;
  position: fixed;
  right: 110px;
  bottom: 114px;
  width: 350px;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.75) !important;
  z-index: 99;
  overflow: hidden;
}

/* Header del toast con botón cerrar */
.contenedorAtencion .close {
  align-items: center;
  cursor: pointer;
  display: flex;
  height: 60px;
  justify-content: space-between;
  margin: 0;
  padding: 0 18px 0 20px;
  background-color: #f8f5ff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.contenedorAtencion .closeText {
  font-weight: bold;
  font-size: 18px;
  color: #4e4d51;
  margin: 0;
  flex: 1;
}

.contenedorAtencion .contenedorAtencionIconoClose {
  font-size: 20px;
  color: #4e4d51;
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.contenedorAtencion .contenedorAtencionIconoClose:hover {
  color: #e09331;
  transform: rotate(90deg);
}

/* Items del menú */
.contenedorAtencion .contenedorAtencionItem {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 17px;
  padding: 15px 30px 15px 20px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.contenedorAtencion .contenedorAtencionItem:last-child {
  border-bottom: none;
}

.contenedorAtencion .contenedorAtencionItem a {
  display: flex;
  align-items: center;
  gap: 17px;
  text-decoration: none;
  color: #000000;
  width: 100%;
  justify-content: space-between;
}

.contenedorAtencion .contenedorAtencionItem p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #000000;
  transition: color 0.3s ease;
  flex: 1;
  text-align: left;
}

/* Estilos específicos para las imágenes SOLO dentro del toast */
.contenedorAtencion .contenedorAtencionItem img {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  object-fit: contain;
}

.contenedorAtencion .contenedorAtencionItem:hover {
  background-color: #e09331;
  transform: translateX(-3px);
}

.contenedorAtencion .contenedorAtencionItem:hover p,
.contenedorAtencion .contenedorAtencionItem:hover a {
  color: #ffffff !important;
}

.contenedorAtencion .contenedorAtencionItem:hover img {
  transform: scale(1.1);
}

.contenedorAtencion .contenedorAtencionItem:first-of-type {
  border-radius: 0;
}

.contenedorAtencion .contenedorAtencionItem:last-of-type {
  border-radius: 0 0 8px 8px;
}

/* Responsive - Mobile */
@media (max-width: 576px) {
  .contenedorAtencion {
    transform: translate(-50%, 0) !important;
    left: 50% !important;
    right: auto !important;
    bottom: 100px !important;
    width: 90% !important;
    max-width: 350px;
  }

  .contenedor-asesor {
    right: 50%;
    transform: translateX(50%);
    bottom: 20px;
  }

  .contenedorAtencion .closeText {
    font-size: 16px;
  }

  .contenedorAtencion .contenedorAtencionItem {
    padding: 12px 20px 12px 15px;
  }

  .contenedorAtencion .contenedorAtencionItem p {
    font-size: 14px;
  }
}

/* Responsive - Tablet */
@media (min-width: 577px) and (max-width: 768px) {
  .contenedorAtencion {
    right: 20px;
    bottom: 100px;
    width: 320px;
  }

  .contenedor-asesor {
    right: 20px;
    bottom: 20px;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contenedorAtencion.animate__animated.animate__fadeIn {
  animation: fadeIn 0.3s ease-out;
}
