:root {
  color-scheme: light;
  --font-ui: "Poppins", "Aptos", "Segoe UI", Arial, Helvetica, sans-serif;
  --ink: oklch(24% 0.025 205);
  --muted: oklch(49% 0.024 205);
  --soft: oklch(96% 0.022 195);
  --paper: oklch(98.5% 0.012 195);
  --surface: oklch(99.2% 0.006 195);
  --surface-strong: oklch(100% 0.004 195);
  --line: oklch(89% 0.026 195);
  --brand: #116767;
  --brand-strong: #116767;
  --brand-2: #2CB6BB;
  --brand-3: #EAF9F9;
  --brand-4: #BCEDEE;
  --gold: oklch(67% 0.105 78);
  --shadow: 0 22px 58px oklch(37% 0.08 198 / 0.13);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, oklch(96% 0.024 190 / 0.88), oklch(99% 0.006 195 / 0.94) 520px),
    linear-gradient(120deg, oklch(97% 0.02 195 / 0.88), transparent 42%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  font-kerning: normal;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, oklch(58% 0.09 195 / 0.045) 1px, transparent 1px),
    linear-gradient(180deg, oklch(58% 0.09 195 / 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, black 0, transparent 540px);
}

a { color: inherit; }

.topbar {
  position: sticky;
  top: 10px;
  z-index: 20;
  width: min(1180px, calc(100% - 32px));
  min-height: 66px;
  margin: 10px auto 0;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid oklch(85% 0.033 195 / 0.76);
  border-radius: 8px;
  background: oklch(99% 0.008 195 / 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 34px oklch(38% 0.07 198 / 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 44px;
  object-fit: contain;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 15px 23px 18px 9px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 72% 20%, #7ce4e4, transparent 38%), linear-gradient(135deg, var(--brand-2), var(--brand));
  color: var(--surface-strong);
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  box-shadow: 0 12px 28px oklch(45% 0.11 198 / 0.22);
}

.brand-copy strong {
  display: block;
  font-size: 17px;
  line-height: 1;
  font-weight: 700;
  color: var(--brand);
}

.brand-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: #28454a;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

nav a:hover {
  background: var(--soft);
  color: var(--brand);
}

nav a:focus-visible,
.button:focus-visible,
.chip:focus-visible,
.rail-item:focus-visible,
input[type="search"]:focus-visible {
  outline: 3px solid oklch(77% 0.12 190 / 0.45);
  outline-offset: 2px;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: auto;
  display: block;
  padding: 38px 0 22px;
  text-align: center;
}

.hero-copy {
  max-width: 1180px;
  margin: 0 auto;
}

.route {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid oklch(70% 0.08 190 / 0.32);
  border-radius: 999px;
  background: oklch(99% 0.008 195 / 0.78);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}

h1 {
  max-width: none;
  margin: 0 0 12px;
  font-size: clamp(2.25rem, 4vw, 3.45rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-copy p {
  max-width: none;
  margin: 0 auto;
  color: oklch(42% 0.034 205);
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 400;
  white-space: nowrap;
}

.reading-conditions {
  margin-top: 8px !important;
  color: var(--muted) !important;
  font-size: 0.78rem !important;
  line-height: 1.35 !important;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.button.primary {
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--surface-strong);
  box-shadow: 0 14px 28px oklch(48% 0.11 195 / 0.19);
}

.button.secondary:hover,
.button.note-button:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid oklch(84% 0.035 195 / 0.78);
  border-radius: 8px;
  background:
    linear-gradient(180deg, oklch(99.5% 0.004 195 / 0.94), oklch(97% 0.016 195 / 0.94));
  box-shadow: var(--shadow);
}

.panel-topline {
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--gold));
}

.hero-panel h2,
.commercial-note h2,
.empty-state h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 700;
}

.hero-panel p {
  margin: 14px 0 24px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.62;
  font-weight: 400;
}

.panel-checks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.panel-checks li {
  position: relative;
  padding: 12px 12px 12px 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: oklch(98.6% 0.012 195);
  color: oklch(38% 0.035 205);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.52;
}

.panel-checks li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-2);
}

.controls {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid oklch(84% 0.032 195 / 0.8);
  border-radius: 8px;
  background: oklch(99% 0.006 195 / 0.9);
  box-shadow: 0 12px 34px oklch(38% 0.065 198 / 0.08);
}

.search {
  display: grid;
  gap: 8px;
}

.search span {
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

input[type="search"] {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  outline: none;
}

input[type="search"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px oklch(70% 0.12 190 / 0.18);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip,
.rail-item {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: oklch(35% 0.035 205);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.chip {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.chip.active,
.rail-item.active {
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--surface-strong);
}

.chip:hover,
.rail-item:hover {
  border-color: var(--brand-2);
  transform: translateY(-1px);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 16px 0 68px;
}

.category-rail,
.commercial-note {
  position: sticky;
  top: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: oklch(99% 0.006 195 / 0.93);
  box-shadow: 0 12px 30px oklch(38% 0.06 198 / 0.07);
}

.category-rail {
  padding: 10px;
}

.rail-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 14px;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.rail-item {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 0 10px;
  border-radius: 8px;
  text-align: left;
  font-size: 0.78rem;
}

.rail-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-item strong {
  font-size: 0.68rem;
  font-weight: 600;
}

.catalog-content {
  display: grid;
  gap: 18px;
}

.catalog-status {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--brand-3);
  color: oklch(42% 0.06 195);
  font-size: 0.78rem;
  font-weight: 600;
}

.catalog-status strong {
  color: var(--brand);
}

.catalog-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: 0 14px 36px oklch(38% 0.06 198 / 0.07);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 15px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-strong), oklch(98% 0.018 195));
}

.section-heading p {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.32rem;
  line-height: 1.22;
  font-weight: 700;
}

.section-heading span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  padding: 12px 18px;
  background: oklch(96.5% 0.025 195);
  color: oklch(45% 0.035 205);
  font-size: 0.68rem;
  text-align: left;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.02em;
}

td {
  padding: 8px 14px;
  border-top: 1px solid oklch(94% 0.018 195);
  color: oklch(31% 0.03 205);
  font-size: 0.79rem;
  line-height: 1.34;
  font-weight: 400;
  vertical-align: middle;
}

td:nth-child(2) {
  width: 132px;
  color: var(--muted);
  font-weight: 400;
}

td.price {
  width: 128px;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

td.price::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--brand-4);
}

tbody tr {
  transition: background 150ms ease;
}

tbody tr:hover {
  background: oklch(98% 0.018 195);
}

.service-name {
  display: block;
  font-size: 0.79rem;
  font-weight: 400;
  line-height: 1.32;
}

.service-family {
  display: none;
}

.commercial-note {
  padding: 18px;
}

.commercial-note ul {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.commercial-note li {
  padding-left: 18px;
  color: oklch(45% 0.03 205);
  font-size: 0.83rem;
  line-height: 1.55;
  font-weight: 400;
  position: relative;
}

.commercial-note li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.note-button {
  width: 100%;
}

.empty-state {
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.empty-state p {
  margin: 10px 0 0;
  color: var(--muted);
}

footer {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1040px) {
  .catalog-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 780px) {
  .topbar {
    position: static;
    min-height: auto;
    padding: 16px;
    margin-top: 8px;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero {
    min-height: auto;
    padding: 32px 0 20px;
  }

  h1 {
    font-size: clamp(1.55rem, 7.2vw, 2.1rem);
    white-space: nowrap;
  }

  .hero-copy p {
    font-size: clamp(0.71rem, 3.15vw, 0.86rem);
    white-space: nowrap;
  }

  .reading-conditions {
    font-size: clamp(0.62rem, 2.65vw, 0.74rem) !important;
    white-space: nowrap;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .category-rail {
    position: static;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .rail-title {
    flex: 0 0 140px;
    align-items: center;
  }

  .rail-item {
    margin-top: 0;
    flex: 0 0 210px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 6px;
    padding: 8px;
    background: oklch(97.5% 0.015 195);
  }

  tr {
    border: 1px solid oklch(90% 0.024 195);
    border-radius: 8px;
    background: var(--surface-strong);
    overflow: hidden;
  }

  td {
    width: 100% !important;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 9px;
    padding: 8px 10px;
    border-top: 1px solid oklch(94% 0.018 195);
    align-items: start;
  }

  td:first-child {
    border-top: 0;
  }

  td::before {
    color: var(--brand);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
  }

  td:nth-child(1)::before {
    content: "Servicio";
  }

  td:nth-child(2)::before {
    content: "Tipo";
  }

  td:nth-child(3)::before {
    content: "Precio";
  }

  .service-family {
    display: none;
  }

  footer {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  main,
  .topbar {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: clamp(1.18rem, 5.35vw, 1.32rem);
  }

  .hero-copy p {
    font-size: clamp(0.64rem, 2.75vw, 0.74rem);
  }

  .reading-conditions {
    font-size: clamp(0.55rem, 2.35vw, 0.64rem) !important;
  }

  .hero-actions .button {
    width: 100%;
  }

  .category-rail {
    display: grid;
    overflow-x: visible;
  }

  .rail-title,
  .rail-item {
    flex: none;
  }
}

/* Refinamiento de catálogo: interfaz compacta, legible y centrada en servicios. */
body {
  background:
    linear-gradient(180deg, oklch(97.8% 0.018 190), oklch(99.2% 0.006 195) 360px),
    var(--paper);
}

body::before {
  opacity: 0.32;
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, black 0, transparent 420px);
}

.topbar,
main {
  width: min(1200px, calc(100% - 40px));
}

.topbar {
  top: 8px;
  min-height: 58px;
  margin-top: 8px;
  padding: 0 12px;
  border-color: oklch(86% 0.028 195 / 0.82);
  background: oklch(99.5% 0.006 195 / 0.92);
  box-shadow: 0 8px 24px oklch(38% 0.06 198 / 0.07);
}

.brand-mark {
  width: 36px;
  height: 36px;
  font-size: 20px;
  box-shadow: 0 10px 22px oklch(45% 0.11 198 / 0.18);
}

.brand-copy strong {
  font-size: 15px;
}

.brand-copy span,
nav a {
  font-size: 11px;
}

nav a {
  /* 04-ago: 32px -> 44px por el mismo motivo que `.button` de este bloque. */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.hero {
  padding: 22px 0 14px;
}

h1 {
  margin-bottom: 8px;
  color: oklch(20% 0.025 205);
  font-size: clamp(2rem, 3.25vw, 2.95rem);
}

.hero-copy p {
  color: oklch(40% 0.028 205);
  font-size: 0.92rem;
}

.reading-conditions {
  margin-top: 5px !important;
  color: oklch(48% 0.024 205) !important;
  font-size: 0.7rem !important;
}

.hero-actions {
  margin-top: 12px;
}

.button {
  /* 04-ago: este media query de <=520px BAJABA el boton de 44px (regla base) a 40px,
     justo en el ancho donde el dedo es el unico puntero. El tamano del texto puede
     encoger; el area tactil no. */
  min-height: 44px;
  padding: 0 16px;
  border-radius: 7px;
  font-size: 12px;
}

.catalog-layout {
  grid-template-columns: 204px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0 60px;
}

.category-rail {
  top: 82px;
  padding: 8px;
  border-color: oklch(87% 0.024 195);
  background: oklch(99.6% 0.004 195 / 0.96);
  box-shadow: 0 8px 22px oklch(38% 0.05 198 / 0.045);
}

.rail-title {
  padding: 7px 8px 10px;
  font-size: 0.66rem;
}

.rail-item {
  min-height: 36px;
  margin-top: 5px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 600;
}

.rail-item.active {
  box-shadow: inset 0 0 0 1px oklch(100% 0.004 195 / 0.28);
}

.catalog-content {
  gap: 12px;
}

.catalog-status {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  background: oklch(95.5% 0.04 190);
  font-size: 0.72rem;
}

.catalog-section {
  border-color: oklch(88% 0.024 195);
  box-shadow: 0 10px 26px oklch(38% 0.05 198 / 0.055);
}

.section-heading {
  padding: 13px 16px 11px;
  background: linear-gradient(180deg, oklch(99.8% 0.003 195), oklch(97.8% 0.018 195));
}

.section-heading p {
  margin-bottom: 4px;
  font-size: 0.64rem;
}

.section-heading h2 {
  font-size: 1.14rem;
  line-height: 1.18;
}

.section-heading span {
  font-size: 0.68rem;
}

th {
  padding: 10px 14px;
  font-size: 0.64rem;
  background: oklch(96% 0.026 190);
}

td {
  padding: 7px 12px;
  font-size: 0.77rem;
  line-height: 1.32;
}

.service-name {
  font-size: 0.77rem;
  line-height: 1.3;
}

td.price {
  font-size: 0.78rem;
}

td.price::after {
  width: 28px;
  margin-top: 4px;
}

@media (max-width: 780px) {
  .topbar,
  main {
    width: min(100% - 24px, 1200px);
  }

  .topbar {
    padding: 14px;
    gap: 14px;
  }

  .hero {
    padding: 22px 0 12px;
  }

  .catalog-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding-top: 8px;
  }

  .category-rail {
    position: sticky;
    top: 0;
    z-index: 12;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 7px;
    border-radius: 8px;
  }

  .category-rail,
  .catalog-content,
  .catalog-section,
  .table-wrap {
    min-width: 0;
    width: 100%;
  }

  .rail-title {
    flex: 0 0 96px;
    padding: 0 8px;
  }

  .rail-item {
    flex: 0 0 auto;
    width: auto;
    min-width: 138px;
    max-width: 230px;
    margin-top: 0;
  }

  .catalog-status {
    min-height: 32px;
  }

  .section-heading {
    gap: 6px;
    padding: 12px 14px;
  }

  tbody {
    padding: 6px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(1.2rem, 5.35vw, 1.34rem);
  }

  .hero-copy p {
    font-size: clamp(0.64rem, 2.72vw, 0.74rem);
  }

  .reading-conditions {
    font-size: clamp(0.54rem, 2.28vw, 0.63rem) !important;
  }

  .hero-actions .button {
    width: auto;
    min-width: 190px;
  }

  .category-rail {
    display: flex;
    overflow-x: auto;
  }

  .rail-title,
  .rail-item {
    flex: 0 0 auto;
  }
}

/* Header y familias - ajuste responsive final. */
.topbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.header-cta {
  min-height: 38px;
  padding-inline: 15px;
  white-space: nowrap;
}

.hero {
  padding-top: 20px;
}

.hero-actions {
  display: none;
}

.category-rail {
  scrollbar-width: thin;
  scrollbar-color: oklch(72% 0.095 190) transparent;
}

.rail-item {
  touch-action: manipulation;
}

@media (max-width: 780px) {
  .topbar {
    position: sticky;
    top: 8px;
    display: grid;
    grid-template-columns: minmax(112px, 1fr) auto;
    grid-template-areas:
      "brand cta"
      "nav nav";
    align-items: center;
    row-gap: 10px;
    column-gap: 10px;
    padding: 12px;
  }

  .brand {
    grid-area: brand;
    min-width: 0;
  }

  .brand-logo {
    height: 38px;
  }

  .topbar-actions {
    display: contents;
  }

  .topbar nav {
    grid-area: nav;
    width: 100%;
    justify-content: center;
    gap: 8px;
    overflow: visible;
  }

  .header-cta {
    grid-area: cta;
    min-height: 40px;
    padding-inline: 13px;
    border-radius: 7px;
    font-size: 0.72rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 19px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .brand-copy span {
    font-size: 10px;
  }

  .hero {
    padding: 18px 0 10px;
  }

  .catalog-layout {
    padding-top: 6px;
  }

  .category-rail {
    position: sticky;
    top: 119px;
    z-index: 14;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    background: oklch(99.4% 0.006 195 / 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px oklch(38% 0.05 198 / 0.055);
  }

  .category-rail::-webkit-scrollbar {
    display: none;
  }

  .rail-title {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 9px;
    gap: 8px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: oklch(98.6% 0.012 195);
    font-size: 0.62rem;
  }

  .rail-title strong {
    font-size: 0.65rem;
  }

  .rail-item {
    flex: 0 0 auto;
    min-width: auto;
    max-width: none;
    min-height: 36px;
    scroll-snap-align: start;
    grid-template-columns: auto auto;
    gap: 9px;
    padding: 0 12px;
    border-radius: 7px;
    white-space: nowrap;
  }

  .rail-item span {
    max-width: 180px;
  }
}

@media (max-width: 420px) {
  .topbar {
    grid-template-columns: minmax(106px, 1fr) auto;
  }

  .header-cta {
    min-height: 38px;
    padding-inline: 10px;
    font-size: 0.68rem;
  }

  nav a {
    min-height: 30px;
    padding-inline: 10px;
  }

  .rail-item span {
    max-width: 154px;
  }
}

.mobile-family-field {
  display: none;
}

@media (max-width: 780px) {
  .category-rail {
    top: 118px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: end;
    overflow: visible;
  }

  .category-rail .rail-item {
    display: none;
  }

  .rail-title {
    min-height: 44px;
  }

  .mobile-family-field {
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  .mobile-family-field span {
    color: var(--brand);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  .mobile-family-field select {
    width: 100%;
    min-height: 44px;
    padding: 0 36px 0 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface-strong);
    color: var(--ink);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    outline: none;
  }

  .mobile-family-field select:focus-visible {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px oklch(77% 0.12 190 / 0.35);
  }
}

@media (max-width: 420px) {
  .category-rail {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail-title {
    min-height: 30px;
    justify-content: space-between;
  }
}

/* Header centrado y navegación corregida - 2026-07-06. */
.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  min-height: 62px;
}

.topbar-actions {
  display: contents;
}

.brand {
  grid-column: 1;
  justify-self: start;
  min-width: 0;
}

.topbar nav {
  grid-column: 3;
  justify-self: end;
  width: auto;
}

.topbar nav a[aria-current="page"] {
  border-color: oklch(74% 0.1 192 / 0.72);
  color: var(--brand-strong);
  background: oklch(98.8% 0.014 192 / 0.86);
}

.header-cta {
  grid-column: 2;
  justify-self: center;
  align-self: center;
  min-height: 40px;
  white-space: nowrap;
}

@media (max-width: 780px) {
  .topbar {
    grid-template-columns: minmax(72px, 1fr) auto minmax(58px, 1fr);
    grid-template-areas: none;
    row-gap: 0;
    column-gap: 8px;
    min-height: 60px;
    padding: 10px 12px;
  }

  .brand,
  .topbar nav,
  .header-cta {
    grid-area: auto;
  }

  .topbar nav {
    width: auto;
    justify-content: flex-end;
    gap: 0;
    overflow: visible;
  }

  .header-cta {
    min-height: 40px;
    padding-inline: 12px;
    border-radius: 7px;
    font-size: clamp(0.68rem, 2.45vw, 0.76rem);
  }

  .category-rail {
    top: 76px;
  }
}

@media (max-width: 420px) {
  .topbar {
    grid-template-columns: minmax(50px, 1fr) auto minmax(54px, 1fr);
    column-gap: 6px;
    padding-inline: 8px;
  }

  .brand {
    gap: 6px;
  }

  .brand-logo {
    height: 38px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }

  .brand-copy strong {
    font-size: 12px;
  }

  .brand-copy span {
    display: none;
  }

  .topbar nav a {
    min-height: 34px;
    padding-inline: 8px;
    font-size: 0.67rem;
  }

  .header-cta {
    min-height: 38px;
    padding-inline: 9px;
    font-size: 0.66rem;
  }

  .category-rail {
    top: 70px;
  }
}

@media (max-width: 380px) {
  .brand-logo {
    height: 34px;
  }
}

/* Contraajuste: CTA exactamente centrado en el header. */
.topbar {
  position: sticky;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 62px;
}

.topbar-actions {
  grid-column: 2;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.topbar nav {
  grid-column: auto;
  justify-self: auto;
}

.header-cta {
  position: absolute;
  grid-column: 1 / -1;
  grid-row: 1;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
}

@media (max-width: 520px) {
  .brand-copy span {
    display: none;
  }
}

@media (max-width: 780px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 60px;
  }

  .topbar-actions {
    display: flex;
  }

  .topbar nav {
    justify-content: flex-end;
  }
}

@media (max-width: 420px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
/* ===== U9 DentCore — pulido + accesibilidad (2026-07-08, aditivo; preserva el diseño DENTA). ===== */
html { scroll-behavior: smooth; }
.button { transition: transform .12s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease; }
.button:active { transform: translateY(1px); }
.rail-item { transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.rail-item:hover { transform: translateY(-2px); }
:where(a, button, .button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid #116767; outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .button:active, .rail-item:hover { transform: none !important; }
}

/* ===== U9.1 precios gated: bloqueados hasta login (odontólogo/clínica/interno) ===== */
.price-lock{ color:#64807f; font-weight:600; letter-spacing:.4px; }
.dc-precio-btn{ background:transparent; border:1px solid #116767; color:#116767; cursor:pointer; }
.dc-precio-btn:hover{ background:#EAF9F9; }
.dc-modal-fondo{ position:fixed; inset:0; background:rgba(6,43,49,.45); display:flex; align-items:center; justify-content:center; padding:20px; z-index:1000; }
.dc-modal-fondo[hidden]{ display:none; }
.dc-modal{ background:#fff; border-radius:16px; padding:22px; width:100%; max-width:390px; box-shadow:0 20px 50px rgba(6,43,49,.3); }
.dc-modal h2{ margin:0 0 6px; color:#116767; font-size:1.2rem; }
.dc-modal-sub{ margin:0 0 14px; color:#64807f; font-size:.85rem; line-height:1.4; }
.dc-modal label{ display:block; font-size:.8rem; color:#28454a; margin-bottom:10px; }
.dc-modal input{ width:100%; box-sizing:border-box; margin-top:4px; padding:10px 12px; border:1px solid #BCEDEE; border-radius:8px; font:inherit; }
.dc-modal input:focus-visible{ outline:2px solid #116767; outline-offset:1px; }
.dc-modal-err{ color:#c0392b; font-size:.82rem; margin:2px 0 10px; }
.dc-modal-acts{ display:flex; gap:8px; justify-content:flex-end; margin-top:8px; }
.dc-modal-help{ font-size:.78rem; color:#64807f; margin:12px 0 0; text-align:center; }
.button.ghost{ background:transparent; border:1px solid #BCEDEE; color:#28454a; cursor:pointer; }

/* ── OBJETIVO TÁCTIL MÍNIMO EN MÓVIL (2026-08-04) ────────────────────────────────
   Medido en producción a 375×812 con navegador real: 7 controles por debajo de 44px.
   El primer intento corrigió solo el media query de ≤520px y NO SIRVIÓ: a 375px
   también aplican los bloques de ≤420px y ≤380px, que vienen después y ganan. Ir
   breakpoint por breakpoint es frágil — hay 19 reglas `min-height` sub-44 repartidas
   por el fichero. Esta regla va al final, se aplica una vez y no depende de
   perseguirlas.
   NO se tocan los enlaces de contacto del pie (WhatsApp · Tel · correo): están
   DENTRO de una frase separados por «·», y WCAG 2.5.8 excepciona expresamente el
   destino en línea cuyo tamaño lo limita la altura de línea del texto que lo rodea.
   Agrandarlos rompería el párrafo sin ganar accesibilidad. */
@media (max-width: 520px) {
  .topbar nav a,
  nav a,
  .brand,
  .button,
  .header-cta,
  .chip,
  .rail-item,
  .dc-precio-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
