/* Billetera de los Arroyos - Alta de Personas Jurídicas */
:root {
  --violet: #3b2fd0;
  --violet-d: #2b2196;
  --blue: #2a7de1;
  --turq: #00a0c6;
  --turq-l: #7fd0e3;
  --turq-xl: #def4f9;
  --gold: #e0b060;
  --ink: #1d2340;
  --muted: #6b7393;
  --line: #e1e6f1;
  --bg: #f3f6fc;
  --card: #ffffff;
  --ok: #1f9d6b;
  --warn: #c98a12;
  --err: #d64545;
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(43, 33, 150, .35), 0 4px 14px -6px rgba(29, 35, 64, .12);
  --grad: linear-gradient(125deg, #3b2fd0 0%, #3550dc 45%, #2a7de1 100%);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Poppins", "Inter", sans-serif; line-height: 1.2; margin: 0; }
a { color: var(--violet); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--grad);
  color: #fff;
  overflow: hidden;
  padding: 22px 0 150px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), rgba(255,255,255,.04) 70%);
  pointer-events: none;
}
.hero::before { width: 90px; height: 90px; left: 8%; top: 58%; }
.hero::after { width: 46px; height: 46px; right: 38%; top: 18%; }
.bubble { position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); pointer-events: none; }
.bubble.b1 { width: 22px; height: 22px; left: 46%; top: 70%; }
.bubble.b2 { width: 60px; height: 60px; right: 6%; top: 62%; background: rgba(255,255,255,.08); }
.bubble.b3 { width: 14px; height: 14px; left: 22%; top: 22%; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; z-index: 2; }
.topbar .logo img { height: 52px; width: auto; }
.topbar .pill {
  font-size: 13px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  color: #fff; text-decoration: none; white-space: nowrap;
}
.hero-grid {
  display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 30px;
  margin-top: 40px; position: relative; z-index: 2;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255,255,255,.14); padding: 6px 12px; border-radius: 999px;
}
.hero .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero h1 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 600; margin: 16px 0 12px; }
.hero h1 span { display: block; font-size: .55em; font-weight: 500; opacity: .92; margin-bottom: 6px; }
.hero h1 b { font-weight: 800; display: block; }
.hero p.lead { font-size: clamp(16px, 1.6vw, 18px); opacity: .9; max-width: 560px; margin: 0; }
.hero-phones { justify-self: center; filter: drop-shadow(0 30px 40px rgba(0,0,0,.25)); }
.hero-phones img { width: 220px; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero-steps { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; font-size: 14px; opacity: .92; }
.hero-steps span { display: inline-flex; align-items: center; gap: 8px; }
.hero-steps svg { width: 18px; height: 18px; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 120px; z-index: 1; }

/* ---------- LAYOUT ---------- */
.main { margin-top: -110px; position: relative; z-index: 3; padding-bottom: 60px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card { padding: 30px 34px 34px; }
.aside { position: sticky; top: 18px; display: grid; gap: 18px; }
.aside .card { padding: 22px; }

/* ---------- STEPPER ---------- */
.stepper { display: flex; gap: 6px; margin: 0 0 26px; padding: 0; list-style: none; counter-reset: s; }
.stepper li {
  flex: 1; position: relative; padding-top: 44px; text-align: center;
  font-size: 12.5px; color: var(--muted); font-weight: 500; cursor: default;
}
.stepper li::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: #fff; border: 2px solid var(--line); color: var(--muted); z-index: 1;
  transition: all .25s;
}
.stepper li::after {
  content: ""; position: absolute; top: 16px; left: calc(-50% + 20px); right: calc(50% + 20px);
  height: 2px; background: var(--line);
}
.stepper li:first-child::after { display: none; }
.stepper li.done::before { content: "✓"; background: var(--turq); border-color: var(--turq); color: #fff; }
.stepper li.done::after, .stepper li.active::after { background: var(--turq); }
.stepper li.active { color: var(--violet); font-weight: 700; }
.stepper li.active::before { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px -4px rgba(59,47,208,.6); }
.stepper li.done { cursor: pointer; }

.step { display: none; animation: fade .35s ease; }
.step.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.step-title { font-size: 23px; font-weight: 700; color: var(--violet-d); }
.step-sub { color: var(--muted); margin: 6px 0 22px; }

/* ---------- FORM ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.grid .full { grid-column: 1 / -1; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: 14px; }
.field .req { color: var(--err); margin-left: 2px; }
.field .help { font-size: 12.5px; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; border: 1.5px solid var(--line); background: #fbfcff;
  border-radius: 12px; padding: 12px 14px; font-size: 15px; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea.input { min-height: 90px; resize: vertical; }
.input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(42,125,225,.13); }
.field.invalid .input { border-color: var(--err); background: #fff7f7; }
.field .error-msg { display: none; color: var(--err); font-size: 13px; font-weight: 500; }
.field.invalid .error-msg { display: block; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7393' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

.notice {
  display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px;
  background: linear-gradient(120deg, #fff8e8, #fff3dc); border: 1px solid #f3d9a1; color: #6c4a07;
  font-size: 14px; margin: 4px 0 22px;
}
.notice svg { flex: 0 0 24px; width: 24px; height: 24px; color: var(--warn); }
.notice b { display: block; margin-bottom: 2px; color: #5a3d00; }
.notice.info { background: linear-gradient(120deg, #eef8fc, #e5f3fa); border-color: #bfe3ef; color: #1f4f61; }
.notice.info svg { color: var(--turq); }

.segmented { display: inline-flex; padding: 4px; background: #eef1f9; border-radius: 999px; gap: 4px; flex-wrap: wrap; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: block; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .2s; }
.segmented input:checked + span { background: #fff; color: var(--violet); box-shadow: 0 3px 10px -3px rgba(29,35,64,.25); }
.segmented input:focus-visible + span { outline: 2px solid var(--blue); }

/* Sucursal chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: flex; flex-direction: column; padding: 11px 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fbfcff; cursor: pointer; transition: all .2s; min-width: 130px;
}
.chip span small { color: var(--muted); font-size: 12px; }
.chip input:checked + span { border-color: var(--violet); background: #f1efff; box-shadow: 0 0 0 3px rgba(59,47,208,.12); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); }

/* Upload tiles */
.uploads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.drop {
  position: relative; border: 2px dashed #c8d2e8; border-radius: 16px; background: #fafbff;
  min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 18px 14px; cursor: pointer; transition: all .2s; overflow: hidden;
}
.drop:hover, .drop.drag { border-color: var(--blue); background: #f2f7ff; }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--turq-xl); color: var(--turq); margin-bottom: 10px; }
.drop .ico svg { width: 28px; height: 28px; }
.drop strong { font-size: 14.5px; }
.drop small { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.drop.has-file { border-style: solid; border-color: var(--turq); padding: 0; }
.drop .preview { position: absolute; inset: 0; background: #0b1033 center/cover no-repeat; display: none; }
.drop.has-file .preview { display: block; }
.drop .preview .bar {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; padding: 26px 12px 10px; font-size: 12.5px; text-align: left;
}
.drop .preview .bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop .preview.pdf { background: linear-gradient(135deg, #3b2fd0, #2a7de1); display: none; }
.drop.has-file .preview.pdf { display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 26px; }
.drop .preview.pdf::before { content: attr(data-type); }
.btn-x {
  border: 0; background: rgba(255,255,255,.95); color: var(--err); border-radius: 999px; padding: 5px 10px;
  font-size: 12px; font-weight: 700; cursor: pointer; flex: 0 0 auto; position: relative; z-index: 2;
}
.field.invalid .drop { border-color: var(--err); background: #fff7f7; }

/* Documentos */
.tipo-select-wrap { margin-bottom: 18px; }
.doc-list { display: grid; gap: 14px; margin-top: 8px; }
.doc {
  border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 18px; background: #fff;
  display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; transition: border-color .2s;
}
.doc.ok { border-color: #9fdcc4; background: #f6fcf9; }
.doc.invalid { border-color: var(--err); background: #fff7f7; }
.doc h4 { font-size: 15px; font-family: "Inter", sans-serif; font-weight: 600; }
.doc p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.doc .tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; text-transform: uppercase; letter-spacing: .03em; }
.tag.obl { background: #ffe9e9; color: #b43333; }
.tag.opc { background: #eef1f9; color: var(--muted); }
.doc .files { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.doc .error-msg { grid-column: 1 / -1; color: var(--err); font-size: 13px; display: none; }
.doc.invalid .error-msg { display: block; }
.file-pill {
  display: inline-flex; align-items: center; gap: 8px; background: #eef4ff; color: #23408a;
  border-radius: 999px; padding: 5px 6px 5px 12px; font-size: 13px; max-width: 100%;
}
.file-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.file-pill button { border: 0; background: #fff; color: var(--err); width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-weight: 700; line-height: 1; }
.btn-add {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--violet); color: var(--violet); background: #fff; border-radius: 999px;
  padding: 8px 14px; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.btn-add:hover { background: #f1efff; }
.btn-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.btn-add svg { width: 16px; height: 16px; }

/* Resumen (aside) */
.summary h3 { font-size: 17px; color: var(--violet-d); display: flex; align-items: center; gap: 10px; }
.summary h3 .dot { width: 30px; height: 30px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; flex: 0 0 30px; }
.summary h3 .dot svg { width: 17px; height: 17px; }
.summary .empty { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.summary .tipo-name { font-weight: 700; margin: 14px 0 4px; }
.summary .tipo-desc { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.summary h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 0 6px; font-family: "Inter", sans-serif; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 13.5px; align-items: start; }
.checklist li i { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid #c8d2e8; margin-top: 1px; display: grid; place-items: center; font-style: normal; font-size: 11px; color: #fff; }
.checklist li.ok i { background: var(--ok); border-color: var(--ok); }
.checklist li.ok i::before { content: "✓"; }
.checklist li small { color: var(--muted); }
.summary .actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; color: var(--violet); font-weight: 600; cursor: pointer; padding: 0; font-size: 13.5px; display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
.link-btn svg { width: 16px; height: 16px; }
.cert-note { font-size: 12px; color: var(--muted); background: #f6f8fc; border-radius: 10px; padding: 10px 12px; margin-top: 14px; }

.promo { overflow: hidden; padding: 0 !important; }
.promo img { width: 100%; height: 170px; object-fit: cover; }
.promo div { padding: 16px 20px 20px; }
.promo h4 { font-size: 16px; color: var(--violet-d); }
.promo p { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }

/* Formulario Word */
.fsec { border: 1.5px solid var(--line); border-radius: 16px; margin: 0 0 16px; overflow: hidden; }
.fsec > h4 { background: #f6f8fd; padding: 13px 18px; font-size: 15px; color: var(--violet-d); border-bottom: 1.5px solid var(--line); }
.fsec > .grid { padding: 18px; }
.sino { display: flex; gap: 8px; }
.sino label { position: relative; }
.sino input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sino span { display: inline-block; padding: 9px 20px; border-radius: 12px; border: 1.5px solid var(--line); background: #fbfcff; font-weight: 600; font-size: 14px; cursor: pointer; }
.sino input:checked + span { border-color: var(--violet); background: #f1efff; color: var(--violet); }
.sino input:focus-visible + span { outline: 2px solid var(--blue); }
.field.invalid .sino span { border-color: var(--err); }
.benef { border: 1.5px dashed #c8d2e8; border-radius: 14px; padding: 14px; margin: 0 18px 14px; position: relative; }
.benef .grid { gap: 12px; }
.benef-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 700; font-size: 14px; color: var(--violet-d); }
.download-box { display: flex; gap: 18px; align-items: center; padding: 20px; border-radius: 16px; background: var(--turq-xl); margin-bottom: 18px; flex-wrap: wrap; }
.download-box .doc-ico { width: 56px; height: 64px; border-radius: 10px; background: #2b579a; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; flex: 0 0 auto; box-shadow: 0 8px 18px -8px rgba(43,87,154,.8); }
.download-box div { flex: 1; min-width: 200px; }
.download-box p { margin: 4px 0 0; font-size: 14px; color: #1f4f61; }

/* Revisión */
.review { display: grid; gap: 14px; }
.review-block { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.review-block h4 { font-size: 14px; color: var(--violet-d); display: flex; justify-content: space-between; margin-bottom: 8px; }
.review-block dl { display: grid; grid-template-columns: 200px 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.review-block dt { color: var(--muted); }
.review-block dd { margin: 0; word-break: break-word; }
.check-line { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; margin-top: 18px; padding: 14px 16px; background: #f6f8fc; border-radius: 12px; }
.check-line input { width: 20px; height: 20px; accent-color: var(--violet); flex: 0 0 auto; margin-top: 1px; }
.check-line.invalid { outline: 1.5px solid var(--err); background: #fff7f7; }

/* Buttons */
.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1.5px solid var(--line); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; padding: 14px 26px; font-weight: 700; font-size: 15px; cursor: pointer;
  text-decoration: none; transition: transform .15s, box-shadow .2s, opacity .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 24px -10px rgba(59,47,208,.7); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 28px -10px rgba(59,47,208,.8); }
.btn-ghost { background: #eef1f9; color: var(--ink); }
.btn-turq { background: var(--turq); color: #fff; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

.progress { display: none; margin-top: 18px; }
.progress.show { display: block; }
.progress .track { height: 10px; border-radius: 999px; background: #e7ebf6; overflow: hidden; }
.progress .fill { height: 100%; width: 0; background: var(--grad); transition: width .2s; }
.progress small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }

.alert-err { display: none; background: #fff1f1; border: 1px solid #f3c2c2; color: #8f2222; padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-top: 16px; }
.alert-err.show { display: block; }
.alert-err ul { margin: 6px 0 0; padding-left: 18px; }

/* Éxito */
.success { text-align: center; padding: 40px 20px 30px; display: none; }
.success.show { display: block; animation: fade .5s ease; }
.success .ok-ico { width: 86px; height: 86px; border-radius: 50%; margin: 0 auto 18px; background: linear-gradient(135deg, #1fbf87, #00a0c6); display: grid; place-items: center; color: #fff; box-shadow: 0 16px 30px -12px rgba(0,160,198,.8); }
.success .ok-ico svg { width: 44px; height: 44px; }
.success h2 { font-size: 28px; color: var(--violet-d); }
.success p { color: var(--muted); max-width: 520px; margin: 10px auto; }
.success .code { display: inline-block; margin: 12px 0 20px; font-size: 22px; font-weight: 800; letter-spacing: .06em; padding: 10px 22px; border-radius: 14px; background: #f1efff; color: var(--violet); }

.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 26px 20px 40px; }
.footer img { height: 34px; margin: 0 auto 10px; filter: none; }
.footer .logo-bg { display: inline-block; background: var(--grad); padding: 10px 18px; border-radius: 14px; margin-bottom: 10px; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1020px) {
  .layout { grid-template-columns: 1fr; }
  .aside { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero { padding-bottom: 130px; }
  .hero-grid { grid-template-columns: 1fr; margin-top: 26px; }
  .hero-phones { display: none; }
  .topbar .logo img { height: 42px; }
  .topbar .pill { display: none; }
  .main { margin-top: -100px; }
  .form-card { padding: 22px 16px 24px; border-radius: 16px; }
  .wrap { padding: 0 12px; }
  .grid, .grid-4 { grid-template-columns: 1fr; }
  .grid-4 .small { grid-column: auto; }
  .uploads { grid-template-columns: 1fr 1fr; }
  .uploads .selfie-field { grid-column: 1 / -1; }
  .aside { grid-template-columns: 1fr; }
  .stepper li { font-size: 0; padding-top: 34px; }
  .stepper li.active { font-size: 11px; }
  .stepper li::before { width: 30px; height: 30px; font-size: 13px; }
  .stepper li::after { top: 14px; }
  .review-block dl { grid-template-columns: 1fr; gap: 0; }
  .review-block dd { margin-bottom: 8px; }
  .doc { grid-template-columns: 1fr; }
  .nav .btn { padding: 13px 18px; flex: 1; }
  .benef { margin: 0 10px 12px; }
  .fsec > .grid { padding: 14px; }
}
@media (min-width: 761px) {
  .grid-4 .small { grid-column: span 1; }
}
@media print {
  body { background: #fff; }
  .hero, .form-card, .promo, .footer, .summary .actions { display: none !important; }
  .main { margin: 0; }
  .layout { display: block; }
  .card { box-shadow: none; }
}
