/* Suminol Suministros: catálogo a pantalla completa, una temática por pantalla */
:root {
  --azul: #1B2C9E;
  --azul-hover: #2236B8;
  --noche: #0A1150;
  --blanco: #fff;
  --texto-2: rgba(255,255,255,.82);
  --linea: rgba(255,255,255,.18);
  --top-h: 60px;
  --call-h: 56px;
  --pad: 20px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: var(--noche); }
body {
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--blanco);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
svg { display: block; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- el scroll: un contenedor fijo con snap, una pantalla por gesto ---------- */
.deck {
  position: fixed; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
  outline: none;
}
.deck::-webkit-scrollbar { display: none; }

.s {
  position: relative; height: 100%;
  scroll-snap-align: start; scroll-snap-stop: always;
  overflow: hidden; contain: layout paint;
  background: var(--noche);
}
.s__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.6s var(--ease);
}
.s.is-active .s__img { transform: none; }

/* sombreado para leer el logo arriba y el texto abajo */
.s::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(6,10,40,.55) 0%, rgba(6,10,40,0) 18%),
    linear-gradient(to top, rgba(6,10,40,.92) 0%, rgba(6,10,40,.6) 34%, rgba(6,10,40,0) 62%);
}

.s__body {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  padding: 0 calc(var(--pad) + 14px) calc(var(--call-h) + 28px + var(--safe-b)) var(--pad);
  max-width: 760px;
}
.s__body > * {
  opacity: 0; transform: translate3d(0, 16px, 0);
  transition: opacity .6s var(--ease), transform .7s var(--ease);
}
.s.is-active .s__body > * { opacity: 1; transform: none; }
.s.is-active .s__body > :nth-child(2) { transition-delay: .06s; }
.s.is-active .s__body > :nth-child(3) { transition-delay: .12s; }
.s.is-active .s__body > :nth-child(4) { transition-delay: .18s; }
.s.is-active .s__body > :nth-child(5) { transition-delay: .24s; }
.s.is-active .s__body > :nth-child(n+6) { transition-delay: .3s; }

.s__meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--texto-2);
}
.s__meta span {
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
  padding-right: 12px; border-right: 1px solid var(--linea); color: #fff;
}
.s__title {
  /* --n = nº de letras del título: se ajusta para que nunca se parta la palabra */
  font-size: min(15vw, calc((100vw - 2 * var(--pad) - 14px) / (var(--n, 8) * .62)), 128px);
  font-weight: 800; line-height: .95; letter-spacing: -.035em;
  margin: 10px 0 12px; white-space: nowrap;
}
.s__text { font-size: 17px; line-height: 1.45; color: var(--texto-2); max-width: 38ch; }
.s__items {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px;
  margin-top: 18px; border-top: 1px solid var(--linea);
}
.s__items li {
  padding: 10px 0; border-bottom: 1px solid var(--linea);
  font-size: 14.5px; font-weight: 500; line-height: 1.25;
}
.s__price { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; }
.s__price b { font-size: 56px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.s__price span { font-size: 18px; color: var(--texto-2); }

@media (max-height: 680px) {
  .s__items { display: none; }
  .s__title { font-size: min(12vw, calc((100vw - 2 * var(--pad) - 14px) / (var(--n, 8) * .62)), 96px); }
}

/* ---------- contacto ---------- */
.s--contact { background: var(--azul); }
.s--contact::after { display: none; }
.s--contact .s__body { top: calc(var(--top-h) + var(--safe-t)); display: flex; flex-direction: column; justify-content: flex-end; }
.info {
  display: grid; grid-template-columns: auto 1fr; gap: 0 20px;
  margin: 22px 0 22px; border-top: 1px solid var(--linea);
  font-size: 15px;
}
.info dt, .info dd { padding: 10px 0; border-bottom: 1px solid var(--linea); }
.info dt { color: var(--texto-2); }
.info dd a { font-weight: 700; }
.btn-line {
  align-self: flex-start;
  display: inline-flex; align-items: center; height: 48px; padding: 0 22px;
  border: 1.5px solid #fff; border-radius: 12px; font-weight: 600;
}
.legal { margin-top: 22px; font-size: 12px; color: rgba(255,255,255,.6); }
.legal a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- cabecera fija: burger | logo | teléfono ---------- */
.top {
  position: fixed; z-index: 30; top: 0; left: 0; right: 0;
  height: calc(var(--top-h) + var(--safe-t)); padding: var(--safe-t) 8px 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.burger {
  justify-self: start; width: 44px; height: 44px;
  display: grid; place-content: center; gap: 6px;
}
.burger span {
  display: block; width: 24px; height: 2px; background: #fff; border-radius: 1px;
  transition: transform .35s var(--ease), opacity .2s;
}
.menu-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.top__logo img { height: 38px; width: auto; }
.top__tel { justify-self: end; height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 10px; font-weight: 600; font-size: 15px; }
.top__tel svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.top__tel span { display: none; }

/* ---------- indicador lateral ---------- */
.dots {
  position: fixed; z-index: 20; right: 8px; top: 50%; transform: translateY(-50%);
  display: grid; gap: 6px; transition: opacity .3s;
}
.dots a { display: block; width: 3px; height: 14px; border-radius: 2px; background: rgba(255,255,255,.35); transition: height .3s var(--ease), background-color .3s; }
.dots a.on { height: 30px; background: #fff; }
.menu-open .dots { opacity: 0; pointer-events: none; }

/* ---------- botón de llamada fijo (azul) ---------- */
.call {
  position: fixed; z-index: 25; left: var(--pad); right: var(--pad);
  bottom: calc(16px + var(--safe-b)); height: var(--call-h);
  display: flex; align-items: center; gap: 12px; padding: 0 18px;
  background: var(--azul); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  font-weight: 700; font-size: 17px;
  transition: background-color .2s, transform .15s;
}
.call:active { transform: scale(.98); }
.call svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.call__label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call__num { font-weight: 600; font-size: 15px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.3); font-variant-numeric: tabular-nums; }
body.on-contact .call { background: var(--noche); }

/* ---------- menú translúcido ---------- */
.menu {
  position: fixed; inset: 0; z-index: 28;
  background: rgba(7,12,48,.8);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
  overflow-y: auto; overscroll-behavior: contain;
}
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.menu__in {
  max-width: 760px; margin: 0 auto;
  padding: calc(var(--top-h) + var(--safe-t) + 16px) var(--pad) calc(var(--call-h) + 40px + var(--safe-b));
}
.menu__h { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--texto-2); margin-bottom: 8px; }
.menu__list { border-top: 1px solid var(--linea); }
.menu__list li { opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.menu-open .menu__list li { opacity: 1; transform: none; }
.menu-open .menu__list li:nth-child(2) { transition-delay: .02s; }
.menu-open .menu__list li:nth-child(3) { transition-delay: .04s; }
.menu-open .menu__list li:nth-child(4) { transition-delay: .06s; }
.menu-open .menu__list li:nth-child(5) { transition-delay: .08s; }
.menu-open .menu__list li:nth-child(6) { transition-delay: .10s; }
.menu-open .menu__list li:nth-child(7) { transition-delay: .12s; }
.menu-open .menu__list li:nth-child(8) { transition-delay: .14s; }
.menu-open .menu__list li:nth-child(9) { transition-delay: .16s; }
.menu-open .menu__list li:nth-child(n+10) { transition-delay: .18s; }
.menu__list a {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; gap: 8px;
  padding: 14px 0; border-bottom: 1px solid var(--linea);
}
.m__n { font-size: 13px; color: var(--texto-2); font-variant-numeric: tabular-nums; }
.m__t { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.m__l { font-size: 13px; color: var(--texto-2); text-align: right; }
.menu__list a.on .m__t { color: #9FB6FF; }
.menu__foot { margin-top: 24px; font-size: 14px; line-height: 1.6; color: var(--texto-2); }
.menu__foot a { color: #fff; font-weight: 700; }

/* ---------- escritorio ---------- */
@media (hover: hover) { .call:hover { background: var(--azul-hover); } }
@media (min-width: 900px) {
  :root { --pad: 48px; --top-h: 76px; }
  .top { padding-inline: 32px; }
  .top__logo img { height: 46px; }
  .top__tel span { display: inline; }
  .s::after {
    background:
      linear-gradient(to bottom, rgba(6,10,40,.5) 0%, rgba(6,10,40,0) 16%),
      linear-gradient(to right, rgba(6,10,40,.85) 0%, rgba(6,10,40,.45) 40%, rgba(6,10,40,0) 70%);
  }
  .s__body { top: 0; display: flex; flex-direction: column; justify-content: center; padding-bottom: 40px; }
  .s__text { font-size: 19px; }
  .s__title { font-size: min(128px, calc(660px / (var(--n, 8) * .62))); }
  .s__items { max-width: 520px; }
  .call { left: auto; right: 32px; bottom: 28px; min-width: 340px; }
  .dots { right: 20px; }
  .m__t { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
  .s__img { transform: none; }
}
