:root {
  --orange: #2563eb;
  --orange-dark: #1d4ed8;
  --orange-soft: #eff6ff;
  --black: #0f172a;
  --black-2: #111827;
  --teal: #0ea5e9;
  --teal-dark: #0284c7;
  --bg: #f3f7fb;
  --surface: #ffffff;
  --surface-2: #f8fbff;
  --line: #dbe6f3;
  --text: #0f172a;
  --muted: #64748b;
  --shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
  --radius: 18px;
  --radius-sm: 12px;
  --page-width: 1320px;
  --bottom-safe: 96px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea {
  font: inherit;
}
button { cursor: pointer; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  background: #fff;
  color: var(--text);
}
textarea { resize: vertical; }
.hidden { display: none !important; }
.page { width: min(var(--page-width), calc(100% - 32px)); margin: 0 auto; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
}

.promo-bar {
  background: linear-gradient(90deg, #1d4ed8, #2563eb 52%, #0ea5e9);
  color: white;
}
.promo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.promo-badge {
  flex: 0 0 auto;
  background: white;
  color: var(--orange);
  font-weight: 900;
  line-height: .92;
  padding: 8px 10px;
  border-radius: 2px;
  transform: rotate(-4deg);
  font-size: 14px;
}
.promo-inner p {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}
.promo-timer {
  display: flex;
  gap: 18px;
  margin-left: auto;
}
.promo-timer div {
  text-align: center;
}
.promo-timer strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  letter-spacing: .06em;
}
.promo-timer span {
  font-size: 11px;
  opacity: .9;
}

.site-header {
  background: linear-gradient(90deg, #0f172a, #111827);
  color: white;
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav-row {
  display: grid;
  grid-template-columns: auto auto minmax(280px, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
}
.brand-lockup {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.brand-word { text-transform: uppercase; }
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  color: #f3f3f3;
  font-weight: 700;
  font-size: 15px;
}
.main-nav a:hover { color: white; }
.header-search input {
  background: #1e293b;
  border-color: #334155;
  color: white;
  padding: 12px 14px;
}
.header-search input::placeholder { color: #bcbcbc; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ghost-link {
  background: transparent;
  border: 0;
  color: white;
  font-weight: 700;
}
.cta-chip {
  background: var(--orange);
  color: white;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.public-app {
  padding: 20px 0 var(--bottom-safe);
}
.breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #737373;
  font-size: 14px;
  margin-bottom: 22px;
}
.catalog-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 28px;
}
.catalog-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
}
.catalog-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.hero-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.switch-pill, .sort-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
}
.sort-box select {
  border: 0;
  padding: 0;
  background: transparent;
  font-weight: 700;
}
.switch-indicator {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #ccc;
  position: relative;
}
.switch-indicator::after {
  content: "";
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
}
.switch-indicator.on { background: #787878; }
.switch-indicator.on::after { left: 21px; }

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}
.steps-strip {
  position: relative;
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.steps-line {
  position: absolute;
  left: 10px;
  right: 10px;
  top: calc(50% - 1px);
  height: 2px;
  background: #dbe6f3;
  z-index: 0;
}
.steps-line span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--orange);
  transition: width .25s ease;
}
.progress-dot {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  min-width: 120px;
  padding: 12px 16px;
  font-weight: 800;
  color: #666;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.progress-dot span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #e8f1ff;
}
.progress-dot.active,
.progress-dot.done {
  color: var(--text);
  border-color: rgba(37, 99, 235, 0.28);
}
.progress-dot.active span,
.progress-dot.done span {
  background: var(--orange);
  color: white;
}
.step-card,
.summary-card,
.payment-card,
.admin-card,
.login-card,
.admin-item,
.slot-item,
.reservation-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.step { display: none; }
.step.active { display: block; }
.step-card {
  padding: 22px;
}
.section-head {
  margin-bottom: 18px;
}
.section-head span {
  display: inline-block;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 6px;
}
.section-head h2 {
  margin: 0 0 8px;
  font-size: 27px;
}
.section-head p {
  margin: 0;
  color: var(--muted);
}
.group-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.group-tabs button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 800;
}
.group-tabs button.active {
  background: var(--black);
  color: white;
  border-color: var(--black);
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.service-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  padding: 0;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: #c8c8c8;
}
.service-card.selected {
  border-color: var(--orange);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.18);
}
.service-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #ddd;
}
.card-body { padding: 16px 16px 18px; }
.card-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: #dbeafe;
  color: #1d4ed8;
  margin-bottom: 10px;
}
.service-card h3 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -.03em;
}
.service-card p {
  margin: 0 0 12px;
  color: var(--muted);
  min-height: 42px;
}
.card-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #6a6a6a;
  margin-bottom: 12px;
}
.card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.price-block strong {
  color: var(--orange);
  font-size: 28px;
  letter-spacing: -.03em;
}
.price-block span {
  display: block;
  font-size: 12px;
  color: #8a8a8a;
}
.card-select {
  border: 0;
  background: var(--teal);
  color: white;
  font-weight: 800;
  border-radius: 10px;
  padding: 14px 16px;
  min-width: 140px;
}
.selected-mini {
  display: grid;
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
}
.selected-mini span { color: #727272; }
.date-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 18px;
  scrollbar-width: none;
}
.date-strip::-webkit-scrollbar { display: none; }
.date-btn {
  min-width: 82px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 13px 10px;
  display: grid;
  gap: 4px;
  text-align: center;
}
.date-btn span { text-transform: uppercase; font-size: 11px; color: #7a7a7a; }
.date-btn strong { font-size: 22px; }
.date-btn.selected {
  border-color: var(--orange);
  background: var(--orange-soft);
}
.small-block h3 {
  margin: 0 0 12px;
  font-size: 18px;
}
.time-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.time-btn {
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 14px 12px;
  font-weight: 800;
}
.time-btn.selected {
  background: var(--black);
  color: white;
  border-color: var(--black);
}
.contact-form {
  display: grid;
  gap: 16px;
}
.contact-form label span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.summary-panel { position: relative; }
.summary-sticky {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 18px;
}
.summary-cover {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.summary-cover img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
.summary-cover-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(17,17,17,.86);
  color: white;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.summary-card,
.payment-card {
  padding: 18px;
}
.summary-top h3,
.payment-head strong {
  margin: 4px 0 0;
  font-size: 22px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid #ececec;
  padding: 14px 0;
  color: #505050;
}
.summary-row strong {
  color: var(--text);
  text-align: right;
}
.summary-row.total strong {
  color: var(--orange);
  font-size: 24px;
}
.payment-head span {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--orange);
}
.payment-card p {
  margin: 10px 0 14px;
  color: var(--muted);
  line-height: 1.45;
}
.bank-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}
.bank-grid div {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #ededed;
}
.bank-grid span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #7a7a7a;
  margin-bottom: 6px;
  letter-spacing: .08em;
}
.bank-grid strong {
  display: block;
  line-height: 1.3;
}
.bank-grid .wide { grid-column: 1 / -1; }
.copy-btn,
.primary-btn,
.secondary-btn,
.danger-btn,
.text-btn {
  border-radius: 12px;
  border: 0;
  font-weight: 800;
}
.copy-btn {
  width: 100%;
  margin-top: 14px;
  background: #111;
  color: white;
  padding: 14px 16px;
}
.primary-btn {
  background: var(--teal);
  color: white;
  padding: 14px 18px;
}
.primary-btn:hover { background: var(--teal-dark); }
.primary-btn.full, .secondary-btn.full { width: 100%; }
.secondary-btn {
  background: white;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 14px 18px;
}
.secondary-btn.small { padding: 10px 12px; }
.danger-btn {
  background: #fee2e2;
  color: #991b1b;
  padding: 14px 18px;
}
.text-btn {
  background: transparent;
  color: var(--orange);
  padding: 0;
  text-align: left;
}
.sticky-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(0,0,0,.08);
}
.sticky-actions-inner {
  display: flex;
  gap: 12px;
  padding: 14px 0 14px;
}
.sticky-actions .secondary-btn { width: 140px; }
.sticky-actions .primary-btn { flex: 1; }
.empty {
  padding: 18px;
  border-radius: 12px;
  background: #f8fbff;
  border: 1px dashed #d2d2d2;
  color: #747474;
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .22);
  outline-offset: 2px;
}
.service-card:focus-visible, .date-btn:focus-visible, .time-btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .28);
  outline-offset: 2px;
}
.primary-btn:disabled {
  background: #94a3b8;
}

/* Admin */
.admin-app {
  min-height: 100vh;
  background: linear-gradient(180deg, #161616, #262626 240px, var(--bg) 240px, var(--bg));
  padding: 28px 0;
}
.admin-login {
  min-height: calc(100vh - 56px);
  display: grid;
  place-items: center;
  padding: 20px;
}
.login-card {
  width: min(520px, 100%);
  padding: 28px;
}
.login-card h1 { margin: 8px 0 10px; font-size: 34px; }
.login-card p { color: var(--muted); line-height: 1.5; }
.login-card form { display: grid; gap: 16px; margin-top: 20px; }
.login-card label span,
.admin-card label {
  font-size: 13px;
  font-weight: 700;
  display: block;
  color: #555;
}
.admin-dashboard {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto;
}
.admin-sidebar {
  background: #111;
  color: white;
  border-radius: 22px;
  padding: 24px 18px;
  display: grid;
  gap: 8px;
  align-content: start;
  position: sticky;
  top: 22px;
}
.admin-logo {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 8px 12px;
  margin-bottom: 6px;
}
.admin-logo span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--orange);
  border-radius: 12px;
  font-weight: 900;
}
.admin-logo small { color: #adadad; }
.admin-tab {
  width: 100%;
  border: 0;
  text-align: left;
  background: transparent;
  color: #d2d2d2;
  border-radius: 12px;
  padding: 13px 14px;
  font-weight: 800;
}
.admin-tab.active { background: white; color: #111; }
.admin-tab.light { background: rgba(255,255,255,.08); color: white; }
.admin-tab.danger { color: #ffb1a3; }
.admin-content {
  display: grid;
  gap: 18px;
}
.admin-mobile-head {
  display: none;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.admin-tabbar {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.admin-tabbar .admin-tab {
  background: white;
  color: #444;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.admin-tabbar .admin-tab.active { background: var(--orange); color: white; border-color: var(--orange); }
.admin-page { display: none; }
.admin-page.active { display: block; }
.admin-head { margin-bottom: 14px; }
.admin-head span {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--orange);
  font-weight: 800;
  margin-bottom: 4px;
}
.admin-head h1 { margin: 0; font-size: 32px; }
.admin-card {
  padding: 18px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.grid-2 .wide, .grid-4 .wide { grid-column: 1 / -1; }
.admin-card > button { align-self: end; justify-self: start; }
.toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 14px;
}
.toolbar.left { justify-content: flex-start; }
.admin-list, .reservation-list {
  display: grid;
  gap: 14px;
}
.admin-item,
.slot-item,
.reservation-item {
  padding: 16px;
}
.admin-item-head,
.slot-item,
.reservation-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}
.admin-item-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.admin-item-grid .wide { grid-column: 1 / -1; }
.mini-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mini-btn {
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 800;
}
.mini-btn.danger {
  color: #991b1b;
  border-color: #fecaca;
  background: #fff1f2;
}
.slot-item small,
.reservation-item small { display: block; color: var(--muted); margin-top: 6px; }
.reservation-status {
  display: inline-flex;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.reservation-status.pendiente { background: #fff1cc; color: #7b6000; }
.reservation-status.confirmada { background: #dff3df; color: #145c1f; }
.reservation-status.cancelada { background: #fee2e2; color: #991b1b; }
.backup-card {
  display: grid;
  gap: 16px;
}
.toast {
  position: fixed;
  right: 18px;
  bottom: 104px;
  background: #111;
  color: white;
  padding: 14px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 60;
  max-width: 320px;
}

@media (max-width: 1150px) {
  .nav-row {
    grid-template-columns: auto 1fr auto;
  }
  .main-nav { display: none; }
  .content-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .summary-sticky { position: static; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-dashboard {
    grid-template-columns: 1fr;
  }
  .admin-sidebar { display: none; }
  .admin-mobile-head, .admin-tabbar { display: flex; }
}

@media (max-width: 800px) {
  :root { --bottom-safe: 92px; }
  .page { width: min(var(--page-width), calc(100% - 20px)); }
  .promo-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
  }
  .promo-timer { grid-column: 1 / -1; justify-content: flex-end; gap: 14px; }
  .promo-timer strong { font-size: 22px; }
  .nav-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .header-actions { justify-content: space-between; }
  .catalog-hero {
    flex-direction: column;
    align-items: start;
  }
  .progress-dot {
    min-width: 0;
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
    font-size: 13px;
  }
  .progress-dot span { width: 24px; height: 24px; }
  .course-grid,
  .time-list,
  .grid-2,
  .grid-4,
  .admin-item-grid {
    grid-template-columns: 1fr;
  }
  .service-card h3 { font-size: 24px; }
  .card-price-row { flex-direction: column; align-items: start; }
  .card-select { width: 100%; }
  .bank-grid { grid-template-columns: 1fr; }
  .sticky-actions .secondary-btn { width: 110px; }
  .admin-head h1 { font-size: 26px; }
  .admin-item-head,
  .slot-item,
  .reservation-item {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand-lockup { font-size: 22px; }
  .promo-badge { font-size: 12px; }
  .promo-inner p { font-size: 13px; }
  .catalog-hero h1 { font-size: 28px; }
  .section-head h2 { font-size: 23px; }
  .step-card, .summary-card, .payment-card, .login-card, .admin-card, .admin-item, .slot-item, .reservation-item {
    padding: 16px;
    border-radius: 16px;
  }
  .progress-dot { padding: 10px 8px; gap: 6px; font-size: 12px; }
  .progress-dot span { width: 22px; height: 22px; }
  .steps-strip { gap: 8px; }
  .service-card p { min-height: 0; }
  .summary-cover img { aspect-ratio: 16 / 10; }
  .sticky-actions-inner { padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); }
}
