/* =====================================================
   RRHH Tools — CV Generator Styles
   Formulario + 3 plantillas ATS-compatible
   ===================================================== */

/* ── Intro ── */
.rrhh-cvgen__intro {
    text-align: center;
    margin-bottom: var(--rrhh-s-6);
}
.rrhh-cvgen__intro h2 {
    font-size: var(--rrhh-text-2xl) !important;
    font-weight: 800 !important;
    margin: var(--rrhh-s-3) 0 var(--rrhh-s-2) !important;
}
.rrhh-cvgen__intro p {
    color: var(--rrhh-ink-dim);
    max-width: 600px;
    margin: 0 auto !important;
}

/* ── Layout dos columnas ── */
.rrhh-cvgen__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--rrhh-s-5);
    align-items: start;
}

/* ══ PANEL FORMULARIO ══ */
.rrhh-cvgen__form-panel {
    background: var(--rrhh-surface);
    border: 1px solid var(--rrhh-rule);
    border-radius: var(--rrhh-radius-lg);
    overflow: hidden;
}

/* Stepper */
.rrhh-cvgen__stepper {
    display: flex;
    align-items: center;
    padding: var(--rrhh-s-4) var(--rrhh-s-5);
    background: var(--rrhh-surface-2);
    border-bottom: 1px solid var(--rrhh-rule);
    gap: 0;
}
.rrhh-cvgen__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: none;
}
.rrhh-cvgen__step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--rrhh-rule);
    color: var(--rrhh-ink-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: var(--rrhh-text-xs);
    font-weight: 700;
    transition: background var(--rrhh-duration), color var(--rrhh-duration);
}
.rrhh-cvgen__step-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--rrhh-ink-soft);
    white-space: nowrap;
}
.rrhh-cvgen__step-line {
    flex: 1;
    height: 2px;
    background: var(--rrhh-rule);
    margin-bottom: 16px;
}
.rrhh-cvgen__step--active .rrhh-cvgen__step-num { background: var(--rrhh-primary); color: #fff; }
.rrhh-cvgen__step--active .rrhh-cvgen__step-label { color: var(--rrhh-primary); }
.rrhh-cvgen__step--done .rrhh-cvgen__step-num { background: var(--rrhh-primary-soft); color: var(--rrhh-primary); }
.rrhh-cvgen__step--done + .rrhh-cvgen__step-line { background: var(--rrhh-primary-soft); }

/* Panel */
.rrhh-cvgen__panel {
    padding: var(--rrhh-s-5);
    animation: rrhh-fade-in 0.2s var(--rrhh-ease);
}
.rrhh-cvgen__panel h3 {
    font-size: var(--rrhh-text-lg) !important;
    font-weight: 800 !important;
    margin: 0 0 var(--rrhh-s-4) !important;
    color: var(--rrhh-ink) !important;
}

/* Fields */
.rrhh-cvgen__field {
    margin-bottom: var(--rrhh-s-3);
}
.rrhh-cvgen__field label {
    display: block;
    font-size: var(--rrhh-text-sm);
    font-weight: 600;
    color: var(--rrhh-ink-dim);
    margin-bottom: var(--rrhh-s-1);
}
.rrhh-cvgen__field input,
.rrhh-cvgen__field textarea,
.rrhh-cvgen__field select {
    width: 100%;
    padding: 10px var(--rrhh-s-3);
    border: 1.5px solid var(--rrhh-rule-strong);
    border-radius: var(--rrhh-radius-sm);
    font-family: var(--rrhh-font-sans);
    font-size: var(--rrhh-text-sm);
    color: var(--rrhh-ink);
    background: var(--rrhh-surface);
    transition: border-color var(--rrhh-duration), box-shadow var(--rrhh-duration);
    box-sizing: border-box;
}
.rrhh-cvgen__field input:focus,
.rrhh-cvgen__field textarea:focus,
.rrhh-cvgen__field select:focus {
    outline: none;
    border-color: var(--rrhh-primary);
    box-shadow: 0 0 0 3px var(--rrhh-primary-soft);
}
.rrhh-cvgen__field textarea { resize: vertical; min-height: 80px; }
.rrhh-cvgen__file { padding: 6px; }

.rrhh-cvgen__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--rrhh-s-3);
}

.rrhh-cvgen__actions {
    display: flex;
    gap: var(--rrhh-s-3);
    justify-content: flex-end;
    padding-top: var(--rrhh-s-4);
    border-top: 1px solid var(--rrhh-rule);
    margin-top: var(--rrhh-s-4);
}
.rrhh-cvgen__actions .rrhh-btn--ghost { margin-right: auto; }
.rrhh-cvgen__error { font-size: var(--rrhh-text-xs); color: var(--rrhh-danger); font-weight: 600; }

/* Entry cards (experiencia / educación / referencias) */
.rrhh-cvgen__entry {
    background: var(--rrhh-surface-2);
    border: 1px solid var(--rrhh-rule);
    border-radius: var(--rrhh-radius-sm);
    padding: var(--rrhh-s-4);
    margin-bottom: var(--rrhh-s-3);
    position: relative;
}
.rrhh-cvgen__entry-title {
    font-size: var(--rrhh-text-sm);
    font-weight: 700;
    color: var(--rrhh-ink-dim);
    margin-bottom: var(--rrhh-s-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.rrhh-cvgen__entry-remove {
    position: absolute;
    top: var(--rrhh-s-3);
    right: var(--rrhh-s-3);
    background: none;
    border: none;
    color: var(--rrhh-danger);
    cursor: pointer;
    font-size: var(--rrhh-text-sm);
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background var(--rrhh-duration);
}
.rrhh-cvgen__entry-remove:hover { background: var(--rrhh-danger-soft); }

/* ══ PANEL VISTA PREVIA ══ */
.rrhh-cvgen__preview-panel {
    position: sticky;
    top: 80px;
}

.rrhh-cvgen__template-selector {
    display: flex;
    align-items: center;
    gap: var(--rrhh-s-2);
    margin-bottom: var(--rrhh-s-3);
    flex-wrap: wrap;
}
.rrhh-cvgen__template-label {
    font-size: var(--rrhh-text-sm);
    font-weight: 600;
    color: var(--rrhh-ink-dim);
}
.rrhh-cvgen__tpl-btn {
    padding: 6px 14px;
    border: 1.5px solid var(--rrhh-rule-strong);
    border-radius: var(--rrhh-radius-pill);
    font-family: var(--rrhh-font-sans);
    font-size: var(--rrhh-text-xs);
    font-weight: 700;
    cursor: pointer;
    background: var(--rrhh-surface);
    color: var(--rrhh-ink-dim);
    transition: all var(--rrhh-duration);
}
.rrhh-cvgen__tpl-btn--active {
    background: var(--rrhh-primary);
    border-color: var(--rrhh-primary);
    color: white;
}

.rrhh-cvgen__preview-wrap {
    background: #e8e8e8;
    border-radius: var(--rrhh-radius);
    padding: var(--rrhh-s-4);
    min-height: 500px;
    overflow: auto;
}

.rrhh-cvgen__download-bar {
    display: flex;
    gap: var(--rrhh-s-3);
    margin-top: var(--rrhh-s-3);
    align-items: center;
}

/* Estado vacío */
.cv-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--rrhh-ink-soft);
}
.cv-empty-state span { font-size: 48px; display: block; margin-bottom: 12px; }
.cv-empty-state p { font-size: var(--rrhh-text-sm); }

/* ══════════════════════════════════════════════
   CV TEMPLATES
   ══════════════════════════════════════════════ */
.cv-preview {
    background: white;
    min-height: 297mm; /* A4 */
    font-family: var(--rrhh-font-sans);
    font-size: 11px;
    line-height: 1.5;
    color: #1a1a1a;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ── Plantilla 1: Clásico ── */
.cv-tpl-clasico {
    padding: 32px 36px;
}
.cv-tpl-clasico .cv-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 3px solid #16785A;
    margin-bottom: 20px;
}
.cv-tpl-clasico .cv-foto {
    width: 80px; height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e0e0e0;
}
.cv-tpl-clasico .cv-foto-placeholder {
    width: 80px; height: 80px;
    border-radius: 8px;
    background: #f0f0f0;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}
.cv-tpl-clasico .cv-nombre { font-size: 22px; font-weight: 800; color: #0F1B2D; margin: 0 0 4px; letter-spacing: -0.5px; }
.cv-tpl-clasico .cv-puesto-header { font-size: 13px; color: #16785A; font-weight: 600; margin: 0 0 8px; }
.cv-tpl-clasico .cv-contacto { font-size: 10px; color: #555; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.cv-tpl-clasico .cv-contacto span::before { content: "• "; color: #16785A; }
.cv-tpl-clasico .cv-contacto span:first-child::before { content: ""; }
.cv-tpl-clasico .cv-seccion { margin-bottom: 18px; }
.cv-tpl-clasico .cv-seccion-titulo {
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
    color: #16785A; border-bottom: 1px solid #DCEEE6; padding-bottom: 4px; margin-bottom: 10px;
}
.cv-tpl-clasico .cv-item { margin-bottom: 10px; }
.cv-tpl-clasico .cv-item-header { display: flex; justify-content: space-between; align-items: baseline; }
.cv-tpl-clasico .cv-item-title { font-weight: 700; font-size: 11.5px; }
.cv-tpl-clasico .cv-item-date { font-size: 10px; color: #777; white-space: nowrap; }
.cv-tpl-clasico .cv-item-sub { font-size: 10.5px; color: #16785A; font-weight: 600; }
.cv-tpl-clasico .cv-item-desc { font-size: 10.5px; color: #444; margin-top: 3px; white-space: pre-line; }
.cv-tpl-clasico .cv-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.cv-tpl-clasico .cv-chip-item {
    background: #DCEEE6; color: #0E5A42; padding: 2px 8px;
    border-radius: 999px; font-size: 10px; font-weight: 600;
}
.cv-tpl-clasico .cv-perfil-texto { font-size: 11px; color: #333; line-height: 1.6; }

/* ── Plantilla 2: Moderno ── */
.cv-tpl-moderno {
    display: flex;
    min-height: 297mm;
}
.cv-tpl-moderno .cv-sidebar {
    width: 38%;
    background: #0F1B2D;
    padding: 28px 20px;
    color: #e8e8e8;
    flex-shrink: 0;
}
.cv-tpl-moderno .cv-sidebar * { color: #e8e8e8; }
.cv-tpl-moderno .cv-main { flex: 1; padding: 28px 24px; }
.cv-tpl-moderno .cv-foto {
    width: 90px; height: 90px; border-radius: 50%;
    object-fit: cover; border: 3px solid #16785A;
    display: block; margin: 0 auto 12px;
}
.cv-tpl-moderno .cv-foto-placeholder {
    width: 90px; height: 90px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; margin: 0 auto 12px;
}
.cv-tpl-moderno .cv-nombre { font-size: 16px; font-weight: 800; text-align: center; margin: 0 0 4px; }
.cv-tpl-moderno .cv-puesto-header { font-size: 11px; color: #F2A93B; font-weight: 600; text-align: center; margin-bottom: 16px; }
.cv-tpl-moderno .cv-sidebar-seccion { margin-bottom: 16px; }
.cv-tpl-moderno .cv-sidebar-titulo {
    font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em;
    color: #F2A93B !important; border-bottom: 1px solid #2a3d55;
    padding-bottom: 5px; margin-bottom: 10px;
}
.cv-tpl-moderno .cv-sidebar-item { font-size: 12px; color: #d0d0d0 !important; margin-bottom: 8px; line-height: 1.6; }
.cv-tpl-moderno .cv-sidebar-item strong { color: #fff !important; font-weight: 700; display: block; margin-bottom: 2px; }
.cv-sb-ico { font-size: 12px; line-height: 1; vertical-align: middle; margin-right: 5px; color: #F2A93B !important; font-style: normal; font-family: Arial, sans-serif; }
.cv-tpl-moderno .cv-sidebar-chip {
    display: inline-block; background: #1a4a35; color: #a8e6cf !important;
    padding: 3px 8px; border-radius: 4px; font-size: 11px; margin: 2px 2px 0 0;
}
.cv-tpl-moderno .cv-main-seccion { margin-bottom: 18px; }
.cv-tpl-moderno .cv-main-titulo {
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
    color: #16785A; border-left: 3px solid #16785A; padding-left: 8px; margin-bottom: 10px;
}
.cv-tpl-moderno .cv-item { margin-bottom: 10px; }
.cv-tpl-moderno .cv-item-header { display: flex; justify-content: space-between; }
.cv-tpl-moderno .cv-item-title { font-weight: 700; font-size: 11.5px; }
.cv-tpl-moderno .cv-item-date { font-size: 10px; color: #999; }
.cv-tpl-moderno .cv-item-sub { font-size: 10.5px; color: #16785A; font-weight: 600; }
.cv-tpl-moderno .cv-item-desc { font-size: 10.5px; color: #444; margin-top: 3px; white-space: pre-line; }
.cv-tpl-moderno .cv-perfil-texto { font-size: 11px; color: #333; line-height: 1.6; }

/* ── Plantilla 3: Minimal ── */
.cv-tpl-minimal { padding: 40px 48px; }
.cv-tpl-minimal .cv-header { margin-bottom: 24px; display: flex; gap: 20px; align-items: center; }
.cv-tpl-minimal .cv-foto {
    width: 72px; height: 72px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
}
.cv-tpl-minimal .cv-foto-placeholder {
    width: 72px; height: 72px; border-radius: 50%;
    background: #f0f0f0; display: flex; align-items: center;
    justify-content: center; font-size: 24px; flex-shrink: 0;
}
.cv-tpl-minimal .cv-nombre { font-size: 26px; font-weight: 800; color: #0F1B2D; margin: 0 0 2px; letter-spacing: -0.8px; }
.cv-tpl-minimal .cv-puesto-header { font-size: 13px; color: #555; margin: 0 0 6px; }
.cv-tpl-minimal .cv-contacto { font-size: 10px; color: #777; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.cv-tpl-minimal .cv-divider { border: none; border-top: 1px solid #e0e0e0; margin: 16px 0; }
.cv-tpl-minimal .cv-seccion { margin-bottom: 20px; }
.cv-tpl-minimal .cv-seccion-titulo { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: #888; margin-bottom: 10px; }
.cv-tpl-minimal .cv-item { margin-bottom: 10px; }
.cv-tpl-minimal .cv-item-header { display: flex; justify-content: space-between; }
.cv-tpl-minimal .cv-item-title { font-weight: 700; font-size: 11.5px; }
.cv-tpl-minimal .cv-item-date { font-size: 10px; color: #999; }
.cv-tpl-minimal .cv-item-sub { font-size: 10.5px; color: #16785A; font-weight: 600; }
.cv-tpl-minimal .cv-item-desc { font-size: 10.5px; color: #444; margin-top: 3px; white-space: pre-line; }
.cv-tpl-minimal .cv-perfil-texto { font-size: 11px; color: #444; line-height: 1.65; }
.cv-tpl-minimal .cv-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.cv-tpl-minimal .cv-chip-item { font-size: 10px; color: #555; padding: 2px 0; }
.cv-tpl-minimal .cv-chip-item::after { content: " ·"; color: #ccc; }
.cv-tpl-minimal .cv-chip-item:last-child::after { content: ""; }

/* ══ PLANTILLA: EJECUTIVO ══ */
.cv-tpl-ejecutivo { padding: 0; }

.cv-ej-header {
    background: #16785A;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.cv-ej-header-info { flex: 1; }
.cv-tpl-ejecutivo .cv-nombre { font-size: 24px; font-weight: 800; color: #fff; margin: 0 0 4px; letter-spacing: -0.5px; }
.cv-tpl-ejecutivo .cv-puesto-header { font-size: 12px; color: #F2A93B; font-weight: 700; margin: 0 0 10px; }
.cv-ej-contacto { font-size: 10px; color: #c8e8de; margin: 0; }
.cv-ej-foto-wrap { flex-shrink: 0; }
.cv-tpl-ejecutivo .cv-foto { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,0.4); }
.cv-tpl-ejecutivo .cv-foto-placeholder { width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 28px; }

.cv-ej-body { display: flex; min-height: 220mm; }
.cv-ej-main { flex: 1; padding: 22px 28px; }
.cv-ej-aside { width: 33%; background: #f6f7f6; padding: 22px 18px; border-left: 1px solid #e0e0e0; }
.cv-ej-seccion { margin-bottom: 16px; }
.cv-ej-titulo { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #16785A; border-bottom: 2px solid #16785A; padding-bottom: 3px; margin-bottom: 8px; }
.cv-ej-aside-sub { font-size: 9px; font-weight: 700; color: #555; margin: 6px 0 3px; text-transform: uppercase; letter-spacing: 0.05em; }
.cv-ej-aside-item { font-size: 10.5px; color: #333; margin-bottom: 3px; }

.cv-tpl-ejecutivo .cv-item { margin-bottom: 10px; }
.cv-tpl-ejecutivo .cv-item-header { display: flex; justify-content: space-between; align-items: baseline; }
.cv-tpl-ejecutivo .cv-item-title { font-weight: 700; font-size: 11.5px; color: #0F1B2D; }
.cv-tpl-ejecutivo .cv-item-date { font-size: 10px; color: #777; white-space: nowrap; }
.cv-tpl-ejecutivo .cv-item-sub { font-size: 10.5px; color: #16785A; font-weight: 600; }
.cv-tpl-ejecutivo .cv-item-desc { font-size: 10.5px; color: #444; margin-top: 3px; white-space: pre-line; }
.cv-tpl-ejecutivo .cv-perfil-texto { font-size: 11px; color: #333; line-height: 1.6; }
.cv-tpl-ejecutivo .cv-chips { display: flex; flex-wrap: wrap; gap: 3px; }
.cv-tpl-ejecutivo .cv-chip-item { background: #DCEEE6; color: #0E5A42; padding: 2px 7px; border-radius: 999px; font-size: 9.5px; font-weight: 600; }

/* ══ PLANTILLA: CREATIVO ══ */
.cv-tpl-creativo { display: flex; padding: 0; min-height: 297mm; }

.cv-cr-accent-bar { width: 8px; background: #F2A93B; flex-shrink: 0; }
.cv-cr-content { flex: 1; padding: 28px 32px 28px 24px; }

.cv-cr-header { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #e8e8e8; }
.cv-cr-header-info { flex: 1; }
.cv-tpl-creativo .cv-foto { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid #F2A93B; }
.cv-tpl-creativo .cv-foto-placeholder { width: 76px; height: 76px; border-radius: 50%; background: #FFF3DC; display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; border: 3px solid #F2A93B; }
.cv-tpl-creativo .cv-nombre { font-size: 23px; font-weight: 800; color: #0F1B2D; margin: 0 0 3px; letter-spacing: -0.5px; }
.cv-tpl-creativo .cv-puesto-header { font-size: 12px; color: #F2A93B; font-weight: 700; margin: 0 0 7px; }
.cv-cr-contacto { font-size: 10px; color: #666; display: flex; flex-wrap: wrap; gap: 3px 10px; }
.cv-cr-contacto span::before { content: "· "; }
.cv-cr-contacto span:first-child::before { content: ""; }

.cv-cr-perfil { margin-bottom: 14px; padding: 10px 14px; background: #FFF8EC; border-left: 3px solid #F2A93B; border-radius: 0 4px 4px 0; }
.cv-cr-perfil-texto { font-size: 11px; color: #444; line-height: 1.65; margin: 0; }

.cv-cr-cols { display: flex; gap: 22px; }
.cv-cr-main { flex: 3; }
.cv-cr-side { flex: 2; }

.cv-cr-seccion { margin-bottom: 15px; }
.cv-cr-titulo { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: #F2A93B; margin-bottom: 8px; }

.cv-cr-item { margin-bottom: 10px; padding-left: 12px; border-left: 2px solid #DCEEE6; }
.cv-cr-item-title { font-weight: 700; font-size: 11.5px; color: #0F1B2D; }
.cv-cr-item-meta { font-size: 10.5px; color: #16785A; font-weight: 600; margin-top: 1px; }
.cv-cr-item-date { font-size: 10px; color: #888; font-weight: 400; }
.cv-cr-item-desc { font-size: 10.5px; color: #444; margin-top: 3px; white-space: pre-line; }

.cv-cr-side-item { font-size: 10.5px; color: #333; margin-bottom: 7px; line-height: 1.5; }
.cv-cr-side-item strong { font-weight: 700; color: #0F1B2D; display: block; }
.cv-cr-side-item span { color: #16785A; font-weight: 600; font-size: 10px; display: block; }
.cv-cr-side-item em { color: #777; font-size: 10px; font-style: normal; display: block; }

.cv-cr-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.cv-cr-chip { background: #FFF3DC; color: #9A6500; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; }

/* ══ PRINT STYLES ══ */
@media print {
    body * { visibility: hidden; }
    #cv-preview, #cv-preview * { visibility: visible; }
    #cv-preview {
        position: fixed;
        top: 0; left: 0;
        width: 210mm;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    .cv-tpl-clasico,
    .cv-tpl-minimal { padding: 20mm 18mm; }
}

/* ══ CAPTCHA MODAL ══ */
.rrhh-captcha-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rrhh-captcha-modal[hidden] { display: none; }

.rrhh-captcha-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
}
.rrhh-captcha-modal__box {
    position: relative;
    background: var(--rrhh-surface);
    border-radius: var(--rrhh-radius-lg);
    padding: var(--rrhh-s-6);
    max-width: 380px;
    width: calc(100% - 32px);
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    animation: rrhh-fade-in 0.2s var(--rrhh-ease);
}
.rrhh-captcha-modal__icon {
    font-size: 2.2rem;
    margin-bottom: var(--rrhh-s-2);
    line-height: 1;
}
.rrhh-captcha-modal__box h4 {
    font-size: var(--rrhh-text-lg) !important;
    font-weight: 800 !important;
    color: var(--rrhh-ink) !important;
    margin: 0 0 var(--rrhh-s-1) !important;
}
.rrhh-captcha-modal__box > p {
    font-size: var(--rrhh-text-sm) !important;
    color: var(--rrhh-ink-dim) !important;
    margin: 0 0 var(--rrhh-s-3) !important;
}
.rrhh-captcha-modal__question {
    background: var(--rrhh-surface-2);
    border: 1px solid var(--rrhh-rule);
    border-radius: var(--rrhh-radius-md);
    padding: var(--rrhh-s-3) var(--rrhh-s-4);
    margin-bottom: var(--rrhh-s-3);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--rrhh-ink);
    letter-spacing: 0.02em;
}
.rrhh-captcha-modal__input {
    width: 100%;
    box-sizing: border-box;
    padding: var(--rrhh-s-2) var(--rrhh-s-3);
    border: 2px solid var(--rrhh-rule);
    border-radius: var(--rrhh-radius-md);
    font-size: 1.25rem;
    font-family: var(--rrhh-font);
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: border-color var(--rrhh-duration);
    color: var(--rrhh-ink);
    background: var(--rrhh-surface);
    -moz-appearance: textfield;
}
.rrhh-captcha-modal__input::-webkit-outer-spin-button,
.rrhh-captcha-modal__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rrhh-captcha-modal__input:focus { border-color: var(--rrhh-primary); }
.rrhh-captcha-modal__input.rrhh-captcha--shake {
    animation: rrhh-captcha-shake 0.4s ease;
    border-color: #d32f2f;
}
@keyframes rrhh-captcha-shake {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}
.rrhh-captcha-modal__error {
    display: block;
    color: #d32f2f;
    font-size: var(--rrhh-text-sm);
    font-weight: 600;
    min-height: 22px;
    margin: var(--rrhh-s-1) 0 0;
}
.rrhh-captcha-modal__actions {
    display: flex;
    gap: var(--rrhh-s-2);
    justify-content: center;
    margin-top: var(--rrhh-s-4);
}
.rrhh-captcha-modal__note {
    font-size: 11px !important;
    color: var(--rrhh-ink-soft) !important;
    margin: var(--rrhh-s-3) 0 0 !important;
    line-height: 1.5 !important;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
    .rrhh-cvgen__layout { grid-template-columns: 1fr; }
    .rrhh-cvgen__preview-panel { position: static; }
    .rrhh-cvgen__row { grid-template-columns: 1fr; }
}
