/**
 * Wepio Help Center — Apple macOS Sonoma / iOS 18 Pastel Style
 *
 * Paleta Oficial V2 (Regla 60-30-10):
 * - 60% Lienzo / Fondo Base: #A3B4D0 (Azul Bebé Pastel)
 * - 30% Estructuras / Sidebar: #A3D9D7 (Teal Aqua Pastel) & #FFFFFF (Superficie Cards)
 * - 10% Acentos y CTAs: #B3EACB (Menta Pastel Suave)
 * - Badges: #E2FFD9 (Start - Lima) / #FFC9C5 (Avanzado & Pro - Melocotón)
 * - Tipografía: Outfit (Titulares 700/800) + Inter (Cuerpo 400/500/600)
 *
 * Rendimiento: Animaciones GPU puras a 60fps sobre `transform` y `opacity`.
 */

:root {
  --wepio-pastel-bg: #A3B4D0;
  --wepio-pastel-teal: #A3D9D7;
  --wepio-pastel-mint: #B3EACB;
  --wepio-pastel-mint-hover: #98D8B3;
  --wepio-mac-surface: #FFFFFF;
  --wepio-sidebar-bg: rgba(163, 217, 215, 0.45);
  --wepio-card-bg: rgba(255, 255, 255, 0.92);
  --wepio-card-hover: #FFFFFF;
  
  --wepio-text-main: #0F172A;
  --wepio-text-muted: #475569;
  --wepio-text-subtle: #64748B;
  
  --wepio-badge-start-bg: #E2FFD9;
  --wepio-badge-start-txt: #166534;
  --wepio-badge-avanzado-bg: #FFE5D9;
  --wepio-badge-avanzado-txt: #9A3412;
  --wepio-badge-pro-bg: #FFC9C5;
  --wepio-badge-pro-txt: #9F1239;
  
  --wepio-border-light: rgba(15, 23, 42, 0.08);
  --wepio-border-focus: rgba(179, 234, 203, 0.9);
  
  --wepio-shadow-window: 0 24px 60px -12px rgba(15, 23, 42, 0.25), 0 8px 24px -4px rgba(15, 23, 42, 0.12);
  --wepio-shadow-card: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --wepio-shadow-card-hover: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.06);
  --wepio-shadow-widget: 0 20px 40px -8px rgba(15, 23, 42, 0.28);
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --radius-window: 22px;
  --radius-card: 18px;
  --radius-pill: 9999px;
  --radius-sm: 10px;
}

/* Reset y Base para el Centro de Ayuda (100% Pantalla Completa) */
body.wepio-help-page-body {
  margin: 0;
  padding: 0;
  background-color: var(--wepio-mac-surface);
  overflow-x: hidden;
}

.wepio-help-center-wrapper {
  background-color: var(--wepio-mac-surface);
  min-height: 100vh;
  padding: 0 !important;
  margin: 0 !important;
  width: 100vw;
  max-width: 100%;
  display: flex;
  justify-content: stretch;
  align-items: stretch;
  font-family: var(--font-body);
  color: var(--wepio-text-main);
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

.wepio-help-center-wrapper *,
.wepio-help-center-wrapper *::before,
.wepio-help-center-wrapper *::after {
  box-sizing: border-box;
}

/* Enlace volver al sitio principal */
.wepio-back-home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #065F46;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.75);
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.wepio-back-home-link:hover {
  background: #FFFFFF;
  transform: translateX(-2px);
}

/* ==========================================================================
   VENTANA MACOS (100% FULL-WIDTH / FULL-HEIGHT SIN CORTE)
   ========================================================================== */
.wepio-mac-window {
  width: 100%;
  max-width: 100% !important;
  min-height: 100vh;
  height: auto;
  background: var(--wepio-mac-surface);
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible !important;
}

/* Cuerpo de la Ventana: 2 Columnas (Sidebar Pastel + Contenido) */
.wepio-mac-body {
  display: flex;
  flex: 1;
  min-height: 100vh;
  width: 100%;
}

/* Sidebar a pantalla completa */
.wepio-mac-sidebar {
  width: 300px;
  min-width: 280px;
  background: var(--wepio-sidebar-bg);
  border-right: 1px solid var(--wepio-border-light);
  padding: 32px 20px 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

/* Columna de contenido a pantalla completa */
.wepio-mac-content {
  flex: 1;
  padding: 40px 60px 80px 50px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 100vh;
  overflow: visible !important;
}

.wepio-traffic-lights {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.wepio-traffic-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.wepio-traffic-dot:hover {
  opacity: 0.8;
}

.wepio-traffic-dot.close { background-color: #FF5F56; border: 1px solid #E0443E; }
.wepio-traffic-dot.minimize { background-color: #FFBD2E; border: 1px solid #DEA123; }
.wepio-traffic-dot.maximize { background-color: #27C93F; border: 1px solid #1AAB29; }

.wepio-titlebar-title {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--wepio-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.wepio-titlebar-title svg {
  width: 15px;
  height: 15px;
  color: #10B981;
}

/* Cuerpo de la Ventana (Layout de 2 Columnas) */
.wepio-mac-body {
  display: flex;
  flex: 1;
  min-height: 768px;
}

/* ==========================================================================
   COLUMNA IZQUIERDA: SIDEBAR DE CATEGORÍAS (Apple Pastel)
   ========================================================================== */
.wepio-mac-sidebar {
  width: 290px;
  background: var(--wepio-sidebar-bg);
  border-right: 1px solid var(--wepio-border-light);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 30px;
  align-self: flex-start;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}

.wepio-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  margin-bottom: 6px;
}

.wepio-sidebar-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--wepio-pastel-mint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wepio-sidebar-brand-text {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--wepio-text-main);
}

.wepio-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wepio-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--wepio-text-main);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  will-change: transform;
}

.wepio-nav-item:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: translateX(3px);
}

.wepio-nav-item.active {
  background: var(--wepio-pastel-mint);
  font-weight: 600;
  color: #064E3B;
  box-shadow: 0 4px 12px rgba(179, 234, 203, 0.5);
}

.wepio-nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wepio-text-muted);
}

.wepio-nav-item.active .wepio-nav-icon {
  color: #064E3B;
}

.wepio-sidebar-footer {
  margin-top: auto;
  padding: 14px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.wepio-sidebar-footer p {
  font-size: 12px;
  color: var(--wepio-text-subtle);
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.wepio-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #047857;
  text-decoration: none;
}

.wepio-whatsapp-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   COLUMNA DERECHA: CONTENIDO PRINCIPAL & ARTÍCULOS (SCROLL NATURAL)
   ========================================================================== */
.wepio-mac-content {
  flex: 1;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Buscador Reactivo Estilo Pastilla (Pill Input) */
.wepio-search-box-wrapper {
  position: relative;
  width: 100%;
}

.wepio-search-input {
  width: 100%;
  height: 52px;
  background: #FFFFFF;
  border: 1.5px solid var(--wepio-border-light);
  border-radius: var(--radius-pill);
  padding: 0 48px 0 52px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--wepio-text-main);
  box-shadow: var(--wepio-shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.wepio-search-input:focus {
  border-color: #52DE97;
  box-shadow: 0 0 0 4px rgba(82, 222, 151, 0.25), var(--wepio-shadow-card);
}

.wepio-search-icon-left {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--wepio-text-subtle);
  pointer-events: none;
}

.wepio-search-clear-btn {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--wepio-text-subtle);
  cursor: pointer;
  padding: 4px;
  display: none;
  font-size: 14px;
}

.wepio-search-clear-btn.visible {
  display: block;
}

/* Encabezado de Sección Activa */
.wepio-content-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--wepio-border-light);
  padding-bottom: 12px;
}

.wepio-section-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--wepio-text-main);
  margin: 0;
}

.wepio-results-count {
  font-size: 13.5px;
  color: var(--wepio-text-subtle);
}

/* Grilla de Artículos */
.wepio-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

/* Tarjeta de Artículo (Apple Card 100% Clickeable) */
.wepio-article-card {
  background: var(--wepio-card-bg);
  border: 1px solid var(--wepio-border-light);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--wepio-shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer !important;
  user-select: none;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  will-change: transform;
}

.wepio-article-card:hover {
  transform: translateY(-4px);
  background: var(--wepio-card-hover);
  box-shadow: var(--wepio-shadow-card-hover);
  border-color: rgba(82, 222, 151, 0.7);
}

.wepio-article-card * {
  cursor: pointer !important;
}

.wepio-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wepio-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wepio-card-icon svg {
  width: 20px;
  height: 20px;
}

/* Badges de Planes */
.wepio-plan-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.wepio-plan-badge.start {
  background-color: var(--wepio-badge-start-bg);
  color: var(--wepio-badge-start-txt);
}

.wepio-plan-badge.avanzado {
  background-color: var(--wepio-badge-avanzado-bg);
  color: var(--wepio-badge-avanzado-txt);
}

.wepio-plan-badge.pro {
  background-color: var(--wepio-badge-pro-bg);
  color: var(--wepio-badge-pro-txt);
}

.wepio-card-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--wepio-text-main);
  margin: 0;
  line-height: 1.35;
}

.wepio-card-summary {
  font-size: 13.5px;
  color: var(--wepio-text-muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wepio-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  font-size: 12px;
  color: var(--wepio-text-subtle);
}

.wepio-read-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wepio-read-more {
  font-weight: 600;
  color: #059669;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   MODAL DE LECTURA DE ARTÍCULO (Apple Sheet / Overlay)
   ========================================================================== */
.wepio-article-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.wepio-article-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.wepio-article-modal {
  background: #FFFFFF;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.wepio-article-modal-overlay.active .wepio-article-modal {
  transform: scale(1);
}

.wepio-modal-header {
  padding: 24px 28px 16px 28px;
  border-bottom: 1px solid var(--wepio-border-light);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.wepio-modal-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--wepio-text-main);
  margin: 8px 0 0 0;
  line-height: 1.3;
}

.wepio-modal-close-btn {
  background: rgba(15, 23, 42, 0.06);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--wepio-text-muted);
  transition: background 0.15s ease;
}

.wepio-modal-close-btn:hover {
  background: rgba(15, 23, 42, 0.12);
  color: var(--wepio-text-main);
}

.wepio-modal-body {
  padding: 28px;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.7;
  color: #1E293B;
}

.wepio-modal-footer {
  padding: 16px 28px;
  background: #F8FAFC;
  border-top: 1px solid var(--wepio-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   WIDGET FLOTANTE HÍBRIDO (ASISTENTE WEPIO - ESQUINA INFERIOR DERECHA)
   ========================================================================== */
.wepio-ai-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Botón Flotante Activo */
.wepio-widget-toggle {
  background: linear-gradient(135deg, #B3EACB 0%, #A3D9D7 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  box-shadow: var(--wepio-shadow-widget);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  will-change: transform;
}

.wepio-widget-toggle:hover {
  transform: scale(1.04);
  box-shadow: 0 24px 48px -10px rgba(15, 23, 42, 0.32);
}

.wepio-widget-toggle-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #065F46;
}

.wepio-widget-toggle-text {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  color: #064E3B;
}

/* Drawer / Ventana del Chat */
.wepio-widget-drawer {
  width: 360px;
  height: 480px;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: var(--wepio-shadow-widget);
  border: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.wepio-ai-widget.open .wepio-widget-drawer {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.wepio-drawer-header {
  background: linear-gradient(135deg, rgba(179, 234, 203, 0.6) 0%, rgba(163, 217, 215, 0.6) 100%);
  padding: 14px 18px;
  border-bottom: 1px solid var(--wepio-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wepio-drawer-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wepio-drawer-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #064E3B;
  margin: 0;
}

.wepio-drawer-subtitle {
  font-size: 11.5px;
  color: #047857;
  margin: 0;
}

.wepio-drawer-close {
  background: none;
  border: none;
  color: #064E3B;
  cursor: pointer;
  padding: 4px;
}

.wepio-drawer-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13.5px;
}

.wepio-chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  line-height: 1.45;
}

.wepio-chat-bubble.bot {
  background: #F1F5F9;
  color: var(--wepio-text-main);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.wepio-chat-bubble.user {
  background: var(--wepio-pastel-mint);
  color: #064E3B;
  font-weight: 500;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Chips / Botones de acción rápida en el chat */
.wepio-chat-quick-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  align-self: flex-start;
  max-width: 95%;
}

.wepio-quick-chip {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: #1E293B;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.wepio-quick-chip:hover {
  background: #F0FDF4;
  border-color: #86EFAC;
  color: #065F46;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.12);
}

.wepio-quick-chip:active {
  transform: scale(0.98);
}

.wepio-drawer-input-area {
  padding: 12px;
  border-top: 1px solid var(--wepio-border-light);
  display: flex;
  gap: 8px;
  background: #F8FAFC;
}

.wepio-drawer-input {
  flex: 1;
  height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--wepio-border-light);
  padding: 0 14px;
  font-size: 13.5px;
  font-family: var(--font-body);
  outline: none;
}

.wepio-drawer-input:focus {
  border-color: #52DE97;
}

.wepio-drawer-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--wepio-pastel-mint);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #064E3B;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.wepio-drawer-send-btn:hover {
  transform: scale(1.08);
}

/* ==========================================================================
   VISTA TIPO BLOG (LECTURA CONTINUA DE ARTÍCULOS)
   ========================================================================== */
.wepio-back-to-grid-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--wepio-border-light);
  color: #065F46;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.wepio-back-to-grid-btn:hover {
  background: var(--wepio-pastel-mint);
  transform: translateX(-3px);
  box-shadow: 0 4px 12px rgba(6, 95, 70, 0.12);
}

.wepio-articles-feed {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.wepio-blog-post {
  background: var(--wepio-card-bg);
  border: 1px solid var(--wepio-border-light);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--wepio-shadow-card);
  transition: box-shadow 0.2s ease;
  scroll-margin-top: 40px;
}

.wepio-blog-post:hover {
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
}

.wepio-blog-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.wepio-blog-top-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.wepio-blog-category-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #065F46;
  background: rgba(179, 234, 203, 0.4);
  padding: 4px 10px;
  border-radius: 6px;
}

.wepio-blog-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--wepio-text-main);
  line-height: 1.3;
  margin: 0 0 12px 0;
}

.wepio-blog-summary {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--wepio-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Indicador de Ruta de Menú / Botón dentro de la App */
.wepio-app-route-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #1E293B;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin: 16px 0;
  letter-spacing: 0.2px;
}

.wepio-app-route-badge svg {
  color: #059669;
  flex-shrink: 0;
}

.wepio-blog-content {
  font-size: 15px;
  line-height: 1.7;
  color: #1E293B;
  white-space: pre-line;
  margin-bottom: 28px;
}

/* Barra de Feedback con Likes / Dislikes */
.wepio-feedback-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  flex-wrap: wrap;
  gap: 16px;
}

.wepio-feedback-prompt {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--wepio-text-muted);
}

.wepio-feedback-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wepio-feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wepio-feedback-btn:hover {
  background: #FFFFFF;
  border-color: #94A3B8;
  transform: translateY(-1px);
}

.wepio-feedback-btn.active.like {
  background: #DCFCE7;
  border-color: #86EFAC;
  color: #166534;
}

.wepio-feedback-btn.active.dislike {
  background: #FEE2E2;
  border-color: #FCA5A5;
  color: #991B1B;
}

.wepio-feedback-count {
  font-size: 12.5px;
  font-weight: 700;
}

/* ==========================================================================
   ELEMENTOS MÓVILES (OCULTOS POR DEFECTO EN DESKTOP)
   ========================================================================== */
.wepio-mobile-bottom-dock {
  display: none;
}

.wepio-mobile-menu-overlay {
  display: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & MÓVILES - MAX-WIDTH 900PX)
   ========================================================================== */
@media (max-width: 900px) {
  /* 1. Ocultar Sidebar pesado y Buscador superior en móvil */
  .wepio-mac-sidebar {
    display: none !important;
  }
  
  .wepio-search-box-wrapper {
    display: none !important;
  }

  .wepio-help-center-wrapper {
    padding: 0 !important;
  }

  .wepio-mac-window {
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    min-height: 100vh;
  }

  .wepio-mac-body {
    flex-direction: column;
    min-height: 100vh;
  }

  .wepio-mac-content {
    padding: 24px 16px calc(84px + env(safe-area-inset-bottom, 0px)) 16px !important;
    gap: 20px !important;
  }

  .wepio-content-header {
    margin-bottom: 4px;
  }

  .wepio-section-title {
    font-size: 22px !important;
    line-height: 1.25;
  }

  .wepio-results-count {
    font-size: 12px;
  }

  .wepio-articles-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .wepio-article-card {
    padding: 18px 16px !important;
    border-radius: 16px !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .wepio-article-card:active {
    transform: scale(0.99);
  }

  .wepio-card-title {
    font-size: 16.5px !important;
    margin-bottom: 6px !important;
  }

  .wepio-card-summary {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    margin-bottom: 14px !important;
  }

  .wepio-card-footer {
    padding-top: 12px !important;
  }

  /* Vista Blog en móvil */
  .wepio-blog-post {
    padding: 20px 16px !important;
    border-radius: 16px !important;
    margin-bottom: 18px !important;
  }

  .wepio-blog-title {
    font-size: 20px !important;
  }

  .wepio-blog-summary {
    font-size: 14.5px !important;
  }

  .wepio-blog-content {
    font-size: 14.5px !important;
  }

  /* -------------------------------------------------------------------------
     2. FOOTER DOCK FIJO EN MÓVIL (LOGO + BUSCADOR + MENÚ ☰)
     ------------------------------------------------------------------------- */
  .wepio-mobile-bottom-dock {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 990;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)) 14px;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
  }

  /* Logo Wepio en Dock */
  .wepio-dock-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    flex-shrink: 0;
  }

  .wepio-dock-brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #B3EACB;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
  }

  .wepio-dock-brand-text {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--wepio-text-main);
  }

  .wepio-dock-brand-text span {
    color: #10B981;
  }

  /* Barra de Búsqueda Fija en Dock */
  .wepio-dock-search-box {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
  }

  .wepio-dock-search-icon {
    position: absolute;
    left: 11px;
    width: 16px;
    height: 16px;
    color: #64748B;
    pointer-events: none;
  }

  .wepio-dock-search-input {
    width: 100%;
    height: 40px;
    border-radius: var(--radius-pill);
    background: #F1F5F9;
    border: 1.5px solid #CBD5E1;
    padding: 0 32px 0 34px;
    font-size: 13.5px;
    font-family: var(--font-body);
    color: var(--wepio-text-main);
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .wepio-dock-search-input:focus {
    background: #FFFFFF;
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
  }

  .wepio-dock-search-input::placeholder {
    color: #94A3B8;
    font-size: 13px;
  }

  .wepio-dock-search-clear-btn {
    position: absolute;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #CBD5E1;
    color: #475569;
    border: none;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .wepio-dock-search-clear-btn.visible {
    display: flex;
  }

  /* Botón Menú Hamburguesa (Tres Rayitas ☰) */
  .wepio-dock-hamburger-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: rgba(163, 217, 215, 0.35);
    border: 1.5px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    height: 40px;
    min-width: 44px;
    padding: 0 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, transform 0.1s ease;
  }

  .wepio-dock-hamburger-btn:active {
    transform: scale(0.95);
    background: rgba(163, 217, 215, 0.55);
  }

  .wepio-hamburger-bars {
    width: 18px;
    height: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .wepio-hamburger-bars .bar {
    width: 100%;
    height: 2px;
    background-color: #064E3B;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .wepio-dock-menu-label {
    font-size: 9px;
    font-weight: 700;
    color: #064E3B;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1;
  }

  /* -------------------------------------------------------------------------
     3. MENÚ DESPLEGABLE MÓVIL (DRAWER / BOTTOM SHEET)
     ------------------------------------------------------------------------- */
  .wepio-mobile-menu-overlay {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 1100;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0.3s ease;
  }

  .wepio-mobile-menu-overlay.open {
    pointer-events: auto;
    visibility: visible;
  }

  .wepio-mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .wepio-mobile-menu-overlay.open .wepio-mobile-menu-backdrop {
    opacity: 1;
  }

  .wepio-mobile-menu-drawer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 86vh;
    background: #FFFFFF;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.25);
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    will-change: transform;
    box-sizing: border-box;
  }

  .wepio-mobile-menu-overlay.open .wepio-mobile-menu-drawer {
    transform: translateY(0);
  }

  .wepio-menu-drawer-handle {
    width: 36px;
    height: 4px;
    background: #CBD5E1;
    border-radius: 9999px;
    margin: 10px auto 4px auto;
    flex-shrink: 0;
  }

  .wepio-menu-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 14px 20px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    flex-shrink: 0;
  }

  .wepio-menu-drawer-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .wepio-menu-drawer-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #B3EACB;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .wepio-menu-drawer-title {
    font-family: var(--font-heading);
    font-size: 16.5px;
    font-weight: 700;
    color: var(--wepio-text-main);
    margin: 0;
    line-height: 1.2;
  }

  .wepio-menu-drawer-subtitle {
    font-size: 12px;
    color: #64748B;
  }

  .wepio-menu-drawer-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F1F5F9;
    border: none;
    color: #475569;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
  }

  .wepio-menu-drawer-close:active {
    background: #E2E8F0;
  }

  .wepio-menu-drawer-back {
    padding: 10px 20px;
    background: #F8FAFC;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    flex-shrink: 0;
  }

  .wepio-back-home-link-mobile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #065F46;
    text-decoration: none;
  }

  .wepio-menu-drawer-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 16px;
  }

  .wepio-menu-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94A3B8;
    padding: 0 8px 8px 8px;
  }

  .wepio-mobile-categories-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .wepio-mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--wepio-text-main);
    cursor: pointer;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.15s ease;
  }

  .wepio-mobile-nav-item:active {
    background: #E2E8F0;
    transform: scale(0.99);
  }

  .wepio-mobile-nav-item.active {
    background: #E6F4EA;
    border-color: #A3D9D7;
    color: #064E3B;
  }

  .wepio-mobile-nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  .wepio-mobile-nav-icon svg {
    width: 16px;
    height: 16px;
    color: #065F46;
  }

  .wepio-mobile-nav-active-dot {
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    display: none;
  }

  .wepio-mobile-nav-item.active .wepio-mobile-nav-active-dot {
    display: block;
  }

  .wepio-menu-drawer-footer {
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)) 20px;
    background: #F8FAFC;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    flex-shrink: 0;
  }

  .wepio-mobile-support-title {
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
    margin: 0 0 8px 0;
  }

  .wepio-mobile-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #10B981;
    color: #FFFFFF;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    padding: 11px 16px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25);
    transition: transform 0.15s ease, background 0.15s ease;
  }

  .wepio-mobile-whatsapp-btn:active {
    transform: scale(0.98);
    background: #059669;
  }

  /* -------------------------------------------------------------------------
     4. WIDGET FLOTANTE EN MÓVIL (POR ENCIMA DEL FOOTER DOCK)
     ------------------------------------------------------------------------- */
  .wepio-ai-widget {
    bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
    right: 14px !important;
  }

  .wepio-widget-toggle {
    padding: 9px 15px !important;
    font-size: 13px !important;
    gap: 8px !important;
  }

  .wepio-widget-toggle-icon {
    width: 20px !important;
    height: 20px !important;
  }

  .wepio-widget-drawer {
    width: calc(100vw - 28px) !important;
    right: 14px !important;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    max-height: calc(100vh - 150px) !important;
  }
}
