.reserva-futurista {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 280px;
  border-radius: 15px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 25px rgba(255,0,47,0.5), inset 0 0 10px rgba(255,255,255,0.2);
  overflow: hidden;
  z-index: 3000;
  border: 1px solid rgba(255,255,255,0.15);
  font-family: "Poppins", sans-serif;
  transition: width .32s ease, height .32s ease, transform .28s ease, border-radius .28s ease, background .28s ease;
}

/* ---------- Minimizado: solo header visible (pill) ---------- */
.reserva-futurista.minimized {
  width: 220px;            /* ajustado para mantener texto en una línea */
  height: 56px;            /* alto compacto */
  border-radius: 28px;     /* forma pill */
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  background: linear-gradient(90deg,#ff002f,#ff4d6d);
  border: none;
}

/* Ocultamos el body cuando está minimizado (usamos hidden en HTML + display none) */
.reserva-futurista.minimized .reserva-body {
  display: none;
}

/* ---------- Cabecera (visible siempre) ---------- */
.reserva-header {
  background: linear-gradient(90deg,#ff002f,#ff4d6d,#ff002f);
  text-align: center;
  color: #fff;
  padding: 0 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 0 8px #fff;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px rgba(255,0,47,0.4);
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;               /* asegura centrado vertical */
  gap: 8px;
}

/* Forzar una sola línea y escala dinámica de la fuente en minimizado */
.reserva-futurista.minimized .reserva-header .header-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* clamp: tamaño mínimo, preferido relativo a viewport, máximo */
  font-size: clamp(0.78rem, 2.6vw, 0.98rem);
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

/* Mantener icono y texto sin saltos */
.reserva-futurista.minimized .reserva-header .header-text::before {
  margin-right: 6px;
}

/* ---------- Estado expandido ---------- */
.reserva-futurista.open {
  width: 280px;
  height: auto;
  border-radius: 15px;
  background: rgba(255,255,255,0.12);
}

/* Hacer que el body aparezca con transición al abrir */
.reserva-body {
  padding: 16px 14px;
  color: #fff;
  transition: opacity .28s ease, transform .28s ease;
  opacity: 1;
}

/* ---------- Contact card ---------- */
.reserva-contact {
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 10px rgba(255,255,255,0.15);
}

/* Logo */
.reserva-logo {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* ONLINE pulso */
.online-text {
  color: #00ff9d;
  font-size: 0.95rem;
  animation: pulseGlow 1.5s infinite;
  margin-top: 6px;
}

@keyframes pulseGlow {
  0% { text-shadow: 0 0 4px #00ff9d, 0 0 8px #00ff9d; opacity: 1; }
  50% { text-shadow: 0 0 10px #00ff9d, 0 0 20px #00ff9d; opacity: 0.7; }
  100% { text-shadow: 0 0 4px #00ff9d, 0 0 8px #00ff9d; opacity: 1; }
}

/* ---------- Botón WhatsApp ---------- */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(90deg,#00ff88,#00cc66);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 0.95rem;
  text-shadow: 0 0 4px rgba(0,0,0,0.3);
  transition: all .3s ease;
  box-shadow: 0 0 10px rgba(0,255,136,0.4);
  text-decoration: none;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
  background: linear-gradient(90deg,#00cc66,#00ff88);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0,255,136,0.8);
  outline: none;
}

/* ---------- Accesibilidad: foco ---------- */
.reserva-header:focus {
  outline: 3px solid rgba(255,255,255,0.12);
  outline-offset: 2px;
}

/* Ajustes para pantallas pequeñas (móvil) */
@media (max-width: 420px) {
  .reserva-futurista.minimized { right: 14px; bottom: 14px; width: 180px; }
  .reserva-futurista.open { left: 14px; right: 14px; width: auto; bottom: 14px; }
  .reserva-header { font-size: 1rem; padding: 0 10px; }
  .reserva-futurista.minimized .reserva-header .header-text { font-size: clamp(0.7rem, 3.2vw, 0.9rem); }
}
/* Ocultar agenda en pantallas móviles (menos de 768px) */
@media (max-width: 767.98px) {
  #csw-promos,
  #agenda {
    display: none !important;
    visibility: hidden;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}
