/* AGM Electrónicos · tienda
   Lienzo blanco y niebla, tarjetas de producto muy redondeadas que flotan con sombra suave, controles en píldora
   y un único acento: el naranja del logo. El color lo ponen las fotos de los productos. */
:root {
  --lienzo: #f2f4f5; --sup: #ffffff; --tinta: #111214; --suave: #5f5c5b; --tenue: #8a8786; --borde: #e6e7e8;
  --acento: #ff8c1a; --acento-halo: rgba(255, 140, 26, .34); --acento-oscuro: #b45309;
  --r-tarjeta: 28px; --r-img: 20px; --r-pill: 9999px;
  --sombra: 0 4px 6px -1px rgba(0, 0, 0, .08), 0 2px 4px -2px rgba(0, 0, 0, .08);
  --sombra-alta: 0 12px 32px -8px rgba(0, 0, 0, .18);
  --fuente: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--lienzo); color: var(--tinta); font: 400 16px/1.4 var(--fuente); letter-spacing: -.02em; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.cont { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2.5px solid var(--acento-oscuro); outline-offset: 3px; border-radius: 8px; }

/* barra */
.barra { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--borde); }
.barra .cont { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 28px; width: auto; }
.logo .nombre { font-weight: 600; font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--suave); }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); text-decoration: none; font-weight: 600; font-size: 15px; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.btn.wa { background: var(--sup); border: 1px solid var(--borde); box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }
.btn.wa:hover { border-color: var(--tinta); }

/* portada */
.hero { padding: 56px 0 40px; text-align: center; }
.constelacion { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin: 0 auto 34px; height: 250px; overflow: visible; }
.flota { width: 172px; background: var(--sup); border-radius: 24px; padding: 8px 8px 12px; box-shadow: var(--sombra-alta); text-decoration: none; text-align: left;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.flota .marco { border-radius: 17px; overflow: hidden; aspect-ratio: 1; background: var(--lienzo); }
.flota b { display: block; font-weight: 500; font-size: 13px; line-height: 1.25; margin: 9px 4px 2px; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.flota span { display: block; margin: 0 4px; font-size: 13px; color: var(--suave); }
.f0 { transform: translateY(-4px) rotate(-4deg); } .f1 { transform: translateY(-46px) rotate(-1deg); }
.f2 { transform: translateY(-26px) rotate(2.5deg); } .f3 { transform: translateY(2px) rotate(5deg); }
.flota:hover { transform: translateY(-70px) rotate(0); z-index: 5; }
.hero h1 { font-weight: 600; font-size: clamp(32px, 5.4vw, 60px); line-height: 1.02; letter-spacing: -.055em; max-width: 15ch; margin: 0 auto; text-wrap: balance; }
.lema { margin: 18px auto 0; max-width: 52ch; color: var(--suave); font-size: 17px; text-wrap: pretty; }
.buscador { position: relative; max-width: 620px; margin: 30px auto 0; }
.buscador input { width: 100%; height: 58px; border-radius: var(--r-pill); border: 1px solid rgba(17, 18, 20, .12); background: var(--sup); padding: 0 66px 0 24px;
  font: inherit; font-size: 17px; color: var(--tinta); box-shadow: 0 2px 8px rgba(0, 0, 0, .04); }
.buscador input::placeholder { color: var(--tenue); }
.buscador button { position: absolute; right: 6px; top: 6px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--acento); color: var(--tinta);
  display: grid; place-items: center; box-shadow: 0 4px 24px var(--acento-halo); cursor: pointer; }
.buscador button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.pill { min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--borde); background: var(--sup); font: inherit; font-size: 15px; color: var(--tinta);
  cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); transition: background .15s, color .15s; }
.pill:hover { border-color: var(--tinta); }
.pill.on { background: var(--tinta); color: #fff; border-color: var(--tinta); }

/* grilla */
.aviso-ej { margin: 8px 0 0; padding: 12px 18px; border-radius: 16px; background: #fff5e8; color: #7c3a06; font-size: 14px; }
.cat { padding-top: 48px; scroll-margin-top: 80px; }
.cat h2 { font-weight: 600; font-size: 22px; letter-spacing: -.045em; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.cuenta { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--suave); background: var(--sup); border: 1px solid var(--borde); border-radius: var(--r-pill); padding: 2px 10px; }
.grilla { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.prod a { display: block; height: 100%; background: var(--sup); border-radius: var(--r-tarjeta); padding: 8px 8px 16px; box-shadow: var(--sombra); text-decoration: none;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s; }
.prod a:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta); }
.marco { border-radius: var(--r-img); overflow: hidden; aspect-ratio: 1; background: var(--lienzo); }
.marco .img { width: 100%; height: 100%; object-fit: cover; }
.sin-foto { display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--tenue); }
.sin-foto svg { width: 46%; max-width: 120px; fill: none; stroke: #b9bcbe; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sin-foto span { font-size: 12px; }
.prod .txt { padding: 12px 8px 0; }
.prod h3 { font-weight: 500; font-size: 15px; line-height: 1.3; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.prod .pr { font-weight: 600; font-size: 17px; margin: 6px 0 8px; letter-spacing: -.03em; }
.estado { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: var(--r-pill); background: var(--lienzo); color: var(--suave); }
.estado::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tinta); }
.estado.usado::before { background: var(--tenue); } .estado.detalle::before { background: var(--acento); }
.vacio { padding: 40px 0 0; text-align: center; color: var(--suave); }

/* cómo comprar y confianza */
.como { margin-top: 72px; background: var(--sup); padding: 56px 0; }
.como h2 { font-weight: 600; font-size: 28px; letter-spacing: -.05em; margin-bottom: 24px; }
.como ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: paso; }
.como li { counter-increment: paso; background: var(--lienzo); border-radius: 24px; padding: 22px; display: grid; gap: 6px; }
.como li::before { content: counter(paso); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tinta); color: #fff; font-weight: 600; margin-bottom: 8px; }
.como b { font-weight: 600; font-size: 18px; letter-spacing: -.03em; } .como span { color: var(--suave); }
.confianza { padding: 40px 0 8px; } .confianza .cont { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.confianza div { display: grid; gap: 4px; padding: 6px 0; border-top: 1px solid var(--borde); padding-top: 16px; }
.confianza b { font-weight: 600; } .confianza span { color: var(--suave); font-size: 15px; }

/* ficha */
.ficha { padding-top: 22px; }
.migas { font-size: 14px; color: var(--suave); } .migas a { color: var(--suave); } .migas span { margin: 0 8px; }
.ficha-g { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; margin-top: 18px; align-items: start; }
.fotos .grande { border-radius: var(--r-tarjeta); background: var(--sup); box-shadow: var(--sombra); padding: 10px; }
.fotos .grande > * { border-radius: var(--r-img); background: var(--lienzo); aspect-ratio: 1; width: 100%; }
.mini { display: flex; gap: 8px; margin-top: 10px; } .mini img { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; }
.info h1 { font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.06; letter-spacing: -.05em; margin-top: 12px; text-wrap: balance; }
.precio { font-weight: 600; font-size: 30px; letter-spacing: -.04em; margin-top: 14px; }
.stock { color: var(--suave); margin-top: 4px; }
.btn.quiero { margin-top: 22px; min-height: 56px; padding: 0 30px; font-size: 17px; background: var(--acento); color: var(--tinta); box-shadow: 0 4px 24px var(--acento-halo); }
.btn.quiero:hover { background: #ff9a33; }
.desc { margin-top: 24px; color: var(--suave); max-width: 60ch; }
.info h2 { font-weight: 600; font-size: 18px; letter-spacing: -.03em; margin-top: 28px; }
.det { list-style: none; padding: 0; margin-top: 10px; background: var(--sup); border-radius: 20px; box-shadow: var(--sombra); }
.det li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--borde); }
.det li:last-child { border-bottom: 0; } .det span { color: var(--suave); } .det b { font-weight: 500; text-align: right; }

/* pie */
.pie { margin-top: 72px; background: var(--tinta); color: #e9e9ea; padding: 40px 0 48px; }
.pie .cont { display: grid; gap: 18px; }
.logo-pie { width: 240px; height: auto; }
.pie p { margin-top: 10px; color: #b4b4b6; } .pie nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pie nav a { color: #fff; text-decoration: none; padding: 10px 0; } .pie nav a:hover { text-decoration: underline; }
.pie .legal { font-size: 13px; color: #8e8e91; }

@media (max-width: 900px) {
  .grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ficha-g { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .hero { padding: 32px 0 28px; }
  .constelacion { height: 190px; margin-bottom: 22px; }
  .constelacion { gap: 8px; } .flota { width: calc((100vw - 64px) / 3); max-width: 140px; padding: 6px 6px 9px; border-radius: 20px; } .flota.f3 { display: none; }
  .flota .marco { border-radius: 14px; } .flota b { font-size: 11.5px; } .flota span { font-size: 11.5px; }
  .f1 { transform: translateY(-34px) rotate(-1deg); } .f2 { transform: translateY(-16px) rotate(3deg); }
  .grilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .prod a { border-radius: 22px; padding: 6px 6px 12px; } .marco { border-radius: 16px; }
  .prod h3 { font-size: 14px; } .prod .pr { font-size: 15.5px; }
  .como ol, .confianza .cont { grid-template-columns: 1fr; }
  .barra .btn.wa span { display: none; } .barra .btn.wa { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* el local */
.local { padding: 48px 0 0; }
.local .cont { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--sup); border-radius: var(--r-tarjeta); padding: 26px 28px; box-shadow: var(--sombra); }
.local h2 { font-weight: 600; font-size: 22px; letter-spacing: -.045em; } .local p { color: var(--suave); margin-top: 4px; }
.btn.llegar { background: var(--tinta); color: #fff; } .btn.llegar:hover { background: #2a2c30; }
@media (max-width: 640px) { .local .cont { margin: 0 20px; padding: 22px; } }

/* sin stock */
.estado.agotado { background: #f1f1f2; color: var(--tenue); } .estado.agotado::before { background: #c4c4c6; }
.prod.sin-stock .marco { opacity: .55; filter: grayscale(.6); }
.prod.sin-stock .pr { color: var(--tenue); }

/* precios en dólares y reales */
.prod .pr { margin-bottom: 0; }
.prod .pr2 { font-size: 13px; color: var(--suave); margin: 2px 0 8px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.precio2 { color: var(--suave); font-size: 16px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.precio2::after { content: " · cotización oficial del día"; font-size: 13px; color: var(--tenue); }

/* miniaturas de la ficha */
.mini-b { padding: 0; border: 2px solid transparent; border-radius: 16px; background: var(--sup); cursor: pointer; box-shadow: var(--sombra); line-height: 0; }
.mini-b img { width: 68px; height: 68px; object-fit: cover; border-radius: 13px; }
.mini-b.on { border-color: var(--acento); }
