/* ==========================================================================
   Tienda en línea
   ========================================================================== */
body { background: var(--bg) url('../img/fondo-tec-claro.svg') repeat; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 720px) { .hide-sm { display: none !important; } }

/* ---------- Topbar / header ---------- */
.topbar { background: #040f26; color: #b8c7e6; font-size: 13px; border-bottom: 1px solid rgba(143, 217, 38, .18); }
.topbar .wrap { padding-top: 7px; padding-bottom: 7px; gap: 22px; }
.topbar b { color: #fff; }
.topbar svg { width: 15px; height: 15px; color: var(--accent-2); }

.header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--border); }
.header-in { display: flex; align-items: center; gap: 22px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; flex-shrink: 0; }
.brand-icon { width: 44px; height: 51px; flex-shrink: 0; filter: drop-shadow(0 4px 8px rgba(7, 26, 61, .18)); transition: transform .3s; }
.brand:hover .brand-icon { transform: rotate(-6deg) scale(1.05); }
.brand-txt { display: flex; flex-direction: column; line-height: .92; font-family: var(--font-brand); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.brand-txt .s1 { font-size: 23px; color: var(--accent); text-shadow: 0 1px 0 #3f8f0a; }
.brand-txt .s2 { font-size: 23px; color: var(--navy-2); }
.brand-txt small { font-family: var(--font); font-size: 10.5px; color: var(--muted); font-weight: 700; letter-spacing: .06em; margin-top: 4px; text-transform: uppercase; }
.brand-dark .brand-txt .s1 { color: var(--accent-2); text-shadow: none; }
.brand-dark .brand-txt .s2 { color: #fff; }
.brand-dark .brand-txt small { color: #8ea3cc; }

.search { flex: 1; display: flex; align-items: center; gap: 8px; background: #f2f5fb; border: 1.5px solid transparent; border-radius: 14px; padding: 5px 5px 5px 14px; transition: .15s; }
.search:focus-within { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px var(--ring); }
.search > svg { color: var(--muted); }
.search input { flex: 1; border: 0; background: transparent; font: inherit; padding: 7px 4px; outline: none; min-width: 0; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.hbtn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: #fff; color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none !important; transition: .15s; }
.hbtn:hover { border-color: var(--blue); color: var(--blue); }
.cart-btn { background: var(--navy); color: #fff; border-color: var(--navy); }
.cart-btn:hover { background: var(--navy-2); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 3px rgba(143, 217, 38, .25); }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--grad-cta); color: #fff; font-size: 12px; display: grid; place-items: center; font-weight: 800; }
.cart-count.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.45); } }

.user-menu { position: relative; }
.user-menu .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; display: none; z-index: 120; }
.user-menu.open .dropdown { display: block; animation: pop .18s ease; }
.dropdown a, .dropdown button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: 14px; background: none; border: 0; cursor: pointer; text-decoration: none !important; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--blue-soft); color: var(--blue); }
.dropdown .dd-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.dropdown .dd-head b { display: block; font-size: 14px; }

.catbar { border-top: 1px solid var(--border); background: #fff; }
.catbar-in { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
.catbar-in::-webkit-scrollbar { display: none; }
.cat-link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; color: #33415e; font-weight: 700; font-size: 13.5px; white-space: nowrap; text-decoration: none !important; transition: .15s; border: 1px solid transparent; }
.cat-link svg { width: 16px; height: 16px; color: var(--blue); }
.cat-link:hover { background: var(--blue-soft); color: var(--blue); }
.cat-link.active { background: var(--navy); color: #fff; }
.cat-link.active svg { color: var(--accent-2); }

@media (max-width: 900px) {
  .header-in { flex-wrap: wrap; gap: 12px; }
  .search { order: 3; flex-basis: 100%; }
  .header-actions { margin-left: auto; }
  .brand-txt { font-size: 22px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: url('../img/fondo-tec.svg') center / cover no-repeat, var(--grad-brand); color: #fff; }
.hero::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(520px 320px at 78% 45%, rgba(143, 217, 38, .20), transparent 65%),
  radial-gradient(600px 400px at 5% 110%, rgba(29, 79, 179, .45), transparent 60%); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .7; }
.hero-scan { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(143, 217, 38, .07) 50%, transparent 100%); background-size: 100% 220px; animation: scan 7s linear infinite; pointer-events: none; }
@keyframes scan { from { background-position: 0 -220px; } to { background-position: 0 100%; } }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 16px; }
.hero h1 .hl { background: var(--grad-accent-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 17px; color: #c9d6f0; max-width: 560px; margin-bottom: 26px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(143, 217, 38, .1); border: 1px solid rgba(143, 217, 38, .35); color: #dff7bd; font-size: 13px; font-weight: 700; margin-bottom: 18px; backdrop-filter: blur(4px); }
.hero .eyebrow svg { color: var(--accent-2); width: 16px; height: 16px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.hero-stats { display: flex; gap: 28px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 28px; font-weight: 800; color: var(--accent-2); font-family: var(--font-brand); letter-spacing: .02em; }
.hero-stats span { color: #a9badd; font-size: 13px; }
.hero-stats > div { padding-left: 14px; border-left: 2px solid rgba(143, 217, 38, .45); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero-logo { position: relative; width: min(330px, 80%); aspect-ratio: 1; display: grid; place-items: center; animation: float 6s ease-in-out infinite; }
.hero-logo::before { content: ''; position: absolute; inset: 0; clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03)); border: 0; backdrop-filter: blur(6px); }
.hero-logo::after { content: ''; position: absolute; inset: -18px; border-radius: 50%; border: 1.5px dashed rgba(143, 217, 38, .45); animation: spin 40s linear infinite; }
.hero-logo .hex-line { position: absolute; inset: 0; }
.hero-logo img { position: relative; width: 44%; margin-top: -16%; filter: drop-shadow(0 0 22px rgba(143, 217, 38, .55)) drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
.hero-logo .name { position: absolute; bottom: 15%; left: 0; right: 0; text-align: center; font-family: var(--font-brand); font-weight: 800; text-transform: uppercase; line-height: .95; font-size: 20px; }
.hero-logo .name b { display: block; color: var(--accent-2); }
.hero-chip { position: absolute; display: flex; align-items: center; gap: 10px; background: rgba(7, 26, 61, .72); color: #fff; padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(143, 217, 38, .35); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); backdrop-filter: blur(8px); font-weight: 700; font-size: 13px; animation: float 6s ease-in-out infinite; }
.hero-chip .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.hero-chip.c1 { top: 8%; left: 0; animation-delay: -2s; }
.hero-chip.c2 { bottom: 12%; right: -4%; animation-delay: -4s; }
.hero-chip.c3 { bottom: 0; left: 6%; animation-delay: -1s; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 40px; } .hero-art { display: none; } }

/* ---------- Beneficios ---------- */
.perks { position: relative; margin-top: -30px; z-index: 2; }
.perks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.perk { display: flex; gap: 14px; align-items: center; padding: 20px 22px; }
.perk + .perk { border-left: 1px solid var(--border); }
.perk .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.perk .ic svg { width: 22px; height: 22px; }
.perk b { display: block; font-size: 14.5px; }
.perk span { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .perks-grid { grid-template-columns: 1fr 1fr; } .perk:nth-child(3) { border-left: 0; } .perk:nth-child(n+3) { border-top: 1px solid var(--border); } }
@media (max-width: 520px) { .perks-grid { grid-template-columns: 1fr; } .perk + .perk { border-left: 0; border-top: 1px solid var(--border); } }

/* ---------- Secciones ---------- */
.section { padding: 44px 0 0; }
.section-h { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-h h2 { font-size: 26px; font-weight: 800; margin: 0; }
.section-h p { margin: 4px 0 0; color: var(--muted); }

.cat-cards { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px; border-radius: 16px; background: #fff; border: 1px solid var(--border); text-align: center; color: var(--text); text-decoration: none !important; transition: .2s; cursor: pointer; }
.cat-card:hover, .cat-card.active { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.cat-card.active { outline: 2px solid var(--blue); }
.cat-card .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; }
.cat-card .ic svg { width: 26px; height: 26px; }
.cat-card b { font-size: 13px; line-height: 1.25; }
.cat-card small { color: var(--muted); font-size: 12px; }
@media (max-width: 1100px) { .cat-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Catálogo ---------- */
.shop { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.filters { position: sticky; top: 150px; }
.filters .card { padding: 16px; }
.filters h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.filters h4 svg { width: 15px; height: 15px; }
.filter-block + .filter-block { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 16px; }
.filter-list { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; max-height: 260px; overflow-y: auto; }
.filter-list .check { justify-content: space-between; width: 100%; }
.filter-list .check small { color: var(--muted); margin-left: auto; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-range .input { padding: 9px 10px; }
.filters-toggle { display: none; }
@media (max-width: 900px) {
  .shop { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
}

.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); font-size: 14px; }
.toolbar .count b { color: var(--text); }
.toolbar select { width: auto; padding: 9px 12px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 700; }
.chip button { border: 0; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; padding: 2px; border-radius: 50%; }
.chip button:hover { background: rgba(10, 92, 230, .15); }
.chip svg { width: 14px; height: 14px; }

.grid-products { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1240px) { .grid-products { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 960px) { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* ---------- Tarjeta de producto ---------- */
.pcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .25s, border-color .2s; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16, 36, 80, .14); border-color: transparent; }
.pcard:focus-visible { outline: 3px solid var(--ring); }
.pcard-img { position: relative; aspect-ratio: 1 / .78; background: #f4f7fc; overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pcard:hover .pcard-img img { transform: scale(1.05); }
.pcard.agotado .pcard-img img { filter: grayscale(.7); opacity: .75; }
.pcard-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.pbadge { padding: 3px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; color: #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .12); display: inline-flex; align-items: center; gap: 4px; }
.pbadge svg { width: 11px; height: 11px; }
.pbadge.oferta { background: var(--grad-cta); }
.pbadge.top { background: var(--navy); color: var(--accent-2); }
.pbadge.out { background: #6b7280; }
.pcard-quick { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .95); color: var(--navy); box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(-6px); transition: .2s; }
.pcard:hover .pcard-quick { opacity: 1; transform: none; }
.pcard-body { display: flex; flex-direction: column; flex: 1; padding: 9px 10px 10px; gap: 5px; }
.pcard-meta { display: flex; align-items: center; gap: 5px; font-size: 10px; white-space: nowrap; overflow: hidden; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.pcard-meta .brand-tag { color: var(--blue); flex-shrink: 0; }
.pcard-meta span:last-child { overflow: hidden; text-overflow: ellipsis; }
.pcard h3 { font-size: 12.5px; font-weight: 700; margin: 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 32.5px; }
.pcard-specs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: #4b5874; }
.pcard-specs li { display: flex; gap: 4px; align-items: flex-start; }
.pcard-specs li svg { width: 12px; height: 12px; color: var(--green); margin-top: 2px; }
.pcard-specs li span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: flex-end; gap: 6px; }
.price { display: flex; flex-direction: column; line-height: 1.1; }
.price .now { font-size: 15.5px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.price .old { font-size: 11px; color: var(--muted); text-decoration: line-through; }
.pcard-foot .btn { margin-left: auto; padding: 7px 8px; border-radius: 10px; font-size: 12px; gap: 4px; }
.pcard-foot .btn svg { width: 16px; height: 16px; }
.stock { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; }
.stock.ok { color: var(--green); }
.stock.low { color: #c2410c; }
.stock.out { color: var(--red); }
.stock .dot { background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }

/* ---------- Detalle de producto (modal) ---------- */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.pd-gallery .main { aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #f4f7fc; border: 1px solid var(--border); }
.pd-gallery .main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumbs button { width: 66px; height: 66px; border-radius: 12px; overflow: hidden; border: 2px solid var(--border); padding: 0; cursor: pointer; background: #fff; }
.pd-thumbs button.active { border-color: var(--blue); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h2 { font-size: 24px; font-weight: 800; margin: 8px 0 6px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin: 14px 0; flex-wrap: wrap; }
.pd-price .now { font-size: 32px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.pd-price .old { font-size: 16px; color: var(--muted); text-decoration: line-through; }
.pd-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.pd-fact { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #f6f8fc; font-size: 13px; }
.pd-fact svg { color: var(--blue); }
.pd-fact b { display: block; font-size: 13.5px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.qty button { width: 38px; height: 40px; border: 0; background: #f6f8fc; cursor: pointer; display: grid; place-items: center; color: var(--text); }
.qty button:hover { background: var(--blue-soft); color: var(--blue); }
.qty input { width: 50px; height: 40px; border: 0; text-align: center; font: inherit; font-weight: 800; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm button { width: 30px; height: 32px; }
.qty.sm input { width: 38px; height: 32px; font-size: 14px; }
.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.specs-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.specs-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.specs-table tr:nth-child(odd) td { background: #f8faff; }
.specs-table td:first-child { font-weight: 700; color: #33415e; width: 40%; }
.pd-section { margin-top: 26px; }
.pd-section h4 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.related .pcard h3 { font-size: 13.5px; min-height: 35px; }
.related .pcard-specs, .related .pcard-foot .btn, .related .stock { display: none; }
.related .price .now { font-size: 16px; }
@media (max-width: 820px) { .pd { grid-template-columns: 1fr; } .related { grid-template-columns: 1fr 1fr; } }

/* ---------- Drawer carrito ---------- */
.drawer-back { position: fixed; inset: 0; background: rgba(9, 20, 45, .5); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: .25s; z-index: 900; }
.drawer-back.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; z-index: 901; transform: translateX(105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer.open { transform: none; }
.drawer-h { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.drawer-h h3 { margin: 0; flex: 1; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.drawer-b { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-f { padding: 18px 20px; border-top: 1px solid var(--border); background: #fafbfe; }
.citem { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: center; }
.citem img { width: 70px; height: 70px; border-radius: 12px; object-fit: cover; border: 1px solid var(--border); }
.citem .nm { font-weight: 700; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.citem .pr { font-size: 13px; color: var(--muted); margin: 3px 0 7px; }
.citem .sub { font-weight: 800; text-align: right; }
.citem .warn { font-size: 12px; color: var(--red); font-weight: 700; margin-top: 4px; }
.totals { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.totals .r { display: flex; justify-content: space-between; }
.totals .r.big { font-size: 20px; font-weight: 800; color: var(--navy); padding-top: 8px; border-top: 1px dashed var(--border); margin-top: 4px; }

/* ---------- Páginas de cuenta ---------- */
.page { padding: 36px 0 60px; min-height: 60vh; }
.page-h { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.page-h h1 { font-size: 28px; font-weight: 800; margin: 0; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumbs svg { width: 14px; height: 14px; }

.auth { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 560px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: #fff; border: 1px solid var(--border); }
.auth-side { position: relative; background: url("../img/fondo-tec.svg") center / cover no-repeat, var(--grad-brand); color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth-side::after { content: ''; position: absolute; width: 380px; height: 380px; right: -140px; bottom: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(143, 217, 38, .35), transparent 65%); }
.auth-side h2 { font-size: 28px; font-weight: 800; }
.auth-side ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 14px; }
.auth-side li { display: flex; gap: 12px; align-items: flex-start; color: #d4e1ff; font-size: 14.5px; }
.auth-side li svg { color: var(--accent-2); margin-top: 2px; }
.auth-side .cart-mini { position: relative; z-index: 1; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.auth-main { padding: 40px; }
.auth-main h1 { font-size: 26px; font-weight: 800; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-side { padding: 28px; } .auth-main { padding: 26px; } }

.steps { display: flex; gap: 8px; margin: 18px 0 24px; }
.step { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.step .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #eef1f6; font-weight: 800; flex-shrink: 0; }
.step.active { color: var(--text); }
.step.active .n { background: var(--blue); color: #fff; box-shadow: 0 0 0 5px var(--blue-soft); }
.step.done .n { background: var(--green); color: #fff; }
.step + .step::before { content: ''; flex: 0 0 18px; height: 2px; background: var(--border); margin-right: 2px; }

.sat-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1.5px solid; }
.sat-card.ok { border-color: #a7e3bf; background: var(--green-soft); }
.sat-card.no { border-color: #fcd9a0; background: var(--amber-soft); }
.sat-card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.sat-card.ok .ic { background: var(--green); }
.sat-card.no .ic { background: var(--amber); }

.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.checkout .summary { position: sticky; top: 150px; }
.opt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt { position: relative; display: flex; gap: 12px; padding: 16px; border: 2px solid var(--border); border-radius: 16px; cursor: pointer; transition: .15s; background: #fff; }
.opt:hover { border-color: #b7cdf7; }
.opt input { position: absolute; opacity: 0; }
.opt .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #f1f4f9; color: var(--muted); flex-shrink: 0; transition: .15s; }
.opt b { display: block; font-size: 15px; }
.opt span { font-size: 13px; color: var(--muted); }
.opt.checked { border-color: var(--blue); background: #f7faff; box-shadow: 0 0 0 4px var(--blue-soft); }
.opt.checked .ic { background: var(--blue); color: #fff; }
.opt.checked.cot { border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); background: #fbf8ff; }
.opt.checked.cot .ic { background: var(--violet); }
.sum-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.sum-item img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); }
.sum-item .q { position: relative; }
.sum-item .q span { position: absolute; top: -6px; right: -6px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; min-width: 20px; height: 20px; display: grid; place-items: center; }
@media (max-width: 960px) { .checkout { grid-template-columns: 1fr; } .checkout .summary { position: static; } .opt-cards { grid-template-columns: 1fr; } }

/* Órdenes del cliente */
.tabs { display: inline-flex; background: #eaeef6; padding: 4px; border-radius: 12px; gap: 4px; }
.tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 9px; font-weight: 700; color: var(--muted); cursor: pointer; font-size: 14px; }
.tabs button.active { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.olist { display: flex; flex-direction: column; gap: 12px; }
.oitem { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; cursor: pointer; transition: .15s; text-decoration: none !important; color: inherit; }
.oitem:hover { box-shadow: var(--shadow); border-color: transparent; }
.oitem img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; border: 1px solid var(--border); }
.oitem .code { font-weight: 800; font-size: 16px; }
.oitem .total { font-weight: 800; font-size: 18px; color: var(--navy); text-align: right; }
@media (max-width: 600px) { .oitem { grid-template-columns: 1fr; } .oitem img { display: none; } .oitem .total { text-align: left; } }

.tracker { display: flex; justify-content: space-between; position: relative; margin: 10px 0 6px; }
.tracker::before { content: ''; position: absolute; top: 20px; left: 30px; right: 30px; height: 4px; background: #e6ebf3; border-radius: 4px; }
.tracker .bar { position: absolute; top: 20px; left: 30px; height: 4px; background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: 4px; transition: width .6s; }
.tk { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 90px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.tk .c { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid #e6ebf3; color: #a0acc2; }
.tk.done .c { background: var(--green); border-color: var(--green); color: #fff; }
.tk.now .c { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 6px var(--blue-soft); }
.tk.done, .tk.now { color: var(--text); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 28px; font-size: 14px; }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.timeline li::after { content: ''; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline .when { font-size: 12px; color: var(--muted); }

.success-hero { text-align: center; padding: 26px 20px 8px; }
.success-hero .ic { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--green-soft); color: var(--green); }
.success-hero .ic svg { width: 38px; height: 38px; }

/* ---------- Footer ---------- */
.footer { background: url("../img/fondo-tec.svg") center / cover no-repeat, #040f26; border-top: 2px solid var(--accent); color: #c9d6f2; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding-top: 44px; padding-bottom: 30px; }
.footer .brand { margin-bottom: 14px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer a { color: #c9d6f2; }
.footer a:hover { color: var(--accent-2); }
.footer .contact li { display: flex; gap: 8px; align-items: center; }
.footer .contact svg { width: 16px; height: 16px; color: var(--accent-2); }
.muted-l { color: #93a6cf; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 16px; padding-bottom: 20px; font-size: 13px; color: #8094c0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.wa-float { position: fixed; left: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37, 211, 102, .45); z-index: 800; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }

/* ---------- Precio mayorista ---------- */
.pbadge.mayor { background: linear-gradient(135deg, #0e2a5c, #12398a); color: var(--accent-2); }
.price .lbl { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-dark); }
.price.mayor .now { color: var(--accent-dark); }
.pd-price-lbl { margin-top: 14px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-dark); }
.pd-price-lbl + .pd-price { margin-top: 2px; }
.pd-price-lbl + .pd-price .now { color: var(--accent-dark); }
.mayorista-hint { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); color: #2f5f08; font-size: 13px; text-decoration: none !important; border: 1px dashed #b9e58a; }
.mayorista-hint:hover { background: #e4f7cf; }
.mayorista-hint svg { color: var(--accent-dark); }
.tipo-chip { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--accent-soft); color: var(--accent-dark); }

/* ---------- Pedido por WhatsApp (visitantes) ---------- */
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5b; box-shadow: 0 8px 22px rgba(37, 211, 102, .38); }
.wa-card { border: 2px solid #b7efcd; background: linear-gradient(180deg, #f3fdf7, #fff 120px); }
.wa-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #25d366; color: #fff; flex-shrink: 0; }
.ic-round { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); flex-shrink: 0; }
.wa-preview { white-space: pre-wrap; font-family: inherit; font-size: 13px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 14px; margin-top: 10px; }
