:root {
  --brand: #5b4bff;
  --brand-dark: #4335e0;
  --brand-soft: #efedff;
  --pink: #ff5c8a;
  --amber: #ffb547;
  --mint: #19c39c;
  --grad: linear-gradient(135deg, #5b4bff 0%, #8f5bff 45%, #ff5c8a 100%);
  --grad-soft: linear-gradient(135deg, #f1efff 0%, #fdf0f5 100%);
  --ink: #141b34;
  --muted: #5d6680;
  --line: #e7e8f2;
  --bg: #f7f7fc;
  --card: #ffffff;
  --ok: #10a37f;
  --radius: 20px;
  --shadow: 0 2px 4px rgba(20, 27, 52, .04), 0 12px 32px rgba(20, 27, 52, .08);
  --shadow-lg: 0 24px 60px rgba(67, 53, 224, .25);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
img { max-width: 100%; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Cabecera */
.site-head { background: rgba(255,255,255,.85); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(231,232,242,.8); position: sticky; top: 0; z-index: 40; }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
.logo-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #fff; font-size: .9rem; box-shadow: 0 6px 16px rgba(91,75,255,.35); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.nav .btn { color: #fff; margin-left: 6px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--grad); background-size: 140% 140%; color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 20px rgba(91,75,255,.28); transition: transform .15s, box-shadow .15s, background-position .3s;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(91,75,255,.36); background-position: 100% 0; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-lg { padding: 16px 28px; font-size: 1.06rem; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { background: #fff; color: var(--brand); border-color: var(--brand); box-shadow: none; }
.btn-white { background: #fff; color: var(--brand); box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.btn-white:hover { color: var(--brand-dark); background: #fff; }
.btn-glass { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.35); box-shadow: none; backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,.26); box-shadow: none; }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn-link { background: none; border: 0; color: var(--brand); padding: 0; font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* Portada */
.hero { position: relative; overflow: hidden; background: var(--grad); color: #fff; padding: 72px 0 96px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(10px); opacity: .55; }
.hero::before { width: 520px; height: 520px; background: radial-gradient(circle, #ffb547 0%, transparent 65%); top: -200px; right: -120px; }
.hero::after { width: 460px; height: 460px; background: radial-gradient(circle, #19c39c 0%, transparent 65%); bottom: -260px; left: -160px; opacity: .4; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); font-weight: 700; font-size: .88rem; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.7rem); margin: 0 0 18px; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .28em; background: var(--amber); opacity: .85; z-index: -1; border-radius: 6px; }
.hero h1 .hl { z-index: 0; }
.hero p.lead { font-size: 1.18rem; color: rgba(255,255,255,.9); margin: 0 0 28px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-cta .btn-white { padding: 16px 28px; font-size: 1.06rem; }
.stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; }
.stats div { display: grid; }
.stats strong { font-size: 1.6rem; font-weight: 800; }
.stats span { color: rgba(255,255,255,.8); font-size: .9rem; }
.hero-visual { position: relative; height: 470px; }
.hero-visual .paper { position: absolute; width: 210mm; transform-origin: top left; box-shadow: 0 30px 80px rgba(20,10,80,.45); border-radius: 6px; overflow: hidden; }
.float-chip { position: absolute; z-index: 3; background: #fff; color: var(--ink); border-radius: 16px; padding: 10px 14px; box-shadow: 0 16px 40px rgba(20,10,80,.3); font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 8px; animation: bob 4s ease-in-out infinite; }
.float-chip .dot { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 1rem; }
.float-chip small { display: block; color: var(--muted); font-weight: 600; font-size: .75rem; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .float-chip { animation: none; } }
.wave { display: block; width: 100%; height: 60px; margin-top: -59px; position: relative; z-index: 2; }
@media (max-width: 900px) {
  .hero { padding: 40px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { height: 330px; margin-top: 8px; }
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stats strong { font-size: 1.3rem; }
  .stats span { font-size: .8rem; }
}

.section { padding: 72px 0; }
.section-alt { background: #fff; }
.eyebrow { display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pink); margin-bottom: 8px; }
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 10px; }
.section .sub { color: var(--muted); margin: 0 0 32px; font-size: 1.08rem; }
.center { text-align: center; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 6px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); }
a.card { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: inherit; }
.card .more { display: inline-block; margin-top: 12px; color: var(--brand); font-weight: 700; }
.icon-tile { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 14px; }
.t1 { background: #efedff; } .t2 { background: #ffe8ef; } .t3 { background: #fff3dd; } .t4 { background: #dcf7ef; } .t5 { background: #e3f0ff; }
.step { position: relative; }
.step-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 14px; box-shadow: 0 8px 18px rgba(91,75,255,.3); }

.tpl-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.tpl-thumb { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; text-align: center; transition: transform .2s, box-shadow .2s; }
.tpl-thumb:hover { transform: translateY(-4px) rotate(-.5deg); box-shadow: var(--shadow); }
.tpl-thumb .mini { height: 220px; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); position: relative; background: #fff; }
.tpl-thumb .mini .cv { transform: scale(.2); transform-origin: top left; position: absolute; top: 0; left: 0; }
.tpl-thumb .mini.locked { background: var(--grad-soft); display: grid; place-items: center; font-size: 2.2rem; }
.tpl-thumb strong { display: block; margin-top: 10px; }
.tpl-thumb small { color: var(--muted); }
@media (max-width: 720px) {
  .tpl-gallery { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: -16px; padding-inline: 16px; }
  .tpl-thumb { scroll-snap-align: start; }
}
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 800; background: #fff1d6; color: #9a5b00; vertical-align: middle; }
.badge-free { background: #dcf7ef; color: var(--ok); }

.sector-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.sector-nav a { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.sector-nav a:hover { border-color: var(--brand); color: var(--brand); }
.sector { scroll-margin-top: 80px; }
.sector h2 { margin: 40px 0 16px; font-size: 1.4rem; }
.oficio-card { display: flex; gap: 14px; align-items: flex-start; }
.oficio-card .icon-tile { margin: 0; flex: none; }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.big-cta { background: var(--grad); color: #fff; border-radius: 28px; padding: 48px 32px; text-align: center; position: relative; overflow: hidden; }
.big-cta::after { content: ""; position: absolute; width: 300px; height: 300px; right: -80px; top: -120px; background: radial-gradient(circle, rgba(255,181,71,.7), transparent 65%); }
.big-cta h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 3.4vw, 2.3rem); position: relative; z-index: 1; }
.big-cta p { margin: 0 0 24px; color: rgba(255,255,255,.9); position: relative; z-index: 1; }
.big-cta .btn { position: relative; z-index: 1; }

/* Contenido (ejemplos, consejos, legales) */
.page-hero { background: var(--grad-soft); padding: 8px 0 32px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin: 24px 0 8px; }
.breadcrumb a { color: var(--muted); }
.prose h1 { font-size: clamp(1.9rem, 4.2vw, 2.6rem); margin: 0 0 12px; }
.prose h2 { margin: 40px 0 14px; font-size: 1.45rem; }
.prose p, .prose li { color: #2b3350; }
.prose blockquote { margin: 16px 0; padding: 14px 18px; background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 0 14px 14px 0; }
.prose .nota { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 32px; }
.prose ul.tick, .dlg-pro ul.tick { list-style: none; padding: 0; display: grid; gap: 8px; }
.prose ul.tick li, .dlg-pro ul.tick li { padding: 10px 14px 10px 44px; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.prose ul.tick li::before, .dlg-pro ul.tick li::before { content: "✓"; position: absolute; left: 12px; top: 10px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: #dcf7ef; color: var(--ok); font-weight: 800; font-size: .8rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.tags li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .95rem; font-weight: 600; }
.tags li:nth-child(4n+1) { background: #efedff; border-color: #dcd8ff; }
.tags li:nth-child(4n+2) { background: #ffe8ef; border-color: #ffd0de; }
.tags li:nth-child(4n+3) { background: #fff3dd; border-color: #ffe2b0; }
.tags li:nth-child(4n+4) { background: #dcf7ef; border-color: #bdeedf; }
.cta-box { background: var(--grad); color: #fff; border-radius: var(--radius); padding: 24px 28px; margin: 32px 0; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; box-shadow: var(--shadow-lg); }
.cta-box p { margin: 0; color: #fff; font-weight: 700; font-size: 1.1rem; }
.cta-box .btn { background: #fff; color: var(--brand); box-shadow: none; }
.cta-box .btn:hover { color: var(--brand-dark); }
.example-preview { background: var(--grad-soft); border-radius: var(--radius); padding: 18px; overflow: hidden; }
.example-preview .scaler { position: relative; margin: 0 auto; }
.example-preview .cv { position: absolute; top: 0; left: 0; transform-origin: top left; box-shadow: var(--shadow); }
.letter-sample { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.letter-sample p { margin: 0 0 12px; }
.letter-sample p:last-child { margin: 0; font-weight: 600; }
.sheet-wrap .letter { position: absolute; top: 0; left: 0; transform-origin: top left; box-shadow: 0 20px 50px rgba(20,27,52,.15); border-radius: 4px; }
.perfil-ej { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 10px 0; }
.perfil-ej strong { color: var(--brand); }

/* Pie */
.site-foot { margin-top: 72px; background: #12172e; color: #aab1c8; padding: 40px 0; font-size: .92rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-foot strong { color: #fff; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-foot a { color: #aab1c8; }
.site-foot a:hover { color: #fff; }

/* Barra inferior tipo app (móvil) */
.tabbar { display: none; }
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .nav .btn { display: none; }
  .site-head .wrap { min-height: 56px; }
  body:not(.editor-page) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding: 6px 6px calc(8px + env(safe-area-inset-bottom));
  }
  .tabbar a { display: grid; justify-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: .7rem; font-weight: 700; padding: 4px 0; }
  .tabbar a .ti { font-size: 1.3rem; line-height: 1.2; filter: grayscale(1); opacity: .7; }
  .tabbar a[aria-current="page"] { color: var(--brand); }
  .tabbar a[aria-current="page"] .ti { filter: none; opacity: 1; }
  .tabbar a.fab .ti { width: 54px; height: 54px; margin-top: -26px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); color: #fff; filter: none; opacity: 1; font-size: 1.5rem; box-shadow: 0 10px 24px rgba(91,75,255,.4); border: 4px solid #fff; }
  .site-foot { margin-top: 48px; }
  .section { padding: 48px 0; }
}

/* ============ Editor ============ */
.editor-page { background: #eceaf8; }
.editor-page .site-foot { display: none; }
.editor { display: grid; grid-template-columns: minmax(360px, 490px) 1fr; height: calc(100dvh - 65px); }
.ed-form { background: var(--bg); overflow-y: auto; border-right: 1px solid var(--line); padding: 20px 20px 120px; }
.ed-preview { overflow: auto; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; background: radial-gradient(circle at 20% 0%, #e4e0ff 0, transparent 40%), radial-gradient(circle at 100% 100%, #ffe1ea 0, transparent 40%), #eceaf8; }
.ed-toolbar { display: flex; gap: 8px; align-items: center; justify-content: flex-end; width: 100%; max-width: 820px; }
.ed-toolbar .grow { flex: 1; color: var(--muted); font-size: .9rem; font-weight: 600; }
.sheet-wrap { position: relative; width: 100%; max-width: 820px; }
.sheet-wrap .cv { position: absolute; top: 0; left: 0; transform-origin: top left; box-shadow: 0 20px 50px rgba(20,27,52,.15); border-radius: 4px; }
.sheet-wrap .page-break { position: absolute; left: 0; right: 0; border-top: 2px dashed #ff9f1c; pointer-events: none; }
.sheet-wrap .page-break span { position: absolute; right: 0; top: -22px; font-size: .75rem; background: #ff9f1c; color: #fff; padding: 1px 8px; border-radius: 6px; font-weight: 700; }

.progress-card { background: var(--grad); color: #fff; border-radius: 20px; padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow-lg); }
.progress-card .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.progress-card strong { font-size: 1.05rem; }
.progress-card .pct { font-size: 1.5rem; font-weight: 800; }
.progress-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.25); margin: 10px 0 8px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #ffd27a, #ffb547); transition: width .4s ease; }
.progress-card p { margin: 0; font-size: .86rem; color: rgba(255,255,255,.92); }

.ed-block { border: 1px solid var(--line); border-radius: 18px; margin-bottom: 12px; background: #fff; transition: box-shadow .2s; }
.ed-block[open] { box-shadow: 0 6px 20px rgba(20,27,52,.05); }
.ed-block > summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 800; display: flex; align-items: center; gap: 12px; }
.ed-block > summary::-webkit-details-marker { display: none; }
.ed-block > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .15s; }
.ed-block:not([open]) > summary::after { transform: rotate(-90deg); }
.ed-block > .ed-body { padding: 0 16px 16px; }
.ed-block .ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; font-size: 1.05rem; }
.ed-block .done { margin-left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #dcf7ef; color: var(--ok); font-size: .7rem; display: none; place-items: center; }
.ed-block.is-done .done { display: grid; }
.field { display: grid; gap: 4px; margin-bottom: 12px; }
.field label, .lbl { font-size: .85rem; font-weight: 700; color: #3a4260; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid #e1e3ee; border-radius: 14px; font: inherit; font-size: 16px; background: #fbfbfe; color: var(--ink); transition: border-color .15s, background .15s, box-shadow .15s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(91,75,255,.12); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { font-size: .84rem; color: var(--muted); margin: -4px 0 12px; }
.check { display: flex; gap: 8px; align-items: center; font-size: .9rem; margin: -4px 0 12px; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

.import-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1.5px dashed #b9eedd; border-radius: 18px; padding: 14px 16px; margin-bottom: 14px; }
.import-card .ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; font-size: 1.2rem; flex: none; }
.import-card > div { flex: 1; min-width: 0; }
.import-card strong { font-size: .95rem; }
.import-card p { margin: 2px 0 0; font-size: .84rem; color: var(--muted); }
.import-card[hidden] { display: none; }
.btn.busy { opacity: .6; pointer-events: none; }
.import-card.busy { opacity: .6; pointer-events: none; }
.import-sum:focus { outline: none; }
.import-sum { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-height: 50vh; overflow: auto; }
.import-sum li { background: var(--bg); border-radius: 12px; padding: 8px 12px; font-size: .9rem; }
.import-sum li b { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.import-sum li.miss { color: var(--muted); }
.import-entries { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.import-entries li { background: none; padding: 0; border-radius: 0; }
.import-entries small { color: var(--muted); white-space: nowrap; }
.oficio-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 14px; }
.oficio-box .field { margin-bottom: 6px; }
.oficio-box p { margin: 0; font-size: .86rem; color: var(--muted); }

.item { border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; background: #fbfbfe; }
.item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 800; font-size: .95rem; gap: 6px; }
.item-head .actions { display: flex; gap: 4px; }
.icon-btn { border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 34px; height: 34px; cursor: pointer; font-size: .9rem; color: var(--muted); }
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.add-btn { width: 100%; border: 2px dashed #cfcaf9; background: var(--brand-soft); border-radius: 14px; padding: 12px; font: inherit; font-weight: 800; color: var(--brand); cursor: pointer; transition: background .15s; }
.add-btn:hover { background: #e4e0ff; border-color: var(--brand); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.chip { border: 1.5px solid #dcd8ff; background: #fff; color: #3b2fc4; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; text-align: left; transition: background .15s, transform .1s; }
.chip:hover { background: var(--brand-soft); border-color: var(--brand); }
.chip:active { transform: scale(.96); }
.chip.used { opacity: .4; }
.chip-sel { background: var(--grad); color: #fff; border-color: transparent; }
.chip-sel:hover { background: var(--grad); filter: brightness(1.05); }
.chip-sel::after { content: " ✕"; font-size: .75rem; }
.sugg-title { font-size: .76rem; font-weight: 800; color: var(--pink); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }
.perfil-sugg { display: grid; gap: 8px; margin-top: 6px; }
.perfil-sugg button { text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 12px; font: inherit; font-size: .88rem; cursor: pointer; color: #3a4260; transition: border-color .15s, background .15s; }
.perfil-sugg button:hover { border-color: var(--brand); background: var(--brand-soft); }

.tpl-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tpl-opt { border: 2px solid var(--line); border-radius: 14px; background: #fff; padding: 6px; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 700; text-align: center; color: var(--ink); transition: border-color .15s, transform .1s; }
.tpl-opt:active { transform: scale(.97); }
.tpl-opt .mini { height: 96px; overflow: hidden; position: relative; border-radius: 8px; background: #fff; border: 1px solid var(--line); margin-bottom: 4px; }
.tpl-opt .mini .cv { transform: scale(.11); transform-origin: top left; position: absolute; top: 0; left: 0; pointer-events: none; }
.tpl-opt[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91,75,255,.12); }
.tpl-opt.is-pro { border-color: #f3d48a; }
.tpl-opt.is-pro[aria-pressed="true"] { border-color: #e0a92e; box-shadow: 0 0 0 4px rgba(224,169,46,.18); }
.lang-opt[aria-pressed="true"] { background: var(--grad); color: #fff; border-color: transparent; }
.lang-note { margin: 4px 0 10px; padding: 10px 12px; border-radius: 12px; background: #fff7e6; color: #7a4b00; font-size: .84rem; line-height: 1.45; }
.lang-note strong { display: block; margin-bottom: 2px; }
.swatches { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: transform .1s; }
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }

.photo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.photo-row .ph { width: 72px; height: 72px; border-radius: 50%; background: var(--grad-soft) center/cover no-repeat; border: 2px dashed #cfcaf9; display: grid; place-items: center; color: var(--muted); font-size: 1.6rem; flex: none; }
.saved { font-size: .82rem; color: var(--ok); font-weight: 700; }

.mobile-bar { display: none; }
@media (max-width: 900px) {
  .editor { grid-template-columns: 1fr; height: auto; }
  .ed-form { border-right: 0; padding: 16px 16px 110px; overflow: visible; }
  .ed-preview { display: none; padding: 16px 12px 110px; }
  .editor.show-preview .ed-form { display: none; }
  .editor.show-preview .ed-preview { display: flex; }
  .ed-toolbar .js-download, .ed-toolbar .btn-ghost, .ed-toolbar .js-share { display: none; }
  .ed-toolbar .grow { text-align: center; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1fr 1.1fr; gap: 6px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { padding: 12px 4px; font-size: .9rem; white-space: nowrap; }
  .mobile-bar .btn-ghost[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
}

/* Primer empleo */
.hero-first { margin: 18px 0 0; }
.hero-first a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid rgba(255,255,255,.5); }
.first-job { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 8px; background: #fff; border: 2px dashed #b9eedd; border-radius: var(--radius); padding: 24px; }
.first-job .icon-tile { margin: 0; }
.first-job > div { flex: 1 1 280px; }
.first-job h2 { margin: 0 0 6px; font-size: 1.4rem; }
.first-job p { margin: 0; color: var(--muted); }
a.first-card { text-decoration: none; color: inherit; border-color: #b9eedd; }
.wizard-page { background: radial-gradient(circle at 10% 0%, #e4e0ff 0, transparent 45%), radial-gradient(circle at 100% 100%, #ffe1ea 0, transparent 45%), var(--bg); }
.wizard { width: min(640px, 100% - 32px); margin: 0 auto; padding: 24px 0 120px; }
.w-top { position: sticky; top: 64px; z-index: 5; padding: 10px 0; background: transparent; }
.w-count { font-weight: 800; color: var(--brand); font-size: .9rem; }
.w-progress { background: #e4e2f5; margin: 8px 0 0; }
.w-card { background: #fff; border-radius: 24px; padding: 24px 20px; box-shadow: var(--shadow); margin-top: 8px; }
.w-card h1 { font-size: clamp(1.5rem, 5vw, 2rem); margin: 0 0 6px; }
.w-sub { color: var(--muted); margin: 0 0 18px; }
.w-error { color: #c0264f; font-weight: 700; margin: 10px 0 0; min-height: 1em; }
.w-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.w-grid-2 { grid-template-columns: 1fr 1fr; }
.w-group { font-size: .78rem; font-weight: 800; color: var(--pink); text-transform: uppercase; letter-spacing: .06em; margin: 16px 0 8px; }
.w-opt { border: 2px solid var(--line); background: #fbfbfe; border-radius: 14px; padding: 12px 12px; font: inherit; font-weight: 600; font-size: .95rem; text-align: left; cursor: pointer; color: var(--ink); transition: border-color .15s, background .15s, transform .1s; }
.w-opt:hover { border-color: #c9c2ff; }
.w-opt:active { transform: scale(.98); }
.w-opt.on { border-color: var(--brand); background: var(--brand-soft); color: #3b2fc4; }
.w-opt.on::after { content: " ✓"; font-weight: 800; }
.w-wide { width: 100%; }
.w-viv { margin-bottom: 8px; }
.w-viv.on { background: #f7f6ff; border-radius: 16px; padding: 4px 4px 0; }
.w-viv .row2 { padding: 10px 8px 0; }
.w-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 10px; justify-content: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.w-nav .btn { flex: 1; max-width: 300px; padding: 14px; font-size: 1.02rem; }
.w-nav .btn[hidden] { display: none; }
.w-skip { text-align: center; margin-top: 18px; font-size: .9rem; }
.w-skip a { color: var(--muted); }

/* Mis currículums */
.cv-switch { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px 14px; margin-bottom: 12px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.cv-switch:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(91,75,255,.12); }
.cv-switch .ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); flex: none; }
.cv-switch .grow { flex: 1; min-width: 0; display: grid; }
.cv-switch small { color: var(--muted); font-size: .75rem; font-weight: 600; }
.cv-switch strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-switch-more { color: var(--brand); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.cvs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 55vh; overflow: auto; }
.cvs-list li { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1.5px solid transparent; border-radius: 14px; padding: 10px 12px; }
.cvs-list li.active { border-color: var(--brand); background: var(--brand-soft); }
.cvs-list .cvs-ico { font-size: 1.4rem; flex: none; }
.cvs-list .grow { flex: 1; min-width: 0; }
.cvs-list strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cvs-list small { color: var(--muted); }
.cvs-actions { display: flex; gap: 4px; flex: none; align-items: center; }
@media (max-width: 560px) {
  .cvs-list li { flex-wrap: wrap; }
  .cvs-list .grow { flex-basis: calc(100% - 44px); }
  .cvs-actions { width: 100%; justify-content: flex-end; }
}

/* Revisor */
.review-btn { margin-top: 12px; }
.review-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--pink); color: #fff; font-size: .75rem; }
.review-badge:empty { display: none; }
.dlg-wide { max-width: 560px; }
.review-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.review-head h2 { margin: 0 0 4px; }
.review-head p { color: var(--muted); }
.score { --p: 0; --c: var(--brand); width: 84px; height: 84px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), #ecebf5 0); }
.score span { width: 66px; height: 66px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 55vh; overflow: auto; }
.review-list:focus { outline: none; }
.review-list li { display: flex; gap: 10px; align-items: flex-start; background: var(--bg); border-radius: 14px; padding: 10px 12px; }
.review-list .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; }
.review-list .alta .dot { background: #e0457b; }
.review-list .media .dot { background: #f59e0b; }
.review-list .baja .dot { background: #5b8cff; }
.review-list strong { display: block; font-size: .95rem; }
.review-list small { color: var(--muted); display: block; line-height: 1.45; }
.review-list .grow { flex: 1; min-width: 0; }
.review-list .btn { flex: none; align-self: center; }
.review-ok { text-align: center; padding: 18px; color: var(--ok); font-weight: 700; }

/* Ventanas */
dialog { border: 0; border-radius: 24px; padding: 26px; max-width: 440px; width: calc(100% - 32px); box-shadow: 0 30px 80px rgba(20,27,52,.3); }
dialog::backdrop { background: rgba(20, 27, 52, .5); backdrop-filter: blur(3px); }
dialog h2 { margin: 0 0 10px; font-size: 1.35rem; }
dialog p, dialog li { color: #3a4260; }
dialog .dlg-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }

/* Impresión: solo el currículum */
#print-root { display: none; }
@media print {
  /* Sin margen arriba en la primera hoja; las siguientes dejan aire arriba y abajo. */
  @page { size: A4; margin: 12mm 0; }
  @page :first { margin-top: 0; }
  html, body { margin: 0; padding: 0 !important; background: #fff !important; }
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block; }
  #print-root .cv { box-shadow: none; min-height: 285mm; }
  #print-root .letter { min-height: 0; }
}

/* Instalar la app */
.app-promo { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; background: var(--grad-soft); border: 1px solid var(--line); border-radius: 28px; padding: 36px; }
.app-promo h2 { margin: 6px 0 10px; font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.app-promo p { color: var(--muted); max-width: 36em; margin: 0 0 20px; }
.app-promo-icon { width: 160px; height: 160px; border-radius: 36px; box-shadow: var(--shadow-lg); }
.app-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.muted-s { font-size: .9rem; color: var(--muted); }
.install-bar { position: fixed; left: 10px; right: 10px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px 10px 10px 12px; box-shadow: 0 16px 40px rgba(20, 27, 52, .22); }
.install-bar[hidden], .js-install[hidden], .js-install-done[hidden] { display: none; }
.install-bar img { border-radius: 10px; flex: none; }
.install-bar div { flex: 1; line-height: 1.25; min-width: 0; }
.install-bar strong { display: block; font-size: .95rem; }
.install-bar small { color: var(--muted); font-size: .78rem; }
.install-x { border: 0; background: none; font-size: 1.1rem; color: var(--muted); padding: 6px 8px; cursor: pointer; }
@media (max-width: 720px) {
  .app-promo { grid-template-columns: 1fr; padding: 26px 22px; text-align: left; }
  .app-promo-icon { width: 96px; height: 96px; border-radius: 24px; grid-row: 1; }
}

/* Versión Pro */
.crown { position: absolute; top: 5px; right: 5px; z-index: 2; background: linear-gradient(135deg, #ffd66b, #f0a92e); color: #4a2c00; font-size: .66rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; box-shadow: 0 2px 6px rgba(160,100,0,.3); white-space: nowrap; }
.tpl-thumb .crown { font-size: .78rem; padding: 3px 10px; top: 8px; right: 8px; }
.badge-pro { background: linear-gradient(135deg, #ffd66b, #f0a92e); color: #4a2c00; }
.pro-lock { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: linear-gradient(135deg, #fff6dc, #ffe9b8); border: 1px solid #f3d48a; color: #5c3b00; border-radius: 16px; padding: 10px 14px; margin-bottom: 12px; font-size: .92rem; }
.pro-lock[hidden] { display: none; }
.pro-lock-btns { display: flex; gap: 6px; }
.dlg-pro { padding: 0; overflow: hidden; }
.dlg-pro > *:not(.dlg-pro-top) { margin-left: 26px; margin-right: 26px; }
.dlg-pro-top { background: var(--grad); color: #fff; padding: 24px 26px 20px; text-align: center; }
.dlg-pro-top h2 { color: #fff; margin: 4px 0 6px; }
.dlg-pro-top p { color: rgba(255,255,255,.9); margin: 0; }
.crown-big { font-size: 2.6rem; line-height: 1; display: block; }
.dlg-pro .tick { margin-top: 18px; }
.price-line { font-size: 1.05rem; }
.price-line s { color: var(--muted); }
.price-line strong { font-size: 1.5rem; color: var(--brand); }
.dlg-pro .dlg-actions { margin-bottom: 24px; }
.dlg-pro ul.tick li { padding: 7px 12px 7px 40px; font-size: .93rem; } .dlg-pro ul.tick li::before { top: 7px; }
