/* Estilos específicos Contador de Palabras */
.main-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.stat-card { background: var(--card); padding: 1.5rem; border-radius: 16px; text-align: center; border: 1px solid var(--border); box-shadow: var(--shadow); }
.stat-label { display: block; font-size: 0.8rem; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: 0.5rem; }
.stat-value { font-size: 2.25rem; font-weight: 800; color: var(--primary); }
.editor-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; }
textarea { width: 100%; height: 500px; padding: 1.5rem; border-radius: 16px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-family: inherit; font-size: 1.05rem; resize: none; }
.editor-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.sidebar-box { background: var(--card); padding: 1.5rem; border-radius: 16px; border: 1px solid var(--border); margin-bottom: 1.5rem; }
.sidebar-box h3 { font-size: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.sidebar-stat { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 0.5rem; }
.progress-container { width: 100%; height: 8px; background: var(--bg); border-radius: 10px; overflow: hidden; border: 1px solid var(--border); margin-top: 5px; }
.progress-bar { height: 100%; width: 0%; background: var(--primary); transition: width 0.3s; }
.progress-bar.good { background: var(--success); }
.progress-bar.warn { background: var(--warning, #f59e0b); }
.progress-bar.over { background: var(--danger); }
.top-words-list { list-style: none; padding: 0; font-size: 0.9rem; }
.top-words-list li { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px dashed var(--border); }
button { padding: 0.75rem; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; color: white; transition: opacity 0.2s; }
.btn-primary { background: var(--primary); }
.btn-secondary { background: var(--text-muted); }
.btn-info { background: var(--info); }
.btn-danger { background: var(--danger); }
@media (max-width: 950px) { .editor-layout { grid-template-columns: 1fr; } .analysis-sidebar { order: -1; } }
