/**
 * Agendarte · Site público del comercio
 * Diseño profesional, mobile-first, accesible.
 */

/* Reset & base */
*,*::before,*::after { box-sizing: border-box; }
:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --border: #e6e8ec;
  --text: #1a1d24;
  --text-soft: #5b6271;
  --muted: #8a91a0;
  --primary: #6366f1;
  --primary-2: #4f46e5;
  --primary-soft: #eef0ff;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, .12);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1100px;
}
* { -webkit-font-smoothing: antialiased; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }

/* Layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
section { padding: 4.5rem 0; }
section.alt { background: var(--bg-soft); }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.25rem; max-width: var(--maxw); margin: 0 auto;
  gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: .65rem; font-weight: 700; color: var(--text);
  font-size: 1.05rem;
}
.brand__logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1rem;
}
.brand__logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.brand__sub { font-size: .8rem; color: var(--muted); font-weight: 500; }
.nav { display: none; gap: 1.4rem; }
.nav a { color: var(--text-soft); font-size: .92rem; }
.nav a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .65rem 1.1rem; border-radius: 10px;
  font-weight: 600; font-size: .9rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn--primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 6px 16px rgba(99,102,241,.32);
}
.btn--primary:hover { background: var(--primary-2); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--lg { padding: .85rem 1.4rem; font-size: 1rem; border-radius: 12px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.client-auth-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: .45rem .85rem;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.client-auth-btn--profile {
  border-color: var(--primary);
  color: var(--primary);
}
.client-auth-btn--profile:hover {
  background: var(--primary-soft);
}
.client-auth-panel {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}
.client-auth-panel[hidden] { display: none !important; }
.client-auth-panel__msg { font-size: .85rem; margin: .5rem 0 0; color: var(--muted); }
.client-auth-panel__msg.is-error { color: var(--danger); }
.client-auth-panel__msg.is-success { color: var(--success); }

/* Hero */
.hero {
  position: relative; padding: 4rem 0 5rem;
  background: linear-gradient(180deg, #f6f7ff 0%, #ffffff 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; right: -120px; top: -100px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(99,102,241,.18), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .8rem; background: var(--primary-soft); color: var(--primary-2);
  font-size: .78rem; font-weight: 600; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .04em;
}
.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 3rem); line-height: 1.1;
  margin: .8rem 0 .6rem; font-weight: 700; letter-spacing: -.02em;
}
.hero p.lead { font-size: 1.05rem; color: var(--text-soft); max-width: 520px; margin: 0 0 1.5rem; }

/* Pasos didácticos */
.steps-grid {
  display: grid; gap: 1rem; margin-top: 1.5rem;
  grid-template-columns: 1fr;
}
.step-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
}
.step-card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-2);
  font-weight: 700; font-size: .9rem; margin-bottom: .65rem;
}
.step-card h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.step-card p { margin: 0; color: var(--text-soft); font-size: .92rem; }

.about-highlights {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: grid; gap: .75rem;
}
.about-highlights li {
  display: flex; gap: .6rem; align-items: flex-start;
}
.about-highlights i { color: var(--success); font-size: 1.3rem; flex-shrink: 0; }
.about__media img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
}

.hero__actions { display: flex; gap: .65rem; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 1.5rem; margin-top: 1.8rem; flex-wrap: wrap; }
.stat__num { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.stat__lbl { font-size: .82rem; color: var(--muted); }

.hero__visual {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #c7d2fe 0%, #e0e7ff 50%, #fae8ff 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.hero__visual::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.18));
}
.hero__visual-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.hero__visual-initial {
  width: clamp(90px, 22%, 140px); aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 28%;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff; font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 800;
  backdrop-filter: blur(6px);
  text-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.hero__badge {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(255,255,255,.96); color: #0f172a;
  padding: .55rem .9rem;
  border-radius: 999px; font-size: .82rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: .4rem;
  box-shadow: var(--shadow);
}

/* Section heading */
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; color: var(--primary);
  text-transform: uppercase; letter-spacing: .08em;
}
.section-title {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 700; letter-spacing: -.01em;
  margin: .35rem 0 .6rem;
}
.section-sub { color: var(--text-soft); max-width: 620px; margin: 0 0 2.2rem; }

/* Servicios grid */
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.svc-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.3rem;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  overflow: hidden;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.svc-card__media {
  margin: -1.3rem -1.3rem 1rem;
  aspect-ratio: 16 / 10;
  background: var(--surface-2, #f3f4f6);
  overflow: hidden;
}
.svc-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.svc-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: .55rem; }
.svc-card__title { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; min-width: 0; }
.svc-card__name { font-size: 1.05rem; font-weight: 600; }
.svc-card__badge {
  display: inline-flex; align-items: center;
  padding: .18rem .55rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.2;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.svc-card__badge--top {
  color: var(--primary-2);
  background: var(--primary-soft);
  border-color: transparent;
}
.svc-card__price { font-weight: 700; color: var(--primary); flex-shrink: 0; }
.svc-card__meta { color: var(--muted); font-size: .85rem; display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.svc-card__meta i { margin-right: .25rem; }

/* Productos grid */
.prod-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
.prod-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.prod-card__media {
  aspect-ratio: 1 / 1;
  background: var(--surface-2, #f3f4f6);
  display: grid;
  place-items: center;
}
.prod-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.prod-card__placeholder {
  font-size: 2.4rem;
  color: var(--muted);
  opacity: .55;
}
.prod-card__body { padding: 1rem 1.15rem 1.2rem; display: grid; gap: .35rem; }
.prod-card__type {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary);
}
.prod-card__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.prod-card__desc {
  margin: 0;
  color: var(--text-soft);
  font-size: .88rem;
  line-height: 1.4;
}
.prod-card__price {
  margin-top: .35rem;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
}
.prod-card__footer {
  margin-top: .5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}
.prod-card__footer .prod-card__price { margin-top: 0; }
.btn--sm {
  padding: .45rem .75rem;
  font-size: .82rem;
  border-radius: 10px;
  gap: .35rem;
}
.btn.is-added {
  border-color: var(--success, #059669);
  color: var(--success, #059669);
}

/* Cart button in topbar */
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}
.cart-btn:hover { background: var(--border); }
.cart-btn i { font-size: 1.25rem; }
.cart-btn__count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

/* Cart lines / upsell */
.cart-empty {
  text-align: center;
  padding: 1.5rem 0;
  color: var(--text-soft);
  display: grid;
  gap: .75rem;
  justify-items: center;
}
.cart-empty i { font-size: 2rem; color: var(--muted); }
.cart-lines { display: grid; gap: .75rem; }
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: .75rem;
  align-items: center;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.cart-line__info {
  display: grid;
  gap: .15rem;
  min-width: 0;
}
.cart-line__info strong {
  font-size: .95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-line__info span { font-size: .8rem; color: var(--muted); }
.cart-line__qty {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.cart-line__qty-label { color: var(--muted); font-size: .85rem; }
.cart-line__total {
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  min-width: 4.5rem;
  text-align: right;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  font-size: .95rem;
  line-height: 1;
  padding: 0;
}
.qty-btn:hover { background: var(--border); }
.qty-btn--remove { color: #b91c1c; }
.cart-total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
}
.upsell-lead {
  margin: 1rem 0 .35rem;
  font-size: 1.15rem;
  font-weight: 600;
}
.upsell-grid {
  display: grid;
  gap: .65rem;
  margin-bottom: 1rem;
  max-height: 280px;
  overflow: auto;
}
.upsell-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.upsell-card__body {
  display: grid;
  gap: .2rem;
  min-width: 0;
}
.upsell-card__body strong {
  font-size: .95rem;
}
.upsell-card__price {
  font-weight: 700;
  color: var(--primary);
  font-size: .9rem;
}
.modal--cart { max-width: 480px; }

body[data-theme="dark"] .cart-btn { background: #1c2030; border-color: #2e3444; }
body[data-theme="dark"] .cart-btn:hover { background: #262b38; }
body[data-theme="dark"] .qty-btn { background: #1c2030; border-color: #2e3444; }
body[data-theme="dark"] .upsell-card { background: #161a23; }

@media (max-width: 520px) {
  .cart-line {
    grid-template-columns: 1fr;
    gap: .5rem;
  }
  .cart-line__total { text-align: left; }
}

/* About */
.about { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
.about__text p { color: var(--text-soft); }

/* Horarios */
.schedule { display: grid; grid-template-columns: 1fr; gap: .65rem; max-width: 540px; }
.sch-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.1rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.sch-row__day { font-weight: 600; }
.sch-row__time { color: var(--text-soft); font-variant-numeric: tabular-nums; }
.sch-row--closed { opacity: .55; }

/* Contacto / Mapa */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.3rem;
  display: flex; gap: 1rem; align-items: flex-start;
}
.contact-card i { font-size: 1.5rem; color: var(--primary); margin-top: 2px; }
.contact-card__label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.contact-card__value { font-weight: 500; word-break: break-word; }

/* Footer */
.footer {
  background: #0e1117; color: #d1d5db; padding: 3rem 0 1.5rem;
  text-align: center;
}
.footer a { color: #fff; }
.footer__links { display: flex; gap: 1rem; justify-content: center; margin-bottom: 1rem; flex-wrap: wrap; }
.footer__small { color: #6b7280; font-size: .82rem; }
.footer__legal { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #1f2530; color: #6b7280; font-size: .78rem; }

/* Modal de reserva */
.modal-bg {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .55);
  display: none; align-items: center; justify-content: center;
  z-index: 100; padding: 1rem;
  backdrop-filter: blur(4px);
}
.modal-bg.is-open { display: flex; }
.modal {
  background: var(--surface); border-radius: var(--radius-lg);
  width: 100%; max-width: 520px; max-height: 90vh; overflow: auto;
  box-shadow: var(--shadow-lg);
  animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal__header {
  padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.modal__header h3 { margin: 0; font-size: 1.1rem; }
.modal__close {
  background: var(--surface-2); border: 0; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; font-size: 1.2rem; line-height: 1;
  color: var(--text-soft);
}
.modal__close:hover { background: var(--border); }
.modal__body { padding: 1.4rem; }
.modal__foot {
  padding: 1rem 1.4rem; border-top: 1px solid var(--border);
  display: flex; gap: .65rem; justify-content: flex-end;
  background: var(--surface-2);
  position: sticky; bottom: 0;
}
.modal__foot[hidden] { display: none; }
.field { display: block; margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 500; color: var(--text-soft); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .85rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; background: var(--surface); color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.18);
}
.field .hint { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.field .hint--warn { color: #b45309; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }

/* Flatpickr: solo días abiertos del comercio */
.flatpickr-calendar {
  font-family: inherit;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
  border-radius: 12px;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: var(--muted);
  opacity: .4;
  cursor: not-allowed;
}
body[data-theme="dark"] .flatpickr-calendar {
  background: #161a23;
  border-color: #2e3444;
  color: #e5e7eb;
}
body[data-theme="dark"] .flatpickr-months .flatpickr-month,
body[data-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months,
body[data-theme="dark"] .flatpickr-weekday {
  color: #e5e7eb;
  fill: #e5e7eb;
}
body[data-theme="dark"] .flatpickr-day {
  color: #e5e7eb;
}
body[data-theme="dark"] .flatpickr-day.flatpickr-disabled,
body[data-theme="dark"] .flatpickr-day.flatpickr-disabled:hover {
  color: #6b7280;
}
body[data-theme="dark"] .flatpickr-day:hover {
  background: #262b38;
}

.alert {
  padding: .8rem 1rem; border-radius: var(--radius-sm);
  font-size: .9rem; margin-bottom: 1rem;
}
.alert--error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert--ok    { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert--info  { background: var(--primary-soft); color: var(--primary-2); border: 1px solid #c7d2fe; }

/* Loader */
.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid rgba(99,102,241,.25); border-top-color: var(--primary);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Theme switch */
.theme-toggle {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-soft);
}
.theme-toggle:hover { color: var(--text); }

/* Dark theme */
body[data-theme="dark"] {
  --bg: #0b0d12; --bg-soft: #11141b; --surface: #161a23; --surface-2: #1c2030;
  --border: #262b38; --text: #e5e7ef; --text-soft: #a4abba; --muted: #6b7280;
  --primary-soft: #1d1f3a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 8px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 48px rgba(0,0,0,.5);
}
body[data-theme="dark"] .topbar { background: rgba(11, 13, 18, .85); }
body[data-theme="dark"] .hero { background: linear-gradient(180deg, #11141b 0%, #0b0d12 100%); }
body[data-theme="dark"] .hero::before {
  background: radial-gradient(circle at 30% 30%, rgba(99,102,241,.25), transparent 70%);
}
body[data-theme="dark"] .hero__visual {
  background:
    radial-gradient(circle at 78% 18%, rgba(236,72,153,.28), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(99,102,241,.35), transparent 55%),
    linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #3b1d5e 100%);
  border: 1px solid rgba(99,102,241,.28);
}
body[data-theme="dark"] .hero__visual::after {
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35));
}
body[data-theme="dark"] .hero__visual-initial {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
}
body[data-theme="dark"] .hero__badge {
  background: rgba(22, 26, 35, .92); color: #e5e7ef;
  border: 1px solid #262b38;
}
body[data-theme="dark"] .svc-card__badge {
  color: var(--text-soft);
  background: var(--surface-2);
  border-color: var(--border);
}
body[data-theme="dark"] .svc-card__badge--top {
  color: #a5b4fc;
  background: var(--primary-soft);
  border-color: transparent;
}
body[data-theme="dark"] .hero__eyebrow { background: rgba(99,102,241,.16); color: #a5b4fc; }
body[data-theme="dark"] .btn--ghost { border-color: #2e3444; }
body[data-theme="dark"] .btn--ghost:hover { background: #1c2030; }
body[data-theme="dark"] .modal__foot { background: #11141b; }
body[data-theme="dark"] .alert--error { background: #3a1212; color: #fca5a5; border-color: #7f1d1d; }
body[data-theme="dark"] .alert--ok    { background: #0c2e23; color: #6ee7b7; border-color: #064e3b; }

/* Mobile menu (toggle) */
.menu-btn { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: .45rem .65rem; cursor: pointer; color: var(--text); }
.mobile-menu { display: none; border-top: 1px solid var(--border); background: var(--surface); }
.mobile-menu.is-open { display: block; }
.mobile-menu a { display: block; padding: .85rem 1.25rem; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: 0; }

/* Responsive */
@media (min-width: 640px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .field--row { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .hero__inner { grid-template-columns: 1.1fr .9fr; gap: 3.5rem; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 1.1fr .9fr; }
  section { padding: 5.5rem 0; }
  .hero { padding: 6rem 0 7rem; }
}
@media (max-width: 899px) {
  .menu-btn { display: inline-flex; }
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: #fff; padding: .5rem 1rem; z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
