/**
 * ESTILOS VISUALES - CONVERSOR DE LETRAS BONITAS Y LIMPIADOR DE TEXTO
 * Fijate Tools - Diseño Premium Bento Grid & Responsive
 */

:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Colores Corporativos Fijate */
  --accent-orange: #ff8507;
  --accent-orange-hover: #ff9826;
  --accent-orange-glow: rgba(255, 133, 7, 0.25);
  --accent-orange-text: #0b0f17;

  --color-success: #10b981;
  --color-success-glow: rgba(16, 185, 129, 0.2);
  --color-danger: #ef4444;
  --color-danger-glow: rgba(239, 68, 68, 0.2);
  --color-info: #3b82f6;

  /* Radio de bordes y sombras */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modo Oscuro (Por defecto) */
[data-theme="dark"] {
  --bg-app: #0b0f17;
  --bg-card: #131b26;
  --bg-card-hover: #182332;
  --bg-card-subtle: #0f1622;
  --bg-input: #0e141f;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 133, 7, 0.4);
  --border-color-focus: #ff8507;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  --card-shadow-hover: 0 10px 30px -4px rgba(0, 0, 0, 0.7), 0 0 15px var(--accent-orange-glow);
  --glow-subtle: rgba(255, 133, 7, 0.06);
}

/* Modo Claro */
[data-theme="light"] {
  --bg-app: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-card-subtle: #f8fafc;
  --bg-input: #ffffff;
  --border-color: #e2e8f0;
  --border-color-hover: rgba(255, 133, 7, 0.5);
  --border-color-focus: #ff8507;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 10px 25px -4px rgba(0, 0, 0, 0.12), 0 0 12px var(--accent-orange-glow);
  --glow-subtle: rgba(255, 133, 7, 0.03);
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: clip;
}

.app-header {
  width: 100% !important;
}

.header-container {
  width: 100% !important;
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.app-main {
  flex: 1 0 auto;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 24px 16px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.app-container {
  width: 100% !important;
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-sizing: border-box;
}

h1, h2, h3, h4, .brand-title, .editor-headline, .bento-title, .mockup-title, .guide-title {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* 1. SECCIÓN HERO / EDITOR DE ENTRADA */
.editor-hero-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.editor-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-orange), #ffb703, #fb8500);
}

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

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

.editor-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-orange);
  background: rgba(255, 133, 7, 0.12);
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.editor-headline {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-tool-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 38px;
  transition: all var(--transition-fast);
  user-select: none;
}

.btn-tool-action:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  color: var(--accent-orange);
  transform: translateY(-1px);
}

.btn-tool-danger:hover {
  border-color: var(--color-danger);
  color: var(--color-danger);
  background: rgba(239, 68, 68, 0.1);
}

.editor-textarea-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.main-text-textarea {
  width: 100%;
  min-height: 110px;
  max-height: 380px;
  padding: 16px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.main-text-textarea:focus {
  border-color: var(--border-color-focus);
  box-shadow: 0 0 0 3px var(--accent-orange-glow);
}

.main-text-textarea::placeholder {
  color: var(--text-dim);
}

/* Barra de métricas y contadores de redes */
.editor-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.stats-counter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-card-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.stat-val {
  color: var(--text-main);
  font-weight: 700;
  font-family: var(--font-mono);
}

.social-limits-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.limit-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.limit-icon {
  font-weight: 700;
  font-size: 0.85rem;
}

.limit-chip strong {
  color: var(--text-main);
  font-family: var(--font-mono);
}

.limit-bar {
  width: 42px;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

[data-theme="light"] .limit-bar {
  background: rgba(0, 0, 0, 0.08);
}

.limit-bar-fill {
  height: 100%;
  background: var(--color-success);
  border-radius: 3px;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.limit-chip.is-warning .limit-bar-fill {
  background: #f59e0b;
}

.limit-chip.is-danger .limit-bar-fill {
  background: var(--color-danger);
}

.limit-chip.is-danger strong {
  color: var(--color-danger);
}

/* 2. PESTAÑAS PRINCIPALES DE NAVEGACIÓN */
.tool-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 4px 2px 10px;
  width: 100%;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  min-height: 42px;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--border-color-hover);
}

.tab-btn.is-active {
  background: var(--accent-orange);
  color: #0b0f17;
  border-color: var(--accent-orange);
  font-weight: 700;
  box-shadow: 0 4px 14px var(--accent-orange-glow);
}

.tab-btn.is-active svg {
  stroke: #0b0f17;
}

/* Contenedores de paneles */
.tool-panel {
  display: none;
}

.tool-panel.is-active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

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

/* 3. PANEL 1: FUENTES Y LETRAS BONITAS */
.fonts-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.category-pills-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  max-width: 100%;
  scrollbar-width: thin;
}

.cat-pill {
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  min-height: 36px;
  transition: all var(--transition-fast);
}

.cat-pill:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.cat-pill.is-active {
  background: var(--text-main);
  color: var(--bg-app);
  border-color: var(--text-main);
}

.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 260px;
  flex: 1;
  max-width: 380px;
}

.search-input-box svg {
  position: absolute;
  left: 12px;
  color: var(--text-dim);
  pointer-events: none;
}

.search-input-box input {
  width: 100%;
  height: 40px;
  padding: 8px 34px 8px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-input-box input:focus {
  border-color: var(--border-color-focus);
}

.btn-clear-search {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

/* Rejilla de tarjetas de estilos */
.styles-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

.style-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-normal), border-color var(--transition-fast), box-shadow var(--transition-normal);
  position: relative;
}

.style-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-color-hover);
  box-shadow: var(--card-shadow-hover);
}

.style-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.style-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.style-card-cat {
  font-size: 0.72rem;
  padding: 2px 8px;
  background: var(--bg-card-subtle);
  border-radius: 10px;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.style-card-content {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text-main);
  word-break: break-word;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  user-select: all;
  min-height: 52px;
  display: flex;
  align-items: center;
}

.style-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-copy-card {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--accent-orange);
  border: none;
  border-radius: var(--radius-sm);
  color: #0b0f17;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 40px;
  transition: all var(--transition-fast);
}

.btn-copy-card:hover {
  background: var(--accent-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-orange-glow);
}

.btn-copy-card.is-copied {
  background: var(--color-success) !important;
  color: #ffffff !important;
}

.btn-share-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-share-mini:hover {
  background: #25D366;
  color: #ffffff;
  border-color: #25D366;
}

.empty-state-box {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-xl);
  color: var(--text-muted);
}

.btn-subtle {
  margin-top: 14px;
  padding: 8px 16px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
}

/* 4. PANEL 2: LIMPIADOR Y MAYÚSCULAS (BENTO GRID) */
.cleaner-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.bento-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--card-shadow);
}

.bento-box-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.bento-icon-box {
  font-size: 1.5rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.bento-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.bento-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cleaner-btn-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-action-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  min-height: 42px;
  transition: all var(--transition-fast);
}

.btn-action-clean:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  color: var(--accent-orange);
  transform: translateX(3px);
}

.btn-action-highlight {
  background: rgba(255, 133, 7, 0.12);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  font-weight: 700;
}

.btn-action-highlight:hover {
  background: var(--accent-orange);
  color: #0b0f17;
}

/* 5. PANEL 3: FORMATEADOR DE MENSAJERÍA */
.formatter-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.formatter-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--card-shadow);
}

.formatter-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.formatter-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.platform-selector-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.platform-tab {
  padding: 8px 16px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.platform-tab.is-active {
  background: var(--text-main);
  color: var(--bg-app);
  border-color: var(--text-main);
}

.formatter-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-fmt-action {
  padding: 9px 15px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
  transition: all var(--transition-fast);
}

.btn-fmt-action:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  color: var(--accent-orange);
}

.formatter-output-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--card-shadow);
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.output-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

.output-actions {
  display: flex;
  gap: 8px;
}

.btn-copy-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent-orange);
  border: none;
  border-radius: var(--radius-sm);
  color: #0b0f17;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy-main:hover {
  background: var(--accent-orange-hover);
}

.btn-whatsapp-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #25D366;
  border: none;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-whatsapp-share:hover {
  background: #20b859;
}

.formatted-output-textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
  outline: none;
}

/* 6. PANEL 4: MAQUETAS DE PREVISUALIZACIÓN */
.mockup-view-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mockup-controls {
  text-align: center;
  max-width: 600px;
}

.mockup-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.mockup-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.mockup-selector-pills {
  display: inline-flex;
  gap: 8px;
  background: var(--bg-card);
  padding: 6px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
  justify-content: center;
}

.mockup-pill {
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: 20px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mockup-pill.is-active {
  background: var(--accent-orange);
  color: #0b0f17;
  font-weight: 700;
}

.mockup-device-wrapper {
  width: 100%;
  max-width: 440px;
}

.mockup-card {
  display: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  animation: fadeIn 0.2s ease-out;
}

.mockup-card.is-active {
  display: block;
}

/* Mockup WhatsApp */
.mockup-whatsapp {
  background: #efeae2;
  color: #111b21;
}

[data-theme="dark"] .mockup-whatsapp {
  background: #0b141a;
  color: #e9edef;
}

.whatsapp-bar {
  background: #008069;
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-avatar {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.wa-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.wa-status {
  font-size: 0.75rem;
  opacity: 0.85;
}

.whatsapp-chat-body {
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
}

.wa-bubble {
  max-width: 82%;
  padding: 10px 12px 6px;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.4;
  position: relative;
  word-break: break-word;
}

.wa-bubble-incoming {
  align-self: flex-start;
  background: #ffffff;
  color: #111b21;
  border-top-left-radius: 2px;
}

[data-theme="dark"] .wa-bubble-incoming {
  background: #202c33;
  color: #e9edef;
}

.wa-bubble-outgoing {
  align-self: flex-end;
  background: #d9fdd3;
  color: #111b21;
  border-top-right-radius: 2px;
}

[data-theme="dark"] .wa-bubble-outgoing {
  background: #005c4b;
  color: #e9edef;
}

.wa-time {
  display: block;
  text-align: right;
  font-size: 0.68rem;
  opacity: 0.6;
  margin-top: 4px;
}

.wa-checks {
  color: #53bdeb;
  font-weight: bold;
}

/* Mockup Instagram */
.mockup-instagram {
  background: #ffffff;
  color: #262626;
  padding: 20px;
}

[data-theme="dark"] .mockup-instagram {
  background: #000000;
  color: #f5f5f5;
}

.insta-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.insta-avatar-ring {
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.insta-avatar {
  width: 64px;
  height: 64px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border: 2px solid #ffffff;
}

[data-theme="dark"] .insta-avatar {
  border-color: #000000;
}

.insta-metrics {
  display: flex;
  gap: 16px;
  text-align: center;
  font-size: 0.8rem;
}

.insta-metrics strong {
  display: block;
  font-size: 1.05rem;
}

.insta-metrics span {
  color: var(--text-dim);
}

.insta-username {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.insta-bio-text {
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 8px;
}

.insta-bio-link {
  font-size: 0.85rem;
  color: #00376b;
  font-weight: 600;
}

[data-theme="dark"] .insta-bio-link {
  color: #e0f1ff;
}

/* Mockup Twitter */
.mockup-twitter {
  background: #ffffff;
  color: #0f1419;
  padding: 18px;
}

[data-theme="dark"] .mockup-twitter {
  background: #000000;
  color: #e7e9ea;
}

.tweet-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tweet-avatar {
  width: 42px;
  height: 42px;
  background: #1d9bf0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
}

.tweet-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.tweet-badge {
  color: #1d9bf0;
}

.tweet-handle {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.tweet-body {
  font-size: 1.05rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 16px;
}

.tweet-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Mockup LinkedIn */
.mockup-linkedin {
  background: #ffffff;
  color: rgba(0, 0, 0, 0.9);
  padding: 18px;
}

[data-theme="dark"] .mockup-linkedin {
  background: #1b1f23;
  color: rgba(255, 255, 255, 0.9);
}

.li-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.li-avatar {
  width: 44px;
  height: 44px;
  background: #0a66c2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
}

.li-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.li-headline {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.li-time {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.li-body {
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 16px;
}

.li-footer {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* 7. SECCIÓN EDUCATIVA Y FAQ */
.seo-guide-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--card-shadow);
}

.guide-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.guide-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.features-trio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-item {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.feature-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Acordeón FAQ */
.faq-accordion-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--card-shadow);
}

.faq-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-question {
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--text-main);
  user-select: none;
}

.faq-question:hover {
  color: var(--accent-orange);
}

.faq-answer {
  padding-top: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-answer code {
  background: var(--bg-card-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  color: var(--accent-orange);
}

/* 8. TOAST Y MODALES */
.copy-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #10b981;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Modal de confirmación */
.app-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 10000;
}

.app-modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 440px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.app-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.app-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.btn-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dim);
  cursor: pointer;
}

.app-modal-body {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.app-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-modal-danger {
  padding: 9px 18px;
  background: var(--color-danger);
  border: none;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

/* 9. RESPONSIVE ADAPTATIVO */
@media (max-width: 768px) {
  .app-main {
    padding: 16px 12px 36px;
  }

  .editor-hero-card {
    padding: 18px;
  }

  .editor-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .editor-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .btn-tool-action {
    justify-content: center;
    width: 100%;
    min-height: 40px;
  }

  .styles-cards-grid {
    grid-template-columns: 1fr;
  }

  .cleaner-bento-grid {
    grid-template-columns: 1fr;
  }

  .features-trio-grid {
    grid-template-columns: 1fr;
  }

  .social-limits-wrapper {
    width: 100%;
    justify-content: space-between;
  }

  .search-input-box {
    max-width: 100%;
    width: 100%;
  }

  .fonts-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
}
