/* Herravo Resume Builder — módulo visual aparte */
.rb-body {
  font-family: "Inter", system-ui, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
}

.rb-body--light {
  background: linear-gradient(160deg, #f8fafc 0%, #eef2ff 45%, #f1f5f9 100%);
  color: #1e293b;
}

/* Landing */
.rb-landing-hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 5rem;
}
.rb-landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 10%, rgba(99, 102, 241, 0.35), transparent),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(139, 92, 246, 0.2), transparent);
  pointer-events: none;
}
.rb-landing-inner {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.rb-landing-title {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  margin-top: 1rem;
  max-width: 22ch;
}
.rb-landing-lead {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: #94a3b8;
  max-width: 36rem;
  line-height: 1.6;
}
.rb-landing-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.rb-btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 0.9375rem;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.3), 0 12px 40px rgba(79, 70, 229, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.rb-btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.4), 0 16px 48px rgba(79, 70, 229, 0.55);
}
.rb-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.2;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: background 0.15s;
}
.rb-btn-back:hover {
  background: rgba(255, 255, 255, 0.12);
}
.rb-btn-ghost-light {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1.5rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}
.rb-btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.rb-templates-section {
  padding: 3rem 0 5rem;
  background: #f8fafc;
  color: #1e293b;
}
.rb-section-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
}
.rb-template-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.rb-template-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
}
.rb-template-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}
.rb-template-preview {
  height: 200px;
  padding: 1rem;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rb-tpl-mini {
  width: 88%;
  height: 168px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  position: relative;
}
/* Miniaturas landing / picker — cada layout distinto */
.rb-tpl-mini--sidebar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 32%;
  background: linear-gradient(180deg, var(--tpl-color, #4f46e5), #312e81);
}
.rb-tpl-mini--sidebar::after {
  content: "";
  position: absolute;
  right: 12%;
  top: 18%;
  width: 48%;
  height: 4px;
  background: #e2e8f0;
  box-shadow: 0 10px 0 #e2e8f0, 0 20px 0 #e2e8f0, 0 36px 0 #cbd5e1;
}
.rb-tpl-mini--corporate {
  background: #fff;
}
.rb-tpl-mini--corporate::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 28%;
  background: var(--tpl-color, #1e3a5f);
}
.rb-tpl-mini--corporate::after {
  content: "";
  position: absolute;
  left: 10%;
  top: 38%;
  width: 75%;
  height: 3px;
  background: #e2e8f0;
  box-shadow: 0 12px 0 #e2e8f0, 0 24px 0 #cbd5e1;
}
.rb-tpl-mini--minimal {
  background: #fff;
  border: 1px solid #e2e8f0;
}
.rb-tpl-mini--minimal::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 14%;
  height: 1px;
  background: #cbd5e1;
  box-shadow: 0 28px 0 #f1f5f9, 0 40px 0 #f1f5f9, 0 52px 0 #f1f5f9;
}
.rb-tpl-mini--executive::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: var(--tpl-color, #0f172a);
}
.rb-tpl-mini--executive::after {
  content: "";
  position: absolute;
  left: 10%;
  top: 16%;
  width: 55%;
  height: 8px;
  background: var(--tpl-color, #0f172a);
  opacity: 0.85;
  box-shadow: 0 18px 0 #e2e8f0, 0 32px 0 #e2e8f0;
}
.rb-tpl-mini--creative {
  border-left: 5px solid var(--tpl-color, #db2777);
}
.rb-tpl-mini--creative::after {
  content: "";
  position: absolute;
  left: 14%;
  top: 20%;
  width: 50%;
  height: 6px;
  background: var(--tpl-color, #db2777);
  border-radius: 3px;
  box-shadow: 0 16px 0 #fce7f3, 0 30px 0 #fce7f3;
}
.rb-tpl-mini--dark {
  background: #0f172a;
}
.rb-tpl-mini--dark::before {
  content: "";
  position: absolute;
  left: 10%;
  top: 18%;
  width: 45%;
  height: 6px;
  background: var(--tpl-color, #38bdf8);
  box-shadow: 0 14px 0 #334155, 0 28px 0 #334155;
}
.rb-tpl-mini--ats {
  background: #fff;
  font-size: 0;
}
.rb-tpl-mini--ats::before,
.rb-tpl-mini--ats::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  height: 3px;
  background: #334155;
}
.rb-tpl-mini--ats::before { top: 20%; }
.rb-tpl-mini--ats::after { top: 32%; width: 60%; background: #94a3b8; box-shadow: 0 14px 0 #e2e8f0, 0 26px 0 #e2e8f0; }
.rb-tpl-mini--tech::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 22%;
  background: #0f172a;
}
.rb-tpl-mini--tech::after {
  content: "";
  position: absolute;
  left: 10%;
  top: 30%;
  width: 20%;
  height: 4px;
  background: var(--tpl-color, #059669);
  box-shadow: 0 12px 0 #e2e8f0, 0 24px 0 #e2e8f0;
}
.rb-tpl-mini--designer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 30%;
  background: var(--tpl-color, #7c3aed);
}
.rb-tpl-mini--designer::after {
  content: "";
  position: absolute;
  right: 12%;
  top: 20%;
  width: 52%;
  height: 4px;
  background: #e2e8f0;
  box-shadow: 0 12px 0 #e2e8f0, 0 24px 0 #cbd5e1;
}
.rb-tpl-mini--sidebar-right::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 32%;
  background: linear-gradient(180deg, var(--tpl-color, #0369a1), #1e293b);
}
.rb-tpl-mini--sidebar-right::after {
  content: "";
  position: absolute;
  left: 10%;
  top: 20%;
  width: 48%;
  height: 4px;
  background: #e2e8f0;
  box-shadow: 0 12px 0 #e2e8f0, 0 24px 0 #cbd5e1;
}
.rb-tpl-mini--elegant::before {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  top: 22%;
  height: 6px;
  background: var(--tpl-color, #1f2937);
}
.rb-tpl-mini--elegant::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  top: 38%;
  height: 2px;
  background: #e2e8f0;
  box-shadow: 0 10px 0 #f1f5f9, 0 20px 0 #f1f5f9;
}
.rb-tpl-mini--timeline {
  border-left: 4px solid var(--tpl-color, #2563eb);
}
.rb-tpl-mini--timeline::after {
  content: "";
  position: absolute;
  left: 14%;
  top: 18%;
  width: 55%;
  height: 5px;
  background: var(--tpl-color, #2563eb);
  box-shadow: 0 14px 0 #e2e8f0, 0 28px 0 #cbd5e1;
}
.rb-tpl-mini--compact::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 22%;
  border-bottom: 2px solid var(--tpl-color, #334155);
}
.rb-tpl-mini--compact::after {
  content: "";
  position: absolute;
  left: 10%;
  top: 30%;
  width: 70%;
  height: 3px;
  background: #e2e8f0;
  box-shadow: 0 10px 0 #e2e8f0;
}
.rb-tpl-mini--split::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 42%;
  background: var(--tpl-color, #f97316);
}
.rb-tpl-mini--split::after {
  content: "";
  position: absolute;
  left: 10%;
  top: 50%;
  width: 75%;
  height: 3px;
  background: #e2e8f0;
  box-shadow: 0 10px 0 #e2e8f0;
}
.rb-tpl-mini--academic::before {
  content: "";
  position: absolute;
  left: 10%;
  top: 16%;
  width: 50%;
  height: 5px;
  background: var(--tpl-color, #1e3a8a);
  font-style: italic;
}
.rb-tpl-mini--academic::after {
  content: "";
  position: absolute;
  left: 10%;
  top: 32%;
  width: 80%;
  height: 1px;
  background: #cbd5e1;
  box-shadow: 0 12px 0 #e2e8f0, 0 24px 0 #e2e8f0;
}
.rb-tpl-mini--bold::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 38%;
  background: var(--tpl-color, #ef4444);
}
.rb-tpl-mini--bold::after {
  content: "";
  position: absolute;
  left: 10%;
  top: 44%;
  width: 60%;
  height: 8px;
  background: #fff;
  opacity: 0.9;
  box-shadow: 0 16px 0 #e2e8f0;
}
.rb-tpl-mini--magazine {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
}
.rb-tpl-mini--magazine::before {
  content: "";
  grid-column: 1;
  margin: 12% 8% 12% 10%;
  background: #fff;
  box-shadow: 0 6px 0 #e2e8f0, 0 14px 0 #e2e8f0;
}
.rb-tpl-mini--magazine::after {
  content: "";
  grid-column: 2;
  background: var(--tpl-color, #6b7c4c);
  margin: 8% 8% 8% 0;
  border-radius: 2px;
}
.rb-tpl-mini--banner::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 32%;
  background: var(--tpl-color, #dc2626);
}
.rb-tpl-mini--banner::after {
  content: "";
  position: absolute;
  left: 10%;
  top: 38%;
  width: 78%;
  height: 3px;
  background: #e2e8f0;
  box-shadow: 0 10px 0 #e2e8f0, 0 20px 0 #e2e8f0;
}
.rb-tpl-mini--euro::before {
  content: "";
  position: absolute;
  left: 6%;
  top: 14%;
  width: 22%;
  height: 4px;
  background: var(--tpl-color, #1e40af);
  box-shadow: 0 14px 0 var(--tpl-color), 0 28px 0 var(--tpl-color), 0 42px 0 var(--tpl-color);
}
.rb-tpl-mini--euro::after {
  content: "";
  position: absolute;
  left: 32%;
  top: 14%;
  width: 58%;
  height: 3px;
  background: #e2e8f0;
  box-shadow: 0 12px 0 #e2e8f0, 0 24px 0 #e2e8f0, 0 36px 0 #e2e8f0;
}
.rb-tpl-mini--ribbon::before {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  top: 0;
  height: 36%;
  background: var(--tpl-color, #2563eb);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
}
.rb-tpl-mini--ribbon::after {
  content: "";
  position: absolute;
  left: 12%;
  top: 42%;
  width: 76%;
  height: 3px;
  background: #e2e8f0;
  box-shadow: 0 10px 0 #e2e8f0;
}
.rb-tpl-mini--boxed {
  border: 2px solid color-mix(in srgb, var(--tpl-color) 40%, #cbd5e1);
  margin: 8%;
  border-radius: 3px;
}
.rb-tpl-mini--boxed::before {
  content: "";
  position: absolute;
  inset: 14% 12% auto 12%;
  height: 18%;
  border: 1px solid var(--tpl-color, #1e3a8a);
}
.rb-tpl-mini--boxed::after {
  content: "";
  position: absolute;
  inset: 38% 12% 14% 12%;
  border: 1px solid #cbd5e1;
}
.rb-tpl-mini--heritage {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
}
.rb-tpl-mini--heritage::before {
  content: "";
  margin: 14% 6% 14% 10%;
  background: #d4d4d8;
  border-radius: 2px;
}
.rb-tpl-mini--heritage::after {
  content: "";
  margin: 12% 10% 12% 0;
  background: #fff;
  box-shadow: inset 0 -24px 0 color-mix(in srgb, var(--tpl-color) 25%, #fff);
}
.rb-template-info {
  padding: 1rem 1.25rem;
}
.rb-template-info h3 {
  font-weight: 700;
  font-size: 1rem;
}
.rb-premium-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: #4f46e5;
  margin-left: 0.35rem;
}

/* Editor shell */
.rb-editor {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #0b1120;
}
.rb-editor-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
}
.rb-editor-logo {
  font-weight: 800;
  font-size: 0.8125rem;
  color: #a5b4fc;
  text-decoration: none;
  white-space: nowrap;
}
.rb-editor-doc-title {
  flex: 1;
  min-width: 120px;
  max-width: 280px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.65rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #f1f5f9;
}
.rb-editor-doc-title:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}
.rb-editor-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.rb-save-pill {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #34d399;
}
.rb-save-pill--pending {
  color: #94a3b8;
}
.rb-draft-pill {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #fbbf24;
  padding: 0.2rem 0.5rem;
  border-radius: 0.35rem;
  background: rgba(251, 191, 36, 0.12);
}

.rb-toast {
  position: fixed;
  top: 4.5rem;
  right: 1rem;
  z-index: 100;
  max-width: 22rem;
  padding: 0.75rem 2.25rem 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.rb-toast--success {
  background: #064e3b;
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.4);
}
.rb-toast--error {
  background: #450a0a;
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}
.rb-toast--info {
  background: #1e293b;
  color: #e2e8f0;
}
.rb-toast-close {
  position: absolute;
  top: 0.35rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.rb-btn-sm {
  padding: 0.45rem 0.9rem;
  border-radius: 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
}
.rb-btn-sm--primary {
  background: #4f46e5;
  color: #fff;
}
.rb-btn-sm--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.rb-btn-sm--ats {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.rb-editor-workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 200px minmax(280px, 340px) 1fr;
  min-height: 0;
}
@media (min-width: 1280px) {
  .rb-editor-workspace {
    grid-template-columns: 212px 360px 1fr;
  }
}
@media (min-width: 1025px) {
  .rb-editor-panel {
    display: flex !important;
  }
}
@media (max-width: 1024px) {
  .rb-editor-workspace {
    grid-template-columns: 1fr;
  }
  .rb-editor-panel {
    display: none;
  }
  .rb-editor-panel.is-open {
    display: flex;
    position: fixed;
    inset: 56px 0 0 0;
    z-index: 40;
    width: min(380px, 100vw);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.5);
  }
  .resume-editor-layout.is-panel-collapsed {
    grid-template-columns: 1fr;
  }
}

/* Panel de edición colapsable (desktop) */
@media (min-width: 1025px) {
  .resume-editor-layout {
    transition: grid-template-columns 0.2s ease;
  }
  .resume-editor-layout.is-panel-collapsed {
    grid-template-columns: 200px 0 minmax(0, 1fr);
  }
  .resume-editor-layout.is-panel-collapsed .resume-editor-panel {
    width: 0;
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    border-right: none;
    padding: 0;
    transition: width 0.2s ease, opacity 0.2s ease, min-width 0.2s ease;
  }
  .resume-editor-layout .resume-editor-panel {
    transition: width 0.2s ease, opacity 0.2s ease, min-width 0.2s ease;
  }
  .resume-editor-layout.is-panel-collapsed .resume-preview-area {
    grid-column: 3;
  }
}
@media (min-width: 1280px) {
  .resume-editor-layout.is-panel-collapsed {
    grid-template-columns: 212px 0 minmax(0, 1fr);
  }
}

.rb-panel-head-text {
  flex: 1;
  min-width: 0;
}
.rb-panel-head-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.rb-panel-collapse {
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.rb-panel-collapse:hover {
  background: rgba(99, 102, 241, 0.18);
  color: #e2e8f0;
  border-color: rgba(99, 102, 241, 0.35);
}
.rb-panel-collapse [aria-hidden="true"] {
  font-size: 1rem;
  line-height: 1;
}
.rb-panel-expand-tab {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 2rem;
  min-height: 5.5rem;
  padding: 0.5rem 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: none;
  border-radius: 0 0.65rem 0.65rem 0;
  background: rgba(15, 23, 42, 0.92);
  color: #cbd5e1;
  font-size: 0.625rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 4px 0 16px rgba(0, 0, 0, 0.25);
  transition: background 0.15s, color 0.15s, width 0.15s;
}
.rb-panel-expand-tab:hover {
  background: rgba(79, 70, 229, 0.85);
  color: #fff;
  width: 2.25rem;
}
.rb-panel-expand-tab [aria-hidden="true"] {
  font-size: 1.125rem;
  line-height: 1;
}
.rb-panel-expand-tab-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.02em;
  max-height: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rb-editor-rail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
  padding: 0.65rem 0.5rem;
  background: #070d1a;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}
.rb-rail-btn {
  width: 100%;
  min-height: 38px;
  height: auto;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  padding: 0.45rem 0.55rem;
  transition: background 0.15s, color 0.15s;
  text-align: left;
}
.rb-rail-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  color: #e2e8f0;
}
.rb-rail-btn.is-active {
  background: rgba(99, 102, 241, 0.22);
  color: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.35);
}
.rb-rail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}
.rb-rail-label {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}
.rb-rail-btn svg {
  width: 18px;
  height: 18px;
}

.rb-editor-panel {
  display: flex;
  flex-direction: column;
  background: #0f172a;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  min-height: 0;
  min-width: 0;
}
.rb-panel-head {
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.rb-panel-head h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
}
.rb-panel-head p {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-top: 0.25rem;
  line-height: 1.4;
}
.rb-panel-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}
.rb-panel-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: 0.5rem;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}
.rb-link-danger {
  font-size: 0.6875rem;
  color: #f87171;
  background: none;
  border: none;
  cursor: pointer;
}
.rb-tpl-thumb-name {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-top: 0.35rem;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.rb-panel-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 1.25rem 1.5rem;
  min-height: 0;
}

.rb-field-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.875rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}
.rb-field-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.4rem;
}
.rb-field-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.5rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.8125rem;
  color: #f8fafc;
}
.rb-field-input:focus {
  outline: none;
  border-color: #6366f1;
}
.rb-field-input::placeholder {
  color: #64748b;
}

.rb-tpl-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
@media (min-width: 1200px) {
  .rb-tpl-picker {
    grid-template-columns: repeat(3, 1fr);
  }
}
.rb-tpl-thumb {
  border-radius: 0.65rem;
  border: 2px solid transparent;
  padding: 0.5rem;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 0.15s;
}
.rb-tpl-thumb.is-selected {
  border-color: #6366f1;
  box-shadow: 0 0 0 1px #6366f1;
}
.rb-tpl-thumb .rb-tpl-mini {
  height: 72px;
  width: 100%;
  --tpl-color: var(--c, #4f46e5);
}

.rb-job-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.875rem;
  padding: 0.85rem;
  margin-bottom: 0.65rem;
}
.rb-job-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.rb-job-card-head span {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #6366f1;
}
.rb-skill-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.rb-skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.35);
  font-size: 0.75rem;
  color: #c7d2fe;
}
.rb-skill-edit-input {
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  width: 6rem;
  outline: none;
}

.rb-skill-chip button {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.rb-skills-editor {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.rb-skills-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.rb-skills-section-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #cbd5e1;
}
.rb-skills-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}
.rb-skills-empty {
  font-size: 0.8125rem;
  color: #94a3b8;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}
.rb-skills-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.15rem;
}
.rb-skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.3rem 0.45rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.rb-skill-row-input {
  flex: 1;
  min-width: 0;
  padding: 0.35rem 0.5rem;
  font-size: 0.8125rem;
}
.rb-skill-row-chip {
  flex: 1;
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.15rem 0.25rem;
}
.rb-skill-row-actions {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-shrink: 0;
}
.rb-skill-action {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.rb-skill-action--text {
  width: auto;
  height: auto;
  padding: 0.15rem 0.4rem;
  font-size: 0.6875rem;
  font-weight: 600;
}
.rb-skill-action:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.28);
  color: #fff;
}
.rb-skill-action:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.rb-skill-action svg {
  width: 12px;
  height: 12px;
}
.rb-skill-action--danger {
  color: #fca5a5;
}
.rb-skill-action--danger:hover:not(:disabled) {
  background: rgba(248, 113, 113, 0.22);
  color: #fecaca;
}
.rb-skills-add-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0;
}
.rb-skills-add-row .rb-field-input {
  flex: 1;
  min-width: 0;
}
.rb-field-hint {
  font-size: 0.6875rem;
  color: #94a3b8;
  margin-top: -0.25rem;
}
.rb-field-error {
  font-size: 0.75rem;
  color: #fca5a5;
  padding: 0.45rem 0.6rem;
  border-radius: 0.5rem;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.rb-canvas {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  position: relative;
  background: #1e293b;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0);
  background-size: 20px 20px;
}
.rb-canvas-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  flex-shrink: 0;
}
.rb-zoom-btn {
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  border: 1px solid #ddd6fe;
  background: #f5f3ff;
  color: #6d28d9;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.rb-zoom-btn:hover {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #c4b5fd;
}
.rb-canvas-viewport {
  flex: 1;
  overflow: auto;
  display: block;
  padding: 2rem 1.5rem 3rem;
  min-width: 0;
}
.rb-doc-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  min-height: min-content;
}
.rb-doc-scaler {
  position: relative;
  flex-shrink: 0;
  overflow: visible;
}
.rb-doc-scaler .rb-doc {
  position: relative;
  transform-origin: top left;
  margin: 0;
}
.rb-doc-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}
.rb-zoom-label {
  font-size: 0.75rem;
  color: #0f172a;
  font-weight: 600;
  width: 2.75rem;
  text-align: center;
}
.rb-zoom-btn--fit {
  width: auto;
  padding: 0 0.65rem;
  font-size: 0.6875rem;
  margin-left: 0.25rem;
  color: #6d28d9;
  background: #f5f3ff;
  border-color: #ddd6fe;
  font-weight: 600;
}
.rb-zoom-btn--fit:hover {
  background: #ede9fe;
  color: #5b21b6;
}
.rb-doc-empty {
  color: #94a3b8;
  font-style: italic;
}

.rb-import-zone {
  border: 2px dashed rgba(99, 102, 241, 0.45);
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  text-align: center;
  background: rgba(99, 102, 241, 0.06);
}
.rb-import-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem;
  color: #818cf8;
}
.rb-import-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: #e2e8f0;
}
.rb-import-hint {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0.5rem 0 1rem;
  line-height: 1.5;
}
.rb-import-btn {
  display: inline-flex;
  cursor: pointer;
}

/* A4 preview document */
.rb-doc {
  width: 210mm;
  min-height: 297mm;
  background: #fff;
  color: #1e293b;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
  font-size: 10.5pt;
  line-height: 1.5;
  flex-shrink: 0;
  overflow: hidden;
}
.rb-doc h2 {
  font-size: 9pt;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rb-accent, #4f46e5);
  margin: 0 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e2e8f0;
}
.rb-doc h2:not(:first-child) {
  margin-top: 16px;
}
.rb-doc-item-title {
  font-weight: 700;
  font-size: 10pt;
  margin: 0;
}
.rb-doc-item-meta {
  font-size: 8.5pt;
  color: #64748b;
  margin: 2px 0 6px;
}
.rb-doc-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rb-doc-skill {
  background: #eef2ff;
  color: #4338ca;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 8.5pt;
  font-weight: 600;
}
.rb-doc-empty,
.rb-doc-contact-placeholder {
  color: #94a3b8;
  font-style: italic;
  font-size: 9pt;
}

/* Sidebar / Moderno */
.rb-doc--sidebar {
  display: grid;
  grid-template-columns: 72mm 1fr;
}
.rb-doc--sidebar .rb-doc-sidebar {
  background: linear-gradient(180deg, color-mix(in srgb, var(--rb-accent) 80%, #312e81), var(--rb-accent));
  color: #fff;
  padding: 28px 20px;
}
.rb-doc--sidebar .rb-doc-sidebar h1 {
  font-size: 17pt;
  font-weight: 800;
  margin: 0;
}
.rb-doc--sidebar .rb-doc-role {
  margin-top: 8px;
  font-size: 9pt;
  opacity: 0.9;
}
.rb-doc--sidebar .rb-doc-contact {
  margin-top: 20px;
  font-size: 8pt;
  opacity: 0.85;
  line-height: 1.6;
}
.rb-doc--sidebar .rb-doc-main {
  padding: 28px 24px;
}

/* Corporativo */
.rb-doc--corporate .rb-doc-corp-head {
  background: var(--rb-accent, #1e3a5f);
  color: #fff;
  padding: 24px 32px;
}
.rb-doc--corporate .rb-doc-corp-head h1 {
  margin: 0;
  font-size: 22pt;
  color: #fff;
  border: none;
}
.rb-doc--corporate .rb-doc-corp-head .rb-doc-role {
  margin-top: 6px;
  opacity: 0.9;
}
.rb-doc--corporate .rb-doc-corp-head .rb-doc-contact {
  font-size: 9pt;
  margin-top: 8px;
  opacity: 0.85;
}
.rb-doc--corporate .rb-doc-corp-body {
  padding: 28px 32px;
}
.rb-doc--corporate h2 {
  color: var(--rb-accent, #1e3a5f);
}

/* Minimalista */
.rb-doc--minimal .rb-doc-minimal-inner {
  padding: 36px 44px;
}
.rb-doc--minimal .rb-doc-minimal-head {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.rb-doc--minimal .rb-doc-minimal-head h1 {
  margin: 0;
  font-size: 24pt;
  font-weight: 300;
  color: #0f172a;
}
.rb-doc--minimal h2 {
  color: #0f172a;
  text-transform: none;
  font-size: 10pt;
  letter-spacing: 0;
}

/* Ejecutivo */
.rb-doc--executive .rb-doc-exec-stripe {
  height: 8px;
  background: var(--rb-accent, #0f172a);
}
.rb-doc--executive .rb-doc-exec-head {
  padding: 28px 40px 12px;
}
.rb-doc--executive .rb-doc-exec-head h1 {
  margin: 0;
  font-size: 28pt;
  letter-spacing: -0.02em;
  color: var(--rb-accent, #0f172a);
  border: none;
}
.rb-doc--executive .rb-doc-exec-body {
  padding: 0 40px 36px;
}

/* Creativo */
.rb-doc--creative .rb-doc-creative-head {
  border-left: 6px solid var(--rb-accent, #db2777);
  padding: 28px 28px 12px 22px;
  margin: 28px 28px 0;
}
.rb-doc--creative .rb-doc-creative-head h1 {
  margin: 0;
  font-size: 26pt;
  color: var(--rb-accent, #db2777);
  border: none;
}
.rb-doc--creative .rb-doc-creative-body {
  padding: 8px 32px 32px;
}
.rb-doc--creative .rb-doc-skill {
  background: #fce7f3;
  color: #9d174d;
  border-radius: 999px;
}

/* Dark */
.rb-doc--dark {
  background: #0f172a;
  color: #f1f5f9;
}
.rb-doc--dark .rb-doc-dark-head {
  padding: 32px 40px 12px;
}
.rb-doc--dark .rb-doc-dark-head h1 {
  margin: 0;
  font-size: 24pt;
  color: var(--rb-accent, #38bdf8);
  border: none;
}
.rb-doc--dark .rb-doc-dark-body {
  padding: 0 40px 36px;
}
.rb-doc--dark h2 {
  color: var(--rb-accent, #38bdf8);
  border-color: #334155;
}
.rb-doc--dark .rb-doc-item-meta {
  color: #94a3b8;
}
.rb-doc--dark .rb-doc-skill {
  background: #1e293b;
  color: #e2e8f0;
}

/* ATS */
.rb-doc--ats .rb-doc-ats-head {
  padding: 36px 48px 0;
}
.rb-doc--ats .rb-doc-ats-head h1 {
  margin: 0;
  font-size: 18pt;
  color: #0f172a;
  border: none;
  text-transform: none;
}
.rb-doc--ats .rb-doc-ats-head hr {
  border: none;
  border-top: 1px solid #cbd5e1;
  margin: 14px 0;
}
.rb-doc--ats .rb-doc-ats-body {
  padding: 0 48px 36px;
}
.rb-doc--ats h2 {
  color: #334155;
  font-size: 10pt;
}

/* Tech */
.rb-doc--tech .rb-doc-tech-head {
  background: #0f172a;
  color: #fff;
  padding: 14px 32px;
  font-family: ui-monospace, monospace;
}
.rb-doc--tech .rb-doc-tech-prompt {
  color: var(--rb-accent, #059669);
}
.rb-doc--tech .rb-doc-tech-sub {
  display: block;
  font-size: 8pt;
  opacity: 0.75;
  margin-top: 4px;
}
.rb-doc--tech .rb-doc-tech-body {
  padding: 28px 32px;
}
.rb-doc--tech h2 {
  color: var(--rb-accent, #059669);
}

/* Designer */
.rb-doc--designer {
  display: grid;
  grid-template-columns: 30% 1fr;
}
.rb-doc--designer .rb-doc-designer-side {
  background: var(--rb-accent, #7c3aed);
  color: #fff;
  padding: 28px 18px;
}
.rb-doc--designer .rb-doc-designer-side h1 {
  margin: 0;
  font-size: 14pt;
  line-height: 1.2;
  border: none;
  color: #fff;
}
.rb-doc--designer .rb-doc-designer-side .rb-doc-contact {
  margin-top: 16px;
  font-size: 8pt;
  opacity: 0.9;
}
.rb-doc--designer .rb-doc-designer-main {
  padding: 28px 32px;
}

/* Sidebar derecha */
.rb-doc--sidebar-right {
  display: grid;
  grid-template-columns: 1fr 72mm;
}
.rb-doc--sidebar-right .rb-doc-sidebar--right {
  background: linear-gradient(180deg, color-mix(in srgb, var(--rb-accent) 80%, #1e293b), var(--rb-accent));
  color: #fff;
  padding: 28px 20px;
}
.rb-doc--sidebar-right .rb-doc-sidebar--right h1 {
  margin: 0;
  font-size: 17pt;
  font-weight: 800;
}
.rb-doc--sidebar-right .rb-doc-main {
  padding: 28px 24px;
}

/* Elegante */
.rb-doc--elegant .rb-doc-elegant-head {
  text-align: center;
  padding: 36px 44px 20px;
  border-bottom: 2px solid var(--rb-accent);
}
.rb-doc--elegant .rb-doc-elegant-head h1 {
  margin: 0;
  font-size: 26pt;
  font-weight: 300;
  color: var(--rb-accent);
  border: none;
}
.rb-doc--elegant .rb-doc-elegant-body {
  padding: 24px 44px 36px;
}

/* Timeline */
.rb-doc--timeline .rb-doc-timeline-head {
  padding: 32px 44px 12px;
}
.rb-doc--timeline .rb-doc-timeline-head h1 {
  margin: 0;
  font-size: 22pt;
  color: var(--rb-accent);
  border: none;
}
.rb-doc--timeline .rb-doc-timeline-body {
  padding: 8px 44px 36px 64px;
  border-left: 3px solid var(--rb-accent);
  margin-left: 44px;
}

/* Compacto */
.rb-doc--compact .rb-doc-compact-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 28px 36px 12px;
  border-bottom: 2px solid var(--rb-accent);
}
.rb-doc--compact .rb-doc-compact-head h1 {
  margin: 0;
  font-size: 20pt;
  color: var(--rb-accent);
  border: none;
}
.rb-doc--compact .rb-doc-compact-head .rb-doc-contact {
  font-size: 8pt;
  color: #64748b;
  text-align: right;
  max-width: 42%;
}
.rb-doc--compact .rb-doc-compact-body {
  padding: 20px 36px 32px;
}

/* Dividido */
.rb-doc--split .rb-doc-split-head {
  background: var(--rb-accent);
  color: #fff;
  padding: 28px 36px;
}
.rb-doc--split .rb-doc-split-head h1 {
  margin: 0;
  font-size: 24pt;
  color: #fff;
  border: none;
}
.rb-doc--split .rb-doc-split-body {
  padding: 28px 36px;
}

/* Académico */
.rb-doc--academic {
  font-family: Georgia, "Times New Roman", serif;
}
.rb-doc--academic .rb-doc-academic-head {
  padding: 36px 48px 0;
}
.rb-doc--academic .rb-doc-academic-head h1 {
  margin: 0;
  font-size: 20pt;
  color: var(--rb-accent);
  border: none;
}
.rb-doc--academic .rb-doc-academic-head .rb-doc-role {
  font-style: italic;
  color: #475569;
}
.rb-doc--academic .rb-doc-academic-head hr {
  border: none;
  border-top: 1px solid #cbd5e1;
  margin: 16px 0 0;
}
.rb-doc--academic .rb-doc-academic-body {
  padding: 20px 48px 36px;
}

/* Bold */
.rb-doc--bold .rb-doc-bold-head {
  background: var(--rb-accent);
  color: #fff;
  padding: 32px 40px 24px;
}
.rb-doc--bold .rb-doc-bold-head h1 {
  margin: 0;
  font-size: 32pt;
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  border: none;
}
.rb-doc--bold .rb-doc-bold-contact {
  padding: 10px 40px;
  font-size: 9pt;
  color: #64748b;
  background: #f8fafc;
}
.rb-doc--bold .rb-doc-bold-body {
  padding: 24px 40px 36px;
}

/* Editor — foto de perfil */
.rb-photo-field {
  margin-bottom: 1rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.875rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.rb-photo-field--compact {
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.75rem;
}
.rb-photo-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
}
.rb-photo-toggle input {
  width: 1rem;
  height: 1rem;
  accent-color: #6366f1;
}
.rb-checkbox-label {
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
}
.rb-checkbox-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: #7c3aed;
}
.rb-photo-upload {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.rb-photo-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(99, 102, 241, 0.4);
  background: #1e293b;
}
.rb-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rb-photo-preview--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: #94a3b8;
}
.rb-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.rb-photo-btn {
  cursor: pointer;
}
.rb-photo-hint {
  width: 100%;
  margin: 0;
  font-size: 0.65rem;
  color: #64748b;
}

/* Avatar / foto de perfil (iniciales) */
.rb-doc {
  --rb-photo-size: 84px;
  --rb-photo-size-header: 100px;
  --rb-photo-size-side: 92px;
  --rb-photo-size-hero: 108px;
}
.rb-doc-avatar {
  width: var(--rb-photo-size);
  height: var(--rb-photo-size);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18pt;
  font-weight: 800;
  margin-bottom: 14px;
  color: #fff;
}
.rb-doc-avatar--square {
  width: var(--rb-photo-size-header);
  height: var(--rb-photo-size-header);
  border-radius: 8px;
  font-size: 22pt;
}
.rb-doc-avatar--light {
  background: color-mix(in srgb, var(--rb-accent) 12%, #fff);
  border-color: color-mix(in srgb, var(--rb-accent) 35%, #e2e8f0);
  color: var(--rb-accent);
}
.rb-doc-photo {
  overflow: hidden;
  padding: 0;
  flex-shrink: 0;
}
.rb-doc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rb-doc-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.rb-doc-head--with-photo {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 20px;
}
.rb-doc-head--with-photo .rb-doc-head-text {
  flex: 1;
  min-width: 55%;
}
.rb-doc-head--with-photo .rb-doc-photo:only-child,
.rb-doc-head--with-photo > .rb-doc-avatar:only-child {
  margin-left: auto;
}
.rb-doc--compact .rb-doc-compact-head.rb-doc-head--with-photo {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
}
.rb-doc--compact .rb-doc-compact-head .rb-doc-photo {
  grid-row: 1 / span 2;
  grid-column: 2;
}
.rb-doc--ats .rb-doc-ats-head.rb-doc-head--with-photo hr {
  width: 100%;
  flex-basis: 100%;
}

/* Revista — columna lateral de color */
.rb-doc--magazine {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  min-height: 100%;
}
.rb-doc--magazine .rb-doc-mag-main {
  padding: 32px 28px 32px 36px;
}
.rb-doc--magazine .rb-doc-mag-main h1 {
  margin: 0 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22pt;
  font-weight: 700;
  color: #0f172a;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rb-doc--magazine .rb-doc-mag-side {
  background: var(--rb-accent);
  color: #fff;
  padding: 28px 20px;
}
.rb-doc--magazine .rb-doc-mag-side .rb-doc-avatar {
  width: var(--rb-photo-size-side);
  height: var(--rb-photo-size-side);
  font-size: 20pt;
  margin-bottom: 18px;
}
.rb-doc--magazine .rb-doc-mag-side h2 {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  font-size: 9pt;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Cabecera banda */
.rb-doc--banner .rb-doc-banner-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--rb-accent);
  color: #fff;
  padding: 28px 36px;
}
.rb-doc--banner .rb-doc-banner-head h1 {
  margin: 0;
  font-size: 24pt;
  font-weight: 800;
  color: #fff;
  border: none;
}
.rb-doc--banner .rb-doc-banner-body {
  padding: 28px 36px 36px;
}

/* Formato europeo — etiquetas en margen */
.rb-doc--euro .rb-doc-euro-head {
  padding: 32px 48px 16px;
  border-bottom: 2px solid var(--rb-accent);
}
.rb-doc--euro .rb-doc-euro-head h1 {
  margin: 0;
  font-size: 26pt;
  font-weight: 800;
  color: var(--rb-accent);
  border: none;
}
.rb-doc--euro .rb-doc-euro-row {
  display: grid;
  grid-template-columns: 28mm 1fr;
  gap: 12px 20px;
  padding: 12px 48px;
  border-bottom: 1px solid #e2e8f0;
  align-items: start;
}
.rb-doc--euro .rb-doc-euro-label {
  font-size: 7.5pt;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rb-accent);
  padding-top: 2px;
}
.rb-doc--euro .rb-doc-euro-content h2 {
  display: none;
}
.rb-doc--euro .rb-doc-euro-content {
  font-size: 9.5pt;
}

/* Cinta / ribbon */
.rb-doc--ribbon .rb-doc-ribbon-hero {
  background: var(--rb-accent);
  color: #fff;
  text-align: center;
  padding: 36px 40px 48px;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
  margin-bottom: 8px;
}
.rb-doc--ribbon .rb-doc-ribbon-hero h1 {
  margin: 12px 0 4px;
  font-family: Georgia, serif;
  font-size: 26pt;
  color: #fff;
  border: none;
}
.rb-doc--ribbon .rb-doc-ribbon-hero .rb-doc-avatar {
  margin: 0 auto 12px;
  width: var(--rb-photo-size-hero);
  height: var(--rb-photo-size-hero);
  font-size: 24pt;
}
.rb-doc--ribbon .rb-doc-ribbon-contact {
  text-align: center;
  font-size: 8.5pt;
  color: var(--rb-accent);
  padding: 8px 32px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
}
.rb-doc--ribbon .rb-doc-ribbon-body {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
  padding: 8px 36px 32px;
}

/* Secciones en caja */
.rb-doc--boxed .rb-doc-boxed-head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 32px 36px 20px;
  border: 2px solid color-mix(in srgb, var(--rb-accent) 50%, #cbd5e1);
  margin: 28px 28px 0;
}
.rb-doc--boxed .rb-doc-boxed-head h1 {
  margin: 0;
  font-size: 20pt;
  border: none;
  color: #0f172a;
}
.rb-doc--boxed .rb-doc-boxed-body {
  padding: 16px 28px 32px;
}
.rb-doc--boxed .rb-doc-boxed-body .rb-doc-sec-box {
  border: 1px solid color-mix(in srgb, var(--rb-accent) 45%, #cbd5e1);
  padding: 16px 20px;
  margin-bottom: 14px;
  border-radius: 4px;
}
.rb-doc--boxed .rb-doc-boxed-body h2 {
  margin-top: 0;
  color: var(--rb-accent);
  border: none;
  font-size: 10pt;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Clásico serif / heritage */
.rb-doc--heritage {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  font-family: Georgia, "Times New Roman", serif;
}
.rb-doc--heritage .rb-doc-heritage-left {
  padding: 32px 24px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
}
.rb-doc--heritage .rb-doc-heritage-left .rb-doc-avatar {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  max-width: 168px;
  border-radius: 6px;
  font-size: 36pt;
  margin-bottom: 20px;
}
.rb-doc--heritage .rb-doc-heritage-right {
  padding: 32px 36px;
}
.rb-doc--heritage .rb-doc-heritage-right h1 {
  margin: 0;
  font-size: 22pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  color: #0f172a;
}
.rb-doc--heritage h2 {
  color: #7f1d1d;
  border-bottom: 1px solid #d4d4d8;
  font-family: Georgia, serif;
}

/* Timeline con hitos */
.rb-doc--timeline .rb-doc-timeline-entry {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
}
.rb-doc--timeline .rb-doc-timeline-entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rb-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rb-accent) 25%, #fff);
}
.rb-doc--timeline .rb-doc-timeline-entry::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 16px;
  bottom: -8px;
  width: 2px;
  background: #e2e8f0;
}
.rb-doc--timeline .rb-doc-timeline-entry:last-child::after {
  display: none;
}

/* Mejoras sidebar / corporativo */
.rb-doc--sidebar .rb-doc-sidebar h1 {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
}
.rb-doc--corporate .rb-doc-corp-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.rb-doc--corporate .rb-doc-corp-head .rb-doc-avatar--light {
  width: var(--rb-photo-size-header);
  height: var(--rb-photo-size-header);
  font-size: 22pt;
  margin-bottom: 0;
}
.rb-doc-head--with-photo .rb-doc-photo,
.rb-doc-head--with-photo .rb-doc-avatar {
  align-self: center;
}

/* Editor: ATS + IA inline */
.rb-accent-picker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.rb-accent-picker label {
  font-size: 0.75rem;
  color: #0f172a;
  font-weight: 600;
  flex: 1;
}
.rb-accent-picker input[type="color"] {
  width: 2.5rem;
  height: 2rem;
  border: none;
  border-radius: 0.35rem;
  cursor: pointer;
  background: transparent;
}
.rb-ai-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}
.rb-ai-inline button {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 0.35rem;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
}
.rb-ai-inline button:hover {
  background: rgba(99, 102, 241, 0.35);
}
.rb-ai-inline button:disabled {
  opacity: 0.5;
}
.rb-ats-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.rb-ats-score-ring {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.875rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.rb-ats-score-ring strong {
  font-size: 2rem;
  color: #34d399;
  line-height: 1;
}
.rb-ats-list {
  font-size: 0.75rem;
  color: #cbd5e1;
  margin: 0;
  padding-left: 1.1rem;
}
.rb-ats-list li {
  margin-bottom: 0.35rem;
}
.rb-ats-list--warn {
  color: #fca5a5;
}
.rb-ats-list--ok {
  color: #86efac;
}

.rb-ai-banner {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.rb-ai-banner p {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.65rem;
}
