/* ============================================================
   CONVERSOR DE DOCUMENTOS — estilos propios
   Reutiliza variables de index.css y patrones de forms.css
   ============================================================ */

.converter-wrapper { max-width: 780px; }

/* ---- Grid de categorías ---- */
.doc-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
    margin-bottom: 1.75rem;
}
@media (max-width: 560px) {
    .doc-categories { grid-template-columns: 1fr; }
}

.cat-card {
    background: var(--card-bg);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    border-top: 3px solid var(--primary);
}
.cat-card.cat-html  { border-top-color: #10b981; }
.cat-card.cat-sheet { border-top-color: #f59e0b; }
.cat-card.cat-web   { border-top-color: #8b5cf6; }

.cat-card-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.65rem;
}
.cat-card-header .cat-icon { font-size: 1.3rem; line-height: 1; }
.cat-card-header h3 { font-size: 0.95rem; font-weight: 700; color: var(--text-main); }

.cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.cat-pill {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--primary-100);
    color: var(--primary-800);
    white-space: nowrap;
}
.cat-html  .cat-pill { background: #d1fae5; color: #065f46; }
.cat-sheet .cat-pill { background: #fef3c7; color: #92400e; }
.cat-web   .cat-pill { background: #ede9fe; color: #5b21b6; }

/* ---- Tabs de modo ---- */
.doc-mode-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 0;
}
.doc-tab {
    background: none;
    border: none;
    padding: 0.6rem 1.1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    border-radius: 6px 6px 0 0;
    transition: color 0.18s, border-color 0.18s;
}
.doc-tab:hover { color: var(--primary); }
.doc-tab.is-active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ---- Panels de modo ---- */
.doc-mode-panel { display: none; }
.doc-mode-panel.is-active { display: block; }

/* ---- URL panel hint ---- */
.url-panel-hint {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.url-download-area {
    margin-top: 1.5rem;
    display: none;
}
.url-download-area.is-visible { display: block; }

.url-success-card {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    text-align: center;
}
.url-success-card .success-icon {
    width: 44px;
    height: 44px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0 auto 0.75rem;
}
.url-success-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.url-success-card p  { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
