:root {
  --orange: #cf5a1a;
  --orange-dark: #b34c14;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --bg: #f5f5f7;
  --card: #ffffff;
  --link: #0066cc;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 28px;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
  line-height: 0;
}
.brand-logo {
  height: 34px;
  width: auto;
  display: block;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}
.site-nav {
  display: flex;
  gap: 2px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: center;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 400;
  padding: 6px 11px;
  border-radius: 980px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.is-active {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.05);
  font-weight: 500;
}

/* Una sección visible a la vez */
#pages { min-height: calc(100vh - 140px); }
.page-view {
  display: none;
  animation: pageIn 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.page-view.is-active { display: block; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.page-pad { min-height: calc(100vh - 140px); }
.home-shortcuts {
  padding: 48px 24px 64px;
  background: #fff;
}
.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.shortcut-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  border: none;
  border-radius: 18px;
  padding: 22px 20px 20px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.shortcut-card:hover {
  transform: scale(1.015);
  background: #efeff2;
}
.shortcut-featured {
  background: #f5f5f7;
  box-shadow: inset 0 0 0 1px rgba(207, 90, 26, 0.22);
}
.shortcut-featured:hover {
  background: #f0eeec;
}
.shortcut-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--orange);
  margin-bottom: 6px;
  text-transform: none;
}
.shortcut-card strong {
  display: block;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin-bottom: 6px;
  line-height: 1.15;
}
.shortcut-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  font-weight: 400;
}
.catalog-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.cat-nav {
  display: flex;
  gap: 6px;
  flex: 1;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}
.cat-nav.catalog-cats {
  flex: none;
  margin-top: 16px;
  margin-bottom: 8px;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-pill {
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
  padding: 7px 14px;
  border-radius: 980px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}
.cat-pill:hover { background: rgba(0, 0, 0, 0.08); }
.cat-pill.active {
  background: var(--ink);
  color: #fff;
}
.cart-btn {
  flex-shrink: 0;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 980px;
  font-weight: 500;
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cart-btn:hover { background: #000; }
.cart-badge {
  background: rgba(255,255,255,0.22);
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 12px;
}

.hero {
  min-height: min(82vh, 760px);
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.42) 55%, rgba(0, 0, 0, 0.55) 100%),
    url("/assets/hero-store.jpg") center / cover no-repeat;
  color: #fff;
  padding: 72px 28px 80px;
}
.hero-inner {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-eyebrow {
  margin: 0 0 12px;
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 17px;
  font-weight: 600;
  opacity: 0.92;
}
.hero h1 {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(40px, 7.5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.hero-sub {
  margin: 16px auto 28px;
  max-width: 460px;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  opacity: 0.88;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: center;
  align-items: center;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 980px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.hero-cta:hover { opacity: 0.92; transform: scale(1.02); }
.hero-link {
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  opacity: 0.92;
}
.hero-link::after { content: " ›"; }
.hero-link:hover { text-decoration: underline; opacity: 1; }

/* —— Secciones corporativas —— */
.info-section {
  padding: 64px 24px 80px;
  background: #fff;
}
.info-section.alt { background: var(--bg); }
.info-wrap { max-width: 980px; margin: 0 auto; }
.section-kicker {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--orange);
}
.section-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 4.5vw, 40px);
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 640px;
  line-height: 1.1;
}
.section-lead {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  max-width: 680px;
}
.about-points {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  max-width: 720px;
}
.about-points li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 40px;
}
.cap-item {
  background: var(--bg);
  border: none;
  border-radius: 14px;
  padding: 16px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.group-card {
  background: var(--bg);
  border: none;
  border-radius: 18px;
  padding: 22px 20px 20px;
}
.group-card .region {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--orange);
  margin-bottom: 6px;
}
.group-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.group-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.svc-card {
  background: var(--bg);
  border: none;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
}
.svc-card summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.015em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.svc-card summary::-webkit-details-marker { display: none; }
.svc-card summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
  font-size: 20px;
}
.svc-card[open] summary::after { content: "–"; }
.svc-card ul {
  margin: 0;
  padding: 0 20px 16px;
  list-style: none;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.svc-card li {
  padding: 9px 0;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  line-height: 1.4;
}
.svc-card li:last-child { border-bottom: none; }
.equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.equip-card {
  background: var(--bg);
  border: none;
  border-radius: 14px;
  padding: 16px 15px;
}
.equip-card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}
.equip-card span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}
.table-scroll {
  overflow-x: auto;
  border: none;
  border-radius: 16px;
  background: var(--bg);
}
.exp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 640px;
}
.exp-table th {
  text-align: left;
  padding: 14px 18px;
  font-size: 12px;
  text-transform: none;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: transparent;
}
.exp-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  vertical-align: top;
  line-height: 1.4;
}
.exp-table tr:last-child td { border-bottom: none; }
.contact-section { background: #161a20; color: #fff; }
.contact-section .section-kicker { color: #f0a06a; }
.contact-section .section-lead { color: rgba(255,255,255,0.72); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.contact-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.contact-links a:hover { color: #f0a06a; }
.web-ref { font-size: 13px; color: rgba(255,255,255,0.55); }
.web-ref a { color: #fff; }
.hours-title {
  margin: 0 0 14px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hours-list li span:last-child { color: rgba(255,255,255,0.7); }
.foot-legal {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.catalog-head { margin-bottom: 8px; }
.catalog-head .section-kicker { margin-bottom: 6px; }
.catalog-head h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.catalog-head .subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 17px;
  letter-spacing: -0.01em;
}
.subtitle { color: var(--muted); margin: 6px 0 0; font-size: 14px; }

.cat-section { margin-top: 36px; scroll-margin-top: 80px; }
.cat-section h3 {
  margin: 0 0 16px;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--card);
  border: none;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: scale(1.015);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.product-media { aspect-ratio: 1; background: #f0f0f2; overflow: hidden; position: relative; }
.product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-media.placeholder {
  background: linear-gradient(145deg, #f5f5f7, #e8e8ed);
}
.media-dots {
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: center; gap: 4px;
  pointer-events: none;
  z-index: 1;
}
.media-dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.media-dots span.on { background: #fff; }
.media-nav {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 22px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(18, 21, 26, 0.28));
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0.55;
  transition: opacity 0.15s ease, background 0.15s ease;
  z-index: 2;
}
.media-nav span {
  font-size: 16px;
  font-weight: 300;
  line-height: 1;
  transform: translateX(1px);
}
.product-media:hover .media-nav {
  opacity: 1;
  background: linear-gradient(90deg, transparent, rgba(18, 21, 26, 0.42));
}
.media-nav.next { right: 0; left: auto; }
.product-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .cat {
  font-size: 12px;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--orange);
  font-weight: 600;
}
.product-card h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.product-card .desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .price {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: auto;
  padding-top: 8px;
}
.product-card .stock { font-size: 12px; color: var(--muted); }
.product-card button {
  margin-top: 10px;
  width: 100%;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 11px;
  border-radius: 980px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}
.product-card button:hover { background: #000; }
.product-card button:disabled { background: #ccc; cursor: not-allowed; }

.info-section.alt .svc-card,
.info-section.alt .equip-card,
.info-section.alt .cap-item,
.info-section.alt .group-card,
.info-section.alt .table-scroll {
  background: #fff;
}
.store-foot {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 32px 24px 40px;
  max-width: 980px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
}
.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 520px;
}
.foot-brand strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.foot-brand span {
  line-height: 1.45;
}
.foot-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 4px;
  font-size: 13px;
}
.foot-contact a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.foot-contact a:hover { color: var(--orange); }

.cart-drawer {
  position: fixed; top: 0; right: 0; width: 390px; max-width: 94vw; height: 100vh;
  background: #fff; box-shadow: -8px 0 32px rgba(0,0,0,0.12);
  transform: translateX(100%); transition: transform 0.25s ease;
  z-index: 60; display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.icon-x { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--muted); }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cart-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line); gap: 10px;
}
.cart-item .name { font-size: 14px; font-weight: 600; }
.qty-controls { display: flex; align-items: center; gap: 8px; }
.qty-controls button {
  width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line);
  background: #fff; cursor: pointer;
}
.cart-footer { padding: 18px 20px; border-top: 1px solid var(--line); }
.total-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.checkout {
  width: 100%; background: var(--orange); color: #fff; border: none;
  padding: 13px; border-radius: 10px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.checkout:hover { background: var(--orange-dark); }
.checkout:disabled { background: #ccc; cursor: not-allowed; }
.empty-cart { color: var(--muted); text-align: center; padding: 40px 10px; font-size: 14px; }

.overlay {
  position: fixed; inset: 0; background: rgba(18,21,26,0.45);
  z-index: 55; display: none;
}
.overlay.open { display: block; }
.overlay.center {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.overlay.center.open { display: flex; }

.modal {
  background: #fff;
  border-radius: 16px;
  width: min(480px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 26px 24px 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.modal h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.02em; }
.modal .step-hint { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 9px; font: inherit; font-size: 14px;
}
.pay-options { display: grid; gap: 8px; margin: 8px 0 14px; }
.pay-option {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px;
  cursor: pointer; transition: border-color 0.15s;
}
.pay-option:has(input:checked) {
  border-color: var(--orange);
  background: #fff8f3;
}
.pay-option input { margin-top: 3px; }
.pay-option strong { display: block; font-size: 14px; }
.pay-option small { color: var(--muted); font-size: 12px; }
.transfer-box {
  background: #f7f6f3;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.demo-banner {
  background: #fff8eb;
  border: 1px solid #f0d9a8;
  color: #8a5a12;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 12.5px;
  margin-bottom: 12px;
  line-height: 1.4;
}
.modal-actions { display: flex; gap: 10px; margin-top: 8px; }
.btn {
  flex: 1; padding: 11px; border-radius: 9px; font-weight: 700;
  font-family: inherit; cursor: pointer; border: 1px solid var(--line); background: #fff;
}
.btn.primary { flex: 2; background: var(--orange); color: #fff; border-color: transparent; }
.btn.primary:hover { background: var(--orange-dark); }
.error-msg {
  background: #fdf0f0; color: #b42318; padding: 9px 12px;
  border-radius: 8px; font-size: 13px; margin-bottom: 12px;
}
.confirmation { text-align: center; padding: 20px 8px; }
.confirmation .checkmark { font-size: 42px; color: #027a48; margin-bottom: 10px; }
.empty-catalog {
  text-align: center; color: var(--muted); padding: 48px 20px;
}

@media (max-width: 720px) {
  .topbar { padding: 10px 14px; flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; justify-content: flex-start; }
  .hero { min-height: 70vh; padding: 56px 20px 64px; }
  .hero-sub { font-size: 17px; }
  .hero-eyebrow { font-size: 15px; }
  .catalog-page { padding: 36px 16px 56px; }
  .info-section { padding: 40px 16px 56px; }
  .page-pad { min-height: auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .group-grid, .svc-grid { grid-template-columns: 1fr; }
}
