/* Vitrina pública (sanka3d.cl): un solo sistema. Suelo plano, una tinta, un acento; fotos cuadradas; sin sombras ni degradados
   en reposo. Los números de movimiento (elevar 2 px, zoom 1,03, botón 1 px) siguen la guía de interacción del proyecto. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 700; font-stretch: 100% 125%; font-display: swap;
  src: url(/static/fonts/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 700; font-stretch: 100% 125%; font-display: swap;
  src: url(/static/fonts/archivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #e8e8e3;        /* suelo: piedra cálida */
  --surface: #dcdcd6;   /* tarjetas y bandas, un paso de tono sobre el suelo */
  --ink: #181715;
  --ink-soft: #4b4a45;  /* texto secundario (contraste 6,7:1 sobre el suelo) */
  --accent: #bfb21a;    /* latón: solo en la acción principal */
  --accent-ink: #181715;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-enter: cubic-bezier(.22, 1, .36, 1);
}

body.sv { background: var(--bg); color: var(--ink); font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 1.0625rem; line-height: 1.55; }
.sv ::selection { background: var(--accent); color: var(--ink); }
.sv :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 0; }

/* Titulares: un solo peso, ancho 110 %, apretados */
.sv-display { font-weight: 600; font-stretch: 112%; letter-spacing: -.03em; line-height: 1; text-wrap: balance; }
.sv-h2 { font-weight: 600; font-stretch: 108%; letter-spacing: -.025em; line-height: 1.05; font-size: clamp(1.75rem, 3.2vw, 2.75rem); text-wrap: balance; }
.sv-h3 { font-weight: 600; font-stretch: 105%; letter-spacing: -.015em; line-height: 1.2; }
.sv-muted { color: var(--ink-soft); }
.sv-num { font-variant-numeric: tabular-nums; }

/* Un solo botón: relleno plano, esquinas rectas */
.sv-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.5rem; border: 0; border-radius: 0;
  background: var(--accent); color: var(--accent-ink); font: 500 1rem/1 "Archivo", system-ui, sans-serif; font-stretch: 105%; text-decoration: none; cursor: pointer;
  transition: background-color 150ms var(--ease), transform 150ms var(--ease); }
.sv-btn:active { transform: translateY(1px) scale(.985); transition-duration: 90ms; }
.sv-btn--ink { background: var(--ink); color: var(--bg); }
.sv-btn:disabled { opacity: .6; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .sv-btn:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); transform: translateY(-1px); transition-duration: 150ms; }
  .sv-btn--ink:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
  .sv-btn:active { transform: translateY(1px) scale(.985); }
}
/* Enlace: el subrayado se dibuja de izquierda a derecha al pasar */
.sv-link { position: relative; text-decoration: none; }
.sv-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 150ms var(--ease); }
.sv-link:hover::after, .sv-link:focus-visible::after, .sv-link[aria-current="page"]::after { transform: scaleX(1); }

/* Pestañas de categoría: texto plano, la actual lleva una barra de 2 px */
.sv-tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .25rem; margin-right: 1.5rem; color: var(--ink-soft); text-decoration: none;
  border-bottom: 2px solid transparent; transition: color 150ms var(--ease), border-color 150ms var(--ease); }
.sv-tab:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.sv-tab[aria-current="page"] { color: var(--ink); border-color: var(--ink); font-weight: 500; }

/* Tarjetas de producto: una familia. Se levantan 2 px y la foto hace zoom 1,03 dentro de su marco */
.sv-card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--surface); color: var(--ink);
  transition: transform 180ms var(--ease); }
.sv-frame { position: relative; overflow: hidden; background: var(--surface); }
.sv-frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.sv-ph { background: var(--surface); }
.sv-card .sv-title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: transparent; transition: text-decoration-color 150ms var(--ease); }
.sv-card .sv-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sv-go { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; font-stretch: 105%; }
.sv-go svg { transition: transform 150ms var(--ease); }
.sv-badge { position: absolute; top: 0; left: 0; z-index: 2; padding: .35rem .75rem; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-stretch: 105%; }
@media (hover: hover) and (pointer: fine) {
  .sv-card:hover { transform: translateY(-2px); transition-duration: 180ms; }
  .sv-card:hover .sv-frame img { transform: scale(1.03); }
  .sv-card:hover .sv-title a { text-decoration-color: currentColor; }
  .sv-card:hover .sv-go svg { transform: translateX(3px); }
}
.sv-card:focus-within .sv-title a { text-decoration-color: currentColor; }
@media (min-width: 768px) { .sv-card--row { flex-direction: row; } }
.sv-card--flat { background: transparent; }                         /* minimal: foto cuadrada y una línea */
.sv-card--flat .sv-frame { aspect-ratio: 1 / 1; }
.sv-card--over { color: #fff; }
.sv-card--over .sv-frame { position: absolute; inset: 0; background: var(--ink); }
.sv-card--over .sv-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0) 62%); }

/* Entrada del hero: una vez al cargar, ~1,1 s. Solo transform y opacidad; sin JS; el contenido existe aunque no corra */
@keyframes sv-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sv-settle { from { transform: scale(1.05); } to { transform: scale(1); } }
.sv-enter > * { animation: sv-rise 700ms var(--ease-enter) both; }
.sv-enter > *:nth-child(2) { animation-delay: 90ms; }
.sv-enter > *:nth-child(3) { animation-delay: 180ms; }
.sv-enter-media { animation: sv-settle 1100ms var(--ease-enter) both; }
@media (prefers-reduced-motion: reduce) {
  .sv-enter > *, .sv-enter-media { animation: none; }
  .sv *, .sv *::before, .sv *::after { transition-duration: .01ms !important; }
}

/* Bandas y pie */
.sv-band { background: var(--surface); }
.sv-foot { background: var(--ink); color: var(--bg); }
.sv-foot a { color: inherit; }
.sv-foot--light { background: var(--surface); color: var(--ink); }
.sv-wordmark { font-weight: 600; font-stretch: 118%; letter-spacing: -.045em; line-height: .9; font-size: clamp(3rem, 13.5vw, 11.5rem); }

/* Campos del pedido: borde de tinta, esquinas rectas */
.sv input:not([type="checkbox"]):not([type="radio"]), .sv select, .sv textarea { border-radius: 0 !important; border-color: var(--ink) !important; background: #f4f4f0 !important; }
.sv input:focus, .sv textarea:focus, .sv select:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.sv input[type="checkbox"] { accent-color: var(--ink); }
