/* ===== Base ===== */
*, ::after, ::before { box-sizing: border-box; border: 0 solid #e5e7eb; }
body { font-family: 'Inter', sans-serif; user-select: none; }

/* ===== Utilidades ===== */
.w-100 { width: 100%; }
.text-teal-600 { color: var(--color-primary) !important; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.card-snap { scroll-snap-align: center; }

.carousel-container {
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: calc(50% - 135px);
  padding-inline: calc(50% - 135px);
}

.linked-card {
  background-color: var(--color-card-bg-dark);
  transition: border-color .25s ease, transform .25s ease, opacity .25s ease, box-shadow .25s ease;
}
.linked-card.active-card {
  border-color: var(--color-primary) !important;
  opacity: 1 !important;
  box-shadow: 0 10px 25px -5px var(--color-primary-light), 0 8px 10px -6px rgba(0, 0, 0, .4);
  transform: scale(1.02);
}
.linked-card.inactive-card { border-color: transparent !important; opacity: .7; transform: scale(.96); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-pop { animation: fadeIn .2s cubic-bezier(.16, 1, .3, 1) forwards; }

.bg-cream-box { background-color: var(--color-cream-box); }
.border-cream-box { border-color: var(--color-cream-border); }
.bg-icon-box { background-color: var(--color-icon-bg); }
.bg-icon-box:hover { background-color: var(--color-icon-hover); }
.text-primary-var { color: var(--color-primary); }
.bg-primary-var { background-color: var(--color-primary); }
.duration-300 { transition-duration: 300ms; }
.transition-transform { transition: transform .15s cubic-bezier(.4, 0, .2, 1); }
.flex-col { flex-direction: column; }
.flex { display: flex; }
.z-50 { z-index: 50; }
.inset-0 { inset: 0; }
.fixed { position: fixed; }

/* ===== Helpers de layout compartidos ===== */
/* flex en columna */
.notifications-container, .notification-content, .notice-title-block, .contact-items-list, .contact-info,
.detail-container, .scoring-info, .vinculacion-left, .promo-card, .promo-details, .promo-slide, .promo-content,
.doc-info, .location-card, .address-details, .options-grid, .option-info, .services-selection-list,
.service-details, .code-input-card, .form-group, .app-loader-container, .step-item, .tp-section, .tp-list,
.tp-wifi-block, .tech-panel-container, .help-section-container, .hs-card-action, .hs-faq-section, .hs-faq-list,
.hs-chat-card, .chat-app-wrapper, .chat-body, .msg-group {
  display: flex;
  flex-direction: column;
}

/* flex centrado verticalmente */
.notification-title-group, .notification-icon-box, .notification-header-row, .notification-arrow, .read-badge,
.contact-icon-box, .scoring-card, .scoring-ring-wrapper, .vinculacion-card, .vinculacion-actions, .icon-btn,
.promo-header, .promo-body, .promo-icon-box, .doc-card, .doc-left, .doc-icon-box, .doc-action, .map-preview,
.map-pin, .map-btn-overlay, .btn-desvincular, .wizard-title-group, .wizard-stepper, .step-item, .step-number,
.option-content, .option-icon, .selectable-service-card, .service-icon-box, .success-icon,
.app-loader-container, .modern-spinner, .tp-card, .tp-section-header, .tp-badge-online, .tp-badge-offline,
.tp-title-row, .tp-password-wrapper, .tp-password-input, .tp-btn-eye, .tp-btn-copy, .tp-icon-wrapper,
.hs-icon-box, .hs-faq-item, .hs-chat-header, .hs-chat-avatar, .msg-meta, .typing-indicator,
.input-container, .btn-send {
  display: flex;
  align-items: center;
}

/* centrado horizontal */
.notification-icon-box, .notification-arrow, .contact-info, .contact-icon-box, .scoring-ring-wrapper, .icon-btn,
.promo-icon-box, .doc-icon-box, .map-preview, .map-pin, .btn-desvincular, .step-number, .success-icon,
.app-loader-container, .modern-spinner, .option-icon, .service-icon-box, .tp-btn-eye, .tp-btn-copy,
.tp-icon-wrapper, .hs-icon-box, .hs-chat-avatar, .btn-send {
  justify-content: center;
}

.notification-header-row, .notice-header-top, .promo-header, .doc-card, .vinculacion-card, .wizard-title-group,
.wizard-stepper, .tp-header-between, .tp-password-input, .hs-faq-item {
  justify-content: space-between;
}

.notification-icon-box, .notification-arrow, .contact-icon-box, .scoring-ring-wrapper, .promo-icon-box,
.doc-icon-box, .hs-chat-avatar, .btn-send, .tp-icon-wrapper {
  flex-shrink: 0;
}

.contact-icon-box, .doc-icon-box, .service-icon-box { width: 40px; height: 40px; border-radius: 10px; }
.icon-btn, .hs-icon-box { width: 42px; height: 42px; border-radius: 12px; }
.promo-icon-box, .tp-icon-wrapper { width: 44px; height: 44px; border-radius: 12px; }

/* tarjetas con sombra suave */
.notification-card, .hs-card-action, .hs-chat-card, .tp-card {
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .03);
}
.notification-card:hover, .tp-card-action:hover, .hs-card-action:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, .06); }
.hs-card-action, .hs-chat-card, .tp-card { background: #fff; }
.tp-card-action, .hs-card-action { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }

/* ===== Carrusel promo ===== */
.promo-carousel-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 220px;
  margin: 20px auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .15);
  background-color: var(--color-bg-dark, #06131a);
}
.promo-carousel-track { position: relative; width: 100%; height: 100%; }
.promo-slide, .promo-overlay { position: absolute; inset: 0; }
.promo-slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  transition: opacity .6s ease-in-out, transform .6s cubic-bezier(.25, 1, .5, 1);
  justify-content: flex-end;
  padding: 20px;
}
.promo-slide.active { opacity: 1; visibility: visible; transform: scale(1); }
.promo-overlay { background: linear-gradient(180deg, rgba(6, 19, 26, .1) 0%, rgba(6, 19, 26, .85) 80%); z-index: 1; }
.promo-content { position: relative; z-index: 2; color: #fff; align-items: flex-start; }
.promo-badge {
  background-color: var(--color-primary, #00f2c3);
  color: var(--color-bg-dark, #06131a);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: .5px;
}
.promo-btn {
  background-color: #f7f2e1;
  color: var(--color-bg-dark, #06131a);
  border: none;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.promo-btn:hover { background-color: #fff; transform: translateY(-1px); }
.promo-indicators { position: absolute; bottom: 8px; right: 16px; display: flex; gap: 6px; z-index: 10; }
.promo-indicators .indicator {
  width: 8px;
  height: 4px;
  background-color: rgba(255, 255, 255, .4);
  border-radius: 4px;
  cursor: pointer;
  transition: width .3s ease, background-color .3s ease;
}
.promo-indicators .indicator.active { width: 20px; background-color: var(--color-primary, #00f2c3); }

/* ===== Notificaciones ===== */
.notifications-container, .notice-detail-screen {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.notifications-container { gap: 16px; width: 100%; max-width: 440px; }
.notification-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 16px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.notification-card.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  background-color: var(--color-primary);
  border-radius: 0 4px 4px 0;
}
.notification-icon-box { width: 46px; height: 46px; border-radius: 12px; margin-right: 14px; }
.alert-bg { background-color: #fef2f2; }
.alert-color { color: #ef4444; }
.neutral-bg { background-color: #f1f5f9; }
.neutral-color { color: #64748b; }
.notification-content { flex-grow: 1; }
.notification-header-row { margin-bottom: 4px; }
.notification-title-group { gap: 8px; }
.notification-title { font-weight: 700; font-size: 15px; color: #000; letter-spacing: -.2px; }
.unread-dot { width: 7px; height: 7px; background-color: #0ea5e9; border-radius: 50%; display: inline-block; }
.notification-time { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.notification-desc { font-size: 13.5px; color: #475569; line-height: 1.45; margin: 0; }
.notification-arrow { color: #cbd5e1; align-self: center; margin-left: 8px; }

/* ===== Aviso individual ===== */
.notice-detail-screen {
  background-color: #fffbf0;
  padding: 24px;
  max-width: 440px;
  margin: 0 auto;
  color: #1f2937;
}
.notice-header-top { display: flex; align-items: flex-start; margin-bottom: 16px; }
.notice-main-title { font-size: 26px; font-weight: 800; letter-spacing: .5px; margin: 0 0 4px; color: #111827; }
.notice-date { font-size: 13px; color: #6b7280; font-weight: 500; }

.read-badge, .badge-platinum { background-color: #ecfdf5; color: #059669; border: 1px solid #d1fae5; font-weight: 700; gap: 4px; }
.read-badge { padding: 6px 12px; border-radius: 20px; font-size: 11px; letter-spacing: .5px; }
.check-icon { stroke: #059669; }
.notice-greeting { font-size: 16px; font-weight: 700; color: #1f2937; margin: 16px 0 12px; }
.notice-text { font-size: 14px; line-height: 1.5; color: #374151; margin: 0 0 16px; }
.final-text { margin-bottom: 0; }

.contact-items-list { gap: 12px; margin: 20px 0; }
.contact-item {
  display: flex;
  align-items: flex-start;
  background-color: rgba(255, 255, 255, .6);
  border: 1px solid #f3ebd8;
  padding: 12px;
  border-radius: 14px;
}
.contact-icon-box { margin-right: 12px; }
.location-bg { background-color: #eff6ff; }
.location-color { color: #3b82f6; }
.phone-bg { background-color: #e0f2fe; }
.phone-color { color: #0284c7; }
.whatsapp-bg { background-color: #f0fdf4; }
.whatsapp-color { color: #22c55e; }
.contact-label { font-size: 14px; font-weight: 700; color: #1f2937; margin-bottom: 2px; }
.contact-sub, .contact-note { font-size: 12px; color: #6b7280; }
.contact-sub { line-height: 1.4; }
.contact-note { font-weight: 400; }
.contact-value { font-size: 14px; font-weight: 700; }
.phone-accent { color: #0284c7; }
.whatsapp-accent { color: #16a34a; }

/* ===== Detalle de cliente ===== */
.detail-container { gap: 16px; width: 100%; max-width: 440px; }
.card-box {
  background-color: var(--card-cream);
  border: 1px solid var(--border-cream);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .02);
}

/* Scoring */
.scoring-card { gap: 18px; }
.scoring-ring-wrapper { position: relative; width: 68px; height: 68px; }
.scoring-ring-wrapper svg { transform: rotate(-90deg); width: 68px; height: 68px; }
.scoring-ring-wrapper circle { fill: none; stroke-width: 6; }
.scoring-bg { stroke: #e5e7eb; }
.scoring-progress { stroke: var(--color-primary); stroke-dasharray: 188; stroke-dashoffset: 38; stroke-linecap: round; }
.scoring-number { position: absolute; font-weight: 800; font-size: 16px; color: #111827; }
.scoring-title { font-size: 16px; font-weight: 700; color: #111827; margin-bottom: 4px; }
.scoring-desc, .promo-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; margin-bottom: 8px; }
.badge-platinum {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10.5px;
  letter-spacing: .3px;
  width: fit-content;
}

/* Código de vinculación */
.vinculacion-subtitle { font-size: 10.5px; font-weight: 700; color: #9ca3af; letter-spacing: .5px; margin-bottom: 4px; }
.vinculacion-code { font-size: 17px; font-weight: 800; color: #111827; letter-spacing: .5px; margin-bottom: 4px; }
.vinculacion-note { font-size: 11.5px; color: var(--text-muted); }
.vinculacion-actions { gap: 8px; }
.icon-btn { border: none; cursor: pointer; transition: background .2s; }
.btn-copy { background-color: #f1f5f9; color: #334155; }
.btn-copy:hover { background-color: #e2e8f0; }
.btn-link { background-color: #f8fafc; border: 1px solid #e2e8f0; color: #64748b; }
.btn-link:hover { background-color: #f1f5f9; }

/* Promoción activa */
.promo-card { gap: 12px; }
.promo-title { font-size: 15px; font-weight: 700; margin: 0 0 4px; color: #111827; line-height: 1.2; }
.promo-subtitle { font-size: 14px; font-weight: 700; color: #111827; margin: 0 0 2px; }
.badge-hotsale { background-color: #0284c7; color: #fff; font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 6px; letter-spacing: .5px; }
.promo-body { gap: 14px; }
.read-badge, .badge-platinum, .promo-icon-box { background-color: #ecfdf5; color: #059669; }
.promo-icon-box { font-weight: 800; font-size: 18px; }
.promo-desc { margin-bottom: 4px; }
.promo-validity { font-size: 12px; font-weight: 700; color: #059669; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: .8px;
  margin-block: 4px -6px;
  text-transform: uppercase;
}

/* Documentación */
.doc-left { gap: 12px; }
.doc-icon-box { background-color: #f1f5f9; color: #475569; }
.doc-name { font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 2px; }
.doc-ref { font-size: 12px; color: var(--text-muted); }
.doc-action { font-size: 13.5px; font-weight: 700; color: #0284c7; text-decoration: none; gap: 2px; }

/* Ubicación */
.location-card { padding: 12px; gap: 12px; }
.map-preview {
  position: relative;
  width: 100%;
  height: 150px;
  background-color: #f5eedc;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ebdcb8;
}
.map-watermark { position: absolute; top: 10px; left: 12px; font-weight: 700; font-size: 14px; color: #78716c; opacity: .8; }
.map-pin { width: 28px; height: 28px; color: #ef4444; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .2)); }
.map-btn-overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: #fff;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
  cursor: pointer;
}
.address-details { padding: 0 4px 4px; }
.address-title { font-size: 15px; font-weight: 700; color: #111827; margin-bottom: 2px; }
.address-subtitle { font-size: 12.5px; color: var(--text-muted); }

.btn-desvincular {
  background-color: #fff1f2;
  border: 1px solid #fecdd3;
  color: #e11d48;
  font-weight: 700;
  font-size: 14px;
  padding: 14px;
  border-radius: 16px;
  gap: 8px;
  cursor: pointer;
  transition: background .2s;
  margin-top: 4px;
}
.btn-desvincular:hover { background-color: #ffe4e6; }

/* ===== Wizard de vinculación ===== */
.wizard-container {
  background-color: #fff;
  border-radius: 20px;
  padding: 24px;
  margin: 20px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  color: var(--color-bg-dark);
}
.wizard-header { margin-bottom: 24px; }
.wizard-title-group { margin-bottom: 20px; }
.wizard-title-group h2 { font-size: 1.35rem; font-weight: 700; margin: 0; color: var(--color-bg-dark); }
.wizard-close { background: transparent; border: none; font-size: 1.8rem; line-height: 1; color: #888; cursor: pointer; padding: 0 4px; }

.wizard-stepper { padding: 0 10px; }
.step-item { gap: 6px; opacity: .4; transition: all .3s ease; }
.step-item.active { opacity: 1; }
.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e5e7eb;
  color: var(--color-bg-dark);
  font-weight: 700;
  font-size: .9rem;
  transition: background-color .3s ease, color .3s ease;
}
.step-item.active .step-number { background-color: var(--color-primary); }
.step-label { font-size: .75rem; font-weight: 600; }
.step-line { flex: 1; height: 2px; background-color: #e5e7eb; margin: 0 8px 18px; }

.wizard-step-content { display: none; animation: fadeIn .3s ease-in-out; }
.wizard-step-content.active { display: block; }
.wizard-step-content h3 { font-size: 1.1rem; margin: 0 0 4px; }
.wizard-subtitle { font-size: .85rem; color: #666; margin: 0 0 20px; }

/* Opciones (paso 1) y servicios (paso 2) */
.options-grid { gap: 12px; margin-bottom: 24px; }
.wizard-option-card, .selectable-service-card { border: 2px solid #e5e7eb; border-radius: 14px; cursor: pointer; }
.wizard-option-card:hover, .selectable-service-card:hover { border-color: #cbd5e1; }
.wizard-option-card { display: block; padding: 14px 16px; transition: border-color .2s ease, background-color .2s ease; }
.wizard-option-card input[type="radio"] { display: none; }
.option-content { gap: 14px; }
.option-icon {
  width: 60px;
  height: 34px;
  border-radius: 10px;
  background-color: var(--color-card-dark);
  color: var(--color-primary);
  text-align: center;
}
.option-icon i { width: 22px; height: 22px; }
.option-info { gap: 2px; }
.option-info strong, .service-details strong { font-size: .95rem; color: var(--color-bg-dark); }
.option-info span { font-size: .78rem; color: #666; }
.wizard-option-card.selected { border-color: var(--color-primary); background-color: rgba(0, 242, 195, .05); }

.services-selection-list { gap: 12px; margin-bottom: 20px; }
.selectable-service-card { gap: 14px; padding: 14px; transition: all .2s ease; }
.selectable-service-card.selected { border-color: var(--color-primary); background-color: rgba(0, 242, 195, .06); }
.service-icon-box { background-color: #f1f5f9; font-size: 1.2rem; }
.service-details span { font-size: .8rem; color: #555; }
.service-details small { font-size: .72rem; color: #888; margin-top: 2px; }

/* Formulario (paso 3) */
.code-input-card { gap: 16px; }
.selected-summary-badge { background-color: var(--color-card-dark); color: #fff; padding: 10px 14px; border-radius: 10px; font-size: .85rem; }
.selected-summary-badge span { color: var(--color-primary); font-weight: 600; }
.form-group { gap: 6px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--color-bg-dark); }
.form-group input {
  padding: 12px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  outline: none;
  transition: border-color .2s ease;
}
.form-group input:focus { border-color: var(--color-primary); }
.input-hint { font-size: .75rem; color: #777; }

/* Botones */
.wizard-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.btn-primary, .btn-secondary { color: var(--color-bg-dark); border: none; border-radius: 10px; cursor: pointer; }
.btn-primary { background-color: var(--color-primary); padding: 12px 20px; font-weight: 700; transition: opacity .2s ease; }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.btn-secondary { background-color: #e5e7eb; padding: 12px 18px; font-weight: 600; }

/* Éxito */
.success-banner { text-align: center; padding: 24px 12px; animation: fadeIn .4s ease; }
.success-icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-primary);
  color: var(--color-bg-dark);
  font-size: 2rem;
  font-weight: 900;
  border-radius: 50%;
  margin: 0 auto 16px;
}
.success-banner h3 { font-size: 1.3rem; margin-bottom: 8px; }
.success-banner p { font-size: .9rem; color: #666; margin-bottom: 20px; }

/* ===== Loader ===== */
.app-loader-container { gap: 16px; padding: 40px; width: 100%; }
.modern-spinner { position: relative; width: 50px; height: 50px; }
.spinner-ring {
  position: absolute;
  inset: 0;
  border: 4px solid rgba(0, 242, 195, .15);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin .8s cubic-bezier(.68, -.55, .265, 1.55) infinite;
}
.spinner-core {
  width: 20px;
  height: 20px;
  background-color: var(--color-primary);
  border-radius: 50%;
  animation: pulseCore 1.2s ease-in-out infinite alternate;
}
.loader-text { font-size: .85rem; font-weight: 600; color: var(--color-bg-dark); letter-spacing: .5px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseCore {
  0% { transform: scale(.6); opacity: .6; }
  100% { transform: scale(1.1); opacity: 1; }
}

/* ===== Panel técnico ===== */
.tech-panel-container { background-color: #f2f3f5; padding: 16px; max-width: 420px; margin: 0 auto; color: #1a2332; gap: 18px; }
.tp-card { padding: 16px; gap: 14px; }
.tp-card-action:hover { transform: translateY(-1px); }
.tp-section { gap: 8px; }
.tp-section-header { padding: 0 4px; }
.tp-section-title { font-size: 11px; font-weight: 700; color: #8c9ba5; letter-spacing: .5px; }
.tp-link-action { font-size: 11px; font-weight: 700; color: #4361ee; text-decoration: none; }
.tp-list { gap: 8px; }
.tp-content { flex: 1; }

.tp-title, .tp-ssid-name, .hs-section-title, .hs-chat-info h4 { font-size: 15px; font-weight: 700; color: #1e293b; margin: 0; }
.tp-title { line-height: 1.2; }
.tp-subtitle, .hs-chat-info p { font-size: 12px; color: #64748b; margin: 3px 0 0; }
.tp-chevron, .hs-chevron { font-size: 18px; color: #cbd5e1; font-weight: 300; }
.tp-chevron { font-size: 20px; }

.tp-icon-green { background-color: #dcfce7; color: #16a34a; }
.tp-icon-red { background-color: #fcdcdc; color: #a31616; }
.tp-icon-gray { background-color: #f1f5f9; color: #64748b; }
.tp-icon-mint { background-color: #e6f7f3; color: #0d9488; }
.tp-icon-blue { background-color: #eff6ff; color: #2563eb; }
.tp-icon-lightgray { background-color: #f1f5f9; color: #475569; }
.tp-icon-softblue { background-color: #eff6ff; color: #3b82f6; }
.tp-icon-softorange { background-color: #fff7ed; color: #ea580c; }

.tp-card-status { position: relative; }
.tp-badge-online, .tp-badge-offline { font-size: 10px; font-weight: 800; padding: 6px 10px; border-radius: 20px; gap: 5px; letter-spacing: .3px; }
.tp-badge-online { background-color: #e6f9f0; color: #10b981; }
.tp-badge-offline { background-color: #f9e6e6; color: #b91010; }
.tp-dot, .tp-dot-r { width: 6px; height: 6px; border-radius: 50%; }
.tp-dot { background-color: #10b981; }
.tp-dot-r { background-color: #b91010; }
.tp-sn-badge {
  display: inline-block;
  margin-top: 6px;
  background-color: #e0e7ff;
  color: #4338ca;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: .4px;
}

/* Wi-Fi */
.tp-card-wifi { flex-direction: column; align-items: stretch; }
.tp-wifi-block { gap: 6px; }
.tp-field-label { font-size: 10px; font-weight: 700; color: #94a3b8; letter-spacing: .4px; }
.tp-password-wrapper { gap: 8px; }
.tp-password-input { flex: 1; background-color: #f8fafc; border-radius: 10px; padding: 8px 12px; }
.tp-dots { font-size: 18px; letter-spacing: 2px; color: #1e293b; line-height: 1; }
.tp-btn-eye, .tp-btn-copy { background: transparent; border: none; cursor: pointer; color: #2563eb; padding: 4px; }
.tp-btn-copy { background-color: #e0e7ff; border: 1px solid #c7d2fe; border-radius: 10px; padding: 10px; }

/* Etiquetas de estado */
.tp-title-row { gap: 8px; }
.tp-status-tag { font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 4px; letter-spacing: .3px; }
.tp-tag-success { background-color: #dcfce7; color: #15803d; }
.tp-tag-process { background-color: #dbeafe; color: #1d4ed8; }
.tp-tag-danger { background-color: #fedbdb; color: #d81d1d; }
.tp-tag-warning { background-color: #fdfedb; color: #d8d51d; }

/* ===== Ayuda ===== */
.help-section-container { background-color: #f7f8fa; padding: 16px; max-width: 380px; margin: 0 auto; color: #1e293b; gap: 20px; }
.hs-grid-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hs-card-action { padding: 16px 14px; align-items: flex-start; gap: 12px; }
.hs-card-action:hover { transform: translateY(-2px); }
.hs-icon-box { background-color: #f0f7ff; }
.hs-card-label { font-size: 13px; font-weight: 700; color: #1e293b; line-height: 1.25; }
.hs-faq-section { gap: 12px; }
.hs-faq-list { gap: 8px; }
.hs-faq-item {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .02);
  cursor: pointer;
  transition: background-color .15s ease;
}
.hs-faq-item:hover { background-color: #fafafa; }
.hs-chat-card { border-top: 3px solid #2563eb; padding: 16px; gap: 16px; }
.hs-chat-header { gap: 12px; }
.hs-chat-avatar { width: 50px; height: 50px; background-color: #f0f7ff; border-radius: 50%; }
.hs-chat-info h4 { color: #0f172a; }
.hs-btn-chat {
  width: 100%;
  background-color: #009be8;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s ease;
}
.hs-btn-chat:hover { background-color: #0084c7; }

/* ===== Chat ===== */
.chat-app-wrapper { width: 100%; max-width: 420px; height: 80dvh; margin: 0 auto; background-color: #f4f6f8; overflow: hidden; position: relative; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; gap: 12px; scroll-behavior: smooth; }
.chat-date-badge {
  align-self: center;
  background-color: #fff;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
  margin-bottom: 8px;
  letter-spacing: .5px;
}
.msg-group { max-width: 82%; }
.msg-received { align-self: flex-start; }
.msg-sent { align-self: flex-end; }
.msg-bubble, .typing-indicator { box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.msg-bubble { padding: 12px 14px; font-size: 14.5px; line-height: 1.4; color: var(--text-main); }
.msg-received .msg-bubble { background-color: var(--color-bg-dark); color: #fff; border-radius: 16px 16px 16px 4px; }
.msg-sent .msg-bubble { background-color: #e1f5fe; border-radius: 16px 16px 4px 16px; }
.msg-time { font-size: 10.5px; color: var(--text-muted); margin-top: 4px; font-weight: 600; }
.msg-received .msg-time { align-self: flex-start; margin-left: 4px; }
.msg-meta { gap: 4px; align-self: flex-end; margin-right: 4px; }
.check-icon.read { color: #009be8; }

.typing-indicator { align-self: flex-start; background-color: var(--bubble-received); padding: 10px 14px; border-radius: 16px 16px 16px 4px; gap: 4px; }
.typing-indicator .dot { width: 6px; height: 6px; background-color: var(--text-muted); border-radius: 50%; animation: typingBounce 1.4s infinite ease-in-out both; }
.typing-indicator .dot:nth-child(1) { animation-delay: -.32s; }
.typing-indicator .dot:nth-child(2) { animation-delay: -.16s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(.6); opacity: .4; }
  40% { transform: scale(1); opacity: 1; }
}

.chat-footer { display: flex; align-items: flex-end; background-color: #fff; padding: 10px 14px; gap: 10px; border-top: 1px solid #eef2f6; transition: all .2s ease-in-out; }
.input-container { flex: 1; background-color: #f0f2f5; border-radius: 20px; padding: 8px 14px; border: 1.5px solid transparent; transition: all .25s ease; }
.input-container:focus-within { background-color: #fff; border-color: #00a884; box-shadow: 0 0 0 3px rgba(0, 168, 132, .15); transform: translateY(-1px); }
textarea {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  resize: none;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text-main);
  max-height: 120px;
  line-height: 1.35;
  padding: 0;
  margin: 0;
}
textarea::placeholder { color: #9aa0a6; }
.btn-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn-send:active { transform: scale(.92); }
.btn-send svg { margin-left: -2px; }