/* Rediseño (tienda-nueva.html): se carga después de tienda.css y solo
   cambia lo nuevo. Mismos colores (tokens de tienda.css). */

:root { --ease: cubic-bezier(.2, .8, .2, 1); --ink-deep: #0b0b0d; }

/* ---------- Menú ---------- */
.nav-eng { display: inline-flex; align-items: center; gap: 6px; }
.nav-free { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--red); color: #fff; padding: 2px 6px; border-radius: 999px; }

/* Encabezado: logo · 4 accesos · botón de reserva siempre a mano */
@media (max-width: 1200px) and (min-width: 1160px) { .nav { display: flex; gap: 14px; font-size: 13.5px; } }
.header .brand-uy { display: none; } /* la bandera ya dice Uruguay; así entran menú y botón */
@media (min-width: 1201px) { .nav { gap: 22px; } }
.header-cta { padding: 10px 18px; font-size: 14px; border-radius: 10px; white-space: nowrap; }
@media (max-width: 700px) { .header-cta { padding: 8px 12px; font-size: 13px; } }
@media (max-width: 360px) { .header-cta { display: none; } }

/* ---------- Hero más limpio ---------- */
.product { padding-top: 40px; padding-bottom: 56px; }
.buy h1 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 850; letter-spacing: -0.035em; }
.buy .bullets { margin-top: 18px; }

/* ---------- Compatibilidad: misma estética que el resto de la página ----------
   Usa los colores del tema (claro u oscuro), como la ficha y la compra.
   PC: título y datos a la izquierda, buscador a la derecha. Celular: una columna. */
.compat-section { background: var(--bg); color: var(--ink); padding: 56px 0 0; border-top: 1px solid var(--line); scroll-margin-top: 64px; }
.compat-section > .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-areas: 'head finder' 'stats finder'; column-gap: 48px; row-gap: 18px; align-items: start; }
.cs-head { grid-area: head; }
.cs-head .eyebrow { margin-bottom: 6px; }
.cs-head h2 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 850; letter-spacing: -0.035em; }
.cs-head p { color: var(--ink-2); margin-top: 8px; font-size: 15px; line-height: 1.5; }

.cs-stats { grid-area: stats; display: flex; gap: 8px; flex-wrap: wrap; }
.cs-stat { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); }
.cs-stat strong { font-size: 15px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.cs-stat span { font-size: 12.5px; color: var(--ink-2); }

.cs-finder { grid-area: finder; padding: 18px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); }
.cs-finder .compat { margin-top: 0; grid-template-columns: 1fr; gap: 10px; }
.cs-finder .compat > div { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 12px; }
.cs-finder .compat label { margin: 0; text-align: left; color: var(--ink-2); font-size: 13px; font-weight: 700; }
.cs-finder select { min-height: 46px; font-size: 15px; font-weight: 600; text-align: left; text-align-last: left; }
.cs-finder .compat-result { margin-top: 12px; }

.cs-brands { position: relative; overflow: hidden; margin-top: 36px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cs-brands-track { display: flex; gap: 40px; width: max-content; animation: cs-run 45s linear infinite; }
.cs-brand { font-size: 15px; font-weight: 800; letter-spacing: .02em; color: var(--ink-3); white-space: nowrap; text-transform: uppercase; }
@keyframes cs-run { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .cs-brands-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 10px 24px; } .cs-brand[aria-hidden] { display: none; } }
@media (max-width: 900px) {
  .compat-section { padding-top: 40px; }
  .compat-section > .wrap { grid-template-columns: 1fr; grid-template-areas: 'head' 'stats' 'finder'; row-gap: 14px; }
  .cs-head, .cs-head h2 { text-align: center; }
  .cs-head p { display: none; }
  .cs-stats { justify-content: center; gap: 6px; }
  .cs-stat { padding: 5px 10px; }
  .cs-stat strong { font-size: 14px; }
  .cs-stat span { font-size: 11.5px; }
  .cs-finder { padding: 14px; }
  .cs-finder .compat > div { grid-template-columns: 104px 1fr; gap: 10px; }
  .cs-finder select { min-height: 44px; font-size: 14px; }
  .cs-finder .compat label { font-size: 12px; }
  .cs-brands { margin-top: 28px; padding: 12px 0; }
  .cs-brand { font-size: 13px; }
  .cs-brands-track { gap: 28px; }
}

/* ---------- Ingeniero de pista: 3 capturas reales ---------- */
.eng-teaser { background: var(--ink-deep); color: #f4f4f5; padding: 72px 0; position: relative; overflow: hidden; }
.eng-teaser::after { content: ''; position: absolute; right: -10%; top: -30%; width: 60%; height: 120%;
  background: radial-gradient(closest-side, rgba(226,35,26,.2), transparent); pointer-events: none; }
.eng-teaser .wrap { position: relative; z-index: 1; }
.eyebrow-light { color: #ff5a4f; }
.eng-head { max-width: 680px; }
.eng-head h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 850; letter-spacing: -0.035em; color: #fff; }
.eng-head p:not(.eyebrow) { color: #b4b4bc; font-size: 16.5px; line-height: 1.55; margin-top: 12px; }
.eng-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.eng-card { margin: 0; background: #141417; border: 1px solid #2c2c31; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.eng-shot { aspect-ratio: 16 / 10; overflow: hidden; background: #0f0f12; border-bottom: 1px solid #2c2c31; }
.eng-shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; }
.eng-card figcaption { padding: 16px 18px 18px; display: grid; gap: 4px; }
.eng-n { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; color: #ff5a4f; }
.eng-card strong { font-size: 17px; color: #fff; letter-spacing: -0.01em; }
.eng-card figcaption span:last-child { color: #b4b4bc; font-size: 14.5px; line-height: 1.5; }
.eng-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.eng-foot span { color: #85858f; font-size: 13.5px; }
.btn-light { background: #fff; color: #111113; gap: 10px; padding: 13px 22px; }
.btn-light:hover { background: #e9e9ec; }
.btn-light .ic { width: 18px; height: 18px; }
@media (max-width: 900px) {
  .eng-teaser { padding: 52px 0; }
  .eng-head { text-align: center; margin: 0 auto; }
  .eng-head p:not(.eyebrow) { font-size: 15px; }
  /* Celular: las 3 tarjetas se pasan de costado, sin alargar la página */
  .eng-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 24px -16px 0; padding: 0 16px 6px; scrollbar-width: none; }
  .eng-cards::-webkit-scrollbar { display: none; }
  .eng-card { flex: 0 0 82%; scroll-snap-align: center; }
  .eng-foot { flex-direction: column; text-align: center; gap: 12px; margin-top: 22px; }
  .btn-light { width: 100%; }
}

/* ---------- Subpáginas (ficha técnica, preguntas frecuentes) ---------- */
.sub-main { padding-top: 28px; padding-bottom: 64px; max-width: 1040px; }
.crumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.crumb a { color: var(--ink-2); text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.sub-h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 850; letter-spacing: -0.035em; }
.sub-lead { color: var(--ink-2); font-size: 17px; margin: 10px 0 32px; max-width: 620px; }
.sub-main .faq { max-width: 780px; }
.sub-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 48px; padding: 22px 26px;
  background: var(--ink-deep); color: #f4f4f5; border-radius: 18px; }
.sub-cta div { display: grid; gap: 2px; }
.sub-cta strong { font-size: 19px; letter-spacing: -0.02em; }
.sub-cta span { color: #b4b4bc; font-size: 14.5px; }
.sub-cta .btn { white-space: nowrap; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.info-solo { padding-top: 56px; padding-bottom: 64px; }
@media (max-width: 700px) {
  .sub-main { padding-top: 18px; padding-bottom: 40px; }
  .sub-lead { font-size: 15.5px; margin-bottom: 22px; }
  .sub-cta { flex-direction: column; align-items: stretch; text-align: center; padding: 20px; margin-top: 36px; }
}

/* ---------- Franja chica del Ingeniero en el encabezado (cuando no entra el menú) ---------- */
.header-eng { display: none; }
@media (max-width: 1159px) {
  .header-eng { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 16px; font-size: 12.5px; font-weight: 600;
    color: var(--ink-2); text-decoration: none; background: var(--soft); border-top: 1px solid var(--line); }
  .header-eng .ic { width: 14px; height: 14px; }
  .header-eng:hover { color: var(--ink); }
}
.eng-more { color: #b4b4bc; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.eng-more:hover { color: #fff; }

/* Etiqueta chiquita de la opción del menú (Ingeniero de pista) */
.nav-eng .nav-free { font-size: 8px; padding: 1px 4px; letter-spacing: .04em; vertical-align: 1px; }

/* Logo de fondo en todas las páginas: fijo y centrado, queda en el mismo lugar aunque se baje; muy tenue */
body::before { content: ""; position: fixed; left: 50%; top: 50%; width: min(78vw, 1000px); aspect-ratio: 838 / 282; transform: translate(-50%, -50%); background: url("../img/logo-full.webp") center / contain no-repeat; opacity: .04; filter: var(--logo-filter); z-index: -1; pointer-events: none; }
