/* ==========================================================================
   CSS PRINCIPAL - CREADOR DE CV PRO (SINERGIA LABORAL)
   ========================================================================== */

:root {
  --primary-bg: #FFFDFB;
  --secondary-bg: #FFFFFF;
  --text-dark: #2A2426;
  --text-muted: #6A6064;
  --accent-blue: #6C3954;
  --accent-blue-hover: #542B41;
  --accent-light: #F4ECE4;
  --border-color: #E6DFD9;
  --border-focus: #6C3954;
  --border-radius: 8px;
  --font-main: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 32px rgba(0,0,0,0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--secondary-bg);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  text-decoration: underline;
}

/* ===== HEADER ===== */
.header {
  background-color: var(--primary-bg);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-dark);
}

.logo-sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--accent-light);
  color: var(--accent-blue);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* ===== HERO ===== */
.hero {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-blue);
  background-color: var(--accent-light);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-blue);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title .accent {
  color: var(--accent-blue);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-steps {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.step-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-bg);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
}

.step-pill.accent {
  background-color: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--accent-blue);
}

.pill-num {
  width: 20px;
  height: 20px;
  background-color: var(--secondary-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-dark);
}

.pill-num.accent-num {
  background-color: var(--accent-blue);
  color: white;
}

.step-arrow {
  color: var(--text-muted);
  font-weight: 300;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: #FFFFFF;
  border: none;
  border-radius: var(--border-radius);
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--accent-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 57, 84, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-hero {
  padding: 18px 36px;
  font-size: 18px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
}

/* HERO VISUAL MOCKUP */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cv-mockup {
  width: 100%;
  max-width: 380px;
  background-color: var(--primary-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}

.cv-header-mock {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.cv-avatar {
  width: 48px;
  height: 48px;
  background-color: var(--secondary-bg);
  border-radius: 50%;
}

.cv-header-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cv-line {
  height: 8px;
  background-color: #E9ECEF;
  border-radius: 4px;
}

.cv-line.w100 { width: 100%; }
.cv-line.w90 { width: 90%; }
.cv-line.w80 { width: 80%; }
.cv-line.w75 { width: 75%; }
.cv-line.w70 { width: 70%; }
.cv-line.w65 { width: 65%; }
.cv-line.w60 { width: 60%; }
.cv-line.w55 { width: 55%; }
.cv-line.w50 { width: 50%; }

.cv-line.bold {
  height: 10px;
  background-color: var(--text-dark);
}

.cv-line.thin {
  height: 6px;
}

.cv-line.blue {
  background-color: var(--accent-blue);
}

.cv-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-blue);
  margin: 20px 0 8px 0;
}

.cv-exp-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.cv-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-blue);
  margin-top: 4px;
}

.cv-bullet {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--text-muted);
  display: inline-block;
  margin: 6px 6px 0 0;
}

.cv-skills-row {
  display: flex;
  gap: 6px;
}

.cv-skill-tag {
  height: 16px;
  width: 45px;
  background-color: var(--accent-light);
  border-radius: 10px;
}

.cv-skill-tag.w2 { width: 60px; }
.cv-skill-tag.w3 { width: 35px; }

.cv-ats-badge {
  position: absolute;
  top: 20px;
  right: -30px;
  background-color: var(--accent-light);
  color: var(--accent-blue);
  font-size: 9px;
  font-weight: 700;
  padding: 4px 30px;
  transform: rotate(45deg);
  box-shadow: var(--shadow-sm);
}

/* ===== APP CONTAINER & PROGRESS ===== */
.app-container {
  max-width: 800px;
  margin: 40px auto 80px auto;
  padding: 0 20px;
}

.progress-wrap {
  margin-bottom: 40px;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.prog-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  position: relative;
}

.prog-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary-bg);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
}

.prog-step.active .prog-circle {
  border-color: var(--accent-blue);
  background-color: var(--accent-blue);
  color: white;
  box-shadow: 0 0 0 4px var(--accent-light);
}

.prog-step.completed .prog-circle {
  border-color: var(--accent-blue);
  background-color: var(--accent-blue);
  color: white;
}

.prog-step span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.prog-step.active span {
  color: var(--accent-blue);
}

.prog-line {
  flex: 1;
  height: 2px;
  background-color: var(--border-color);
  margin: 0 -10px;
  transform: translateY(-13px);
  z-index: 1;
  transition: var(--transition);
}

.prog-line.active {
  background-color: var(--accent-blue);
}

/* ===== STEP SECTIONS & CARDS ===== */
.step-section {
  animation: fadeIn 0.4s ease-out;
}

.step-card {
  background-color: var(--primary-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.step-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.step-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.step-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ===== STEP 1: OPTIONS ===== */
.option-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.option-card {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px 24px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: var(--primary-bg);
}

.option-card:hover {
  border-color: var(--accent-blue);
  background-color: var(--accent-light);
  transform: translateY(-2px);
}

.opt-icon {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.option-card strong {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.option-card p {
  font-size: 13px;
  color: var(--text-muted);
}

.upload-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background-color: var(--accent-light);
  border-radius: var(--border-radius);
  color: var(--accent-blue);
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
}

.upload-spinner {
  width: 20px;
  border-radius: 50%;
  border: 3px solid rgba(108, 57, 84, 0.2);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ===== STEP 2: FORM ===== */
.data-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
}

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group label .optional {
  font-weight: 400;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.text-answer {
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-main);
  font-size: 15px;
  background-color: var(--primary-bg);
  color: var(--text-dark);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.text-answer:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.step-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  gap: 16px;
}

.btn-secondary {
  background-color: var(--primary-bg);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  border-radius: var(--border-radius);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-secondary:hover {
  background-color: var(--secondary-bg);
  border-color: var(--text-dark);
}

/* ===== STEP 4: ENTREVISTA GUIADA ===== */
.interview-card {
  position: relative;
}

.interview-header-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, #F4ECE4 0%, #f0f7ff 100%);
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 20px;
  border: 1px solid #E6DFD9;
}

.message.ai {
  align-self: flex-start;
  background: linear-gradient(90deg, #F4ECE4 0%, #FFFDFB 100%);
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
  border: 1px solid #E6DFD9;
}

.interview-ai-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6C3954;
  flex-shrink: 0;
  animation: pulse 1.8s infinite;
}

.interview-ai-label {
  font-size: 13px;
  font-weight: 600;
  color: #6C3954;
  flex: 1;
}

.q-counter-badge {
  background: #6C3954;
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
}

/* Question nav dots */
.q-nav-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}

.q-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.q-dot.active {
  background: #6C3954;
  transform: scale(1.35);
  box-shadow: 0 0 0 3px #E6DFD9;
}

.q-dot.answered {
  background: #198754;
}

.interview-opt.selected {
  background: #6C3954;
  color: white;
  border-color: #6C3954;
  box-shadow: 0 0 0 3px #E6DFD9;
  transform: translateY(-1px);
}

.info-tip {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 18px;
  background: #FFFDFB;
  border-radius: var(--border-radius);
  border: 1.5px solid #E6DFD9;
  border-left: 5px solid #6C3954;
  animation: fadeIn 0.5s ease-out;
}

/* Question box */
.guided-question-box {
  background: #FFFDFB;
  border: 1.5px solid #E6DFD9;
  border-left: 5px solid #6C3954;
  border-radius: 0 12px 12px 0;
  padding: 22px 26px;
  margin-bottom: 24px;
  animation: fadeIn 0.3s ease-out;
}

.q-number {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6C3954;
  margin-bottom: 8px;
}

.info-tip svg {
  flex-shrink: 0;
  color: #6C3954;
  margin-top: 2px;
}

.q-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 10px;
}

.info-tip-text {
  font-size: 13.5px;
  color: #b6957b;
  line-height: 1.5;
  font-style: italic;
}

/* Nav actions */
.q-nav-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.q-nav-actions .btn-secondary,
.q-nav-actions .btn-primary {
  flex: 1;
}


.interview-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 30px;
}

.ai-avatar {
  width: 48px;
  height: 48px;
  background-color: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(108, 57, 84, 0.2);
}

.interview-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
}

.interview-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.question-counter {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-blue);
  background-color: var(--accent-light);
  padding: 4px 10px;
  border-radius: 12px;
}

.question-box {
  margin-bottom: 24px;
}

.question-bubble {
  background-color: var(--secondary-bg);
  border-left: 4px solid var(--accent-blue);
  padding: 20px 24px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

#question-text {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
}

.voice-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: var(--accent-light);
  border-radius: var(--border-radius);
  padding: 16px 20px;
  margin-bottom: 30px;
  font-size: 13.5px;
  line-height: 1.4;
  color: #4A253A;
}

.recorder-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.btn-record {
  background-color: var(--accent-blue);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(108, 57, 84, 0.2);
}

.btn-record:hover {
  background-color: var(--accent-blue-hover);
  transform: scale(1.03);
}

.btn-record.recording {
  background-color: var(--accent-blue);
  color: white;
  box-shadow: 0 4px 10px rgba(108, 57, 84, 0.2);
  animation: pulse-border 1.5s infinite;
}

.record-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.waveform-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
}

.waveform span {
  width: 3px;
  height: 6px;
  background-color: #DC3545;
  border-radius: 2px;
  animation: soundWave 1.2s ease-in-out infinite;
}

/* Stagger animation of wave */
.waveform span:nth-child(2) { animation-delay: 0.1s; height: 12px; }
.waveform span:nth-child(3) { animation-delay: 0.2s; height: 18px; }
.waveform span:nth-child(4) { animation-delay: 0.3s; height: 10px; }
.waveform span:nth-child(5) { animation-delay: 0.4s; height: 16px; }
.waveform span:nth-child(6) { animation-delay: 0.5s; height: 8px; }
.waveform span:nth-child(7) { animation-delay: 0.6s; height: 14px; }
.waveform span:nth-child(8) { animation-delay: 0.7s; height: 20px; }
.waveform span:nth-child(9) { animation-delay: 0.8s; height: 10px; }
.waveform span:nth-child(10) { animation-delay: 0.9s; height: 6px; }

.record-timer {
  font-size: 14px;
  font-weight: 700;
  color: #DC3545;
}

.transcription-area {
  background-color: #FCFDFE;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px;
  margin-bottom: 24px;
}

.transcription-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-blue);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.transcription-text {
  font-size: 14px;
  color: var(--text-dark);
  font-style: italic;
  line-height: 1.5;
}

.text-response-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.text-or-label {
  align-self: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.text-answer {
  resize: vertical;
  min-height: 80px;
  width: 100%;
}

.question-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.q-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-color);
  transition: var(--transition);
}

.q-dot.active {
  background-color: var(--accent-blue);
  transform: scale(1.2);
}

/* ===== STEP 4: PROCESSING ===== */
.processing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 50px 40px;
}

.processing-animation {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proc-ring {
  position: absolute;
  border: 2px solid var(--accent-blue);
  border-radius: 50%;
  animation: ripple 1.8s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
  opacity: 0;
}

.proc-ring-1 { animation-delay: 0s; }
.proc-ring-2 { animation-delay: 0.6s; }
.proc-ring-3 { animation-delay: 1.2s; }

.proc-center {
  width: 48px;
  height: 48px;
  background-color: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.processing-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.processing-steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 360px;
  margin-bottom: 30px;
  text-align: left;
}

.proc-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.proc-step-item.active {
  color: var(--text-dark);
  font-weight: 600;
}

.proc-step-item.completed {
  color: #198754;
}

.proc-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-color);
  flex-shrink: 0;
}

.proc-step-dot.pending {
  background-color: var(--border-color);
}

.proc-step-dot.active {
  background-color: var(--accent-blue);
  animation: pulse 1.2s infinite;
}

.proc-step-dot.completed {
  background-color: #198754;
}

.proc-note {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 480px;
}

/* ===== STEP 5: RESULT & PREVIEW ===== */
.result-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: start;
}

/* PREVIEW PANEL */
.cv-preview-panel {
  background-color: var(--primary-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.cv-preview-header {
  background-color: var(--secondary-bg);
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cv-preview-doc {
  padding: 40px;
  min-height: 700px;
  font-family: var(--font-main);
  background-color: #FFFFFF;
  color: #333333;
  line-height: 1.5;
  font-size: 13px;
}

/* CV DOCUMENT RENDERING (ATS READY) */
.cv-render-header {
  border-bottom: 2px solid var(--accent-blue);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.cv-render-name {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.cv-render-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 10px;
}

.cv-render-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
}

.cv-render-contact span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cv-render-section {
  margin-bottom: 20px;
}

.cv-render-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-blue);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 4px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.cv-render-summary {
  font-size: 13px;
  color: #495057;
}

.cv-render-job {
  margin-bottom: 14px;
}

.cv-render-job-header {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.cv-render-job-company {
  font-weight: 500;
  color: var(--accent-blue);
}

.cv-render-job-dates {
  font-weight: 400;
  color: var(--text-muted);
}

.cv-render-bullets {
  list-style-type: disc;
  padding-left: 18px;
  color: #495057;
}

.cv-render-bullets li {
  margin-bottom: 4px;
}

.cv-render-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cv-render-skill {
  background-color: var(--secondary-bg);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dark);
}

/* ACTIONS PANEL */
.result-actions-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 90px;
}

.success-badge {
  text-align: center;
}

.success-icon {
  margin-bottom: 14px;
}

.success-badge h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.success-badge p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

.ats-score-card {
  background-color: var(--primary-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.ats-score-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ats-score-bar-wrap {
  flex: 1;
  height: 6px;
  background-color: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
}

.message.user {
  align-self: flex-end;
  background: #6C3954;
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}

.message.ai .msg-content strong {
  color: #542B41;
  font-weight: 700;
}

.ats-score-bar {
  height: 100%;
  width: 92%;
  background-color: #198754;
  border-radius: 3px;
}

.ats-score-num {
  font-size: 18px;
  font-weight: 800;
  color: #198754;
}

.btn-download {
  padding: 16px;
  font-size: 16px;
}

.btn-edit {
  padding: 12px;
  font-size: 14px;
  justify-content: center;
}

/* CTA BANNER (SINERGIA TONE) */
.cta-banner {
  background: linear-gradient(135deg, #6C3954 0%, #003a94 100%);
  border-radius: 12px;
  padding: 24px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.cta-banner-deco {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.cta-star {
  font-size: 24px;
  margin-bottom: 10px;
}

.cta-content h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
}

.cta-content p {
  font-size: 13.5px;
  opacity: 0.9;
  line-height: 1.4;
  margin-bottom: 18px;
}

.btn-cta {
  background-color: #FFFFFF;
  color: var(--accent-blue);
  border: none;
  border-radius: var(--border-radius);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  width: 100%;
  justify-content: center;
}

.btn-cta svg path {
  fill: var(--accent-blue);
}

.btn-cta:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.share-section {
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  margin-top: 10px;
}

.share-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.btn-share {
  background: none;
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-share:hover {
  background-color: var(--accent-light);
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--primary-bg);
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon.small svg {
  width: 20px;
  height: 20px;
}

.footer-logo span {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-copy a {
  font-weight: 600;
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: #212529;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

@keyframes soundWave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(2.2); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes ripple {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    margin: 20px auto;
  }
  .hero-inner {
    align-items: center;
  }
  .hero-title {
    font-size: 40px;
  }
  .hero-steps {
    justify-content: center;
  }
  .result-layout {
    grid-template-columns: 1fr;
  }
  .result-actions-panel {
    position: static;
  }
}

@media (max-width: 576px) {
  .header-inner {
    flex-direction: column;
    gap: 12px;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-steps {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .step-pill {
    width: 100%;
    justify-content: center;
  }
  .step-arrow {
    transform: rotate(90deg);
    margin: 2px 0;
  }
  .option-cards {
    grid-template-columns: 1fr;
  }
  .form-row.two-col {
    grid-template-columns: 1fr;
  }
  .step-card {
    padding: 24px 16px;
  }
  .cv-preview-doc {
    padding: 20px 14px;
  }
  .interview-header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 8px;
  }
  .question-counter {
    grid-row: 1;
    margin-bottom: 8px;
  }
}

/* ==========================================================================
   NUEVOS COMPONENTES PREMIUM (FOTO, CARD DINÁMICAS, CÁMARA, DICTADO INLINE)
   ========================================================================== */

/* 1. Módulo de Carga de Foto de Perfil */
.photo-uploader-block {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: var(--secondary-bg);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: var(--border-radius);
  margin-bottom: 24px;
  animation: fadeIn 0.4s ease-out;
}

.photo-preview-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.photo-preview-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--primary-bg);
  border: 2px dashed #ADB5BD;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: var(--transition);
}

.photo-preview-circle:hover {
  border-color: var(--accent-blue);
}

.btn-remove-photo {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: #DC3545;
  color: white;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-remove-photo:hover {
  transform: scale(1.15);
  background-color: #bd2130;
}

.photo-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 2. Tarjetas Dinámicas de Listas (Experiencia y Educación) */
.dynamic-list-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.dynamic-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  animation: fadeIn 0.3s ease-out;
  border-left: 4px solid var(--accent-blue);
}

.dynamic-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid #F1F3F5;
  padding-bottom: 10px;
}

.dynamic-card-header h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.btn-remove-card {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.btn-remove-card:hover {
  color: #DC3545;
  transform: scale(1.1);
}

.hasta-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkbox-label-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  margin-top: 4px;
}

.btn-add-more {
  width: 100%;
  padding: 12px;
  border-style: dashed;
  border-width: 1.5px;
  background-color: var(--accent-light);
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 24px;
  transition: var(--transition);
}

.btn-add-more:hover {
  background-color: rgba(108, 57, 84, 0.1);
  border-style: solid;
  transform: translateY(-1px);
}

/* 3. Dictado de Voz Inline (Dentro de las tarjetas de tareas) */
.textarea-voice-container {
  position: relative;
  width: 100%;
}

.textarea-voice-container textarea {
  width: 100%;
  padding-right: 110px; /* Espacio para el botón de Dictar */
}

.btn-voice-inline {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: var(--secondary-bg);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.btn-voice-inline:hover {
  background-color: var(--accent-light);
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

.btn-voice-inline.recording {
  background-color: #DC3545;
  color: white;
  border-color: #DC3545;
  animation: pulse-red 1.5s infinite;
}

.btn-voice-inline.recording .mic-svg {
  animation: soundWave 1.2s infinite;
}

/* 4. Modal de Cámara para Selfie Premium */
.camera-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.camera-box {
  background-color: #FFFFFF;
  border-radius: 16px;
  width: 90%;
  max-width: 440px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.camera-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.camera-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.camera-stream-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1; /* Aspecto cuadrado ideal */
  background-color: #000000;
  overflow: hidden;
}

.camera-stream-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Efecto espejo nativo para selfie */
}

.camera-overlay {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  border: 2px dashed rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.3); /* Enfoque circular */
}

.camera-actions {
  padding: 16px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background-color: var(--secondary-bg);
  border-top: 1px solid var(--border-color);
}

/* 5. Renderizado de Foto en el CV Final */
.cv-render-header-with-photo {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 20px;
  align-items: center;
  border-bottom: 2px solid var(--accent-blue);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.cv-render-photo-container {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-blue);
  background-color: #F8F9FA;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cv-render-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== BOT CHAT MODAL & GLASSMORPHISM ===== */
.bot-chat-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(42, 36, 38, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease-out;
}

.bot-chat-box {
  width: 90%;
  max-width: 520px;
  background: var(--primary-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bot-chat-header {
  background-color: var(--accent-light);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bot-avatar {
  width: 40px;
  height: 40px;
  background-color: var(--accent-blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.bot-avatar svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
}

.bot-header-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.bot-header-info strong {
  font-size: 15px;
  color: var(--text-dark);
}

.bot-header-info span {
  font-size: 11px;
  color: var(--text-muted);
}

.bot-chat-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bot-bubble {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-blue);
  padding: 16px;
  border-radius: 4px 12px 12px 12px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-dark);
  position: relative;
  animation: popIn 0.3s ease-out;
}

.bot-response-area {
  animation: fadeIn 0.4s ease-out;
}

.bot-chat-footer {
  padding: 16px 20px;
  background-color: var(--primary-bg);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes popIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}


