:root {
  --accent: #00f6d5;
  --accent-dark: #00c9ae;
  --on-accent: #001a16;
  --bg: #0b0d10;
  --bg-2: #12161b;
  --card: #161b21;
  --line: #242b33;
  --text: #e8eef0;
  --muted: #8b98a3;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #facc15;
  --radius: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Montserrat, system-ui, sans-serif; color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* Buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--on-accent); border: 0; border-radius: 8px; padding: 12px 20px; font-weight: 700; cursor: pointer; transition: background .15s, transform .1s; }
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--bg-2); border-color: var(--accent); }
.btn--block { width: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.input, .field input, .field select, .field textarea { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; color: var(--text); font-size: 14px; outline: 0; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--accent); }

/* Header */
.site-header { background: #000; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.topbar { background: var(--accent); color: var(--on-accent); text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .6px; padding: 7px 16px; }
.header-main { display: flex; align-items: center; gap: 28px; padding: 14px 16px; }
/* El logo original tiene fondo negro y mucho margen: lo recortamos al texto */
.logo { display: block; width: 210px; height: 36px; overflow: hidden; position: relative; flex-shrink: 0; }
.logo img { position: absolute; width: 333px; max-width: none; left: -63px; top: -61px; }
.search { flex: 1; display: flex; border: 1px solid var(--line); background: var(--bg-2); border-radius: 10px; overflow: hidden; max-width: 600px; }
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; background: transparent; border: 0; padding: 11px 14px; outline: 0; font-size: 14px; }
.search input::placeholder { color: var(--muted); }
.search button { background: var(--accent); border: 0; padding: 0 16px; cursor: pointer; display: grid; place-items: center; }
.search svg { width: 18px; height: 18px; stroke: var(--on-accent); fill: none; stroke-width: 2.5; }
.header-actions { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.icon-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; }
.icon-btn:hover { background: var(--bg-2); }
.icon-btn svg { width: 22px; height: 22px; stroke: var(--text); fill: none; stroke-width: 2; }
.cart-count { position: absolute; top: 2px; right: 0; background: var(--accent); color: var(--on-accent); font-size: 10px; font-weight: 800; border-radius: 10px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; }
.header-nav { display: flex; align-items: center; gap: 8px; padding: 0 16px 12px; }
.products-dd { position: relative; margin-right: 8px; }
.dd-toggle { display: flex; align-items: center; gap: 10px; width: 230px; background: var(--accent); color: var(--on-accent); border: 0; border-radius: 8px; padding: 10px 14px; font-weight: 700; font-size: 14px; cursor: pointer; }
.burger { width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
.dd-toggle .chev { margin-left: auto; }
.dd-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; width: 290px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.5); padding: 6px; max-height: 70vh; overflow: auto; }
.products-dd:hover .dd-menu, .products-dd.open .dd-menu { display: block; }
.dd-menu a { display: block; padding: 9px 12px; font-size: 14px; border-radius: 6px; }
.dd-menu a:hover { background: var(--bg-2); color: var(--accent); }
.nav-pill { padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }
.nav-pill:hover { background: var(--bg-2); color: var(--accent); }
.nav-pill--accent { border: 1px solid var(--accent); color: var(--accent); }

/* Hero */
.hero { position: relative; overflow: hidden; background: #000; }
.hero-track { display: flex; transition: transform .6s ease; }
.hero-track a { flex: 0 0 100%; }
.hero-track img { width: 100%; aspect-ratio: 4 / 1; object-fit: cover; }
.hero-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; background: rgba(0,0,0,.45); padding: 6px 10px; border-radius: 20px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; }
.hero-dots button.on { background: var(--accent); }
.hero-empty { aspect-ratio: 4 / 1; display: grid; place-items: center; text-align: center; background: radial-gradient(ellipse at 70% 30%, rgba(0,246,213,.25), transparent 60%), #000; }
.hero-empty h1 { font-size: clamp(22px, 4vw, 44px); font-weight: 800; }
.hero-empty h1 span { color: var(--accent); }
.hero-empty p { color: var(--muted); margin-top: 8px; }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 28px 0; }
.cat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 14px 18px; text-align: center; transition: border-color .2s, transform .2s; }
.cat:hover { border-color: var(--accent); transform: translateY(-2px); }
.cat img, .cat .ph { height: 120px; width: 100%; object-fit: contain; margin: 0 auto 14px; }
.cat span { font-size: 14px; font-weight: 600; }

/* Sections */
.block { margin: 44px 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.block-title { font-size: 22px; font-weight: 800; letter-spacing: .3px; }
.block-title::before { content: ''; display: inline-block; width: 6px; height: 20px; background: var(--accent); margin-right: 10px; vertical-align: -2px; transform: skewX(-20deg); }
.see-all { color: var(--accent); font-weight: 700; font-size: 14px; }
.carousel { position: relative; }
.c-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 14px) / 6); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 10px; }
.c-track::-webkit-scrollbar { display: none; }
.c-btn { position: absolute; top: 38%; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; font-size: 20px; z-index: 2; }
.c-btn:hover { border-color: var(--accent); color: var(--accent); }
.c-btn.prev { left: -14px; } .c-btn.next { right: -14px; }

/* Product card */
.card { scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; position: relative; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 1; }
.badge { font-size: 9px; font-weight: 800; padding: 3px 6px; border-radius: 4px; text-transform: uppercase; width: max-content; }
.badge.incoming { background: #2563eb; color: #fff; }
.badge.combo { background: #fff; color: #000; }
.badge.cuotas, .badge.off { background: var(--accent); color: var(--on-accent); }
.badge.order { background: #9333ea; color: #fff; }
.badge.low { background: var(--yellow); color: #111; }
.badge.ship { background: var(--green); color: #04130a; }
.card .thumb { aspect-ratio: 1; background: #fff; border-radius: 8px; overflow: hidden; margin-bottom: 10px; display: grid; place-items: center; }
.card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.ph { background: linear-gradient(135deg, #1b2229, #0e1216); display: grid; place-items: center; width: 100%; height: 100%; }
.ph svg { width: 40%; opacity: .5; }
.card h3 { font-size: 13px; font-weight: 500; line-height: 1.35; min-height: 53px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .price-row { margin-top: auto; padding-top: 8px; }
.price { font-weight: 800; font-size: 17px; }
.old { font-size: 12px; color: var(--muted); text-decoration: line-through; font-weight: 400; margin-left: 6px; }
.off-txt { color: var(--accent); font-size: 12px; font-weight: 800; }
.card .note { font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.card .add { margin-top: 10px; padding: 9px; font-size: 13px; }
.stock-out { font-size: 12px; color: var(--red); font-weight: 700; margin-top: 10px; }

/* Secondary banners */
.sec-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 44px 0; }
.sec-banners img { border-radius: var(--radius); width: 100%; }

/* Showcase */
.showcase-head { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(90deg, var(--accent), #00b39b); color: var(--on-accent); font-size: 20px; font-weight: 800; padding: 14px 22px; border-radius: var(--radius); margin-bottom: 14px; }
.showcase-head a { font-size: 13px; font-weight: 700; }
.showcase-body { display: grid; grid-template-columns: 210px 1fr; gap: 14px; }
.side-banner { border-radius: var(--radius); overflow: hidden; background: radial-gradient(ellipse at 30% 20%, rgba(0,246,213,.35), transparent 60%), #000; border: 1px solid var(--line); display: flex; align-items: flex-end; padding: 18px; font-weight: 800; font-size: 22px; }
.side-banner img { width: 100%; height: 100%; object-fit: cover; margin: -18px; width: calc(100% + 36px); height: calc(100% + 36px); }
.showcase .c-track { grid-auto-columns: calc((100% - 4 * 14px) / 5); }

/* Top 5 */
.top5 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 50px 0; }
.top5 li a { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.top5 li a:hover .t { color: var(--accent); }
.top5 .rank { font-size: 28px; font-weight: 900; color: var(--accent); width: 30px; font-style: italic; }
.top5 .mini { width: 60px; height: 60px; border-radius: 8px; overflow: hidden; background: #fff; flex-shrink: 0; }
.top5 .mini img { width: 100%; height: 100%; object-fit: contain; }
.top5 .t { font-size: 13px; flex: 1; }
.top5 .p { font-weight: 800; white-space: nowrap; }

/* Info strip */
.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px auto; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; display: flex; align-items: center; gap: 16px; }
.info-card svg { width: 30px; height: 30px; stroke: var(--accent); fill: none; stroke-width: 1.8; flex-shrink: 0; }
.info-card strong { display: block; font-size: 15px; }
.info-card small { font-size: 12px; color: var(--muted); }

/* Footer */
.site-footer { background: #000; border-top: 1px solid var(--line); padding-top: 44px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h4 { font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.site-footer p, .site-footer li { font-size: 13px; color: var(--muted); line-height: 1.6; }
.site-footer li { margin-bottom: 6px; }
.site-footer li a:hover { color: var(--accent); }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.pay-logos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pay-logos span { font-size: 11px; font-weight: 700; border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 30px; padding: 18px 16px; font-size: 12px; color: var(--muted); }

.data-fiscal { display: inline-block; margin-top: 14px; background: #fff; border-radius: 6px; padding: 3px; }
.data-fiscal img { width: 70px; height: auto; }
.wa-float { position: fixed; bottom: 18px; right: 18px; width: 56px; height: 56px; border-radius: 16px; background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.4); z-index: 40; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--card); border: 1px solid var(--accent); color: var(--text); padding: 12px 18px; border-radius: 10px; font-size: 14px; opacity: 0; transition: .25s; z-index: 100; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Listing page */
.page-head { margin: 28px 0 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.page-head h1 { font-size: 26px; font-weight: 800; }
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }
.breadcrumb { font-size: 12px; color: var(--muted); margin-top: 22px; }
.breadcrumb a:hover { color: var(--accent); }

/* Product page */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; margin: 20px 0 40px; }
.gallery-main { background: #fff; border-radius: var(--radius); aspect-ratio: 1; overflow: hidden; display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs button { width: 70px; height: 70px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: #fff; cursor: pointer; padding: 0; }
.gallery-thumbs button.on { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp h1 { font-size: 24px; font-weight: 800; line-height: 1.3; margin: 8px 0 14px; }
.pdp .price { font-size: 32px; }
.pdp .transfer { background: var(--bg-2); border: 1px dashed var(--accent); border-radius: 8px; padding: 10px 14px; margin: 14px 0; font-size: 14px; }
.pdp .transfer b { color: var(--accent); }
.pay-table { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; }
.pay-table strong { display: block; font-size: 13px; margin-bottom: 4px; }
.pay-table .sum-row { font-size: 13px; gap: 10px; }
.card .cuotas { font-size: 11px; color: var(--accent); font-weight: 600; margin-top: 3px; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { width: 38px; background: var(--bg-2); border: 0; cursor: pointer; font-size: 18px; }
.qty input { width: 50px; text-align: center; background: transparent; border: 0; outline: 0; }
.buy-row { display: flex; gap: 10px; margin: 18px 0; }
.buy-row .btn { flex: 1; }
.desc { white-space: pre-line; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.stock-line { font-size: 13px; margin-top: 6px; }
.stock-line.ok { color: var(--green); } .stock-line.no { color: var(--red); }

/* Cart & checkout */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; margin: 24px 0 40px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel h2 { font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.cart-line { display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .mini { width: 80px; height: 80px; border-radius: 8px; background: #fff; overflow: hidden; }
.cart-line .mini img { width: 100%; height: 100%; object-fit: contain; }
.cart-line h3 { font-size: 14px; font-weight: 600; }
.cart-line .remove { background: none; border: 0; color: var(--muted); font-size: 12px; cursor: pointer; margin-left: 10px; }
.cart-line .remove:hover { color: var(--red); }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.sum-row.total { font-size: 20px; font-weight: 800; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.sum-row.disc { color: var(--accent); }
.coupon { display: flex; gap: 8px; margin: 14px 0; }
.coupon .btn { padding: 10px 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.opt { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 14px; cursor: pointer; margin-bottom: 10px; transition: border-color .15s; }
.opt:hover { border-color: #3a4550; }
.opt:has(input:checked) { border-color: var(--accent); background: rgba(0,246,213,.06); }
.opt input { accent-color: var(--accent); margin-top: 3px; }
.opt strong { display: block; font-size: 14px; }
.opt small { color: var(--muted); font-size: 12px; }
.opt .tag { margin-left: 6px; font-size: 10px; background: var(--yellow); color: #111; padding: 2px 6px; border-radius: 4px; font-weight: 800; }
.error { background: rgba(239,68,68,.12); border: 1px solid var(--red); color: #fecaca; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 12px; }

/* Order page */
.order-box { max-width: 720px; margin: 40px auto; }
.status-hero { text-align: center; padding: 30px 20px; }
.status-icon { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; font-size: 34px; font-weight: 900; }
.status-icon.ok { background: rgba(34,197,94,.15); color: var(--green); }
.status-icon.wait { background: rgba(0,246,213,.12); color: var(--accent); }
.status-icon.bad { background: rgba(239,68,68,.15); color: var(--red); }
.bank { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 14px; align-items: center; font-size: 14px; }
.bank dt { color: var(--muted); }
.bank dd { font-weight: 700; word-break: break-all; }
.copy { background: none; border: 1px solid var(--line); color: var(--accent); border-radius: 6px; padding: 3px 8px; cursor: pointer; font-size: 12px; }

/* Legal pages */
.legal { max-width: 860px; }
.legal > h1 { font-size: 28px; font-weight: 800; margin: 14px 0 18px; }
.legal article h2 { font-size: 17px; margin: 22px 0 8px; color: var(--accent); }
.legal article h2:first-child { margin-top: 0; }
.legal article p, .legal article li { color: #c8d2d8; font-size: 14px; line-height: 1.7; margin-bottom: 8px; }
.legal article ul { list-style: disc; padding-left: 20px; margin-bottom: 8px; }
.legal article a { color: var(--accent); text-decoration: underline; }
.rate-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rate-table th, .rate-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.rate-table th { color: var(--muted); font-weight: 600; font-size: 12px; }

/* Shipping estimator (ficha de producto) */
.ship-est { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-top: 14px; }
.ship-est select { margin: 8px 0; }
.ship-est .sum-row { font-size: 13px; }
.tracking { background: var(--bg-2); border: 1px solid var(--accent); border-radius: 8px; padding: 12px 14px; margin-top: 12px; font-size: 14px; }

/* Simulated gateway */
body.simulate { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.sim-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 32px; max-width: 440px; text-align: center; }
.sim-card h1 { font-size: 20px; margin: 12px 0; }
.sim-card p { margin-bottom: 10px; }
.sim-card form { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.sim-tag { background: var(--yellow); color: #111; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 4px; }

/* Responsive */
@media (max-width: 1024px) {
  .c-track { grid-auto-columns: calc((100% - 3 * 14px) / 4); }
  .showcase .c-track { grid-auto-columns: calc((100% - 2 * 14px) / 3); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .header-main { flex-wrap: wrap; gap: 10px; }
  .logo { width: 160px; height: 28px; }
  .logo img { width: 254px; left: -48px; top: -47px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .header-nav { overflow-x: auto; scrollbar-width: none; }
  .dd-toggle { width: auto; }
  .dd-menu { position: fixed; left: 16px; right: 16px; width: auto; top: auto; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .c-track, .showcase .c-track { grid-auto-columns: calc((100% - 14px) / 2); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .showcase-body { grid-template-columns: 1fr; }
  .side-banner { display: none; }
  .sec-banners, .top5, .info-strip, .footer-grid, .pdp, .form-grid { grid-template-columns: 1fr; }
  .c-btn { display: none; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .hero-track img, .hero-empty { aspect-ratio: 2 / 1; }
}
