/* =====================================================================
   18 · POP UP (id="popup") + BOTÓN FLOTANTE (id="boton-flotante")
   Base común de los dos pop ups: "Pinta tu taza" (inicio) y
   "Reseña en Google" (carta; sus estrellas están en css/componentes/popup-resena.css).
   El pop up aparece solo a los pocos segundos (tiempo en js/config.js).
   Al cerrarlo queda un botón flotante en la esquina para volver a verlo.
   La lógica está en js/popup.js
   ===================================================================== */

/* Fondo oscuro que cubre toda la pantalla */
.popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: aparecer-fondo .45s ease both;
}
.popup[hidden] { display: none; }

/* La tarjeta del pop up */
.popup__tarjeta {
  position: relative;
  width: 880px;
  max-width: 100%;
  max-height: calc(100vh - 32px);
  overflow: auto;
  display: flex;
  background: var(--tarjeta-2);
  border: 1px solid var(--borde);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
  outline: none;
  animation: entrar-tarjeta .8s cubic-bezier(.2, .9, .25, 1.1) .1s both;
}

/* Lado izquierdo: ilustración */
.popup__ilustracion {
  position: relative;
  flex-shrink: 0;
  width: 360px;
  background: var(--crema);
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup__ilustracion img { width: 260px; height: 260px; }
.popup__nuevo {
  position: absolute; left: 16px; top: 16px;
  padding: 7px 12px;
  background: var(--negro); color: var(--texto);
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
}

/* Lado derecho: texto */
.popup__contenido { flex-grow: 1; padding: 48px; display: flex; flex-direction: column; gap: 16px; }
.popup__titulo { font-size: 52px; line-height: 1; font-weight: 300; letter-spacing: -0.03em; }
.popup__texto { font-size: 16px; line-height: 1.55; color: var(--texto-suave); }

.popup__packs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.popup__packs li { padding: 7px 12px; border: 1px solid var(--borde); font-size: 13px; color: var(--texto-2); }
/* El 3er pack (Brunch Art, "el más completo") va destacado en cobre; el kit queda como los demás */
/* Sin pack destacado (a pedido del cliente): todos los chips iguales */

.popup__desde { font-size: 26px; font-weight: 300; letter-spacing: -0.02em; }
.popup__desde small { font-size: 14px; color: var(--texto-apagado); letter-spacing: 0; }

.popup__boton { width: 100%; margin-top: 4px; }

.popup__ahora-no {
  align-self: center;
  background: none; border: 0; padding: 4px;
  color: #A79D95; font-family: var(--fuente); font-size: 14px;
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}

/* Botón X para cerrar */
.popup__cerrar {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px;
  border-radius: 50%; border: 0;
  background: rgba(20, 17, 16, .85); color: var(--texto);
  font-size: 22px; line-height: 1;
  cursor: pointer;
  transition: transform var(--transicion);
}
.popup__cerrar:hover { transform: rotate(90deg); }


/* ---------- Botón flotante (queda al cerrar el pop up) ---------- */
.boton-flotante {
  position: fixed;
  right: 28px;
  bottom: 76px; /* subido su alto (48px) para no tapar la firma del footer */
  z-index: 90;
  min-height: 48px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cobre);
  color: var(--negro);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  border: 0;                 /* por si es <button> (en la carta) */
  font-family: var(--fuente);
  cursor: pointer;
  animation: entrar-boton .6s cubic-bezier(.2, .9, .25, 1.2) both;
}
.boton-flotante[hidden] { display: none; }
.boton-flotante svg { animation: saludar 4s ease-in-out 1s infinite; }


/* ---------- Tablet y celular ---------- */
@media (max-width: 1024px) {
  .popup__tarjeta { width: 660px; }
  .popup__ilustracion { width: 250px; }
  .popup__ilustracion img { width: 200px; height: 200px; }
  .popup__contenido { padding: 34px; }
  .popup__titulo { font-size: 40px; }
}

@media (max-width: 700px) {
  .popup__tarjeta { flex-direction: column; }
  .popup__ilustracion { width: 100%; height: 200px; }
  .popup__ilustracion img { width: 170px; height: 170px; }
  .popup__contenido { padding: 24px; gap: 12px; }
  .popup__titulo { font-size: 34px; }
  .popup__desde { font-size: 22px; }
  .boton-flotante { right: 16px; bottom: 64px; }
}
