/* ==========================================================
   Luupigo 3.0 - Asistente tipo chat
   Archivo: /srv/apps/luupigo/frontend/public/assets/css/formulario.css

   CORRECCIONES APLICADAS:
   - FIX: eliminadas 2 líneas sueltas inválidas al final del archivo
   - FIX: se mantiene el responsive usando la variable nueva correcta
   - MANTENIDO: estructura visual del asistente sin cambios funcionales
   - ADDED: estilos del popup de éxito (luu-success-overlay, luu-success-card, etc.)
   ========================================================== */

/* ==========================================================
   1) THEME BRIDGE (conecta con variables globales)
   ========================================================== */
:root {
  /* Marca */
  --luu-brand-1: var(--color-brand, #5b67f2);
  --luu-brand-2: #8b5cf6;
  --luu-brand-gradient: var(--color-brand-gradient, linear-gradient(135deg, #5b67f2, #8b5cf6));
  
  /* Fondos y texto */
  --luu-bg: var(--bg-primary, #0f172a);
  --luu-bg-card: var(--bg-secondary, #1e293b);
  --luu-bg-card-light: var(--bg-tertiary, #334155);
  --luu-text: var(--text-primary, #f1f5f9);
  --luu-text-muted: var(--text-light, #94a3b8);
  --luu-border: var(--border-color, #334155);
  --luu-border-light: var(--border-color-light, #475569);
  
  /* Estados */
  --luu-success: var(--color-success, #10b981);
  --luu-warning: var(--color-warning, #f59e0b);
  --luu-error: var(--color-error, #ef4444);
  --luu-info: var(--color-info, #3b82f6);
  
  /* Tipos de animales */
  --luu-lost: var(--color-lost, #ef4444);
  --luu-found: var(--color-found, #10b981);
  --luu-adoption: var(--color-adoption, #8b5cf6);
  
  /* Radios y sombras */
  --luu-radius-xl: var(--radius-3xl, 24px);
  --luu-radius-lg: var(--radius-2xl, 20px);
  --luu-radius-md: var(--radius-xl, 16px);
  --luu-radius-sm: var(--radius-lg, 12px);
  --luu-radius-pill: var(--radius-full, 9999px);
  --luu-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0,0,0,0.1));
  --luu-shadow-lg: var(--shadow-2xl, 0 25px 50px -12px rgba(0,0,0,0.25));
  
  /* Transiciones */
  --luu-transition-fast: var(--transition-fast, 150ms);
  --luu-transition-normal: var(--transition, 250ms);
  --luu-transition-bounce: cubic-bezier(0.34, 1.2, 0.64, 1);
  
  /* Tipografías */
  --luu-font: var(--font-family, system-ui, -apple-system, sans-serif);
  --luu-font-heading: var(--font-family-heading, system-ui);
  
  /* PWA */
  --luu-touch-target: var(--touch-target-min, 44px);
  --luu-safe-top: env(safe-area-inset-top, 0px);
  --luu-safe-bottom: env(safe-area-inset-bottom, 0px);
  --luu-safe-left: env(safe-area-inset-left, 0px);
  --luu-safe-right: env(safe-area-inset-right, 0px);
  
  /* Gradientes derivados */
  --luu-primary-gradient: linear-gradient(135deg, var(--luu-brand-1), var(--luu-brand-2));
  --luu-primary-gradient-hover: linear-gradient(135deg, var(--color-brand-dark, #4c55d4), var(--luu-brand-1) 45%, var(--luu-brand-2));
  
  /* Layout */
  --luu-header-h: 70px;
  --luu-footer-h: 140px;
}

/* ==========================================================
   2) RESET BASE (solo dentro del asistente)
   ========================================================== */
#luupigo-asistente,
#luupigo-asistente * {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body.asistente-abierto {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* ==========================================================
   3) CONTENEDOR PRINCIPAL
   ========================================================== */
#luupigo-asistente {
  position: fixed;
  inset: 0;
  z-index: var(--z-max, 9999);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--luu-font);
  color: var(--luu-text);
  background: color-mix(in srgb, var(--luu-bg) 92%, transparent);
  backdrop-filter: blur(18px);
  animation: luuFadeIn var(--luu-transition-normal) forwards;
}

#luupigo-asistente.oculto {
  display: none !important;
}

@keyframes luuFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@supports (height: 100dvh) {
  #luupigo-asistente { height: 100dvh; }
}

/* ==========================================================
   4) FORMULARIO REAL OCULTO
   ========================================================== */
.luu-hidden-real-form {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================
   5) BARRA DE PROGRESO
   ========================================================== */
.progreso-lineal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--luu-brand-1), var(--luu-brand-2));
  background-size: 200% 100%;
  animation: luuShimmer 2s linear infinite;
  transform-origin: left;
  transition: width 0.35s var(--luu-transition-bounce);
  z-index: calc(var(--z-max, 9999) + 1);
}

@keyframes luuShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ==========================================================
   6) BOTONES SUPERIORES
   ========================================================== */
.btn-retroceder,
.btn-cerrar-asistente {
  position: fixed;
  top: calc(var(--luu-safe-top) + 14px);
  width: 54px;
  height: 54px;
  min-width: var(--luu-touch-target);
  min-height: var(--luu-touch-target);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--luu-radius-pill);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--luu-transition-fast), background var(--luu-transition-fast);
  z-index: calc(var(--z-max, 9999) + 2);
}

.btn-retroceder { left: calc(var(--luu-safe-left) + 12px); }
.btn-cerrar-asistente { right: calc(var(--luu-safe-right) + 12px); }

.btn-retroceder:hover,
.btn-cerrar-asistente:hover {
  transform: translateY(-1px) scale(1.07);
  background: rgba(15, 23, 42, 0.72);
}

.btn-retroceder:active,
.btn-cerrar-asistente:active {
  transform: translateY(0) scale(0.98);
}

/* ==========================================================
   7) CONTENEDOR CENTRAL
   ========================================================== */
.asistente-contenido {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--luu-safe-top) + 70px) max(14px, var(--luu-safe-right)) calc(var(--luu-safe-bottom) + 16px) max(14px, var(--luu-safe-left));
  overflow: hidden;
}

/* ==========================================================
   8) SHELL DEL CHAT
   ========================================================== */
.luu-chat-shell {
  width: 100%;
  max-width: 520px;
  height: 100%;
  max-height: 820px;
  background: color-mix(in srgb, var(--luu-bg-card) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--luu-border) 70%, transparent);
  border-radius: var(--luu-radius-xl);
  box-shadow: var(--luu-shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.luu-chat-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 85%, color-mix(in srgb, var(--luu-brand-1) 18%, transparent), transparent 55%),
              radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--luu-brand-2) 18%, transparent), transparent 55%);
  pointer-events: none;
}

/* ==========================================================
   9) HEADER
   ========================================================== */
.luu-chat-header {
  position: sticky;
  top: 0;
  z-index: 6;
  padding: 16px;
  background: color-mix(in srgb, var(--luu-bg-card) 80%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--luu-border) 65%, transparent);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.luu-chat-title { display: flex; align-items: flex-start; gap: 12px; }

.luu-badge-ia {
  padding: 7px 12px;
  border-radius: var(--luu-radius-pill);
  background: var(--luu-primary-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
}

.luu-chat-h1 {
  font-family: var(--luu-font-heading);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
  background: var(--luu-primary-gradient);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.luu-chat-h2 {
  font-size: 13px;
  color: var(--luu-text-muted);
  margin-top: 2px;
}

.luu-chat-step {
  font-size: 12px;
  font-weight: 700;
  color: var(--luu-text-muted);
  background: color-mix(in srgb, var(--luu-bg-card-light) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--luu-border-light) 70%, transparent);
  padding: 7px 12px;
  border-radius: var(--luu-radius-pill);
  white-space: nowrap;
}

/* ==========================================================
   10) MAIN (LOG)
   ========================================================== */
.luu-chat-main {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, color-mix(in srgb, var(--luu-bg) 88%, transparent) 0%, color-mix(in srgb, var(--luu-bg-card) 92%, transparent) 100%);
}

.luu-chat-log {
  height: 100%;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
  scroll-padding-bottom: calc(var(--luu-footer-h) + var(--luu-safe-bottom) + 18px);
  padding-bottom: calc(var(--luu-footer-h) + 18px);
}

.luu-chat-log::-webkit-scrollbar { width: 6px; }
.luu-chat-log::-webkit-scrollbar-track { background: transparent; }
.luu-chat-log::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--luu-border-light) 80%, transparent);
  border-radius: var(--luu-radius-pill);
}

/* ==========================================================
   11) MENSAJES
   ========================================================== */
.luu-msg {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  max-width: 100%;
  animation: luuMsgIn 220ms ease-out forwards;
}

@keyframes luuMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.luu-msg.bot { justify-content: flex-start; }
.luu-msg.user { justify-content: flex-end; }

.luu-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: var(--luu-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: color-mix(in srgb, var(--luu-bg-card-light) 80%, transparent);
  border: 1px solid color-mix(in srgb, var(--luu-border-light) 70%, transparent);
  backdrop-filter: blur(8px);
}

.luu-msg.bot .luu-avatar {
  background: var(--luu-primary-gradient);
  color: #fff;
  border: none;
}

.luu-bubble {
  max-width: min(520px, 84%);
  padding: 12px 14px;
  border-radius: var(--luu-radius-lg);
  border: 1px solid color-mix(in srgb, var(--luu-border-light) 70%, transparent);
  background: color-mix(in srgb, var(--luu-bg-card-light) 55%, transparent);
  color: var(--luu-text);
  line-height: 1.35;
  word-break: break-word;
  box-shadow: var(--luu-shadow);
  position: relative;
}

.luu-msg.bot .luu-bubble {
  border-top-left-radius: 10px;
  background: color-mix(in srgb, var(--luu-bg-card) 88%, transparent);
}

.luu-msg.user .luu-bubble {
  border-top-right-radius: 10px;
  background: color-mix(in srgb, var(--luu-brand-1) 16%, transparent);
  border-color: color-mix(in srgb, var(--luu-brand-1) 35%, transparent);
}

.luu-msg.bot.is-current .luu-bubble {
  border-color: color-mix(in srgb, var(--luu-brand-2) 60%, transparent);
  border-width: 2px;
  animation: luuPulseCurrent 3s infinite;
}

@keyframes luuPulseCurrent {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--luu-brand-1) 18%, transparent); }
  50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--luu-brand-2) 25%, transparent); }
}

/* ==========================================================
   12) FOOTER
   ========================================================== */
.luu-chat-footer {
  position: sticky;
  bottom: 0;
  z-index: 7;
  padding: 12px;
  padding-bottom: calc(12px + var(--luu-safe-bottom));
  background: color-mix(in srgb, var(--luu-bg-card) 85%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid color-mix(in srgb, var(--luu-border) 65%, transparent);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Quick replies */
.luu-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-height: 120px;
  overflow-y: auto;
}

.luu-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  min-height: var(--luu-touch-target);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--luu-radius-pill);
  background: rgba(51, 65, 85, 0.7);
  color: var(--luu-text);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.luu-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.22);
}

.luu-chip:active { transform: translateY(0); }

.luu-chip.primary {
  border: none;
  background: var(--luu-primary-gradient);
  color: #fff;
  box-shadow: 0 14px 36px rgba(91, 103, 242, 0.28);
}

/* Input row */
.luu-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
}

.luu-input-row:not(.is-hidden)::before {
  content: "✏️ Toca para escribir";
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--luu-text-muted);
  font-weight: 700;
  white-space: nowrap;
  background: color-mix(in srgb, var(--luu-bg-card) 90%, transparent);
  padding: 4px 10px;
  border-radius: var(--luu-radius-sm);
  border: 1px solid color-mix(in srgb, var(--luu-border-light) 50%, transparent);
  animation: luuPulseHint 2s infinite;
}

@keyframes luuPulseHint {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.9; }
}

.luu-input-row.is-hidden { display: none !important; }

.luu-user-input {
  flex: 1;
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid color-mix(in srgb, var(--luu-border-light) 80%, transparent);
  border-radius: var(--luu-radius-pill);
  background: color-mix(in srgb, var(--luu-bg-card-light) 55%, transparent);
  color: var(--luu-text);
  outline: none;
  min-height: var(--luu-touch-target);
  transition: all var(--luu-transition-fast);
}

.luu-user-input::placeholder {
  color: var(--luu-text-muted);
  opacity: 0.75;
}

.luu-user-input:focus {
  border-color: color-mix(in srgb, var(--luu-brand-1) 60%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--luu-brand-1) 18%, transparent);
  background: color-mix(in srgb, var(--luu-bg-card-light) 75%, transparent);
}

.luu-user-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Botón enviar */
.luu-send {
  width: 52px;
  height: 52px;
  min-width: var(--luu-touch-target);
  min-height: var(--luu-touch-target);
  border: none;
  border-radius: var(--luu-radius-pill);
  background: var(--luu-primary-gradient);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--luu-transition-fast);
  box-shadow: 0 14px 36px rgba(91, 103, 242, 0.3);
}

.luu-send:hover {
  transform: translateY(-1px) scale(1.04);
  background: var(--luu-primary-gradient-hover);
}

.luu-send:active { transform: translateY(0) scale(0.98); }
.luu-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Aux row */
.luu-aux-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.luu-quick-replies:not(:empty) + .luu-aux-row:not(:empty) {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed color-mix(in srgb, var(--luu-border-light) 40%, transparent);
}

.luu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  min-height: var(--luu-touch-target);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--luu-radius-md);
  background: rgba(51, 65, 85, 0.7);
  color: var(--luu-text);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--luu-transition-fast);
}

.luu-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.22);
}

.luu-btn:active { transform: translateY(0); }

.luu-btn.primary {
  border: none;
  background: var(--luu-primary-gradient);
  color: #fff;
  box-shadow: 0 14px 36px rgba(91, 103, 242, 0.3);
}

.luu-btn.danger {
  border: none;
  background: linear-gradient(135deg, var(--color-error, #ef4444), var(--color-error-dark, #dc2626));
  color: #fff;
}

/* Privacidad */
.luu-privacy {
  font-size: 12px;
  color: var(--luu-text-muted);
  text-align: center;
  line-height: 1.4;
  padding-top: 4px;
}

.luu-privacy a {
  color: color-mix(in srgb, var(--luu-brand-2) 90%, #fff);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.luu-privacy a:hover {
  color: color-mix(in srgb, var(--luu-brand-1) 90%, #fff);
}

/* ==========================================================
   13) PREVIEW DE IMAGEN
   ========================================================== */
.luu-preview { display: block; }
.luu-preview-title {
  margin-bottom: 8px;
  font-weight: 800;
}
.luu-preview-img {
  max-width: 220px;
  max-height: 220px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}
.luu-preview-name { margin-top: 6px; }

/* ==========================================================
   14) LOADING OVERLAY
   ========================================================== */
#luupigo-carga {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-max, 9999) + 10);
  background: color-mix(in srgb, var(--bg-overlay, rgba(0, 0, 0, 0.75)) 85%, transparent);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--luu-transition-normal), visibility var(--luu-transition-normal);
}

#luupigo-carga:not(.oculto) {
  opacity: 1;
  visibility: visible;
}

.carga-contenido { text-align: center; }

.carga-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--luu-brand-1);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: luuSpin 1s linear infinite;
  position: relative;
}

.carga-spinner::before {
  content: "";
  position: absolute;
  inset: -3px;
  border: 3px solid transparent;
  border-top-color: var(--luu-brand-2);
  border-radius: 50%;
  animation: luuSpin 1.5s linear infinite reverse;
}

@keyframes luuSpin { to { transform: rotate(360deg); } }

.carga-texto {
  font-size: 15px;
  font-weight: 800;
  background: var(--luu-primary-gradient);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
}

/* ==========================================================
   15) WELCOME SCREEN
   ========================================================== */
#luupigo-asistente .luu-welcome {
  position: relative;
  z-index: 8;
  padding: 16px;
}

#luupigo-asistente .luu-welcome-card {
  width: 100%;
  border-radius: var(--luu-radius-xl);
  border: 1px solid color-mix(in srgb, var(--luu-border) 65%, transparent);
  background: color-mix(in srgb, var(--luu-bg-card) 88%, transparent);
  box-shadow: var(--luu-shadow-lg);
  padding: 18px;
  display: grid;
  gap: 14px;
}

#luupigo-asistente .luu-welcome-bot {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--luu-primary-gradient);
  color: #fff;
}

#luupigo-asistente #luu-welcome:not([hidden]) ~ .luu-chat-main,
#luupigo-asistente #luu-welcome:not([hidden]) ~ .luu-chat-footer {
  display: none !important;
}

#luupigo-asistente .luu-welcome-text h3 {
  margin: 0;
  font-family: var(--luu-font-heading);
  font-size: 18px;
  font-weight: 900;
}

#luupigo-asistente .luu-welcome-text p {
  margin: 6px 0 0;
  color: var(--luu-text-muted);
  font-size: 13px;
}

#luupigo-asistente .luu-welcome-actions {
  display: grid;
  gap: 10px;
}

#luupigo-asistente .luu-welcome-actions .luu-btn {
  width: 100%;
  justify-content: center;
  border-radius: var(--luu-radius-lg);
  font-size: 14px;
}

#luupigo-asistente .luu-welcome-hint {
  font-size: 12px;
  color: var(--luu-text-muted);
  text-align: center;
}

/* ==========================================================
   16) SHIELD ANTI-RESET FINAL (corto y quirúrgico)
   ========================================================== */
#luupigo-asistente button,
#luupigo-asistente input,
#luupigo-asistente select,
#luupigo-asistente textarea {
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}

#luupigo-asistente button,
#luupigo-asistente [type="button"],
#luupigo-asistente [type="submit"],
#luupigo-asistente [type="reset"] {
  text-transform: none;
}

/* ==========================================================
   17) RESPONSIVE
   ========================================================== */
@media (max-width: 768px) {
  .asistente-contenido {
    padding: calc(var(--luu-safe-top) + 66px) max(10px, var(--luu-safe-right)) calc(var(--luu-safe-bottom) + 10px) max(10px, var(--luu-safe-left));
  }
  
  .luu-chat-shell {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--luu-radius-lg);
  }
  
  .luu-chip,
  .luu-btn {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 12px;
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .luu-chat-shell { max-height: 92vh; }
  .luu-chat-header { padding: 12px; }
  .luu-chat-h1 { font-size: 16px; }
  .luu-chat-h2 { font-size: 12px; }
}

/* Utilidades */
.oculto { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================
   18) SUCCESS POPUP (moderno con código de gestión)
   ========================================================== */
.luu-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .68);
  backdrop-filter: blur(10px);
  animation: luuFadeIn var(--luu-transition-normal) forwards;
}

.luu-success-card {
  width: min(430px, 100%);
  background: #fff;
  color: #111827;
  border-radius: 26px;
  padding: 28px 24px 24px;
  text-align: center;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .34);
  animation: luuSuccessIn .24s ease-out;
}

.luu-success-icon {
  font-size: 46px;
  margin-bottom: 12px;
}

.luu-success-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
}

.luu-success-card p {
  margin: 0 0 18px;
  color: #4b5563;
}

.luu-success-mail {
  margin: 12px 0;
  padding: 11px 12px;
  border-radius: 15px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 800;
}

.luu-success-code {
  margin: 14px 0 18px;
  padding: 14px;
  border-radius: 17px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.luu-success-code span {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 800;
}

.luu-success-code strong {
  display: block;
  font-size: 26px;
}

@keyframes luuSuccessIn {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Aseguramos que el botón del popup mantenga el estilo coherente */
.luu-success-card .luu-btn.primary {
  background: var(--luu-primary-gradient);
  color: white;
  border: none;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 900;
  border-radius: 40px;
  width: 100%;
  margin-top: 12px;
  cursor: pointer;
  transition: transform var(--luu-transition-fast), opacity var(--luu-transition-fast);
}

.luu-success-card .luu-btn.primary:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.luu-success-card .luu-btn.primary:active {
  transform: translateY(0);
}

/* ==========================================================
   FIN - CSS limpio, unificado y con popup de éxito
   ========================================================== */