/* ==========================================================================
   CazaBugs · DiDi | Diseño Profesional Mobile-First
   Paleta: Azul Marino Ejecutivo + Grises Neutros + Verde Esmeralda + Naranja DiDi
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

:root {
  /* Azul Marino (Base profesional y jerarquía) */
  --navy-950: #0a1628;
  --navy-900: #0f1e36;
  --navy-800: #182f52;
  --navy-700: #23416d;
  --navy-100: #e8eff8;
  --navy-50: #f3f7fc;

  /* Grises Profesionales (Superficies y bordes) */
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-150: #edf2f7;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  /* Verde Esmeralda (Confianza, completado, seguridad y resuelto) */
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  --green-100: #d1fae5;
  --green-50: #ecfdf5;

  /* Naranja DiDi (Uso estratégico de marca y llamadas a la acción) */
  --orange-600: #e54e05;
  --orange-500: #fa5a0a;
  --orange-400: #ff742e;
  --orange-100: #ffedd5;
  --orange-50: #fff6f1;

  /* Alertas y estados */
  --amber-700: #b45309;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;
  --red-600: #dc2626;
  --red-50: #fef2f2;

  /* Sombras y radios */
  --shadow-xs: 0 1px 2px rgba(15, 30, 54, 0.04);
  --shadow-card: 0 4px 14px rgba(15, 30, 54, 0.06), 0 1px 3px rgba(15, 30, 54, 0.04);
  --shadow-elevated: 0 20px 44px rgba(10, 22, 40, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: linear-gradient(180deg, #e6ecf5 0%, #eef2f7 100%);
  color: var(--navy-900);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Contenedor tipo App Móvil / WebView */
.app-shell {
  width: 100%;
  max-width: 468px;
  min-height: 100vh;
  margin: 0 auto;
  background-color: var(--slate-50);
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  position: relative;
}

@media (min-width: 520px) {
  body {
    padding: 20px 0;
  }
  .app-shell {
    min-height: calc(100vh - 40px);
    border-radius: 24px;
    overflow: clip;
    border: 1px solid rgba(15, 30, 54, 0.08);
  }
}

/* ==========================================================================
   BARRA SUPERIOR STICKY DE PROGRESO (Pasos 1 a 3)
   ========================================================================== */
.step-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(15, 30, 54, 0.96);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.step-topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.back-step-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s ease;
  flex-shrink: 0;
}

.back-step-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.progress-track {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange-500) 0%, var(--orange-400) 100%);
  transition: width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-fill.complete {
  background: linear-gradient(90deg, var(--green-600) 0%, var(--green-500) 100%);
}

.step-counter-pill {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.09);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ==========================================================================
   MIS REPORTES ANTERIORES (Need #6 & #5 - Diseño Azul Marino + Verde + Naranja)
   ========================================================================== */
.my-reports-bar {
  margin: 14px 18px 0;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.my-reports-toggle {
  width: 100%;
  background: var(--navy-900);
  color: var(--white);
  border: none;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
}

.my-reports-toggle-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reports-count-badge {
  background: rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

.unread-dot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--orange-500);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.chevron-icon {
  font-size: 11px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.my-reports-bar.open .chevron-icon {
  transform: rotate(180deg);
}

.my-reports-panel {
  display: none;
  padding: 12px 14px;
  background: var(--white);
  border-top: 1px solid var(--slate-200);
}

.my-reports-bar.open .my-reports-panel {
  display: block;
}

.my-reports-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--slate-500);
}

.report-card-item {
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  background: var(--slate-50);
  transition: border-color 0.15s ease;
}

.report-card-item:last-child {
  margin-bottom: 0;
}

.report-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.report-card-folio {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-900);
}

.report-card-date {
  font-size: 11px;
  color: var(--slate-500);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.status-pill.status-review {
  background: var(--navy-100);
  color: var(--navy-800);
}

.status-pill.status-progress {
  background: var(--orange-100);
  color: var(--orange-600);
}

.status-pill.status-resolved {
  background: var(--green-100);
  color: var(--green-700);
}

.status-pill.status-details {
  background: var(--amber-100);
  color: var(--amber-700);
}

.report-card-stage {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 2px;
}

.report-card-error {
  font-size: 12px;
  color: var(--slate-600);
  margin-bottom: 9px;
}

.report-chat-btn {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-800);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.report-chat-btn:hover {
  border-color: var(--navy-700);
  background: var(--navy-50);
}

.report-chat-btn.has-admin-msg {
  background: var(--orange-50);
  border-color: var(--orange-500);
  color: var(--orange-600);
}

/* ==========================================================================
   VISTAS DE PASOS (Animación fluida estilo Lovable)
   ========================================================================== */
.step-view {
  display: none;
  flex: 1;
  animation: fadeSlideIn 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.step-view.active {
  display: flex;
  flex-direction: column;
}

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

/* ==========================================================================
   PASO 0: PORTADA DE BIENVENIDA
   ========================================================================== */
.hero-banner-wrap {
  position: relative;
  width: 100%;
  background-color: var(--orange-500);
  border-bottom: 3px solid var(--navy-900);
  line-height: 0;
}

.hero-banner-img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
}

.welcome-content {
  padding: 22px 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: 999px;
}

.eyebrow-step {
  font-size: 10.8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-700);
  margin: 0 0 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.eyebrow-step::before {
  content: "";
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: var(--orange-500);
}

.main-heading {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.24;
  color: var(--navy-900);
  margin: 0;
}

.lead-paragraph {
  font-size: 13.2px;
  color: var(--slate-600);
  line-height: 1.52;
  margin: 7px 0 0;
}

.brand-accent {
  color: var(--orange-500);
  font-weight: 700;
}

/* Tarjeta informativa "¿Qué temas no se reportan aquí?" */
.info-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 15px;
  box-shadow: var(--shadow-card);
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13.6px;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0 0 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--slate-100);
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.info-list-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.info-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.info-icon-box.navy {
  background: var(--navy-50);
  color: var(--navy-800);
  border: 1px solid var(--navy-100);
}

.info-icon-box.slate {
  background: var(--slate-100);
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
}

.info-item-body {
  flex: 1;
  font-size: 12.5px;
  color: var(--slate-600);
  line-height: 1.44;
}

.info-item-body strong {
  color: var(--navy-900);
  font-weight: 700;
}

.info-item-subnote {
  display: block;
  font-size: 11.4px;
  color: var(--slate-500);
  font-style: italic;
  margin-top: 2px;
}

.action-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-700);
  text-decoration: none;
  transition: color 0.15s ease;
}

.action-ext-link:hover {
  color: var(--orange-500);
  text-decoration: underline;
}

/* Nota de privacidad con acento verde esmeralda */
.privacy-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--green-50);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 9px 11px;
  font-size: 10.6px;
  color: #065f46;
  line-height: 1.42;
}

.privacy-banner svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--green-600);
}

/* ==========================================================================
   CUERPO DE PASOS 1, 2 Y 3
   ========================================================================== */
.step-body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.step-title {
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--navy-900);
  margin: 0;
}

/* Tarjetas seleccionables tipo Lovable (Azul Marino + Check Verde/Naranja) */
.choice-cards-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.choice-card-btn {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--slate-700);
  line-height: 1.38;
  box-shadow: var(--shadow-xs);
  transition: all 0.16s ease;
}

.choice-card-btn:hover {
  border-color: #94a3b8;
  background: #fcfdff;
  transform: translateY(-1px);
}

.choice-card-btn.selected {
  border-color: var(--navy-800);
  background: linear-gradient(90deg, var(--navy-50) 0%, var(--white) 100%);
  color: var(--navy-900);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(15, 30, 54, 0.08), inset 3px 0 0 var(--orange-500);
}

.choice-check-circle {
  width: 21px;
  height: 21px;
  min-width: 21px;
  border-radius: 50%;
  border: 2px solid var(--slate-400);
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.16s ease;
  color: transparent;
}

.choice-card-btn.selected .choice-check-circle {
  border-color: var(--green-600);
  background: var(--green-600);
  color: var(--white);
}

.choice-stage-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  background: var(--slate-100);
  color: var(--navy-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.16s ease;
}

.choice-card-btn.selected .choice-stage-icon {
  background: var(--navy-900);
  color: var(--white);
}

.choice-label-text {
  flex: 1;
}

/* Cajas condicionales adicionales ("En otro momento", "Otro:", Mensaje de pago) */
.conditional-subbox {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-left: 3px solid var(--orange-500);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  box-shadow: var(--shadow-xs);
  animation: fadeSlideIn 0.18s ease;
}

.subbox-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.subbox-hint {
  font-weight: 400;
  color: var(--slate-500);
  font-size: 12px;
}

.modern-input,
.modern-textarea {
  width: 100%;
  border: 1.5px solid var(--slate-200);
  border-radius: 10px;
  background: var(--slate-50);
  padding: 11px 13px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--navy-900);
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.modern-input:focus,
.modern-textarea:focus {
  background: var(--white);
  border-color: var(--navy-800);
  box-shadow: 0 0 0 3px rgba(24, 47, 82, 0.1);
}

/* ==========================================================================
   PASO 3: MEDIDOR DE FUERZA DEL REPORTE, TARJETAS, CALENDARIO Y CAPTURAS 9:16
   ========================================================================== */
.report-strength-card {
  position: sticky;
  top: 64px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  box-shadow: 0 8px 20px rgba(15, 30, 54, 0.08), 0 1px 3px rgba(15, 30, 54, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.report-strength-card.is-excellent {
  border-color: #6ee7b7;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 253, 245, 0.96) 100%);
}

.strength-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.strength-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
}

.strength-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-500);
}

.strength-tier-label {
  font-family: var(--font-display);
  font-size: 12.4px;
  font-weight: 800;
  transition: color 0.25s ease;
}

.strength-tier-label.tier-weak {
  color: var(--amber-700);
}

.strength-tier-label.tier-basic {
  color: var(--navy-800);
}

.strength-tier-label.tier-solid {
  color: #0284c7;
}

.strength-tier-label.tier-excellent {
  color: var(--green-700);
}

.strength-pct-badge {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--navy-900);
  border: 1px solid var(--slate-200);
  white-space: nowrap;
  transition: all 0.25s ease;
}

.report-strength-card.is-excellent .strength-pct-badge {
  background: var(--green-100);
  color: var(--green-700);
  border-color: #6ee7b7;
}

.strength-bar-track {
  width: 100%;
  height: 6.5px;
  border-radius: 999px;
  background: var(--slate-150);
  overflow: hidden;
  margin-bottom: 6px;
}

.strength-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.38s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}

.strength-bar-fill.tier-weak {
  background: linear-gradient(90deg, #f59e0b 0%, #fb923c 100%);
}

.strength-bar-fill.tier-basic {
  background: linear-gradient(90deg, var(--navy-800) 0%, #3b82f6 100%);
}

.strength-bar-fill.tier-solid {
  background: linear-gradient(90deg, #0284c7 0%, #10b981 100%);
}

.strength-bar-fill.tier-excellent {
  background: linear-gradient(90deg, var(--green-600) 0%, #10b981 100%);
}

.strength-helper-text {
  margin: 0 0 7px;
  font-size: 11px;
  line-height: 1.38;
  color: var(--slate-600);
}

.strength-Checklist {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
}

.strength-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: clamp(9.2px, 2.55vw, 10.2px);
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-500);
  border: 1px solid var(--slate-200);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.strength-pill.partial {
  background: var(--amber-50);
  color: var(--amber-700);
  border-color: #fde68a;
}

.strength-pill.done {
  background: var(--green-50);
  color: var(--green-700);
  border-color: #a7f3d0;
  font-weight: 700;
}

.field-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 15px;
  box-shadow: var(--shadow-card);
}

.field-card-title {
  font-family: var(--font-display);
  font-size: clamp(11.5px, 3.1vw, 13.4px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy-900);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.req-dot {
  color: var(--orange-500);
  font-weight: 800;
  margin-left: 2px;
}

.field-card-hint {
  font-size: 12px;
  color: var(--slate-500);
  margin: 0 0 11px;
  line-height: 1.42;
}

.textarea-wrap {
  position: relative;
}

.modern-textarea {
  min-height: 112px;
  resize: vertical;
  padding-bottom: 26px;
  line-height: 1.5;
}

.char-counter {
  position: absolute;
  right: 11px;
  bottom: 8px;
  font-size: 11.5px;
  color: var(--slate-400);
  pointer-events: none;
}

/* Calendario Compacto Ocultable + Dropdowns Deslizables (Día / Mes / Año + Hora) */
.field-card-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.compact-hint {
  margin-bottom: 0;
}

.shortcut-chip {
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  border-radius: 999px;
  padding: 4px 9px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--navy-800);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.shortcut-chip:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

.compact-datetime-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  justify-content: space-between;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 10px 12px;
}

.dt-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dt-group-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
}

.dt-selects-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.time-select {
  height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1.5px solid var(--slate-200);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-900);
  outline: none;
  cursor: pointer;
}

.compact-select {
  min-width: 54px;
}

.month-select {
  min-width: 78px;
}

.time-select:focus {
  border-color: var(--navy-800);
}

.time-colon {
  color: var(--navy-900);
  font-size: 14px;
}

.mini-cal-toggle-row {
  margin-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mini-cal-toggle-btn {
  background: transparent;
  border: none;
  padding: 3px 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-700);
  cursor: pointer;
}

.mini-cal-toggle-btn:hover {
  color: var(--orange-500);
}

.mini-cal-current-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid #bbf7d0;
  padding: 2px 9px;
  border-radius: 999px;
}

.calendar-drawer.mini-calendar {
  margin: 10px auto 0;
  max-width: 268px;
  padding: 10px 12px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
}

.calendar-drawer.collapsed {
  display: none;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.cal-month-label {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy-900);
  text-transform: capitalize;
}

.cal-nav-btn {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--slate-200);
  background: var(--white);
  color: var(--navy-900);
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cal-nav-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.cal-weekdays,
.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.cal-weekdays span {
  font-size: 10px;
  font-weight: 700;
  color: var(--slate-400);
  padding: 2px 0;
}

.cal-day-btn {
  height: 29px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--navy-900);
  cursor: pointer;
  transition: all 0.12s ease;
}

.cal-day-btn:hover:not(:disabled):not(.selected) {
  background: var(--white);
  color: var(--navy-900);
  font-weight: 700;
}

.cal-day-btn.today:not(.selected) {
  box-shadow: inset 0 0 0 1.5px var(--orange-500);
  font-weight: 700;
}

.cal-day-btn.selected {
  background: var(--navy-900);
  color: var(--white);
  font-weight: 700;
}

.cal-day-btn:disabled {
  color: #cbd5e1;
  cursor: not-allowed;
}

.cal-day-empty {
  height: 29px;
}

/* Grilla 3 columnas para Capturas de Celular 9:16 (Estilo Lovable) */
.screenshots-status-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-600);
  white-space: nowrap;
  flex-shrink: 0;
}

.screenshots-status-pill.ready {
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid #a7f3d0;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.screenshot-thumb {
  position: relative;
  aspect-ratio: 9 / 15;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--slate-200);
  background: var(--slate-100);
  box-shadow: var(--shadow-xs);
}

.screenshot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.screenshot-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 30, 54, 0.85);
  color: var(--white);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-add-tile {
  aspect-ratio: 9 / 15;
  border-radius: 12px;
  border: 2px dashed #94a3b8;
  background: var(--slate-50);
  color: var(--navy-800);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  transition: all 0.16s ease;
}

.screenshot-add-tile:hover {
  border-color: var(--orange-500);
  background: var(--orange-50);
  color: var(--orange-600);
}

.screenshot-add-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--slate-500);
}

/* Alerta de validación limpia */
.step-alert {
  display: none;
  align-items: center;
  gap: 9px;
  background: var(--red-50);
  border: 1px solid #fecaca;
  color: var(--red-600);
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.step-alert.visible {
  display: flex;
}

/* ==========================================================================
   BOTONES ESTRATÉGICOS (CTA Naranja DiDi + Secundario Azul Marino)
   ========================================================================== */
.cta-orange-btn {
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange-500) 0%, #ff6b1f 100%);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 14.2px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(250, 90, 10, 0.26);
  transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease;
  padding: 11px 16px;
}

.cta-orange-btn.cta-single-line {
  font-size: clamp(11.4px, 3.15vw, 13.4px);
  white-space: nowrap;
  gap: 6px;
  padding: 11px 12px;
}

.cta-orange-btn.cta-single-line svg {
  flex-shrink: 0;
}

.cta-orange-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(250, 90, 10, 0.34);
}

.cta-orange-btn:active:not(:disabled) {
  transform: translateY(0);
}

.cta-orange-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.navy-outline-btn {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--slate-200);
  background: var(--white);
  color: var(--navy-900);
  font-family: var(--font-body);
  font-size: 13.3px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  padding: 10px 15px;
}

.navy-outline-btn:hover {
  border-color: var(--navy-800);
  background: var(--navy-50);
}

.navy-solid-btn {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: none;
  background: var(--navy-900);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13.3px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease;
  padding: 10px 15px;
}

.navy-solid-btn:hover {
  background: var(--navy-800);
}

/* ==========================================================================
   PANTALLA FINAL DE CONFIRMACIÓN + MINI INSIGNIAS DE NIVEL
   ========================================================================== */
.thankyou-wrap {
  padding: 40px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.success-emblem {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-600) 0%, var(--green-500) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.25);
}

/* Mini Insignia CazaBugs (1-3 Explorador ágil | 4-6 Cazador experto | 7+ Cazador Legendario) */
.hunter-mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-xs);
  animation: fadeSlideIn 0.28s ease-out;
}

.hunter-mini-badge.tier-explorer {
  background: var(--green-50);
  border: 1.5px solid #6ee7b7;
  color: var(--green-700);
}

.hunter-mini-badge.tier-expert {
  background: var(--navy-50);
  border: 1.5px solid #93c5fd;
  color: var(--navy-800);
}

.hunter-mini-badge.tier-legend {
  background: linear-gradient(90deg, #fff7ed 0%, #fef3c7 100%);
  border: 1.5px solid #fb923c;
  color: #c2410c;
}

.hunter-badge-icon {
  font-size: 15px;
  line-height: 1;
}

.thankyou-copy-block {
  max-width: 380px;
}

.friendly-feedback-msg {
  margin-top: 9px;
  font-size: 13.2px;
  color: var(--slate-600);
  line-height: 1.54;
}

.friendly-feedback-msg strong {
  color: var(--navy-900);
}

.thankyou-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

/* Footer corporativo DiDi */
.survey-footer {
  margin-top: auto;
  padding: 18px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--slate-200);
  background: var(--slate-100);
}

.survey-footer img {
  height: 20px;
  width: auto;
  opacity: 0.78;
}

.survey-footer span {
  font-size: 11px;
  color: var(--slate-500);
}

/* ==========================================================================
   MODALES (Need #1 Reanudar Borrador + Need #5 Chat de Seguimiento)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.62);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 1000;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 396px;
  background: var(--white);
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--slate-200);
  animation: fadeSlideIn 0.2s ease-out;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--navy-50);
  color: var(--navy-800);
  border: 1px solid var(--navy-100);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.modal-title {
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: 18.5px;
  font-weight: 800;
  color: var(--navy-900);
}

.modal-desc {
  margin: 0 0 20px;
  font-size: 13.8px;
  color: var(--slate-600);
  line-height: 1.52;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compact-modal-card {
  position: relative;
  padding: 26px 22px 22px;
}

.compact-modal-title {
  font-size: 17.5px;
  line-height: 1.35;
  margin: 0 0 18px;
  padding-right: 26px;
}

.modal-corner-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  color: var(--slate-600);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.modal-corner-close:hover {
  background: var(--slate-100);
  color: var(--navy-900);
}

/* Chat Modal */
.chat-modal-card {
  max-width: 420px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 86vh;
}

.chat-header {
  padding: 15px 18px;
  background: var(--navy-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
}

.chat-header-sub {
  font-size: 11.5px;
  color: #cbd5e1;
  margin-top: 2px;
}

.chat-close-btn {
  background: rgba(255, 255, 255, 0.14);
  border: none;
  color: var(--white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 17px;
  cursor: pointer;
}

.chat-messages {
  padding: 15px;
  overflow-y: auto;
  flex: 1;
  background: var(--slate-50);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 210px;
}

.chat-empty {
  text-align: center;
  font-size: 12.8px;
  color: var(--slate-500);
  padding: 26px 14px;
  line-height: 1.55;
}

.chat-bubble {
  max-width: 85%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13.2px;
  line-height: 1.46;
  word-wrap: break-word;
}

.chat-bubble.admin {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--navy-900);
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--navy-900);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat-bubble-sender {
  font-size: 10.5px;
  font-weight: 700;
  margin-bottom: 3px;
  opacity: 0.78;
}

.chat-bubble-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.chat-bubble-photos img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: zoom-in;
}

.chat-bubble-time {
  font-size: 10px;
  opacity: 0.68;
  margin-top: 4px;
  text-align: right;
}

.chat-composer {
  padding: 11px 13px;
  background: var(--white);
  border-top: 1px solid var(--slate-200);
}

.chat-pending-photos {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.chat-pending-photos:empty {
  display: none;
}

.chat-pending-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--slate-200);
}

.chat-pending-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-attach-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-text-input {
  flex: 1;
  height: 38px;
  border: 1.5px solid var(--slate-200);
  border-radius: 10px;
  padding: 0 11px;
  font-family: var(--font-body);
  font-size: 13.5px;
  outline: none;
}

.chat-text-input:focus {
  border-color: var(--navy-800);
}

.chat-send-btn {
  height: 38px;
  padding: 0 15px;
  border: none;
  border-radius: 10px;
  background: var(--orange-500);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   NUEVOS COMPONENTES: BARRA DE NIVELES, REDIRECCIÓN HELP/SAFETY Y TELÉFONO
   ========================================================================== */

/* 1. Barra de Progreso de Niveles CazaBugs (Lupa -> Miralejos -> Arco) */
.level-roadmap-card {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 13px 15px 12px;
  box-shadow: var(--shadow-xs);
  text-align: left;
}

.thankyou-level-card {
  box-shadow: var(--shadow-card);
}

.level-roadmap-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.level-current-text {
  font-size: 12px;
  color: var(--slate-600);
  font-weight: 500;
}

.level-current-text strong {
  font-family: var(--font-display);
  color: var(--navy-900);
  font-weight: 800;
  font-size: 12.5px;
}

.level-step-chip {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid #a7f3d0;
  white-space: nowrap;
}

.level-track-wrap {
  position: relative;
  padding: 2px 4px;
}

.level-bar-bg {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 17px;
  height: 6px;
  border-radius: 999px;
  background: var(--slate-200);
  overflow: hidden;
  z-index: 1;
}

.level-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-600) 0%, var(--orange-500) 100%);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.level-nodes-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.level-node {
  display: flex;
  align-items: center;
  justify-content: center;
}

.level-node-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--slate-100);
  border: 2px solid var(--slate-200);
  color: var(--slate-400);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.level-node.completed .level-node-circle {
  background: var(--green-600);
  border-color: var(--green-600);
  color: var(--white);
}

.level-node.active .level-node-circle {
  background: var(--navy-900);
  border-color: var(--orange-500);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(250, 90, 10, 0.15);
}

.level-node-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-400);
  line-height: 1.2;
}

.level-node.completed .level-node-title {
  color: var(--green-700);
  font-weight: 700;
}

.level-node.active .level-node-title {
  color: var(--navy-900);
  font-weight: 800;
}

.level-node-sub {
  font-size: 9.8px;
  color: var(--slate-400);
  line-height: 1;
}

/* 2. Tarjeta de redirección automática en vivo (Help Center vs Safety) */
.nontech-redirect-card {
  margin-top: 12px;
  border-radius: 12px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeSlideIn 0.2s ease;
}

.nontech-redirect-card.mode-help {
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
  border-left: 4px solid var(--orange-500);
}

.nontech-redirect-card.mode-safety {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-left: 4px solid var(--red-600);
}

.nontech-redirect-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12.8px;
  line-height: 1.45;
  color: var(--slate-700);
}

.nontech-redirect-text strong {
  color: var(--navy-900);
  font-size: 13px;
}

.nontech-redirect-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  background: var(--navy-900);
  color: var(--white);
  transition: background 0.15s ease, transform 0.12s ease;
}

.nontech-redirect-card.mode-safety .nontech-redirect-btn {
  background: var(--red-600);
}

.nontech-redirect-btn:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

/* 3. Apartado amigable y confiable de Teléfono + Aviso de Privacidad */
.phone-trust-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--slate-200);
}

.phone-card-header {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 12px;
}

.phone-trust-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  background: var(--green-50);
  border: 1px solid #bbf7d0;
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.phone-input-group {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.phone-country-box {
  height: 44px;
  padding: 0 4px 0 10px;
  border-radius: 10px;
  border: 1.5px solid var(--slate-200);
  background: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.phone-country-box:focus-within {
  border-color: var(--navy-800);
  box-shadow: 0 0 0 3px rgba(24, 47, 82, 0.08);
}

.phone-flag-svg {
  width: 20px;
  height: 14px;
  border-radius: 2.5px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(15, 30, 54, 0.12);
}

.phone-flag-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.phone-country-select {
  height: 100%;
  padding: 0 4px 0 0;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-900);
  outline: none;
  cursor: pointer;
}

.phone-number-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1.5px solid var(--slate-200);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy-900);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.phone-number-input:focus {
  border-color: var(--navy-800);
  box-shadow: 0 0 0 3px rgba(24, 47, 82, 0.08);
}

.phone-privacy-note {
  margin: 10px 0 0;
  font-size: 11.2px;
  line-height: 1.48;
  color: var(--slate-500);
}

.phone-privacy-note a {
  color: var(--navy-700);
  font-weight: 600;
  text-decoration: underline;
}

.phone-privacy-note a:hover {
  color: var(--orange-500);
}

.subtle-text-btn {
  background: transparent;
  border: none;
  padding: 6px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate-500);
  cursor: pointer;
  text-decoration: underline;
}

.subtle-text-btn:hover {
  color: var(--navy-900);
}

/* Lightbox y Toast */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1200;
}

.lightbox-backdrop.open {
  display: flex;
}

.lightbox-backdrop img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 10px;
}

.toast-msg {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy-950);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 1300;
  max-width: 90vw;
  text-align: center;
}

.toast-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   BLINDAJE RESPONSIVE MÓVIL / WEBVIEW (iOS Safe-Area, Anti-Zoom y <= 380px)
   ========================================================================== */
@media (max-width: 519px) {
  /* 16px evita que Safari / iOS WebView haga zoom automático al tocar un input */
  .modern-input,
  .modern-textarea,
  .phone-number-input,
  .chat-text-input {
    font-size: 16px;
  }

  .survey-footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 380px) {
  .welcome-content,
  .step-body {
    padding: 18px 14px 22px;
    gap: 14px;
  }

  .field-card,
  .info-card {
    padding: 14px 13px;
  }

  .main-heading {
    font-size: 19.5px;
  }

  .step-title {
    font-size: 17.2px;
  }

  .cta-orange-btn {
    font-size: 13.6px;
    padding: 11px 14px;
  }

  .cta-orange-btn.cta-single-line {
    font-size: clamp(10.8px, 3.1vw, 12.2px);
    padding: 10px 10px;
  }

  .compact-select {
    min-width: 48px;
    padding: 0 6px;
    font-size: 12.5px;
  }

  .month-select {
    min-width: 72px;
  }

  .phone-country-box {
    padding: 0 2px 0 8px;
    gap: 4px;
  }

  .phone-country-select {
    font-size: 13px;
  }
}
