* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --accent:        #F1C8BD;
  --accent-dark:   #C4786A;
  --accent-text:   #A85E52;
  --accent-light:  #FDF5F3;
  --success:       #059669;
  --text:          #020817;
  --text-mid:      #374151;
  --text-muted:    #6B7280;
  --border:        #E5E7EB;
  --border-input:  #E4E4E4;
  --bg:            #F8FAFC;
  --surface:       #F9FAFB;
  --white:         #FFFFFF;
  --radius:        12.8px;
  --shadow:        0 1px 3px rgba(0,0,0,0.08);
  --shadow-card:   rgba(0,0,0,0.1) 0px 1px 3px 0px;
}

body {
  font-family: "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 14px;
  font-weight: 400;
}

/* ── HEADER ──────────────────────────────────────────────────────────────── */
header {
  background: var(--bg);
  padding: 20px 32px;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo img {
  height: 160px;
  width: auto;
  object-fit: contain;
  border-radius: 0;
}
.logo-icon { font-size: 20px; }
.logo-text {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  white-space: nowrap;
}

/* NAV */
.main-nav {
  display: flex;
  gap: 2px;
  margin: 0 auto;
}
.nav-link {
  padding: 7px 13px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.nav-link:hover {
  background: var(--white);
  border-color: var(--border);
  color: var(--text-mid);
}
.nav-link.active {
  background: var(--accent);
  color: white;
  border-color: transparent;
}

/* USER NAV */
.user-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.credits-badge {
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.2s;
}
.credits-badge:hover { opacity: 0.85; }
.user-email-nav {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-logout-nav {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: var(--radius);
  background: var(--white);
  transition: all 0.2s;
}
.btn-logout-nav:hover { color: var(--text); border-color: var(--text-muted); }
.btn-login-nav, .btn-register-nav {
  font-size: 13px;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.btn-login-nav { color: var(--text-muted); border: 1px solid var(--border); }
.btn-login-nav:hover { color: var(--text); }
.btn-register-nav { background: var(--accent); color: white; font-weight: 600; border: none; }
.btn-register-nav:hover { opacity: 0.9; }

/* ── MAIN LAYOUT ──────────────────────────────────────────────────────────── */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0px 32px 80px;
}

/* ── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  margin-bottom: 36px;
  padding-top: 0;
}
.hero h1 {
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 10px;
}
.highlight { color: var(--accent-text); }
.hero-sub {
  color: var(--text-muted);
  font-size: 15px;
}

/* ── FORM ────────────────────────────────────────────────────────────────── */
.form-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-card);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { margin-bottom: 22px; }

label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
}
.required { color: #EF4444; }

input[type="text"],
input[type="email"],
input[type="password"] {
  padding: 10px 14px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.15s;
  outline: none;
  background: var(--white);
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(196, 120, 106, 0.12);
}
input::placeholder { color: #9CA3AF; }

.field-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  margin-top: -2px;
  line-height: 1.5;
}

textarea {
  padding: 10px 14px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
  background: var(--white);
  width: 100%;
}
textarea:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(196, 120, 106, 0.12);
}
textarea::placeholder { color: #9CA3AF; font-size: 13px; }

button[type="submit"] {
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}
button[type="submit"]:hover { opacity: 0.9; }
button[type="submit"]:active { transform: scale(0.99); }
button[type="submit"]:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── IDIOMA TOGGLE ──────────────────────────────────────────────────────── */
.idioma-field { margin-bottom: 20px; }
.idioma-toggle { display: flex; gap: 8px; margin-top: 6px; }
.idioma-btn {
  padding: 8px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s;
}
.idioma-btn.active { background: var(--accent); border-color: var(--accent); color: white; }

/* ── INPUT MODE TOGGLE ──────────────────────────────────────────────────── */
.input-mode-toggle { display: flex; gap: 6px; margin-bottom: 10px; margin-top: 6px; }
.mode-btn {
  padding: 6px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s;
}
.mode-btn.active { background: var(--surface); border-color: var(--text-muted); color: var(--text); }

/* ── UPLOAD AREA ────────────────────────────────────────────────────────── */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--bg);
}
.upload-area:hover, .upload-area.drag-over {
  border-color: var(--accent-dark);
  background: var(--accent-light);
}
.upload-icon { font-size: 30px; margin-bottom: 8px; }
.upload-text { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.upload-hint { font-size: 13px; color: var(--text-muted); }

.upload-area-small {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--bg);
  margin-top: 8px;
}
.upload-area-small:hover { border-color: var(--accent-dark); background: var(--accent-light); }
.upload-icon-sm { font-size: 1.3rem; }
.upload-text-sm { font-size: .875rem; font-weight: 500; color: var(--text-mid); }
.upload-hint-sm { font-size: .75rem; color: var(--text-muted); margin-left: auto; }

.upload-status {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
}
.upload-status.loading { background: #FFF7ED; color: #92400E; }
.upload-status.success { background: #ECFDF5; color: #065F46; }
.upload-status.error   { background: #FEF2F2; color: #991B1B; }

/* ── RESULTS ────────────────────────────────────────────────────────────── */
.results-section { margin-bottom: 48px; }
.results-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.section-desc { color: var(--text-muted); font-size: 13px; margin-bottom: 18px; }

/* ── BOOLEAN / BOOLEAN CARDS ────────────────────────────────────────────── */
.cards-grid { display: grid; gap: 14px; }
.bool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.card-icon { font-size: 20px; }
.card-tipo { font-weight: 700; font-size: 15px; color: var(--text); }
.card-desc { color: var(--text-muted); font-size: 13px; margin-bottom: 12px; }

.query-box {
  background: var(--accent-light);
  border: 1px solid #F3D5CC;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: var(--accent-text);
  word-break: break-word;
  margin-bottom: 12px;
  line-height: 1.5;
}
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-copy, .btn-linkedin {
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}
.btn-copy {
  background: var(--surface);
  color: var(--text-mid);
  border: 1px solid var(--border);
}
.btn-copy:hover { background: #F3F4F6; }
.btn-copy.copied { background: #ECFDF5; border-color: #6EE7B7; color: var(--success); }
.btn-linkedin {
  background: #0A66C2;
  color: white;
  text-decoration: none;
  display: inline-block;
}
.btn-linkedin:hover { background: #004182; }

/* ── XRAY GRID ──────────────────────────────────────────────────────────── */
.xray-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.xray-generic-block {
  background: var(--white);
  border: 1.5px solid #BFDBFE;
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}
.xray-generic-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}
.xray-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.xray-platform { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.xray-query { font-size: 12px; color: var(--text-muted); font-family: monospace; word-break: break-all; line-height: 1.4; }
.btn-xray {
  display: block;
  text-align: center;
  padding: 8px;
  background: var(--accent-light);
  color: var(--accent-text);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-xray:hover { background: #F7E8E4; }

/* ── BOOLEAN EXPLAINER ──────────────────────────────────────────────────── */
.boolean-explainer {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--accent-light);
  border: 1px solid #F3D5CC;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 18px;
}
.explainer-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.explainer-title { font-size: 14px; font-weight: 700; color: var(--accent-text); margin-bottom: 4px; }
.explainer-text { font-size: 13px; color: var(--text-mid); line-height: 1.6; }
.explainer-text strong { color: var(--accent-text); }

/* ── KEYWORDS ALTERNATIVAS ──────────────────────────────────────────────── */
.keywords-alternativas {
  margin-top: 14px;
  padding: 12px 14px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius);
}
.keywords-title { font-size: 13px; font-weight: 700; color: #166534; margin-bottom: 8px; }
.keywords-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.kw-tag {
  background: #DCFCE7;
  color: #15803D;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'SF Mono', 'Fira Code', monospace;
}
.keywords-hint { font-size: 12px; color: #166534; opacity: 0.7; }

/* ── FILTROS TIP ────────────────────────────────────────────────────────── */
.filtros-tip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius);
  font-size: 13px;
}
.filtros-label { font-weight: 600; color: #92400E; margin-right: 4px; white-space: nowrap; }
.filtro-tag {
  background: #FEF3C7;
  color: #78350F;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

/* ── VERSION BLOCKS ─────────────────────────────────────────────────────── */
.version-block { margin-bottom: 12px; }
.version-block:last-child { margin-bottom: 0; }
.version-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.version-especifica .version-label { color: var(--accent-text); }
.version-especifica .query-box {
  background: var(--accent-light);
  border-color: #F3D5CC;
  color: var(--accent-text);
}

/* ── CV ACTIONS ─────────────────────────────────────────────────────────── */
.cv-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-cv-action {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-copy-cv { background: var(--surface); color: var(--text-mid); }
.btn-copy-cv:hover { background: #F3F4F6; }
.btn-pdf { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.btn-pdf:hover { background: #FEE2E2; }
.btn-gdocs { background: #F0FDF4; border-color: #BBF7D0; color: #166534; }
.btn-gdocs:hover { background: #DCFCE7; }

.cv-edit-hint { font-size: 12px; color: var(--text-muted); margin: 8px 0 4px; }
.cv-editable {
  outline: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: border-color 0.15s;
  white-space: pre-wrap;
  cursor: text;
}
.cv-editable:focus { border-color: #F3D5CC; background: var(--accent-light); }
.cv-placeholder {
  background: #FEF9C3;
  color: #92400E;
  border-radius: 3px;
  padding: 0 2px;
  font-style: italic;
  cursor: pointer;
}
.docx-hint {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: var(--radius);
  padding: 12px 16px; margin-top: 12px; font-size: 13px; color: #166534;
}
.docx-hint a { color: #166534; font-weight: 600; }
.hint-step { padding: 2px 10px; background: #DCFCE7; border-radius: 6px; }
.hint-close {
  margin-left: auto; background: none; border: none; cursor: pointer;
  color: #166534; font-size: 15px; padding: 2px 6px;
}

/* ── TWO COL PASTE ──────────────────────────────────────────────────────── */
.two-col-paste {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}
@media (max-width: 700px) { .two-col-paste { grid-template-columns: 1fr; } }

/* ── MATCH CARD ─────────────────────────────────────────────────────────── */
.match-card { margin-bottom: 22px; }
.match-top { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 24px; }
@media (max-width: 600px) { .match-top { flex-direction: column; } }
.match-score-wrap { text-align: center; min-width: 110px; }
.match-score { font-size: 60px; font-weight: 900; line-height: 1; }
.match-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }
.match-consejo { flex: 1; }
.match-consejo-text { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.match-resumen { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.match-dims { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
@media (max-width: 600px) { .match-dims { grid-template-columns: 1fr; } }
.match-dim { background: rgba(255,255,255,0.7); border-radius: var(--radius); padding: 12px; }
.dim-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.dim-nombre { font-size: 13px; font-weight: 600; color: var(--text); }
.dim-pct { font-size: 14px; font-weight: 800; }
.dim-bar-bg { height: 5px; background: rgba(0,0,0,0.08); border-radius: 99px; margin-bottom: 6px; overflow: hidden; }
.dim-bar-fill { height: 100%; border-radius: 99px; background: var(--accent); transition: width 0.6s ease; }
.dim-explicacion { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.match-gaps { background: rgba(255,255,255,0.6); border-radius: var(--radius); padding: 12px; margin-bottom: 14px; }
.match-fortalezas { background: rgba(255,255,255,0.6); border-radius: var(--radius); padding: 12px; margin-bottom: 14px; }
.match-transferibles { background: rgba(255,255,255,0.6); border-radius: var(--radius); padding: 12px; margin-bottom: 14px; }
.match-compensar { background: rgba(255,255,255,0.6); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
.gaps-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.match-gaps ul, .match-fortalezas ul { padding-left: 16px; margin: 0; }
.match-gaps li, .match-fortalezas li { font-size: 13px; color: var(--text); margin-bottom: 4px; }
.gaps-nota { font-size: 12px; color: #78350F; background: #FEF3C7; border-radius: var(--radius); padding: 10px 12px; margin-top: 8px; line-height: 1.5; }
.transferibles-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.transferible-tag { background: #EFF6FF; color: #1D4ED8; border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.compensar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .compensar-grid { grid-template-columns: 1fr; } }
.compensar-item { background: var(--bg); border-radius: 8px; padding: 10px 12px; }
.compensar-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: 4px; }
.compensar-item p { font-size: 12px; color: var(--text); line-height: 1.5; margin: 0; }

/* ── CV OUTPUT ──────────────────────────────────────────────────────────── */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 14px;
}
.btn-copy-cv {
  padding: 8px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
}
.btn-copy-cv:hover { background: #F3F4F6; }
.btn-copy-cv.copied { background: #ECFDF5; border-color: #6EE7B7; color: var(--success); }
.cv-output {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: var(--shadow-card);
}

/* ── MENSAJES MODULE ────────────────────────────────────────────────────── */
.tipo-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
@media (max-width: 600px) { .tipo-selector { grid-template-columns: 1fr; } }
.tipo-option { cursor: pointer; }
.tipo-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  transition: all 0.15s;
  background: var(--white);
}
.tipo-card:hover { border-color: var(--accent-dark); background: var(--accent-light); }
.tipo-card.active { border-color: var(--accent); background: var(--accent-light); }
.tipo-icon { font-size: 26px; margin-bottom: 5px; }
.tipo-label { font-weight: 700; font-size: 13px; color: var(--text); margin-bottom: 3px; }
.tipo-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

.mensajes-grid { display: flex; flex-direction: column; gap: 12px; }
.mensaje-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.mensaje-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 12px; }
.mensaje-variante {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-text);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 20px;
  margin-right: 8px;
}
.mensaje-chars { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 20px; }
.chars-ok   { background: #ECFDF5; color: #059669; }
.chars-warn { background: #FEF3C7; color: #92400E; }
.email-asunto { font-size: 13px; color: var(--text-muted); }
.mensaje-texto {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
}
.mensaje-cuando { font-size: 13px; color: var(--text-muted); font-style: italic; }
.estrategia-box { margin-bottom: 6px; }

/* ── AUDIT MODULE ───────────────────────────────────────────────────────── */
.full-col { grid-column: 1 / -1; }
.audit-fields { display: flex; flex-direction: column; gap: 18px; margin-bottom: 22px; }
.audit-grid { display: flex; flex-direction: column; gap: 10px; }

.audit-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.audit-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
  transition: background 0.1s;
}
.audit-card-header:hover { background: var(--bg); }
.audit-card-left { display: flex; align-items: center; gap: 12px; }
.audit-icon { font-size: 20px; }
.audit-nombre { font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 3px; }
.audit-estado {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 10px;
  border-radius: 20px;
  border: 1px solid;
}
.audit-score-wrap { display: flex; align-items: baseline; gap: 3px; }
.audit-score { font-size: 24px; font-weight: 900; }
.audit-score-label { font-size: 12px; color: var(--text-muted); margin-right: 10px; }
.audit-chevron { font-size: 12px; color: var(--text-muted); transition: transform 0.2s; }

.audit-card-body { padding: 0 18px 18px; border-top: 1px solid var(--border); }
.audit-bar-bg { height: 4px; background: var(--border); border-radius: 99px; margin: 14px 0; overflow: hidden; }
.audit-bar-fill { height: 100%; border-radius: 99px; background: var(--accent); transition: width 0.5s ease; }

.audit-section { margin-bottom: 12px; }
.audit-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.audit-text { font-size: 14px; color: var(--text); line-height: 1.6; }

.entrevista-num-icon {
  min-width: 26px;
  height: 26px;
  background: var(--accent-light);
  color: var(--accent-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

/* ── NANO BANANA ────────────────────────────────────────────────────────── */
.nano-banana-block { background: #FFF7ED; border: 1px solid #FED7AA; border-radius: var(--radius); padding: 14px 16px; margin-top: 12px; }
.nano-banana-title { font-size: 13px; font-weight: 700; color: #C2410C; margin-bottom: 6px; }
.nano-banana-desc { font-size: 13px; color: #7C2D12; margin-bottom: 8px; line-height: 1.5; }
.nano-banana-label { font-size: 11px; font-weight: 700; color: #9A3412; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.nano-prompt-box { background: #fff; border: 1px solid #FED7AA; border-radius: 6px; padding: 8px 10px; font-size: 12px; color: #431407; line-height: 1.5; font-family: monospace; word-break: break-word; }
.nano-banana-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.btn-nano-video { font-size: 12px; color: #C2410C; text-decoration: none; padding: 5px 10px; border: 1px solid #FED7AA; border-radius: 6px; background: #fff; }
.btn-nano-video:hover { background: #FFF7ED; }
.btn-canva-template { display: inline-block; font-size: 13px; font-weight: 600; color: #fff; background: #7C3AED; border-radius: var(--radius); padding: 8px 14px; text-decoration: none; }
.btn-canva-template:hover { opacity: 0.9; }

.audit-ejemplo { background: var(--accent-light); border-radius: var(--radius); padding: 14px; border: 1px solid #F3D5CC; }
.ejemplo-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ejemplo-box { font-size: 13px; color: var(--text-mid); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.btn-copy-small {
  padding: 4px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.1s;
  white-space: nowrap;
}
.btn-copy-small:hover { background: var(--bg); }

/* ── PLAN ACCIÓN ────────────────────────────────────────────────────────── */
.plan-grid { display: flex; flex-direction: column; gap: 8px; }
.plan-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
}
.plan-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.plan-content { flex: 1; }
.plan-accion { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; line-height: 1.5; }
.plan-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.plan-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 20px;
}

/* ── ENTREVISTA MODULE ──────────────────────────────────────────────────── */
.loom-tutorial-block {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--accent-light);
  border: 1.5px solid #F3D5CC;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 14px;
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
}
.loom-tutorial-block:hover { background: #F7E8E4; }
.loom-tutorial-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.loom-tutorial-title { font-size: 14px; font-weight: 700; color: var(--accent-text); margin-bottom: 2px; }
.loom-tutorial-hint { font-size: 12px; color: var(--accent-dark); }

.star-info-box {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 14px 0 22px;
}
.star-info-title { font-weight: 700; font-size: 14px; color: #92400E; margin-bottom: 6px; }
.star-info-desc { font-size: 13px; color: #78350F; margin-bottom: 8px; line-height: 1.5; }
.star-list { padding-left: 16px; margin: 0; }
.star-list li { font-size: 13px; color: #78350F; margin-bottom: 4px; line-height: 1.5; }

.entrevista-grid { display: flex; flex-direction: column; gap: 10px; }
.entrevista-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
}
.entrevista-num {
  min-width: 26px;
  height: 26px;
  background: var(--accent-light);
  color: var(--accent-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}
.entrevista-content { flex: 1; }
.entrevista-pregunta { font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 6px; line-height: 1.5; }
.entrevista-consejo { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.star-ejemplo { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; }
.star-row { display: flex; gap: 10px; align-items: flex-start; }
.star-label {
  min-width: 26px;
  height: 26px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}
.star-s { background: var(--accent-light); color: var(--accent-text); }
.star-t { background: #FAF5FF; color: #7C3AED; }
.star-a { background: #ECFDF5; color: #059669; }
.star-r { background: #FFF7ED; color: #C2410C; }
.star-text { font-size: 14px; color: var(--text); line-height: 1.6; margin: 0; }

/* ── ROLES MODULE ───────────────────────────────────────────────────────── */
.roles-grid { display: flex; flex-direction: column; gap: 14px; }
.rol-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
}
.rol-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}
.rol-titulo { font-size: 17px; font-weight: 800; color: var(--text); }
.rol-match-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius);
  min-width: 84px;
  flex-shrink: 0;
}
.rol-match-pct { font-size: 24px; font-weight: 900; line-height: 1; }
.rol-match-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; text-align: center; margin-top: 3px; }
.rol-por-que { font-size: 14px; color: var(--text); line-height: 1.6; margin-bottom: 12px; }
.rol-skills-section { margin-bottom: 8px; }
.rol-skills-title { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.rol-skills-wrap { display: flex; flex-wrap: wrap; gap: 5px; }
.skill-tag { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 20px; }
.skill-tag-green { background: #ECFDF5; color: #059669; border: 1px solid #6EE7B7; }
.skill-tag-gray  { background: #F3F4F6; color: #6B7280; border: 1px solid var(--border); }
@media (max-width: 600px) { .rol-card-header { flex-direction: column; } }
.rol-tipo-badge { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6B7280; background: #F3F4F6; border-radius: 99px; padding: 2px 8px; margin-top: 4px; }
.rol-accion-block { background: rgba(255,255,255,0.7); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.rol-accion-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.rol-accion-text { font-size: 13px; color: var(--text); line-height: 1.5; margin: 0; }
.rol-expand-toggle { cursor: pointer; padding: 8px 0 4px; border-top: 1px solid rgba(0,0,0,0.07); margin-top: 8px; }
.rol-expand-text { font-size: 12px; color: var(--accent); font-weight: 600; }
.rol-detail { margin-top: 10px; }

/* ── LOGROS MODULE ──────────────────────────────────────────────────────── */
.logros-intro { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }
.logros-feedback-box { margin-bottom: 8px; }
.logros-grid { display: flex; flex-direction: column; gap: 18px; }
.logro-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
}
.logro-header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.logro-num {
  min-width: 30px;
  height: 30px;
  background: var(--accent-light);
  color: var(--accent-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}
.logro-titulo { font-weight: 800; font-size: 15px; color: var(--text); margin-bottom: 5px; }
.logro-declaracion { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.logro-version { margin-bottom: 12px; }
.logro-version:last-child { margin-bottom: 0; }
.logro-version-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.logro-version-label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* ── CV MISSING NOTICE ──────────────────────────────────────────────────── */
.cv-missing-notice {
  background: var(--accent-light);
  border: 1px solid #F3D5CC;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--accent-text);
  line-height: 1.5;
  margin-bottom: 20px;
}
.cv-missing-notice a { color: var(--accent-text); font-weight: 600; text-decoration: underline; }

/* ── XRAY REGION GROUPS ─────────────────────────────────────────────────── */
.xray-region-group { margin-bottom: 26px; }
.xray-region-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 2px;
}
.xray-region-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

/* ── GLOBAL SCORE ───────────────────────────────────────────────────────── */
.global-score-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 24px;
  align-items: center;
}
@media (max-width: 600px) { .global-score-card { flex-direction: column; } }
.global-score-num { font-size: 72px; font-weight: 900; line-height: 1; color: var(--text); }
.global-score-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 8px; }
.global-score-resumen { font-size: 15px; color: var(--text); line-height: 1.6; }

/* ── AUTH PAGES ─────────────────────────────────────────────────────────── */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.auth-container { width: 100%; max-width: 420px; padding: 24px 16px; }
.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
}
.auth-form .field label { text-transform: none; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--text); }
.auth-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; justify-content: center; }
.auth-logo img { height: 48px; width: auto; border-radius: 0; }
.auth-title { font-size: 22px; font-weight: 800; color: var(--text); text-align: center; margin-bottom: 6px; }
.auth-sub { font-size: 14px; color: var(--text-muted); text-align: center; margin-bottom: 22px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border-input);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.auth-form input:focus { outline: none; border-color: var(--accent-dark); }
.btn-auth {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 4px;
}
.btn-auth:hover { opacity: 0.9; }
.auth-error {
  background: #FEF2F2; border: 1px solid #FECACA; color: #DC2626;
  border-radius: var(--radius); padding: 10px 14px; font-size: 13px; margin-bottom: 14px;
}
.auth-success {
  background: #F0FDF4; border: 1px solid #BBF7D0; color: #166534;
  border-radius: var(--radius); padding: 10px 14px; font-size: 13px; margin-bottom: 14px;
}
.auth-switch { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 18px; }
.auth-switch a { color: var(--accent-text); text-decoration: none; font-weight: 600; }
.auth-features { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 5px; }
.auth-feature { font-size: 13px; color: var(--text-muted); }

/* ── PRICING ────────────────────────────────────────────────────────────── */
.pricing-section { padding: 0 24px 60px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 900px;
  margin: 0 auto 40px;
}
@media (max-width: 700px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-card);
}
.pricing-card-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--white) 100%);
}
.pricing-badge { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.pricing-badge-featured { color: var(--accent-text); }
.pricing-price { font-size: 38px; font-weight: 900; color: var(--text); line-height: 1; }
.pricing-credits { font-size: 14px; font-weight: 700; color: var(--accent-text); }
.pricing-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.pricing-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.pricing-features li { font-size: 13px; color: var(--text-muted); }
.btn-pricing {
  display: block;
  text-align: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-mid);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
  margin-top: auto;
}
.btn-pricing:hover { border-color: var(--accent-dark); color: var(--accent-text); }
.btn-pricing-featured { background: var(--accent); border-color: transparent; color: white; }
.btn-pricing-featured:hover { opacity: 0.9; color: white; }
.pricing-note { font-size: 11px; color: var(--text-muted); text-align: center; }
.pricing-faq { max-width: 700px; margin: 0 auto; }
.pricing-faq h2 { font-size: 20px; font-weight: 800; margin-bottom: 18px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.faq-q { font-weight: 700; font-size: 14px; margin-bottom: 5px; }
.faq-a { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

/* ── LOADER ─────────────────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 7px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── LINKEDIN FIELD ─────────────────────────────────────────────────────── */
.linkedin-field { margin-bottom: 22px; }

/* ── STATS ──────────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.stat-value { font-size: 36px; font-weight: 900; color: var(--text); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 12px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
