/* Widgets flotantes (reservar + chat WhatsApp) — extraído literal de /assets/css/main.css (líneas 782-1176)
   para que las propuestas de lujo no carguen main.css. Cada propuesta puede sobrescribir colores/formas en su CSS. */


/* ============================= */
/* BOTÓN DE reservar */
/* ============================= */
@keyframes tooltipPop {
  0%   { opacity: 0; transform: translateX(15px) scale(0.5); }
  60%  { opacity: 1; transform: translateX(-3px) scale(1.05); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
#reservar-button {
  position: fixed;
  bottom: 20px;
  right: 80px;
  background: linear-gradient(90deg, #1b395b, black);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 30px;
  z-index: 500;
  font-size: 16px;
  font-family: M-Bold;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}
#reservar-button span {
    font-size: 28px;
}

/* ============================= */
/* TOOLTIP CON FLECHA Y ANIMACIÓN */
/* ============================= */


#reservar-tooltip {
  position: fixed;
  bottom: 33px;
  right: 140px;
  background: #ffffff;
  color: black;
  padding: 2px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  z-index: 1000;
  opacity: 0;
  transform: translateX(10px) scale(0.9);
  pointer-events: none;
}

#reservar-tooltip::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 4px;
  width: 0;
  height: 0;
  border-left: 10px solid #ffffff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  filter: drop-shadow(2px 0 2px rgba(0,0,0,0.15));
}

#reservar-tooltip.show {
  animation: tooltipPop 0.45s ease forwards;
}
/* ============================= */
/* reservar POPUP */
/* ============================= */
@keyframes reservarSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cita-popup {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 340px;
  max-height: 500px;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  z-index: 999;
  display: none;
  flex-direction: column;
  overflow: auto;
}

.cita-popup.open {
  display: flex;
  animation: reservarSlideUp 0.25s ease;
}


.cita-header {
  background: #000000;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

#cita-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}
#cita-close:hover {
  transform: scale(1.1);
}
.cita-body{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap:20px;
    padding:20px;
}

.popup-button{
    text-decoration: none;
    background-color:transparent;
    color:black;
    font-family: M-Bold;
    padding: 10px 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom:1px solid rgba(0,0,0,0.3);
    gap: 10px;
    transition: all 0.3s ease;
}
.popup-button:hover{
    background-color: black;
    color: white;
    box-shadow: 0 8px 20px rgba(34, 50,68, 0.25);
}
.popup-button:hover span{
    color: white !important;
}
/* ============================= */
/* BOTÓN DE WHATSAPP */
/* ============================= */
#whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(90deg, #25D366, #128C7E);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  z-index: 1000;
  font-size: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}
#whatsapp-button:hover {
  transform: scale(1.1);
}


/* ============================= */
/* CHAT POPUP */
/* ============================= */
@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-popup {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 340px;
  max-height: 70vh;
  background: #ece5dd;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  z-index: 999;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-popup.open {
  display: flex;
  animation: chatSlideUp 0.25s ease;
}

/* Responsive móvil (popup más grande pero no fullscreen) */
@media (max-width: 600px) {
  .chat-popup {
    width: 95%;
    right: 2.5%;
    bottom: 90px;
    height: 50vh;
  }
}

/* ============================= */
/* CABECERA */
/* ============================= */
.chat-header {
  background: #075E54;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  color: #fff;
}

.chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.chat-info {
  margin-left: 10px;
  flex: 1;
}

.chat-name {
  font-size: 16px;
  font-weight: 700;
}

.chat-status {
  font-size: 11px;
  color: #c6e8e0;
}

#chat-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}
#chat-close:hover {
  transform: scale(1.1);
}

/* ============================= */
/* CUERPO DEL CHAT */
/* ============================= */
.chat-body {
  background: #e5ddd5;
  padding: 12px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Burbujas */
.chat-bubble {
  max-width: 80%;
  padding: 9px 13px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: #222;
}

.chat-bubble.bot {
  background: #ffffff;
  border-top-left-radius: 0;
}

.chat-bubble.user {
  background: #dcf8c6;
  align-self: flex-end;
  border-top-right-radius: 0;
}

/* Typing indicator */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  max-width: 80%;
  padding: 7px 11px;
  border-radius: 10px;
  background: #ffffff;
  border-top-left-radius: 0;
  font-size: 12px;
  color: #555;
}

.chat-typing .typing-text {
  margin-right: 4px;
}

.chat-typing .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #888;
  display: inline-block;
  animation: typingDots 1s infinite ease-in-out;
}
.chat-typing .dot:nth-child(2) { animation-delay: 0.15s; }
.chat-typing .dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingDots {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-3px); opacity: 1; }
}

/* ============================= */
/* FOOTER */
/* ============================= */
.chat-footer {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: #f0f0f0;
  border-top: 1px solid #ddd;
  gap: 8px;
}

#chat-message {
  flex: 1;
  width: auto !important;
  background: #fff;
  color: #222;
  border: none;
  border-radius: 20px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.4;
  min-height: 38px;
  max-height: 80px;
  resize: none !important;
  overflow-y: hidden; /* auto-ajuste por JS */
  outline: none;
  box-sizing: border-box;
}
#chat-message::placeholder {
  color: #888;
}

/* Botón enviar */
#chat-send {
  background: #075E54;
  border: none;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
#chat-send:hover {
  background: #064c43;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
#chat-send:active {
  transform: translateY(0);
  box-shadow: none;
}
