/* ============================================================
   ImpriClick · Sistema de diseño del sitio de clientes
   Paleta: blanco + azul marino + rosado/fucsia
   ============================================================ */
:root {
  --navy: #10264a;
  --navy-soft: #1d3f70;
  --pink: #e6007e;
  --pink-dark: #b80065;
  --pink-soft: #ffe8f4;
  --blue: #1d5fd0;
  --blue-soft: #e9f1ff;
  --ink: #12243d;
  --muted: #5c728c;
  --line: #e4eaf4;
  --bg: #f7f9fd;
  --paper: #ffffff;
  --green: #0f7a58;
  --green-soft: #e6f6f0;
  --amber: #b26b00;
  --amber-soft: #fff5e2;
  --radius: 22px;
  --radius-sm: 14px;
  --pill: 999px;
  --shadow: 0 10px 30px rgba(16, 38, 74, .08);
  --shadow-lg: 0 20px 50px rgba(16, 38, 74, .13);
  --font: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-underline-offset: 4px; }
a:hover { color: var(--pink); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a, input, select { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 3px solid #ffb400; outline-offset: 3px; }
h1, h2, h3 { color: var(--navy); letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; font-weight: 800; margin: 0 0 14px; }
h2 { font-size: 22px; line-height: 1.3; font-weight: 750; margin: 0 0 18px; }
h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
  padding: 12px 18px; border-radius: 0 0 var(--radius-sm) 0; z-index: 50;
}
.skip:focus { left: 0; color: #fff; }

/* ---------------- Cabecera ---------------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  max-width: 1200px; margin: auto; padding: 14px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--pink), #ff5aa8);
  box-shadow: 0 8px 18px rgba(230, 0, 126, .28);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 21px; color: var(--navy); font-weight: 800; letter-spacing: -.02em; }
.brand-text strong span { color: var(--pink); }
.brand-text small { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.top nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 10px 18px; border-radius: var(--pill); font-size: 15px; font-weight: 650;
  text-decoration: none; color: var(--navy); border: 1px solid transparent;
}
.nav-link:hover { background: var(--pink-soft); color: var(--pink-dark); }
.nav-link.active { background: var(--pink); color: #fff; box-shadow: 0 8px 18px rgba(230, 0, 126, .25); }
.nav-link.ghost { border-color: var(--line); }

main { max-width: 1140px; margin: 0 auto; padding: 34px 22px 70px; min-height: 60vh; }
.narrow { max-width: 620px; margin: 0 auto; }

/* ---------------- Tipografía de sección ---------------- */
.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .16em; font-weight: 800;
  color: var(--pink); background: var(--pink-soft); padding: 6px 14px;
  border-radius: var(--pill); margin-bottom: 14px;
}
.lead { color: var(--muted); font-size: 18px; margin: 0 0 26px; max-width: 60ch; }
.small { font-size: 14px; }
.muted { color: var(--muted); }

/* ---------------- Pasos ---------------- */
.steps { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0 0 30px; }
.steps li {
  display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600;
  color: var(--muted); background: #fff; border: 1px solid var(--line);
  padding: 8px 18px 8px 8px; border-radius: var(--pill);
}
.steps b {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: #eef2f9; color: var(--muted); font-size: 14px;
}
.steps .active { color: var(--pink-dark); border-color: #ffc9e3; background: #fff6fb; }
.steps .active b { background: var(--pink); color: #fff; }
.steps .done b { background: var(--green-soft); color: var(--green); }

/* ---------------- Tarjetas y grillas ---------------- */
.workspace { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 22px; }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.step-label {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px;
  background: var(--blue-soft); color: var(--blue); font-weight: 800; font-size: 14px;
}
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Barra lateral con datos del local */
.info-card { background: linear-gradient(180deg, #fff, #fdf3f9); }
.pill {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .1em;
  color: var(--pink-dark); background: var(--pink-soft); padding: 6px 12px;
  border-radius: var(--pill); margin-bottom: 12px;
}
.feature-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.feature-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.feature-list li::before {
  content: '✓'; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-weight: 800;
}
.feature-list strong { display: block; color: var(--navy); }
.feature-list span { color: var(--muted); font-size: 14px; }
.minimum {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--navy); color: #fff; border-radius: var(--radius-sm);
  padding: 14px 18px; margin: 0 0 14px;
}
.minimum span { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.minimum strong { font-size: 24px; }

/* ---------------- Botones ---------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--pink), #ff4fa3);
  color: #fff; border: 0; border-radius: var(--pill);
  padding: 15px 30px; font-size: 17px; font-weight: 750; text-decoration: none;
  box-shadow: 0 12px 26px rgba(230, 0, 126, .28); transition: transform .15s, box-shadow .15s;
}
.button:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px rgba(230, 0, 126, .34); }
.button.wide { width: 100%; }
.button.secondary {
  background: #fff; color: var(--pink-dark); border: 2px solid #ffc9e3; box-shadow: none;
}
.button.secondary:hover { background: var(--pink-soft); color: var(--pink-dark); transform: none; }
.button.blue { background: linear-gradient(135deg, var(--blue), #4a8bf0); box-shadow: 0 12px 26px rgba(29, 95, 208, .26); }
.button-like {
  display: inline-block; background: linear-gradient(135deg, var(--pink), #ff4fa3); color: #fff;
  border-radius: var(--pill); padding: 12px 30px; font-weight: 750;
  box-shadow: 0 10px 22px rgba(230, 0, 126, .25);
}
.text-link { font-weight: 650; }
.back-link { display: inline-block; margin-top: 18px; font-size: 15px; }

/* ---------------- Formularios ---------------- */
.field { margin-bottom: 22px; }
.field > label, .field > legend, fieldset.field > legend {
  display: block; font-size: 14px; font-weight: 750; color: var(--navy); margin-bottom: 8px;
}
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; border: 2px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; background: #fff; color: var(--ink); min-height: 50px;
}
input:focus, select:focus, textarea:focus { border-color: var(--pink); outline: none; }
input[type=number] { max-width: 150px; }
input[type=radio], input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--pink); vertical-align: middle; margin-right: 8px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 22px; }
.help { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; }
.errorlist { list-style: none; padding: 0; margin: 8px 0; color: #b3261e; font-size: 14px; font-weight: 600; }
.check-field { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 20px; }
.check-field input { flex-shrink: 0; margin-top: 4px; }
.check-field label { font-size: 15px; color: var(--ink); }
#id_caras { display: flex; gap: 12px; flex-wrap: wrap; }
#id_caras label {
  display: flex; align-items: center; gap: 8px; border: 2px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 18px; cursor: pointer; font-weight: 600;
}
#id_caras label:has(input:checked) { border-color: var(--pink); background: var(--pink-soft); }

/* Teléfono con prefijo fijo */
.phone-group { display: flex; align-items: stretch; }
.phone-group .phone-prefix {
  display: flex; align-items: center; padding: 0 16px; font-weight: 800; color: var(--navy);
  background: #f1f5fb; border: 2px solid var(--line); border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm); min-height: 50px;
}
.phone-group input[type=tel] { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ---------------- Zona de carga ---------------- */
.upload-zone {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; padding: 40px 24px; cursor: pointer;
  border: 2.5px dashed #ffb3d8; border-radius: var(--radius);
  background: linear-gradient(180deg, #fffdfe, #fff5fa);
  transition: border-color .15s, background .15s;
}
.upload-zone:hover, .upload-zone.dragging { border-color: var(--pink); background: #fff0f7; }
.upload-zone input[type=file] {
  position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.upload-icon {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-soft), #dbe9ff);
}
.upload-icon svg { width: 38px; height: 38px; }
.upload-zone strong { font-size: 19px; color: var(--navy); }
.file-name { font-size: 14px; color: var(--green); font-weight: 650; min-height: 20px; }
.file-symbol {
  display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(135deg, var(--pink), #ff5aa8); color: #fff; font-weight: 800;
  font-size: 14px; letter-spacing: .04em;
}

/* Documento cargado */
.document {
  display: flex; align-items: center; gap: 14px; background: #f6f9fe;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 24px;
}
.document > div { flex: 1; min-width: 0; }
.document strong { display: block; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.document span { font-size: 14px; color: var(--muted); }

/* ---------------- Avisos ---------------- */
.notice {
  border-radius: var(--radius-sm); padding: 16px 20px; margin: 0 0 20px;
  background: var(--blue-soft); border-left: 5px solid var(--blue); color: var(--navy);
}
.notice.subtle { background: #f6f9fe; border-left-color: #b9cdea; }
.notice.success { background: var(--green-soft); border-left-color: var(--green); color: #0b5a41; }
.notice.error { background: #fdeceb; border-left-color: #c0392b; color: #8c2318; }
.notice.warning { background: var(--amber-soft); border-left-color: var(--amber); color: #7a4a00; }
.notice strong { display: block; margin-bottom: 4px; }
.notice p:last-child { margin-bottom: 0; }

/* ---------------- Progreso de subida ---------------- */
.progress { margin: 22px 0 0; }
.progress-track {
  height: 12px; border-radius: var(--pill); background: #eef2f9; overflow: hidden;
}
.progress-fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--pink)); transition: width .2s ease;
}
.progress-text { font-size: 14px; color: var(--muted); margin: 10px 0 0; font-weight: 600; }
.progress.indeterminado .progress-fill { width: 35%; animation: desliza 1.1s ease-in-out infinite; }
@keyframes desliza { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }

/* ---------------- Cotización ---------------- */
.quote { background: linear-gradient(180deg, #fff, #f7faff); }
.summary-document {
  background: #f6f9fe; border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 16px;
}
.summary-document strong { display: block; color: var(--navy); word-break: break-all; }
.summary-document p { margin: 4px 0 8px; color: var(--muted); font-size: 14px; }
.breakdown { margin: 0 0 18px; padding: 0; }
.breakdown > div {
  display: flex; justify-content: space-between; gap: 14px; padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.breakdown dt { color: var(--muted); }
.breakdown dd { margin: 0; font-weight: 650; color: var(--navy); }
.breakdown .divider { border-bottom: 1px solid var(--line); }
.breakdown .total {
  border-bottom: 0; margin-top: 10px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--navy); color: #fff;
}
.breakdown .total dt, .breakdown .total dd { color: #fff; font-size: 20px; font-weight: 800; }
.breakdown .total small { opacity: .7; font-size: 12px; font-weight: 600; }

/* ---------------- Pedido y seguimiento ---------------- */
.status-pill {
  display: inline-block; background: var(--blue-soft); color: var(--blue);
  font-weight: 750; font-size: 13px; padding: 6px 14px; border-radius: var(--pill);
}
.timeline { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 8px; }
.timeline li {
  display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: var(--radius-sm);
  color: var(--muted); font-size: 15px;
}
.timeline li span {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: #eef2f9; color: var(--muted); font-weight: 750; font-size: 14px; flex-shrink: 0;
}
.timeline li.completed { color: var(--green); }
.timeline li.completed span { background: var(--green-soft); color: var(--green); }
.timeline li.current { background: var(--pink-soft); color: var(--pink-dark); font-weight: 700; }
.timeline li.current span { background: var(--pink); color: #fff; }
.receipt {
  background: linear-gradient(135deg, #fff6fb, #eef5ff); border: 1px dashed #ffb3d8;
}
.receipt .secret {
  display: block; font-family: 'Consolas', monospace; font-size: 20px; letter-spacing: .06em;
  color: var(--navy); word-break: break-all;
}

/* ---------------- Franjas de beneficios ---------------- */
.strip {
  margin: 34px 0 0; padding: 26px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), #234a86); color: #fff;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
}
.strip h2, .strip h3 { color: #fff; }
.strip p { color: rgba(255, 255, 255, .82); margin: 0; font-size: 15px; }
.strip .strip-item { display: flex; gap: 12px; align-items: flex-start; }
.strip .strip-item b {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: rgba(255, 255, 255, .16); flex-shrink: 0;
}
.howto { margin: 34px 0 0; }
.howto ol {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.howto li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.howto b {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--pink); color: #fff; margin-bottom: 10px;
}
.howto strong { display: block; color: var(--navy); }
.howto span { font-size: 14px; color: var(--muted); }
.benefits { display: grid; gap: 12px; margin: 0 0 20px; }
.benefit {
  display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 600; color: var(--navy); font-size: 15px;
}

/* ---------------- Pie ---------------- */
footer { background: var(--navy); color: #d7e2f2; margin-top: 60px; }
.footer-inner {
  max-width: 1140px; margin: auto; padding: 44px 22px 26px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px;
}
.footer-inner h3 { color: #fff; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.footer-inner p { margin: 0 0 6px; font-size: 15px; }
.footer-inner a { color: #fff; }
.footer-inner a:hover { color: #ff9ccd; }
.footer-brand strong { font-size: 20px; color: #fff; }
.footer-brand strong span { color: #ff5aa8; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14); padding: 16px 22px; text-align: center;
  font-size: 13.5px; color: rgba(255, 255, 255, .7);
}
.whatsapp-link {
  display: inline-block; margin-top: 10px; background: #25d366; color: #08351f !important;
  font-weight: 750; padding: 10px 20px; border-radius: var(--pill); text-decoration: none;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .workspace { grid-template-columns: 1fr; }
  .two-fields { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .top-inner { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 18px; }
  .top nav { justify-content: space-between; }
  .nav-link { flex: 1; text-align: center; padding: 10px 12px; }
  main { padding: 22px 16px 50px; }
  .card { padding: 20px; }
  .steps li { font-size: 13px; padding: 6px 14px 6px 6px; }
  .upload-zone { padding: 30px 16px; }
}
