/* ===== Variables de color y base ===== */
:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-soft: #e0f2fe;
  --ink: #0c2d48;
  --text: #33495e;
  --muted: #56707f;
  --line: #a8e2d9;
  --teal: #14b8a6;
  --teal-dark: #0d9488;
  --teal-soft: #ccfbf1;
  --bg: #f0f9ff;
  --white: #ffffff;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; }

a { color: inherit; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .1s, box-shadow .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 6px 16px -6px rgba(2, 132, 199, .6); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #7fd3c7; }
.btn-outline { background: var(--white); color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

.link-btn {
  background: none;
  border: none;
  padding: 4px 0;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--danger); }

:focus-visible { outline: 3px solid rgba(2, 132, 199, .45); outline-offset: 2px; }

/* ===== Navegación ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 249, 255, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.logo-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--primary); color: var(--white); }
.nav-links { display: flex; gap: 28px; margin-left: auto; margin-right: 12px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }

/* ===== Hero ===== */
.hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(900px 400px at 85% 10%, rgba(2, 132, 199, .12), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(20, 184, 166, .14), transparent 60%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
.highlight { background: linear-gradient(90deg, var(--primary), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 20px 0 30px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust li { position: relative; padding-left: 26px; font-size: .95rem; font-weight: 500; color: var(--text); }
.trust li::before,
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* CV de ejemplo del hero */
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-cv { position: relative; width: min(420px, 100%); }
.hero-cv .cv-frame {
  margin: 0;
  border-radius: 10px;
  box-shadow: 0 30px 60px -24px rgba(12, 45, 72, .4), 0 0 0 1.5px var(--line);
}
.hero-cv-caption { margin: 0; font-size: .9rem; font-weight: 500; color: var(--muted); }
.hero-badge {
  position: absolute;
  bottom: 28px; left: -22px;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-weight: 700;
  color: #16a34a;
}

/* ===== Secciones ===== */
.section { padding: 80px 0; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; text-align: center; letter-spacing: -.01em; }
.section-sub { text-align: center; color: var(--muted); margin: 10px auto 44px; max-width: 560px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--white); border: 1.5px solid var(--line); border-top: 4px solid var(--teal); border-radius: var(--radius); padding: 28px; }
.step-num {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--teal-soft); color: var(--teal-dark);
  font-weight: 800; margin-bottom: 16px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }

/* ===== CV de muestra ===== */
.muestra-section { background: var(--white); border-top: 1px solid var(--line); }
.muestra { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.muestra-cv .cv-frame {
  max-width: 480px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 30px 60px -24px rgba(12, 45, 72, .4), 0 0 0 1.5px var(--line);
}
.muestra-text h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.01em; }
.muestra-text .lead { margin: 16px 0 24px; }
.check-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 28px; }

/* ===== Reseñas ===== */
.resenas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.resena {
  margin: 0;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.estrellas { color: #f59e0b; font-size: 1.1rem; letter-spacing: 2px; }
.estrella-vacia { color: #d1d5db; }
.resena blockquote { margin: 0; flex: 1; color: var(--text); }
.resena figcaption { display: flex; align-items: center; gap: 12px; }
.avatar {
  flex: none;
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal-dark);
  font-weight: 700; font-size: .9rem;
}
.resena strong { display: block; color: var(--ink); line-height: 1.3; }
.resena small { color: var(--muted); font-size: .85rem; }
.nota { margin: 24px 0 0; text-align: center; font-size: .8rem; color: var(--muted); }

/* ===== Creador ===== */
.builder-section { background: linear-gradient(180deg, #ffffff, #f5fbff); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }

.card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 0 0 20px;
  background: var(--bg);
  min-width: 0;
}
legend { font-weight: 700; color: var(--ink); font-size: 1.05rem; padding: 0 6px; }

.cv-form label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.cv-form input[type="text"],
.cv-form input[type="email"],
.cv-form input[type="tel"],
.cv-form input[type="month"],
.cv-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #7fd3c7;
  border-radius: 9px;
  background: var(--white);
  font: inherit;
  font-weight: 400;
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.cv-form textarea { resize: vertical; min-height: 44px; }
.cv-form input:focus, .cv-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, .15);
}
.cv-form input:disabled { background: #f1f5f9; color: #94a3b8; cursor: not-allowed; }
.cv-form .check-actual {
  display: flex; align-items: center; gap: 8px;
  margin: -4px 0 14px;
  font-weight: 500;
  cursor: pointer;
}
.cv-form .check-actual[hidden] { display: none; }
.lista-hint { margin: 0 0 12px; }
.check-actual input { width: 18px; height: 18px; margin: 0; accent-color: var(--teal-dark); }
.contador { display: block; margin-top: 4px; text-align: right; font-size: .78rem; font-weight: 400; color: var(--muted); }

/* Fechas: una lista para el mes y otra para el año */
.campo-fecha { margin-bottom: 14px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.campo-fecha.deshabilitado .campo-label { color: #94a3b8; }
.fecha { display: grid; grid-template-columns: 1.35fr 1fr; gap: 6px; margin-top: 6px; }
.fecha select {
  width: 100%;
  min-width: 0;
  padding: 10px 30px 10px 12px;
  border: 1px solid #7fd3c7;
  border-radius: 9px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 14px no-repeat;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  font-weight: 400;
  font-size: .95rem;
  color: var(--ink);
  cursor: pointer;
}
.fecha select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(2, 132, 199, .15); }
.fecha select:disabled { background-color: #f1f5f9; color: #94a3b8; cursor: not-allowed; }
.fecha-error { margin: -6px 0 14px; }
.item.fecha-invalida .fecha-error, .campo-fecha.fecha-invalida .fecha-error { display: block; }
.item.fecha-invalida .fecha select:not(:disabled), .campo-fecha.fecha-invalida .fecha select { border-color: var(--danger); }
.campo-fecha .fecha-error { margin: 4px 0 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.hint { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.hint-inline { font-weight: 400; color: var(--muted); }

.error-msg { display: none; color: var(--danger); font-weight: 500; font-size: .82rem; margin-top: 4px; }
.has-error input { border-color: var(--danger) !important; }
.has-error .error-msg { display: block; }

/* Foto */
.foto-box { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.foto-preview {
  flex: none;
  display: grid; place-items: center;
  width: 84px; height: 84px; border-radius: 50%;
  background: #e2e8f0; color: #94a3b8;
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--line);
}
.foto-preview img { width: 100%; height: 100%; object-fit: cover; }
.foto-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.foto-actions label { margin: 0; }
.foto-actions .hint { flex-basis: 100%; margin: 0; }

/* Editor de recorte de la foto */
.editor-foto {
  width: min(420px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  box-shadow: 0 30px 80px -20px rgba(12, 45, 72, .5);
  overflow: auto;
}
.editor-foto::backdrop { background: rgba(12, 45, 72, .55); }
.editor-caja { padding: 22px; }
.editor-caja h3 { font-size: 1.2rem; }
.editor-caja .hint { margin: 6px 0 16px; }
.editor-escena {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ink);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.editor-escena.arrastrando { cursor: grabbing; }
.editor-escena img {
  position: absolute; left: 0; top: 0;
  max-width: none;
  transform-origin: 0 0;
  pointer-events: none;
  -webkit-user-drag: none;
}
/* El círculo ocupa el 84% de la escena (lo mismo que usa script.js para calcular el recorte):
   afuera se oscurece y el aro blanco marca el borde exacto de la foto del CV */
.editor-circulo {
  position: absolute; inset: 0;
  z-index: 1;
  background: radial-gradient(circle closest-side, transparent 84%, rgba(12, 45, 72, .72) 84.2%);
  pointer-events: none;
}
.editor-circulo::after {
  content: "";
  position: absolute; inset: 8%;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
}
.editor-zoom { display: flex; align-items: center; gap: 10px; margin: 16px 0 18px; }
.editor-zoom input { flex: 1; min-width: 0; accent-color: var(--teal-dark); cursor: pointer; }
.zoom-btn {
  flex: none;
  width: 36px; height: 36px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font: inherit; font-size: 1.2rem; font-weight: 700; line-height: 1;
  color: var(--primary-dark);
  cursor: pointer;
}
.zoom-btn:hover { background: var(--primary-soft); }
.editor-acciones { display: flex; justify-content: flex-end; gap: 10px; }

/* Items repetibles */
.lista { display: flex; flex-direction: column; gap: 14px; }
.lista:not(:empty) { margin-bottom: 14px; }
.item { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px 2px; }
.item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.item-title { font-weight: 700; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.btn-add { width: 100%; background: var(--white); border: 1.5px dashed #7fd3c7; color: var(--primary); }
.btn-add:hover { border-color: var(--teal); background: var(--primary-soft); }
.btn-add:disabled { color: var(--muted); border-style: solid; background: #f1f5f9; cursor: not-allowed; }

/* Selector de modelo */
.modelos-grupo { margin: 4px 0 10px; font-size: .82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.modelos + .modelos-grupo { margin-top: 18px; }
.modelos-grupo .hint-inline { text-transform: none; letter-spacing: 0; font-weight: 500; }
.modelos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cv-form .modelo-opt {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin: 0;
  padding: 14px 8px 12px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
}
.modelo-opt input { position: absolute; opacity: 0; pointer-events: none; }
.modelo-opt:has(input:checked) { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal) inset; background: #f0fdfa; }
.modelo-opt:has(input:focus-visible) { outline: 3px solid rgba(2, 132, 199, .45); outline-offset: 2px; }
.modelo-thumb {
  width: 56px;
  aspect-ratio: 210 / 297;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: 0 0 0 1px #cbd5e1, 0 4px 10px -4px rgba(12, 45, 72, .3);
}
.thumb-moderno {
  background-image:
    linear-gradient(90deg, var(--primary) 0 32%, transparent 32%),
    repeating-linear-gradient(180deg, transparent 0 7px, #d7e3ea 7px 9px);
}
.thumb-clasico {
  background-image:
    linear-gradient(180deg, var(--primary) 0 4px, transparent 4px),
    repeating-linear-gradient(180deg, transparent 0 7px, #d7e3ea 7px 9px);
}
.thumb-ejecutivo {
  background-image:
    linear-gradient(180deg, var(--primary) 0 24%, transparent 24%),
    linear-gradient(90deg, transparent 0 64%, #e0f2fe 64%),
    repeating-linear-gradient(180deg, transparent 0 7px, #d7e3ea 7px 9px);
}
.thumb-creativo {
  background-image:
    radial-gradient(circle at 76% 13%, #fff 0 5px, transparent 5.5px),
    linear-gradient(170deg, var(--teal-dark) 0 22%, transparent 22.5%),
    repeating-linear-gradient(180deg, transparent 0 7px, #d7e3ea 7px 9px);
}
.thumb-elegante {
  background-image:
    radial-gradient(circle at 17% 12%, var(--teal) 0 5px, transparent 5.5px),
    linear-gradient(90deg, #1e293b 0 34%, transparent 34%),
    repeating-linear-gradient(180deg, transparent 0 7px, #d7e3ea 7px 9px);
}
.thumb-destacado {
  background-image:
    radial-gradient(circle at 50% 13%, #7c3aed 0 6px, transparent 6.5px),
    radial-gradient(circle at 100% 0, #ede9fe 0 20px, transparent 20.5px),
    linear-gradient(180deg, #fff 0 30%, transparent 30%),
    repeating-linear-gradient(180deg, transparent 0 7px, #d7e3ea 7px 9px);
}
.modelo-nombre { font-size: .9rem; font-weight: 700; color: var(--ink); }
.modelo-opt small { font-size: .75rem; font-weight: 400; line-height: 1.3; color: var(--muted); }

/* Botones para cambiar el modelo del CV de muestra */
.modelo-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.modelo-tabs button {
  padding: 8px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font: inherit; font-size: .9rem; font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.modelo-tabs button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* Colores */
.colores { display: flex; flex-wrap: wrap; gap: 10px; }
.cv-form .color-opt {
  display: flex; align-items: center; gap: 8px;
  margin: 0;
  padding: 8px 14px 8px 8px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
}
.color-opt input { position: absolute; opacity: 0; pointer-events: none; }
.color-opt span { width: 22px; height: 22px; border-radius: 50%; background: var(--c); }
.color-opt:has(input:checked) { border-color: var(--c); box-shadow: 0 0 0 2px var(--c) inset; }
.color-opt:has(input:focus-visible) { outline: 3px solid rgba(2, 132, 199, .45); outline-offset: 2px; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.form-actions .danger { margin-left: auto; }

/* ===== Vista previa del CV (imita el PDF A4) ===== */
/* La columna se estira al alto del formulario para que la vista previa pueda "acompañar" el scroll */
.preview-col { align-self: stretch; }
.preview-sticky { position: sticky; top: 88px; }
.preview-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.preview-head h3 { font-size: 1.1rem; }
.preview-head .hint { margin: 0; }
.cv-frame {
  container-type: inline-size;
  margin-bottom: 16px;
  border-radius: 8px;
  box-shadow: 0 20px 50px -20px rgba(15, 23, 42, .35), 0 0 0 1px var(--line);
  overflow: hidden;
}
/* 1mm de A4 = 0.476cqw  ·  1pt = 0.168cqw */
.cv {
  --cv-accent: #0284c7;
  aspect-ratio: 210 / 297;
  background: var(--white);
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.4;
  overflow: hidden;
}
/* --- Modelo Moderno: columna lateral de color --- */
.modelo-moderno { display: grid; grid-template-columns: 32.4% 1fr; }
.cv-side { background: var(--cv-accent); color: #fff; padding: 6.6cqw 4.76cqw; }
.cv-photo {
  display: block;
  width: 18cqw; height: 18cqw;
  margin: 0 auto 5.5cqw;
  border-radius: 50%;
  object-fit: cover;
}
.cv-initials {
  display: grid; place-items: center;
  background: #fff;
  color: var(--cv-accent);
  font-weight: 700;
  font-size: 4.4cqw;
}
.cv-side h4 {
  margin: 0 0 2.2cqw;
  padding-bottom: 1cqw;
  border-bottom: 1px solid rgba(255, 255, 255, .45);
  font-size: 1.68cqw;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.cv-block { margin-bottom: 4.5cqw; }
.cv-label { margin: 0; font-size: 1.26cqw; font-weight: 700; opacity: .75; }
.cv-val { margin: 0 0 1.4cqw; font-size: 1.5cqw; overflow-wrap: anywhere; }
.cv-side ul, .cve-aside ul { margin: 0; padding-left: 2.2cqw; font-size: 1.5cqw; }
.cv-side li, .cve-aside li { margin-bottom: .6cqw; }

.cv-main { padding: 6.4cqw 5.7cqw 4cqw; color: #4b5563; min-width: 0; }
.cv-name { margin: 0; font-size: 4cqw; color: #111827; line-height: 1.15; overflow-wrap: anywhere; }
.cv-role { margin: .8cqw 0 4cqw; font-size: 2.1cqw; color: var(--cv-accent); }

/* --- Modelo Clásico: una columna con barra superior --- */
.modelo-clasico { border-top: 1.43cqw solid var(--cv-accent); padding: 0 8.57cqw; color: #4b5563; }
.cvc-head {
  display: flex; align-items: center; gap: 3.8cqw;
  padding: 5.2cqw 0 2.4cqw;
  margin-bottom: 4.8cqw;
  border-bottom: .3cqw solid var(--cv-accent);
}
.cvc-head .cv-photo { flex: none; width: 13.3cqw; height: 13.3cqw; margin: 0; }
.cvc-id { min-width: 0; }
.modelo-clasico .cv-name { font-size: 3.7cqw; }
.modelo-clasico .cv-role { margin: .6cqw 0 1cqw; font-size: 2cqw; }
.cvc-contacto { margin: 0; font-size: 1.5cqw; overflow-wrap: anywhere; }
.cvc-contacto .sep { margin: 0 1.2cqw; color: #9ca3af; }
.cvc-contacto + .cvc-contacto, .cvd-contacto + .cvd-contacto { margin-top: .6cqw; }

/* --- Modelo Ejecutivo: encabezado de color y columna clara a la derecha --- */
.modelo-ejecutivo { display: flex; flex-direction: column; }
.cve-head {
  flex: none;
  display: flex; align-items: center; gap: 4.76cqw;
  height: 24.76cqw;
  padding: 0 7.6cqw;
  background: var(--cv-accent);
}
.cve-head .cv-photo { flex: none; width: 16.2cqw; height: 16.2cqw; margin: 0; }
.cve-id { min-width: 0; }
.modelo-ejecutivo .cv-name { color: #fff; }
.modelo-ejecutivo .cv-role { margin-bottom: 0; color: rgba(255, 255, 255, .8); }
.cve-body { flex: 1; display: grid; grid-template-columns: 1fr 34.3%; min-height: 0; }
.cve-main { padding: 6.6cqw 4.76cqw 4cqw 7.6cqw; color: #4b5563; min-width: 0; }
.cve-aside { padding: 6.6cqw 3.3cqw; background: color-mix(in srgb, var(--cv-accent) 10%, #fff); color: #111827; min-width: 0; }
.cve-aside h4 {
  margin: 0 0 2.2cqw;
  padding-bottom: 1cqw;
  border-bottom: 1px solid color-mix(in srgb, var(--cv-accent) 45%, #fff);
  font-size: 1.68cqw;
  color: var(--cv-accent);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.cve-aside .cv-label { color: var(--cv-accent); opacity: 1; }

/* Títulos de sección (compartidos por los 3 modelos) */
.cv-h {
  margin: 0 0 2.4cqw;
  padding-bottom: 1cqw;
  border-bottom: 1px solid #e5e7eb;
  font-size: 1.85cqw;
  color: var(--cv-accent);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.cv-section { margin-bottom: 3.6cqw; }
.cv-text { margin: 0; font-size: 1.6cqw; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.cv-item { margin-bottom: 2.8cqw; }
.cv-item-title { margin: 0; font-size: 1.85cqw; font-weight: 700; color: #111827; }
.cv-item-sub { margin: .2cqw 0 .8cqw; font-size: 1.5cqw; color: var(--cv-accent); }
.cv-item ul { margin: 0; padding-left: 2.6cqw; font-size: 1.6cqw; }
.cv-item li { margin-bottom: .3cqw; }
.ph { color: #7fd3c7; }
.cv-side .ph, .cvl-side .ph { color: rgba(255, 255, 255, .5); }

/* Etiquetas de habilidades e idiomas (modelos vistosos) */
.cv-chips { display: flex; flex-wrap: wrap; gap: .86cqw; }
.cv-chip {
  padding: .45cqw 1.43cqw;
  border-radius: 99px;
  background: color-mix(in srgb, var(--cv-accent) 11%, #fff);
  color: var(--cv-accent);
  font-size: 1.43cqw;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.cvk-aside, .cvd-aside { color: #111827; min-width: 0; }
.cvk-aside h4, .cvl-side h4 {
  margin: 0 0 2.2cqw;
  padding-bottom: 1cqw;
  border-bottom: 1px solid color-mix(in srgb, var(--cv-accent) 45%, #fff);
  font-size: 1.68cqw;
  color: var(--cv-accent);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.cvk-aside .cv-label { color: var(--cv-accent); opacity: 1; }
.cvk-aside ul, .cvl-side ul, .cvd-aside ul { margin: 0; padding-left: 2.2cqw; font-size: 1.5cqw; }
.cvk-aside li, .cvl-side li, .cvd-aside li { margin-bottom: .6cqw; }

/* --- Modelo Creativo: encabezado en diagonal y línea de tiempo --- */
.modelo-creativo { display: flex; flex-direction: column; }
.cvk-head {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 3.8cqw;
  height: 28.56cqw;
  padding: 0 7.6cqw 5.7cqw;
  background: var(--cv-accent);
  clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
}
.cvk-id { min-width: 0; }
.cvk-head .cv-photo { flex: none; width: 18.6cqw; height: 18.6cqw; margin: 0; border: .71cqw solid #fff; }
.modelo-creativo .cv-name { color: #fff; font-size: 4.3cqw; }
.modelo-creativo .cv-role { margin-bottom: 0; color: rgba(255, 255, 255, .82); font-size: 2.2cqw; }
.cvk-body { flex: 1; display: grid; grid-template-columns: 116fr 52fr; gap: 4.76cqw; padding: 5.7cqw 7.6cqw 4cqw; min-height: 0; }
.cvk-main { color: #4b5563; min-width: 0; }
.cvk-main .cv-item { position: relative; padding-left: 2.86cqw; }
.cvk-main .cv-item::before {
  content: "";
  position: absolute; left: 0; top: .35cqw;
  width: 1.33cqw; height: 1.33cqw;
  border-radius: 50%;
  border: .4cqw solid var(--cv-accent);
  background: #fff;
}
.cvk-main .cv-item::after {
  content: "";
  position: absolute; left: .57cqw; top: 1.9cqw; bottom: -2.4cqw;
  width: .24cqw;
  background: color-mix(in srgb, var(--cv-accent) 30%, #fff);
}
.cvk-main .cv-item:last-child::after { display: none; }

/* --- Modelo Elegante: columna oscura con detalles de color --- */
.modelo-elegante { display: grid; grid-template-columns: 33.3% 1fr; }
.cvl-side { background: #1e293b; color: #fff; padding: 6.6cqw 4.76cqw; min-width: 0; }
.cvl-side .cv-photo { box-shadow: 0 0 0 .57cqw var(--cv-accent); }
.cvl-side .cv-initials { background: #334155; color: #fff; }
.cvl-side h4 { color: color-mix(in srgb, var(--cv-accent) 55%, #fff); border-bottom-color: #475569; }
.cvl-side .cv-label { color: #94a3b8; opacity: 1; }
.cvl-side .cv-chip { background: #334155; color: #fff; }
.cvl-main { padding: 7.6cqw 5.7cqw 4cqw; color: #4b5563; min-width: 0; }
.modelo-elegante .cv-name { font-size: 4.3cqw; }
.modelo-elegante .cv-role { margin-bottom: 1.4cqw; }
.cvl-barra { width: 10.5cqw; height: .67cqw; margin-bottom: 5cqw; border-radius: 9px; background: var(--cv-accent); }
.modelo-elegante .cv-h { display: flex; align-items: center; gap: 1.2cqw; border: none; color: #111827; }
.modelo-elegante .cv-h::before { content: ""; flex: none; width: 1.62cqw; height: 1.62cqw; border-radius: .33cqw; background: var(--cv-accent); }

/* --- Modelo Destacado: círculos decorativos, todo centrado y títulos en etiquetas --- */
.cv.modelo-destacado {
  padding: 0 7.6cqw;
  background:
    radial-gradient(circle at 96.2% 2.7%, color-mix(in srgb, var(--cv-accent) 10%, #fff) 0 20cqw, transparent 20.05cqw),
    radial-gradient(circle at 3.8% 98.7%, color-mix(in srgb, var(--cv-accent) 10%, #fff) 0 14.3cqw, transparent 14.35cqw),
    #fff;
}
.cvd-head { display: flex; flex-direction: column; align-items: center; padding-top: 6.67cqw; margin-bottom: 4.3cqw; text-align: center; }
.cvd-head .cv-photo { width: 16.2cqw; height: 16.2cqw; margin: 0 0 3.6cqw; box-shadow: 0 0 0 .62cqw var(--cv-accent); }
.modelo-destacado .cv-name { font-size: 3.7cqw; }
.modelo-destacado .cv-role { margin: .6cqw 0 1cqw; font-size: 2cqw; }
.cvd-contacto { margin: 0; font-size: 1.43cqw; color: #4b5563; overflow-wrap: anywhere; }
.cvd-contacto .sep { margin: 0 1.2cqw; color: var(--cv-accent); }
.cvd-body { display: grid; grid-template-columns: 120fr 48fr; gap: 4.76cqw; }
.cvd-main { color: #4b5563; min-width: 0; }
.modelo-destacado .cv-h, .cvd-aside h4 {
  display: inline-block;
  margin: 0 0 2cqw;
  padding: .55cqw 1.67cqw;
  border: none;
  border-radius: 99px;
  background: var(--cv-accent);
  color: #fff;
  font-size: 1.6cqw;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.cvd-aside .cv-chip { background: color-mix(in srgb, var(--cv-accent) 18%, #fff); color: color-mix(in srgb, var(--cv-accent) 80%, #000); }

/* ===== FAQ ===== */
details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 20px;
  margin-bottom: 12px;
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  color: var(--ink);
  display: flex; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--primary); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 18px; color: var(--muted); }

/* ===== Footer y aviso ===== */
.footer { padding: 32px 0; text-align: center; color: var(--muted); font-size: .9rem; }
.footer p { margin: 0; }

.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translate(-50%, 20px);
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  font-weight: 500;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 100;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-cv { width: min(400px, 100%); }
  .muestra { grid-template-columns: 1fr; gap: 40px; }
  .muestra-text { order: -1; }
  .resenas { grid-template-columns: repeat(2, 1fr); }
  .builder { grid-template-columns: 1fr; }
  .preview-sticky { position: static; }
  .preview-col { max-width: 520px; width: 100%; margin: 0 auto; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav-links { display: none; }
  .hero { padding: 40px 0 56px; }
  .section { padding: 56px 0; }
  .steps { grid-template-columns: 1fr; }
  .resenas { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .form-actions .btn { width: 100%; }
  .form-actions .danger { margin: 0 auto; }
  .hero-badge { left: 10px; bottom: 12px; padding: 8px 12px; font-size: .9rem; }
}
