:root {
  --bcp-blue: #002a8d;
  --bcp-blue-700: #1e3a8a;
  --bcp-orange: #ff6200;
  --bcp-orange-300: #ff8a3d;
  --bg: #f8fafc;
  --card: #ffffff;
  --muted: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 1.25rem;
  --shadow-card: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 8px 24px -6px rgba(255, 98, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.container { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 1rem; }
.text-orange { color: var(--bcp-orange); }
.hidden { display: none !important; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.header__brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.header__logo { height: 2rem; width: auto; }
.header__tagline {
  display: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  border-left: 1px solid var(--border);
  padding-left: 0.75rem;
}
@media (min-width: 640px) { .header__tagline { display: inline; } }
.header__cta {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bcp-blue);
  text-decoration: none;
  white-space: nowrap;
}
.header__cta:hover { color: var(--bcp-orange); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--bcp-orange); color: #fff; box-shadow: var(--shadow-glow); }
.btn--primary:hover { opacity: 0.95; }
.btn--outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.btn--outline:hover { background: rgba(255,255,255,0.1); }
.btn--ghost { background: transparent; color: var(--text-muted); }
.btn--ghost:hover { color: var(--text); background: var(--muted); }
.btn--block { width: 100%; }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(0,42,141,0.94) 0%, rgba(0,42,141,0.82) 55%, rgba(0,42,141,0.55) 100%), url('assets/hero-bodega.jpg');
  background-size: cover;
  background-position: center;
}
.hero__inner {
  position: relative;
  padding-top: 4rem;
  padding-bottom: 4rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) { .hero__inner { grid-template-columns: 1fr 1fr; padding-top: 6rem; padding-bottom: 6rem; } }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.hero__title { margin: 1.25rem 0 0; font-size: 2.25rem; line-height: 1.15; font-weight: 800; }
@media (min-width: 640px) { .hero__title { font-size: 3rem; } }
.hero__lead { margin-top: 1rem; font-size: 1.125rem; color: rgba(255,255,255,0.85); max-width: 32rem; }
.hero__actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__trust { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.85); }
.hero__trust span { display: inline-flex; align-items: center; gap: 0.375rem; }
.hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  padding: 1.5rem;
}
.stat svg { color: var(--bcp-orange); margin-bottom: 0.5rem; }
.stat__num { font-size: 1.5rem; font-weight: 800; }
.stat__label { font-size: 0.75rem; color: rgba(255,255,255,0.75); }

/* Sections */
.section { padding: 4rem 0; }
.section--alt { background: var(--muted); }
.section--muted { background: #f1f5f9; }
.section__header { text-align: center; max-width: 36rem; margin: 0 auto 2.5rem; }
.section__title { font-size: 1.75rem; font-weight: 800; margin: 0; }
@media (min-width: 640px) { .section__title { font-size: 2.25rem; } }
.section__lead { margin-top: 0.75rem; color: var(--text-muted); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  background: rgba(255, 98, 0, 0.12);
  color: var(--bcp-orange);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Cards */
.cards { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px); }
.card__icon {
  height: 2.75rem; width: 2.75rem;
  border-radius: 0.625rem;
  background: rgba(255, 98, 0, 0.12);
  color: var(--bcp-orange);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.card__title { font-size: 1.125rem; font-weight: 700; margin: 0; }
.card__text { margin-top: 0.5rem; font-size: 0.875rem; color: var(--text-muted); }

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 28rem;
  margin: 0 auto 2rem;
}
.stepper__item { display: flex; flex-direction: column; align-items: center; gap: 0.375rem; }
.stepper__num {
  width: 2rem; height: 2rem;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800;
  background: var(--muted); color: var(--text-muted);
  transition: background .2s, color .2s;
}
.stepper__item span { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.025em; color: var(--text-muted); }
.stepper__item--active .stepper__num { background: var(--bcp-blue); color: #fff; }
.stepper__item--active span { color: var(--bcp-blue); }
.stepper__item--done .stepper__num { background: var(--bcp-orange); color: #fff; }
.stepper__item--done span { color: var(--text-muted); }
.stepper__line { flex: 1; height: 2px; background: var(--border); margin: 0 0.75rem 1.25rem; transition: background .2s; }
.stepper__line--done { background: var(--bcp-orange); }

/* Form */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  max-width: 42rem;
  margin: 0 auto;
}
@media (min-width: 640px) { .form-card { padding: 2rem; } }
.form__grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .form__grid { grid-template-columns: repeat(2, 1fr); } }
.field { display: block; border: 1px solid var(--border); border-radius: 1rem; padding: 1rem; background: #fff; transition: border-color .15s, box-shadow .15s; }
.field:hover { border-color: #cbd5e1; }
.field:focus-within { border-color: var(--bcp-orange); box-shadow: 0 0 0 4px rgba(255, 98, 0, 0.12); }
.field--full { grid-column: 1 / -1; }
.field__label {
  display: flex; align-items: center; gap: 0.375rem;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  margin-top: 0.5rem;
  border: 0;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  outline: none;
  padding: 0;
  font-family: inherit;
}
.field textarea { resize: none; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0 center; padding-right: 1.25rem; cursor: pointer; }
.field__hint { display: block; margin-top: 0.375rem; font-size: 0.75rem; color: var(--text-muted); }
.field--error { border-color: #ef4444; }
.field--error:focus-within { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12); }

.radio-group { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.radio {
  flex: 1;
  cursor: pointer;
  border-radius: 0.875rem;
  border: 1px solid var(--border);
  background: var(--muted);
  padding: 0.625rem 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color .15s, background .15s, color .15s;
}
.radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio:has(input:checked) { border-color: var(--bcp-orange); background: rgba(255, 98, 0, 0.1); color: var(--bcp-orange); }

.notice {
  display: flex; align-items: flex-start; gap: 0.75rem;
  background: var(--muted);
  border-radius: 1rem;
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 1.25rem 0;
}
.notice svg { flex-shrink: 0; color: var(--bcp-orange); margin-top: 0.125rem; }
.notice p { margin: 0; }

/* Summary */
.summary { text-align: center; }
.summary__icon {
  height: 3.5rem; width: 3.5rem; border-radius: 9999px;
  background: rgba(255, 98, 0, 0.12); color: var(--bcp-orange);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.summary__title { font-size: 1.5rem; font-weight: 800; margin: 1rem 0 0; }
@media (min-width: 640px) { .summary__title { font-size: 1.875rem; } }
.summary__lead { color: var(--text-muted); max-width: 32rem; margin: 0.75rem auto 0; }
.summary__code {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1rem;
  border-radius: 9999px;
  background: var(--muted);
  padding: 0.5rem 1rem;
  font-size: 0.75rem; font-weight: 700; color: var(--text-muted);
}
.summary__code .mono { color: var(--text); font-size: 0.9rem; }
.summary__boxes { display: grid; gap: 1rem; text-align: left; margin-top: 1.5rem; }
@media (min-width: 640px) { .summary__boxes { grid-template-columns: 1fr 1fr; } }
.summary__box { border: 1px solid var(--border); border-radius: 1rem; padding: 1.25rem; background: var(--muted); }
.summary__box h4 { margin: 0 0 0.75rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.summary__box dl { margin: 0; }
.summary__box dl > div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.875rem; padding: 0.375rem 0; border-bottom: 1px solid var(--border); }
.summary__box dl > div:last-child { border-bottom: 0; }
.summary__box dt { color: var(--text-muted); flex-shrink: 0; }
.summary__box dd { font-weight: 700; color: var(--text); text-align: right; word-break: break-word; margin: 0; }
.summary__actions { margin-top: 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }

/* Contact cards */
.contact-cards { display: grid; gap: 1rem; max-width: 42rem; margin: 2rem auto 0; }
@media (min-width: 640px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
.contact-card {
  display: flex; align-items: center; gap: 0.875rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem;
}
.contact-card svg { color: var(--bcp-orange); flex-shrink: 0; }
.contact-card__label { font-size: 0.75rem; color: var(--text-muted); }
.contact-card__value { font-weight: 700; color: var(--text); }

/* Requirements */
.requirements { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 768px) { .requirements { grid-template-columns: 1fr 1fr; } }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.5rem 0; }
.checklist svg { flex-shrink: 0; color: var(--bcp-orange); margin-top: 0.125rem; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 2rem 0; text-align: center; font-size: 0.875rem; color: var(--text-muted); background: #fff; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,0.55); backdrop-filter: blur(4px); }
.modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 26rem;
  width: 100%;
  box-shadow: 0 20px 60px -20px rgba(15,23,42,0.25);
  text-align: center;
  animation: modalIn .25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.modal__icon { height: 3.5rem; width: 3.5rem; border-radius: 9999px; background: rgba(255, 98, 0, 0.12); color: var(--bcp-orange); display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.modal__title { font-size: 1.5rem; font-weight: 800; margin: 1rem 0 0; }
.modal__text { color: var(--text-muted); margin-top: 0.75rem; }
.modal__actions { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }

/* Toast */
.toast {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: 60;
  background: #0f172a;
  color: #fff;
  padding: 0.875rem 1.25rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 12px 30px -10px rgba(15,23,42,0.3);
  transition: transform .3s ease;
  max-width: calc(100% - 2rem);
  text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(248,250,252,0.85);
  backdrop-filter: blur(10px);
}
.loader.is-open { display: flex; }
.loader__rings { width: 8rem; height: 8rem; }
.loader__rings svg { width: 100%; height: 100%; animation: spin 2.4s linear infinite; }
.loader__rings circle:nth-child(1) { animation: dash 1.6s linear infinite; }
.loader__rings circle:nth-child(2) { animation: dash 1.2s linear infinite reverse; }
.loader__rings circle:nth-child(3) { animation: dash 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dash { to { stroke-dashoffset: -200; } }
.loader__text { margin-top: 1.5rem; font-size: 1.125rem; font-weight: 800; animation: pulse 1.4s ease-in-out infinite; }
.loader__sub { margin-top: 0.25rem; font-size: 0.875rem; color: var(--text-muted); }
@keyframes pulse { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }
