/* =============================================
   ENGLISH ACADEMY RVN — vocabulario.css
   Módulo: Vocabulario (9,998 palabras)
   Prefijo: .vc-
   ============================================= */

body {
    background: var(--bg-darker);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
.vc-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(9, 14, 22, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
}
.vc-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.vc-nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}
.vc-logo {
    font-size: 0.9375rem;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
    color: var(--text-primary);
    text-decoration: none;
}
.vc-logo span { color: var(--primary-light); }

.vc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.vc-breadcrumb a { color: var(--text-muted); transition: var(--transition); }
.vc-breadcrumb a:hover { color: var(--primary-light); }
.vc-breadcrumb i { font-size: 0.5625rem; }
.vc-breadcrumb span { color: var(--text-secondary); }

.vc-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Plan badge */
.vc-nav-plan { display: flex; align-items: center; }
.nav-plan-free {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--primary-glow);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    white-space: nowrap;
}
.nav-plan-free i { color: var(--text-muted); font-size: 0.6875rem; }
.nav-upgrade-link {
    color: var(--primary-light);
    font-weight: 600;
    text-decoration: none;
}
.nav-upgrade-link:hover { text-decoration: underline; }
.nav-plan-premium {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--premium-gold);
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 4px 12px;
}

/* Font switcher */
.font-switcher {
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}
.fs-btn {
    padding: 4px 10px;
    border-radius: 7px;
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    transition: var(--transition);
    line-height: 1;
}
.fs-btn:nth-child(1) { font-size: 0.6875rem; }
.fs-btn:nth-child(2) { font-size: 0.875rem; }
.fs-btn:nth-child(3) { font-size: 1.0625rem; }
.fs-btn.active { background: var(--primary); color: #fff; }
.fs-btn:hover:not(.active) { background: var(--primary-glow); color: var(--primary-light); }

/* Theme btn */
.theme-dot-nav {
    width: 34px; height: 34px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: var(--transition);
}
.theme-dot-nav:hover { border-color: var(--border-hover); color: var(--primary-light); }

/* User chip */
.vc-user-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--primary-glow);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px 4px 4px;
    text-decoration: none;
    transition: var(--transition);
}
.vc-user-chip:hover { border-color: var(--border-hover); }
.vc-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}
.vc-user-chip span { font-size: 0.75rem; color: var(--text-secondary); }

/* Logout */
.vc-logout {
    width: 34px; height: 34px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.875rem;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.vc-logout:hover { border-color: rgba(229,57,53,0.4); color: #ef5350; }

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.vc-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 60px);
    max-width: 1400px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════ */
.vc-sidebar {
    background: var(--bg-dark);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow: hidden;
}
.vc-sb-header {
    padding: 14px 14px 10px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.vc-sb-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.vc-sb-title-row h2 {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.vc-sb-count {
    font-size: 0.6875rem;
    background: var(--primary-glow);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2px 8px;
    color: var(--primary-light);
}
.vc-sb-search { position: relative; }
.vc-sb-search-icon {
    position: absolute;
    left: 10px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.75rem;
    pointer-events: none;
}
.vc-sb-search input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 10px 8px 30px;
    color: var(--text-primary);
    font-size: 0.75rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: var(--transition);
}
.vc-sb-search input::placeholder { color: var(--text-muted); }
.vc-sb-search input:focus { border-color: var(--border-hover); }

.vc-sb-list {
    overflow-y: auto;
    flex: 1;
}
.vc-sb-list::-webkit-scrollbar { width: 4px; }
.vc-sb-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Items del sidebar */
.vc-sb-item {
    padding: 9px 14px;
    cursor: pointer;
    border-bottom: 1px solid rgba(74, 144, 217, 0.06);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}
.vc-sb-item:hover { background: var(--primary-glow); }
.vc-sb-item.active {
    background: var(--primary-glow);
    border-left: 3px solid var(--primary);
    padding-left: 11px;
}
.vc-sb-item.locked { opacity: 0.45; }
.vc-sb-num {
    font-size: 0.625rem;
    color: var(--text-muted);
    font-weight: 600;
    min-width: 32px;
    flex-shrink: 0;
}
.vc-sb-info { flex: 1; min-width: 0; }
.vc-sb-word {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vc-sb-trans {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vc-sb-lock { font-size: 0.625rem; color: var(--text-muted); flex-shrink: 0; }
.vc-sb-more {
    padding: 12px 14px;
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════
   MAIN
═══════════════════════════════════════════ */
.vc-main {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-darker);
    min-height: calc(100vh - 60px);
}

/* Estado vacío */
.vc-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.vc-empty-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--primary-glow);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin-bottom: 8px;
}
.vc-empty h3 { font-size: 1.125rem; color: var(--text-secondary); font-weight: 600; }
.vc-empty p { font-size: 0.875rem; max-width: 280px; line-height: 1.6; }

.vc-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ═══════════════════════════════════════════
   ITEM HEADER
═══════════════════════════════════════════ */
.vc-item-header {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
}
.vc-ih-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.vc-ih-word-wrap { flex: 1; min-width: 0; }
/* Contenedor derecho: stats + botón cambiar */
.vc-ih-right {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.vc-btn-cambiar { display: none; }
.vc-ih-word {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 4px;
}
.vc-ih-trans {
    font-size: 1rem;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 4px;
}
.vc-ih-num {
    font-size: 0.6875rem;
    color: var(--text-muted);
}
.vc-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.vc-stat {
    font-size: 0.6875rem;
    border-radius: 20px;
    padding: 3px 10px;
    border: 1px solid var(--border);
    white-space: nowrap;
}
.vc-stat-pos  { background: rgba(74,144,217,0.12); color: var(--primary-light); }
.vc-stat-tot  { background: var(--primary-glow);   color: var(--text-secondary); }
.vc-stat-ok   { background: rgba(76,175,80,0.12);  color: #69db7c; }
.vc-stat-err  { background: rgba(229,57,53,0.1);   color: #ef5350; }

/* ═══════════════════════════════════════════
   CONTROLES
═══════════════════════════════════════════ */
.vc-controls {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.vc-ctrl-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.vc-ctrl-row-audio { gap: 12px; }
.vc-ctrl-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.vc-qty-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.vc-chip {
    font-size: 0.6875rem;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}
.vc-chip:hover { border-color: var(--border-hover); color: var(--text-primary); }
.vc-chip.active {
    background: var(--primary-glow);
    color: var(--primary-light);
    border-color: var(--border-hover);
}
.vc-ctrl-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

.vc-sel-wrap { display: flex; align-items: center; gap: 6px; }
.vc-sel {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.6875rem;
    padding: 5px 8px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}
.vc-sel:focus { border-color: var(--border-hover); }
.vc-ctrl-sep {
    width: 1px; height: 22px;
    background: var(--border);
    flex-shrink: 0;
}

/* Modo pill */
.vc-mode-pill {
    display: flex;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}
.vc-mode-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 5px 16px;
    font-size: 0.6875rem;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.vc-mode-btn.active {
    background: var(--primary-glow);
    color: var(--primary-light);
}
.vc-mode-mic.active {
    background: rgba(239,68,68,0.15) !important;
    color: #f87171 !important;
}

/* Inglés de referencia (Esc-Mos / Esc-Mic) */
.vc-card-en-ref {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-light);
    background: var(--primary-glow);
    border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
    border-radius: 8px;
    padding: 8px 12px;
    line-height: 1.45;
    margin-bottom: 4px;
}

/* ── ÁREA MIC ── */
.vc-mic-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
}

.vc-mic-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    background: var(--primary-glow);
}
.vc-mic-countdown span {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.vc-mic-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-input);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
.vc-mic-btn i { font-size: 1.5rem; }
.vc-mic-btn:hover { border-color: var(--primary); color: var(--primary-light); background: var(--primary-glow); }
.vc-mic-btn.listening {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239,68,68,0.1);
    animation: vcMicPulse 1.2s ease-in-out infinite;
}
@keyframes vcMicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
    50%       { box-shadow: 0 0 0 12px rgba(239,68,68,0); }
}

.vc-mic-transcript {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    min-height: 1.4em;
}

.vc-mic-stop-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.vc-mic-stop-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239,68,68,0.08);
}

/* ═══════════════════════════════════════════
   BARRA DE PROGRESO
═══════════════════════════════════════════ */
.vc-progress-bar {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 7px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.vc-prog-track {
    flex: 1; height: 4px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.vc-prog-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.4s ease;
}
.vc-prog-lbl {
    font-size: 0.6875rem;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 40px;
    text-align: right;
}

/* ═══════════════════════════════════════════
   CARD STACK
═══════════════════════════════════════════ */
.vc-card-area { position: relative; margin-bottom: 8px; }
.vc-card-bg2 {
    position: absolute;
    top: 8px; left: 8px; right: -8px; bottom: -8px;
    background: var(--bg-dark);
    border: 1px solid rgba(74,144,217,0.05);
    border-radius: var(--radius-xl);
    z-index: 0;
}
.vc-card-bg1 {
    position: absolute;
    top: 4px; left: 4px; right: -4px; bottom: -4px;
    background: var(--bg-dark);
    border: 1px solid rgba(74,144,217,0.08);
    border-radius: var(--radius-xl);
    z-index: 0;
}
.vc-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    position: relative;
    z-index: 1;
    min-height: 220px;
}

/* Animación flip */
@keyframes vc-flip {
    0%   { transform: perspective(900px) rotateY(0deg);   opacity: 1; }
    45%  { transform: perspective(900px) rotateY(-90deg); opacity: 0; }
    55%  { transform: perspective(900px) rotateY(-90deg); opacity: 0; }
    100% { transform: perspective(900px) rotateY(0deg);   opacity: 1; }
}
.vc-card.flipping { animation: vc-flip 0.38s ease; }

/* Contenido de la carta — modo lectura */
.vc-card-counter {
    font-size: 0.625rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 14px;
}
.vc-card-word {
    font-size: var(--mod-font-en, 2rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 4px;
}
.vc-card-trans {
    font-size: var(--mod-font-es, 1.125rem);
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 0;
}
.vc-card-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 16px 0;
}
.vc-card-ejemplos-label {
    font-size: 0.625rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 10px;
}
.vc-card-ejemplo { margin-bottom: 12px; }
.vc-card-ejemplo:last-child { margin-bottom: 0; }
.vc-card-ejemplo-en {
    font-size: var(--mod-font-en, 1rem);
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.55;
}
.vc-card-ejemplo-es {
    font-size: var(--mod-font-es, 0.875rem);
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.55;
}

/* Contenido de la carta — modo escritura */
.vc-card-prompt-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 6px;
}
.vc-card-prompt-es {
    font-size: var(--mod-font-es, 1.125rem);
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 4px;
}
.vc-card-animo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 4px;
}
.vc-card-animo-sub {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 16px;
}
.vc-textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: var(--mod-font-en, 1rem);
    font-family: 'Poppins', sans-serif;
    resize: none;
    outline: none;
    min-height: 56px;
    line-height: 1.5;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.vc-textarea:focus { border-color: var(--border-hover); }
.vc-textarea.correct {
    border-color: rgba(76, 175, 80, 0.5);
    background: rgba(76, 175, 80, 0.06);
}
.vc-textarea.wrong {
    border-color: rgba(229, 57, 53, 0.5);
    background: rgba(229, 57, 53, 0.06);
}
.vc-feedback {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
    min-height: 20px;
}
.vc-feedback.ok  { color: #69db7c; }
.vc-feedback.err { color: #ef5350; }

/* ═══════════════════════════════════════════
   BOTONES DE NAVEGACIÓN
   — borde sólido más claro + fondo visible
     para que se distingan del bg-darker
═══════════════════════════════════════════ */
.vc-nav-btns {
    display: flex;
    gap: 8px;
}

.vc-btn {
    border: 1px solid rgba(74, 144, 217, 0.35);
    background: var(--bg-dark);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    padding: 11px 16px;
    cursor: pointer;
    font-size: 0.75rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}
.vc-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: var(--primary-glow);
}
.vc-btn:active { transform: scale(0.97); }

/* Siguiente — acento primario */
.vc-btn-next {
    flex: 2;
    background: var(--primary-glow);
    border-color: var(--border-hover);
    color: var(--primary-light);
}
.vc-btn-next:hover {
    background: rgba(74, 144, 217, 0.2);
    border-color: var(--primary);
}

/* Anterior */
.vc-btn-ant { flex: 1; }

/* Auto — verde sutil */
.vc-btn-auto {
    flex: 1;
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.35);
    color: #69db7c;
}
.vc-btn-auto:hover {
    background: rgba(76, 175, 80, 0.18);
    border-color: rgba(76, 175, 80, 0.6);
    color: #4ade80;
}
.vc-btn-auto.running {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.6);
}

/* Auto-Sig */
.vc-btn-autosig {
    flex: 1;
    background: rgba(156, 39, 176, 0.08);
    border-color: rgba(156, 39, 176, 0.3);
    color: #ce93d8;
}
.vc-btn-autosig:hover {
    background: rgba(156, 39, 176, 0.16);
    border-color: rgba(156, 39, 176, 0.5);
    color: #e040fb;
}
.vc-btn-autosig.running {
    background: rgba(156, 39, 176, 0.22);
    border-color: rgba(156, 39, 176, 0.6);
    color: #e040fb;
}

/* Cuadrado — Reset y Audio */
.vc-btn-sq {
    width: 42px; height: 42px;
    padding: 0;
    flex: none;
}
.vc-btn-sq i { font-size: 0.875rem; }

/* Reset — hover naranja */
#btnReset:hover {
    background: rgba(255, 152, 0, 0.1);
    border-color: rgba(255, 152, 0, 0.4);
    color: #FFB74D;
}
#btnReset:hover .fa-rotate-left {
    transform: rotate(-180deg);
    transition: transform 0.4s ease;
}

/* Audio — hover verde */
.vc-btn-audio:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.4);
    color: #69db7c;
}

/* Verificar (modo escritura) */
.vc-btn-verificar {
    flex: 1;
    background: var(--primary-glow);
    border-color: var(--border-hover);
    color: var(--primary-light);
    margin-top: 12px;
}
.vc-btn-verificar:hover {
    background: rgba(74, 144, 217, 0.2);
}

/* ═══════════════════════════════════════════
   PANEL TEMA FLOTANTE
═══════════════════════════════════════════ */
.theme-panel-float {
    position: fixed;
    top: 68px; right: 16px;
    z-index: 300;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
}
.tpf-title {
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    padding: 0 4px;
}
.tpf-opt {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    border: none;
    background: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}
.tpf-opt:hover { background: var(--primary-glow); }
.tpf-opt.active { background: var(--primary-glow); color: var(--text-primary); }
.tpf-dots { display: flex; gap: 3px; }
.tpf-dot { width: 12px; height: 12px; border-radius: 50%; }
.tpf-check { margin-left: auto; color: var(--primary-light); font-size: 0.6875rem; display: none; }
.tpf-opt.active .tpf-check { display: block; }

/* ═══════════════════════════════════════════
   PREMIUM OVERLAY
═══════════════════════════════════════════ */
.vc-premium-overlay {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(9, 14, 22, 0.88);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.vc-premium-modal {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.vc-premium-icon { font-size: 2.5rem; margin-bottom: 12px; }
.vc-premium-modal h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.vc-premium-modal p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 18px; }
.vc-premium-perks {
    list-style: none;
    text-align: left;
    margin-bottom: 22px;
    display: flex; flex-direction: column; gap: 8px;
}
.vc-premium-perks li {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: flex; align-items: center; gap: 8px;
}
.vc-premium-perks li i { color: var(--primary-light); font-size: 0.75rem; }
.vc-btn-upgrade {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 12px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
    font-size: 0.9375rem; font-weight: 700;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    margin-bottom: 10px;
    transition: var(--transition);
}
.vc-btn-upgrade:hover { box-shadow: var(--shadow-primary); transform: translateY(-1px); }
.vc-btn-back {
    width: 100%; padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: none;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: var(--transition);
}
.vc-btn-back:hover { border-color: var(--border-hover); color: var(--text-primary); }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

/* ── TABLET ≤ 900px ── */
@media (max-width: 900px) {
    /* Ocultar sidebar — reemplazado por FAB */
    .vc-sidebar { display: none; }
    .vc-layout  { grid-template-columns: 1fr; }
    .vc-main    { padding: 16px; gap: 12px; padding-bottom: 80px; }
    .vc-card    { padding: 22px 24px; }

    /* Botón cambiar palabra */
    .vc-btn-cambiar {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        flex-shrink: 0;
        border-radius: 10px;
        border: 1px solid var(--border);
        background: var(--primary-glow);
        color: var(--primary-light);
        cursor: pointer;
        font-size: 0.875rem;
        transition: var(--transition);
    }
    .vc-btn-cambiar:hover {
        border-color: var(--border-hover);
        background: rgba(74,144,217,0.18);
    }
    .vc-ih-right {
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ── MÓVIL ≤ 600px ── */
@media (max-width: 600px) {
    /* Nav en 2 filas */
    .vc-nav-inner {
        padding: 8px 12px;
        height: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .vc-nav-left  { justify-content: space-between; width: 100%; }
    .vc-nav-right { justify-content: flex-end; width: 100%; gap: 7px; }
    .vc-breadcrumb { display: none; }
    .vc-logo { font-size: 0.875rem; }
    .font-switcher { display: none; }
    .vc-nav-plan { display: none; }
    .vc-user-chip span { display: none; }

    /* Contenido */
    .vc-main { padding: 12px; gap: 10px; }
    .vc-ih-word { font-size: 1.5rem; }
    .vc-card { padding: 18px; min-height: 180px; }
    .vc-card-word { font-size: 1.75rem; }
    .vc-ctrl-row-audio { gap: 8px; }
    .vc-ctrl-sep { display: none; }

    /* Botones navegación */
    .vc-nav-btns    { display: flex; flex-wrap: wrap; gap: 7px; }
    .vc-btn-ant     { flex: 1; order: 1; }
    .vc-btn-next    { flex: 2; order: 2; }
    .vc-btn-auto    { flex: 1; order: 3; }
    .vc-btn-autosig { flex: 1; order: 4; font-size: 0.75rem; padding: 9px 6px; }
    #btnReset       { order: 5; }
    #btnAudio       { order: 6; }

    .vc-stats { gap: 5px; }
    .vc-stat  { font-size: 0.625rem; padding: 2px 7px; }
}

/* ── MUY PEQUEÑO ≤ 380px ── */
@media (max-width: 380px) {
    .vc-logo { font-size: 0.8125rem; }
    .vc-qty-chips { gap: 4px; }
    .vc-chip { padding: 3px 8px; }
}

/* ═══════════════════════════════════════════
   FAB MÓVIL
═══════════════════════════════════════════ */
.vc-fab { display: none; }

@media (max-width: 900px) {
    .vc-fab {
        display: flex;
        align-items: center;
        gap: 8px;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 400;
        background: var(--primary);
        color: #fff;
        border: none;
        border-radius: 28px;
        padding: 12px 22px;
        font-size: 0.875rem;
        font-weight: 700;
        font-family: 'Poppins', sans-serif;
        cursor: pointer;
        box-shadow: 0 4px 20px rgba(74,144,217,0.45);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        white-space: nowrap;
    }
    .vc-fab:hover {
        transform: translateX(-50%) translateY(-2px);
        box-shadow: 0 6px 26px rgba(74,144,217,0.55);
    }
    .vc-fab i { font-size: 1rem; }
    .vc-fab-badge {
        background: rgba(255,255,255,0.22);
        border-radius: 20px;
        padding: 2px 8px;
        font-size: 0.6875rem;
        font-weight: 700;
    }
}

/* ═══════════════════════════════════════════
   BOTTOM SHEET MÓVIL
═══════════════════════════════════════════ */
.vc-sheet-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 450;
    background: rgba(9,14,22,0.7);
    backdrop-filter: blur(4px);
}
.vc-sheet-backdrop.open { display: block; }

.vc-bottom-sheet {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 460;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    max-height: 82vh;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
    box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
}
.vc-bottom-sheet.open { transform: translateY(0); }

.vc-sheet-handle {
    width: 40px; height: 4px;
    background: var(--border);
    border-radius: 4px;
    margin: 12px auto 8px;
    flex-shrink: 0;
}
.vc-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 10px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.vc-sheet-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
}
.vc-sheet-title i { color: var(--primary-light); }
.vc-sheet-close {
    width: 32px; height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.875rem;
    transition: var(--transition);
}
.vc-sheet-close:hover { color: var(--text-primary); border-color: var(--border-hover); }
.vc-sheet-search {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.vc-sheet-list {
    overflow-y: auto;
    flex: 1;
    overscroll-behavior: contain;
}
.vc-sheet-list::-webkit-scrollbar { width: 4px; }
.vc-sheet-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
