/* ============================================================
   FORM
   ============================================================ */
.form-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px,5vw,72px); align-items: stretch; }
.form-aside { display: flex; flex-direction: column; }
.form-aside .lede { margin-top: 18px; }
.form-perks { list-style: none; padding: 0; margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.form-perks li { display: flex; gap: 13px; align-items: flex-start; }
.form-perks .ck { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--grad-cta); color: #fff; }
.form-perks .ck svg { width: 14px; height: 14px; }
.form-perks b { font-family: var(--font-display); font-size: 15px; display: block; }
.form-perks span { font-size: 13.5px; color: var(--ink-3); }
.form-aside .assurance { margin-top: auto; padding-top: 28px; font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 9px; }

.form-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: clamp(26px,3.5vw,40px); box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; position: relative; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13.5px; font-weight: 600; font-family: var(--font-display); margin-bottom: 7px; color: var(--ink-2); }
.field .req { color: #e0564f; }
.field input, .field select, .field textarea {
  width: 100%; height: 50px; padding: 0 15px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1.5px solid var(--border); outline: none;
  font-size: 15px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { height: auto; padding: 13px 15px; resize: vertical; min-height: 92px; line-height: 1.5; }
#rfc { text-transform: uppercase; }
.form-consent { font-size: 12.5px; text-align: center; margin-top: 14px; color: var(--ink-3); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); background: var(--surface); }
.field.invalid input, .field.invalid select { border-color: #e0564f; }
.field .err { font-size: 12px; color: #e0564f; margin-top: 5px; height: 0; overflow: hidden; transition: height .2s; }
.field.invalid .err { height: 16px; }
.field.valid input { border-color: var(--teal); }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7a99' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }

/* dynamic service selector */
.svc-select { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.svc-opt { position: relative; }
.svc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.svc-opt label {
  display: flex; align-items: center; gap: 10px; height: auto; padding: 13px 14px; margin: 0;
  border-radius: var(--r-sm); border: 1.5px solid var(--border); background: var(--surface-2);
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all .2s; color: var(--ink);
}
.svc-opt .box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border-strong); flex: none; display: grid; place-items: center; transition: all .2s; }
.svc-opt .box svg { width: 12px; height: 12px; color: #fff; opacity: 0; transform: scale(.5); transition: all .2s; }
.svc-opt input:checked + label { border-color: var(--accent); background: var(--accent-soft); }
.svc-opt input:checked + label .box { background: var(--grad-cta); border-color: transparent; }
.svc-opt input:checked + label .box svg { opacity: 1; transform: none; }
.svc-opt input:focus-visible + label { box-shadow: 0 0 0 3px var(--ring); }

.dyn { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.2,.8,.2,1), opacity .35s, margin .35s; }
.dyn.show { max-height: 320px; opacity: 1; }
.form-hint { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: var(--r-sm); background: var(--accent-soft); font-size: 13px; color: var(--ink-2); margin-bottom: 18px; }
.form-hint svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 1px; }

.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; animation: heroUp .6s both; }
.form-success .ring { width: 76px; height: 76px; border-radius: 50%; background: var(--grad-cta); display: grid; place-items: center; margin: 0 auto 22px; box-shadow: var(--shadow-glow); }
.form-success .ring svg { width: 34px; height: 34px; color: #fff; }
.form-success h3 { margin-bottom: 10px; }

.form-error { display: none; text-align: center; padding: 30px 10px; }
.form-error.show { display: block; animation: heroUp .6s both; }
.form-error .ring { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 22px; }
.form-error .ring.ring-error { background: rgba(245,93,93,.16); }
.form-error .ring svg { width: 34px; height: 34px; color: #d63a3a; }
[data-theme="dark"] .form-error .ring svg { color: #ff8a8a; }
.form-error h3 { margin-bottom: 10px; }


/* ============================================================
   MAPA / UBICACIÓN
   ============================================================ */
.loc-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.loc-map { position: relative; min-height: 420px; background: var(--surface-2); overflow: hidden; }
.loc-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.loc-card { background: var(--surface); padding: clamp(30px,4vw,46px); display: flex; flex-direction: column; }
.loc-card h3 { margin-bottom: 6px; }
.loc-rows { display: flex; flex-direction: column; gap: 20px; margin: 26px 0; }
.loc-row { display: flex; gap: 14px; align-items: flex-start; }
.loc-row .ic { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.loc-row .ic svg { width: 19px; height: 19px; }
.loc-row b { font-family: var(--font-display); font-size: 15px; display: block; margin-bottom: 3px; }
.loc-row span { font-size: 14px; color: var(--ink-2); }
.loc-hours { display: flex; flex-direction: column; gap: 4px; }
.loc-hours small { font-size: 13.5px; color: var(--ink-2); display: flex; justify-content: space-between; max-width: 220px; }
.loc-card .btn { margin-top: auto; }

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final { position: relative; }
.cta-box {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: var(--grad-ink); padding: clamp(48px,7vw,96px) clamp(28px,5vw,72px);
  text-align: center; box-shadow: var(--shadow-lg);
}
.cta-box::before { content:""; position:absolute; inset:0; background: var(--grad-mesh); opacity:.9; }
.cta-box::after { content:""; position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px); background-size: 54px 54px; mask-image: radial-gradient(70% 70% at 50% 40%,#000,transparent 75%); -webkit-mask-image: radial-gradient(70% 70% at 50% 40%,#000,transparent 75%); }
.cta-box > * { position: relative; z-index: 1; }
.cta-box .pill { background: rgba(255,255,255,.12); color: #cfe0ff; }
.cta-box h2 { color: #fff; max-width: 720px; margin: 20px auto 0; }
.cta-box p { color: #b9c8e8; max-width: 540px; margin: 18px auto 0; font-size: 1.1rem; }
.cta-box .hero-cta { justify-content: center; margin-top: 36px; }
.cta-box .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.cta-box .btn-ghost:hover { background: rgba(255,255,255,.16); color:#fff; }
.cta-sub { color: #8ea1c9 !important; font-size: 13.5px !important; margin-top: 20px !important; }

#ubicacion, .cta-final { padding-top: 0; }
#ubicacion .eyebrow { justify-content: center; }
.form-aside > h2, .cta-box h2 { margin-top: 16px; }
