/* ===== Tienda Hosted — estilos ===== */
:root {
  --green: #9dc050;
  --green-dark: #7fa03a;
  --dark: #080c10;
  --dark-2: #0f1620;
  --dark-3: #1a2432;
  --text: #1c2430;
  --muted: #64748b;
  --bg: #f6f8fa;
  --card: #ffffff;
  --border: #e4e9ef;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(8, 12, 16, .07);
  --shadow-lg: 0 12px 40px rgba(8, 12, 16, .14);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
h1, h2, h3, h4 { font-family: 'Sora', 'Inter', sans-serif; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.center { text-align: center; }

/* Promo bar */
.promo-bar { background: var(--green); color: var(--dark); font-size: .8rem; font-weight: 600; text-align: center; padding: .4rem 1rem; }

/* Header */
.site-header { background: var(--dark); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 20px rgba(0,0,0,.35); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding: .8rem 1.25rem; }
.brand { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.brand-logo { height: 40px; width: auto; }
.brand-tag { background: var(--green); color: var(--dark); font-size: .65rem; font-weight: 800; text-transform: uppercase; padding: .15rem .5rem; border-radius: 20px; letter-spacing: .06em; }
.main-nav { display: flex; gap: 1.35rem; margin-left: .5rem; }
.main-nav a { color: #cbd5e1; font-size: .9rem; font-weight: 500; transition: color .2s; white-space: nowrap; }
.main-nav a:hover { color: var(--green); }
.header-actions { display: flex; align-items: center; gap: .9rem; margin-left: auto; }
.search-wrap { position: relative; }
.search-form { display: flex; background: var(--dark-3); border-radius: 30px; overflow: hidden; border: 1px solid #2a3648; }

/* Vista previa del buscador */
.search-drop { position: absolute; top: calc(100% + .5rem); right: 0; width: 380px; max-width: 88vw; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 18px 48px rgba(8,12,16,.22); overflow: hidden; z-index: 120; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s; max-height: 70vh; overflow-y: auto; }
.search-drop.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sd-item { display: flex; gap: .75rem; align-items: center; padding: .6rem .8rem; border-bottom: 1px solid var(--border); transition: background .15s; }
.sd-item:hover, .sd-item.hl { background: #f2f7e8; }
.sd-item img { width: 46px; height: 46px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: .2rem; flex-shrink: 0; }
.sd-txt { min-width: 0; flex: 1; }
.sd-name { display: block; font-size: .86rem; font-weight: 600; color: var(--text); line-height: 1.25; }
.sd-name mark { background: rgba(157,192,80,.4); color: inherit; padding: 0 1px; border-radius: 2px; }
.sd-meta { font-size: .74rem; color: var(--muted); }
.sd-price { font-size: .78rem; font-weight: 700; color: var(--green-dark); white-space: nowrap; }
.sd-foot { display: block; text-align: center; padding: .7rem; font-size: .84rem; font-weight: 700; color: var(--green-dark); background: #f8fafc; }
.sd-foot:hover { background: #eef2f6; }
.sd-empty { padding: 1.4rem 1rem; text-align: center; color: var(--muted); font-size: .88rem; }
.sd-load { padding: 1rem; text-align: center; color: var(--muted); font-size: .84rem; }
.search-form input { background: transparent; border: 0; color: #fff; padding: .5rem .9rem; width: 170px; outline: 0; font-size: .85rem; }
.search-form input::placeholder { color: #7a8aa0; }
.search-form button { background: transparent; border: 0; color: #cbd5e1; padding: 0 .8rem; cursor: pointer; }
.cart-btn { position: relative; font-size: 1.35rem; color: #fff; }
.cart-count { position: absolute; top: -7px; right: -11px; background: var(--green); color: var(--dark); font-size: .68rem; font-weight: 800; min-width: 19px; height: 19px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.nav-toggle { display: none; background: transparent; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Hero v2 — slider fotográfico */
.hero-v2 { position: relative; background: var(--dark); color: #fff; overflow: hidden; display: flex; align-items: center; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 7s linear; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,12,16,.62) 0%, rgba(8,12,16,.38) 45%, rgba(8,12,16,.08) 100%); }
.hero-content { position: relative; z-index: 2; padding-top: 4.5rem; padding-bottom: 5rem; max-width: 1200px; width: 100%; text-align: left; }
.hero-v2 h1, .hero-v2 p { text-shadow: 0 2px 14px rgba(8,12,16,.6); }
.hero-tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); border-left: 3px solid var(--green); padding-left: .7rem; margin-bottom: 1.3rem; }
.hero-v2 h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; max-width: 15ch; line-height: 1.12; margin-bottom: 1.1rem; }
.hero-v2 p { color: #c6d0dc; font-size: 1.08rem; max-width: 34rem; margin-bottom: 2rem; }
.hero-v2 .hero-ctas { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.btn-outline { background: rgba(8,12,16,.35); color: #fff; border: 1.5px solid rgba(255,255,255,.65); backdrop-filter: blur(2px); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.hero-dots { position: absolute; right: 1.6rem; bottom: 1.6rem; z-index: 3; display: flex; gap: .5rem; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.35); cursor: pointer; transition: all .25s; padding: 0; }
.hero-dot.is-active { background: var(--green); width: 26px; border-radius: 6px; }
.hero-scroll { position: absolute; left: 1.6rem; bottom: 1.4rem; z-index: 3; display: flex; align-items: center; gap: .6rem; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: #93a3b5; }
.hero-scroll span { display: block; width: 1px; height: 34px; background: linear-gradient(180deg, var(--green), transparent); animation: scrollPulse 1.8s ease-in-out infinite; }
/* Alineación configurable del hero */
.hero-align-center .hero-content { text-align: center; }
.hero-align-center .hero-v2 h1, .hero-align-center h1 { max-width: none; }
.hero-align-center .hero-ctas, .hero-align-center .hero-stats { justify-content: center; }
.hero-align-center .hero-v2 p, .hero-align-center .hero-content > p { margin-left: auto; margin-right: auto; }
.hero-align-right .hero-content { text-align: right; }
.hero-align-right .hero-ctas, .hero-align-right .hero-stats { justify-content: flex-end; }
.hero-align-right .hero-content > p { margin-left: auto; }
.hero-align-right .hero-tag { border-left: 0; border-right: 3px solid var(--green); padding-left: 0; padding-right: .7rem; }
.hero-align-right .hero-v2 h1, .hero-align-right h1 { margin-left: auto; }
@keyframes scrollPulse { 0%,100% { opacity: .4; transform: scaleY(.7); } 50% { opacity: 1; transform: scaleY(1); } }
@media (max-width: 760px) { .hero-scroll { display: none; } .hero-v2 .hero-content { padding-top: 3rem; padding-bottom: 3.5rem; } }

/* Hero (legacy) */
.hero { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background:
  radial-gradient(600px 400px at 85% 20%, rgba(157,192,80,.16), transparent 60%),
  radial-gradient(500px 400px at 10% 90%, rgba(157,192,80,.08), transparent 60%),
  repeating-linear-gradient(45deg, transparent 0 34px, rgba(255,255,255,.015) 34px 68px); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; padding-top: 4.5rem; padding-bottom: 4.5rem; }
.hero-badge { display: inline-block; background: rgba(157,192,80,.14); border: 1px solid rgba(157,192,80,.4); color: var(--green); font-size: .8rem; font-weight: 600; padding: .35rem .9rem; border-radius: 30px; margin-bottom: 1.2rem; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; margin-bottom: 1rem; }
.hero p { color: #aab8c9; font-size: 1.1rem; max-width: 34rem; margin-bottom: 1.8rem; }
.hero-ctas { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.hero-stats { display: flex; gap: 2.5rem; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: 'Sora'; font-size: 1.9rem; color: var(--green); }
.hero-stats strong::after { content: '+'; }
.hero-stats span { color: #8194a9; font-size: .8rem; }
.hero-visual { position: relative; height: 360px; display: none; }
.hero-ring { position: absolute; width: 300px; height: 300px; border: 2px dashed rgba(157,192,80,.35); border-radius: 50%; top: 30px; left: 50%; transform: translateX(-50%); }
.hero-card { position: absolute; background: var(--dark-2); border: 1px solid #223046; border-radius: var(--radius); padding: 1rem 1.3rem; display: flex; flex-direction: column; gap: .3rem; font-size: 1.8rem; box-shadow: var(--shadow-lg); }
.hero-card span { font-size: .8rem; font-weight: 600; color: #cbd5e1; white-space: nowrap; }
.hc-1 { top: 8%; left: 6%; }
.hc-2 { top: 40%; right: 2%; }
.hc-3 { bottom: 4%; left: 18%; }
@media (min-width: 900px) { .hero-visual { display: block; } }

/* Botones */
.btn { display: inline-block; padding: .65rem 1.3rem; border-radius: 0; font-weight: 700; font-size: .92rem; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s, background .2s; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: var(--dark); box-shadow: 0 4px 14px rgba(157,192,80,.35); }
.btn-primary:hover { background: #aacd62; }
.btn-primary:disabled { background: #c7d6a8; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; opacity: .85; }
.btn-green-dark { background: #4f6b1f; color: #fff; box-shadow: 0 4px 14px rgba(79,107,31,.3); }
.btn-green-dark:hover { background: #5d7d25; color: #fff; }
.btn-dark { background: var(--dark); color: var(--green); border: 1.5px solid var(--dark); }
.btn-dark:hover { background: var(--dark-3); }
.btn-lg { padding: .85rem 1.7rem; font-size: 1rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Secciones */
.section { padding: 4rem 0; }
.section-alt { background: #eef2f6; }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: 2rem; margin-bottom: .4rem; }
.section-head p { color: var(--muted); }

/* Categorías con imagen — full bleed 4 columnas */
.catv-section { padding-bottom: 0; }
.catv-full { display: grid; grid-template-columns: repeat(var(--catv-cols, 4), 1fr); gap: 4px; width: 100%; }
.catv-card { position: relative; overflow: hidden; aspect-ratio: 3 / 5.2; display: block; background: var(--dark-2); }
.catv-img { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: var(--dark-2); transition: transform .55s ease; filter: saturate(.92); }
.catv-card:hover .catv-img { transform: scale(1.06); }
.catv-noimg { background:
  radial-gradient(480px 300px at 50% 30%, rgba(157,192,80,.10), transparent 65%),
  repeating-linear-gradient(45deg, #0f1620 0 26px, #121a26 26px 52px); display: flex; align-items: center; justify-content: center; }
.catv-ghost svg { width: 130px; height: 130px; color: rgba(157,192,80,.16); }
.catv-badge { position: absolute; top: 1.3rem; left: 1.3rem; z-index: 2; width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(8,12,16,.35); transition: transform .25s; }
.catv-badge svg { width: 30px; height: 30px; }
.catv-card:hover .catv-badge { transform: scale(1.1) rotate(-4deg); }
.catv-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.6rem 1.5rem 1.7rem; background: linear-gradient(180deg, rgba(8,12,16,.18) 0%, rgba(8,12,16,.28) 45%, rgba(8,12,16,.86) 100%); color: #fff; }
.catv-overlay h3 { font-size: 1.45rem; font-weight: 800; line-height: 1.15; margin-bottom: .35rem; text-shadow: 0 2px 10px rgba(0,0,0,.55); min-height: 2.3em; display: flex; align-items: flex-end; }
.catv-n { font-size: .95rem; font-weight: 600; color: var(--green); margin-bottom: 1rem; }
.catv-btn { display: inline-block; align-self: flex-start; background: var(--green); color: var(--dark); font-size: .9rem; font-weight: 800; padding: .6rem 1.2rem; border-radius: 0; transition: background .2s, transform .2s; }
.catv-card:hover .catv-btn { background: #aacd62; transform: translateX(4px); }
/* ===== Editor de señalética personalizada ===== */
.perso-band { background: linear-gradient(135deg, #0f1620 0%, #1a2432 100%); color: #fff; padding: 2.2rem 0; margin-top: 4px; }
.perso-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; flex-wrap: wrap; }
.perso-txt h3 { font-size: 1.5rem; margin-bottom: .3rem; }
.perso-txt p { color: #9fb0c4; font-size: .95rem; max-width: 44rem; }
.perso-cta { background: var(--green); color: var(--dark); font-weight: 800; padding: .9rem 1.8rem; font-size: 1rem; white-space: nowrap; transition: transform .2s, background .2s; }
.perso-cta:hover { background: #aacd62; transform: translateX(4px); }
.perso-demo { display: flex; gap: .5rem; }
.perso-demo span { width: 62px; height: 44px; border-radius: 4px; display: flex; flex-direction: column; overflow: hidden; font-size: 6px; font-weight: 800; align-items: stretch; }
.perso-demo i { display: block; text-align: center; padding: 3px 0; font-style: normal; }

.tpl-grupo { font-size: 1rem; margin: 1.6rem 0 .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.tpl-card { background: var(--card); border: 2px solid var(--border); border-radius: var(--radius); padding: .9rem; cursor: pointer; font-family: inherit; transition: transform .2s, border-color .2s, box-shadow .2s; text-align: center; }
.tpl-card:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: var(--shadow-lg); }
.tpl-mini { display: flex; flex-direction: column; width: 100%; aspect-ratio: 3/2; border-radius: 4px; overflow: hidden; margin-bottom: .6rem; }
.tpl-banda { font-size: .58rem; font-weight: 800; padding: .28rem 0; letter-spacing: .04em; }
.tpl-body { flex: 1; display: flex; align-items: center; justify-content: center; font-size: .62rem; font-weight: 700; }
.tpl-name { font-size: .84rem; font-weight: 700; color: var(--text); }

.btn-volver { background: transparent; border: 0; color: var(--muted); font-family: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; padding: .4rem 0; margin-bottom: 1rem; }
.btn-volver:hover { color: var(--green-dark); }
.ed-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.ed-preview-col { position: sticky; top: 100px; }
.ed-stage { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); aspect-ratio: 1; padding: 2rem; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ed-sign { display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(8,12,16,.18); border-radius: 3px; overflow: hidden; transition: width .25s, height .25s, background .2s; }
.ed-banda { font-weight: 800; text-align: center; padding: 4% 0; letter-spacing: .05em; font-size: clamp(11px, 4vw, 30px); }
.ed-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 5%; }
.ed-text { font-weight: 800; text-align: center; line-height: 1.2; white-space: pre-wrap; word-break: break-word; }
.ed-dims { text-align: center; margin-top: .9rem; }
.ed-dims strong { display: block; font-size: 1.05rem; }
.ed-dims small { color: var(--muted); font-size: .82rem; }
.ed-controls { background: transparent; border: 0; border-radius: 0; padding: 0; }
.ed-controls h3 { font-size: 1rem; margin-bottom: .7rem; }
.ed-quick { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.ed-chip { background: #fff; border: 1.5px solid var(--border); padding: .35rem .7rem; border-radius: 20px; font-size: .78rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.ed-chip:hover { border-color: var(--green); }
.ed-lbl { font-size: .82rem; font-weight: 700; display: block; margin-bottom: .4rem; }
.ed-fs { margin-top: 1rem; background: #f7f9fb; border: 1px solid var(--border); border-radius: 12px; padding: .8rem 1rem 1rem; }
.ed-fs-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.ed-fs-val { font-size: .8rem; font-weight: 700; color: var(--green-dark); }
.ed-fs-row { display: flex; align-items: center; gap: .7rem; }
.ed-fs-row input[type=range] { flex: 1; accent-color: var(--green); cursor: pointer; }
.ed-fs-btn { background: #fff; border: 1.5px solid var(--border); border-radius: 8px; width: 40px; height: 34px; cursor: pointer; font-family: inherit; font-weight: 800; font-size: .95rem; line-height: 1; display: flex; align-items: center; justify-content: center; gap: 1px; }
.ed-fs-btn small { font-size: .7rem; }
.ed-fs-btn:hover { border-color: var(--green); }
.ed-fs-auto { background: none; border: 0; color: var(--muted); font-family: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; padding: .5rem 0 0; }
.ed-fs-auto:hover { color: var(--green-dark); }
.ed-swatches { display: flex; gap: .45rem; flex-wrap: wrap; }
.ed-sw { width: 34px; height: 34px; border-radius: 8px; border: 2px solid var(--border); cursor: pointer; padding: 0; position: relative; }
.ed-sw.on { border-color: var(--dark); box-shadow: 0 0 0 2px var(--green); }
.ed-sw-pick { background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red); overflow: hidden; display: block; }
.ed-sw-pick input { opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.ed-price-box { background: #f2f7e8; border: 1px solid var(--green); border-radius: 12px; padding: 1rem 1.2rem; margin: 1.4rem 0 1rem; }
.ed-price-row { display: flex; justify-content: space-between; align-items: baseline; }
.ed-price-row strong { font-size: 1.4rem; color: var(--green-dark); font-family: 'Sora'; }
.ed-price-iva { font-size: .88rem; color: var(--muted); text-align: right; }
.ed-nota { font-size: .78rem; color: var(--muted); margin-top: .4rem; }
@media (max-width: 960px) {
  .ed-layout { grid-template-columns: 1fr; }
  .ed-preview-col { position: static; }
  .ed-stage { padding: 1.2rem; }
}

/* --- Barra de progreso hacia el envío gratis --- */
.freeship { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem 1.3rem; margin-bottom: 1.2rem; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "txt txt" "bar pct"; gap: .5rem .9rem; align-items: center; }
.freeship-txt { grid-area: txt; margin: 0; font-size: 1.02rem; color: var(--text); line-height: 1.4; }
.freeship-txt strong { font-weight: 800; }
.freeship-bar { grid-area: bar; height: 10px; background: #e8ebef; border-radius: 99px; overflow: hidden; }
.freeship-fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f5c344, #ef7d3a 55%, #e04b4b); transition: width .5s cubic-bezier(.22,.9,.3,1); }
.freeship-pct { grid-area: pct; font-weight: 800; font-size: .95rem; color: var(--text); font-variant-numeric: tabular-nums; }
.freeship.is-done .freeship-fill { background: linear-gradient(90deg, #9dc050, var(--green-dark)); }
.freeship.is-done .freeship-txt { color: var(--green-dark); }
@media (max-width: 520px) {
  .freeship { padding: .9rem 1rem; }
  .freeship-txt { font-size: .92rem; }
}

/* --- Despacho en el checkout --- */
.envio-box { border: 1.5px solid var(--green); background: #f7faf1; border-radius: 12px; padding: 1rem 1.1rem; margin-top: 1rem; }
.envio-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .7rem; }
.envio-head strong { font-size: .92rem; }
.envio-head small { font-size: .78rem; font-family: monospace; }
.envio-op { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; background: #fff; border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer; margin-bottom: .5rem; transition: border-color .15s, box-shadow .15s; }
.envio-op:last-child { margin-bottom: 0; }
.envio-op:hover { border-color: var(--green); }
.envio-op:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 2px rgba(157,192,80,.35); }
.envio-op input { accent-color: var(--green); width: 18px; height: 18px; cursor: pointer; flex: 0 0 auto; }
.envio-op-txt { display: flex; flex-direction: column; gap: .1rem; flex: 1; }
.envio-op-txt strong { font-size: .88rem; font-weight: 700; }
.envio-op-txt small { font-size: .76rem; color: var(--muted); }
.envio-op-precio { font-weight: 800; color: var(--green-dark); font-family: 'Sora', sans-serif; font-size: 1rem; }
.envio-msg { font-size: .85rem; margin-top: .8rem; }
.envio-grande { border: 1.5px solid #f0b429; background: #fffaf0; border-radius: 12px; padding: 1.1rem 1.2rem; margin-top: 1rem; }
.envio-grande strong { display: block; font-size: .98rem; margin-bottom: .5rem; }
.envio-grande p { font-size: .87rem; color: var(--muted); margin: 0 0 .6rem; }
.envio-motivos { margin: 0 0 .8rem 1.1rem; padding: 0; font-size: .85rem; color: #92400e; }
.envio-motivos li { margin-bottom: .25rem; }

/* --- Plantillas propias subidas en el admin --- */
[hidden] { display: none !important; }
.tpl-foto { display: block; width: 100%; aspect-ratio: 3/2; border-radius: 4px; overflow: hidden; margin-bottom: .6rem; background: repeating-conic-gradient(#eef2f6 0% 25%, #f8fafc 0% 50%) 50%/14px 14px; }
.tpl-foto img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ed-base { position: relative; box-shadow: 0 10px 30px rgba(8,12,16,.18); border-radius: 3px; overflow: hidden; transition: width .25s, height .25s; max-width: 100%; }
.ed-base img { width: 100%; height: 100%; object-fit: fill; display: block; }
.ed-base-txt { position: absolute; display: flex; align-items: center; justify-content: center; font-weight: 800; line-height: 1.32; white-space: pre-wrap; word-break: break-word; overflow: hidden; }

/* Separador Segmento Minería */
.seg-head { margin-top: 3.5rem; margin-bottom: 2rem; }
.seg-line { display: block; width: 54px; height: 4px; background: var(--green); margin: 0 auto 1rem; }

/* Fila especial: 2 categorías anchas */
.catv-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 0; }
.catv-card--wide { aspect-ratio: 16 / 6.2; }
.catv-card--wide .catv-ghost svg { width: 150px; height: 150px; }
.catv-h3-wide { min-height: 0 !important; font-size: 1.7rem !important; }
@media (max-width: 1100px) { .catv-full { grid-template-columns: repeat(2, 1fr); } .catv-card { aspect-ratio: 3 / 3.8; } .catv-card--wide { aspect-ratio: 16 / 8; } }
@media (max-width: 560px) { .catv-full, .catv-wide { grid-template-columns: 1fr; } .catv-card { aspect-ratio: 4 / 3.4; } .catv-card--wide { aspect-ratio: 4 / 3; } }

/* Categorías (legacy) */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.cat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem 1.5rem; text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--green); }
.cat-icon { font-size: 2.4rem; display: block; margin-bottom: .7rem; }
.cat-card h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.cat-n { color: var(--muted); font-size: .82rem; }

/* Productos */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }
.prod-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.prod-img { aspect-ratio: 1; background: #fff; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.prod-img img { max-height: 100%; object-fit: contain; transition: transform .3s; }
.prod-card:hover .prod-img img { transform: scale(1.06); }
.prod-info { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.prod-info h3 { font-size: .93rem; font-weight: 600; font-family: 'Inter'; }
.prod-price { color: var(--green-dark); font-weight: 800; font-size: .95rem; margin-top: auto; }
.sum-iva span { color: var(--muted); }

/* Beneficios con imagen */
.benef-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.3rem; }
.benef-card { background: var(--card); border: 1px solid var(--border); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.benef-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.benef-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--dark-2); }
.benef-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.benef-card:hover .benef-img img { transform: scale(1.06); }
.benef-placeholder { width: 100%; height: 100%; background: repeating-linear-gradient(45deg, #eef2f6 0 14px, #e4e9ef 14px 28px); }
.benef-flat { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 42%, #f4f8ec 0%, #e9f0dc 100%); }
.benef-flat svg { width: 96px; height: 96px; transition: transform .3s ease; }
.benef-card:hover .benef-flat svg { transform: scale(1.12) rotate(-2deg); }
.benef-body { padding: 1.2rem 1.3rem 1.4rem; border-top: 3px solid var(--green); }
.benef-body h3 { font-size: 1rem; margin-bottom: .35rem; }
.benef-body p { font-size: .87rem; color: var(--muted); line-height: 1.6; }

/* Franja editorial numerada */
.feat-strip { background: var(--dark); color: #fff; padding: 4.5rem 0; margin-top: 2rem; }
.feat-strip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.fs-item { padding: 0 2rem 0 1.6rem; border-left: 1px solid #1e2938; position: relative; }
.fs-item:first-child { border-left: 0; padding-left: 0; }
.fs-num { font-family: 'Sora', sans-serif; font-size: 2.6rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px rgba(157,192,80,.55); display: block; line-height: 1; margin-bottom: 1rem; }
.fs-item h3 { font-size: 1.02rem; color: #fff; margin-bottom: .45rem; }
.fs-item p { font-size: .87rem; color: #93a3b5; line-height: 1.65; }
.fs-item::after { content: ''; position: absolute; left: 1.6rem; right: 2rem; bottom: -1.4rem; height: 2px; background: linear-gradient(90deg, var(--green), transparent); opacity: 0; transition: opacity .3s; }
.fs-item:first-child::after { left: 0; }
.fs-item:hover .fs-num { -webkit-text-stroke-color: var(--green); }
@media (max-width: 960px) {
  .feat-strip-grid { gap: 2.5rem; }
  .fs-item { border-left: 0; padding: 0; }
}

/* Features */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.feat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.7rem 1.6rem; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green); }
.feat-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(157,192,80,.14); color: var(--green-dark); margin-bottom: .4rem; }
.feat-icon svg { width: 27px; height: 27px; }
.feat:hover .feat-icon { background: var(--green); color: var(--dark); }
.feat h3 { font-size: 1rem; margin: .6rem 0 .3rem; }
.feat p { font-size: .88rem; color: var(--muted); }

/* Página catálogo */
.page-head { background: var(--dark); color: #fff; padding: 2.6rem 0; }
.page-head h1 { font-size: 1.8rem; }
.page-head p { color: #8fa0b5; }

/* Hero configurable por página */
.page-hero { background-color: var(--dark); background-size: cover; background-position: center; color: #fff; display: flex; align-items: center; padding: 1.6rem 0; }
.page-hero h1 { font-size: 1.9rem; }
.page-hero p { color: #c3cedb; margin-top: .3rem; max-width: 40rem; }
.catalog-layout { display: grid; grid-template-columns: 230px 1fr; gap: 2rem; align-items: start; }
.catalog-side { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; position: sticky; top: 90px; }
.catalog-side h4 { margin-bottom: .8rem; font-size: .95rem; }
.side-link { display: block; padding: .45rem .6rem; border-radius: 8px; font-size: .88rem; color: var(--text); }
.side-link span { color: var(--muted); font-size: .78rem; }
.side-link:hover { background: #eef2f6; }
.side-link.active { background: var(--green); color: var(--dark); font-weight: 700; }
.side-empty { opacity: .62; }
.side-empty span { font-style: italic; }
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2.2rem; flex-wrap: wrap; }
.pagination a { padding: .45rem .85rem; background: var(--card); border: 1px solid var(--border); border-radius: 8px; font-size: .88rem; font-weight: 600; }
.pagination a.active { background: var(--dark); color: #fff; border-color: var(--dark); }
.pagination span { padding: .45rem .3rem; color: var(--muted); }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); font-size: 1.05rem; }

/* Producto */
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1.6rem; }
.breadcrumb a:hover { color: var(--green-dark); }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.product-main-img { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.product-main-img img { max-height: 100%; object-fit: contain; }
.product-thumbs { display: flex; gap: .6rem; margin-top: .8rem; }
.product-thumbs img { width: 70px; height: 70px; object-fit: contain; background: #fff; border: 2px solid var(--border); border-radius: 10px; cursor: pointer; padding: .4rem; }
.product-thumbs img.active { border-color: var(--green); }
.product-detail h1 { font-size: 1.7rem; margin-bottom: .6rem; }
.product-price { font-size: 1.55rem; font-weight: 800; color: var(--green-dark); font-family: 'Sora'; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.price-neto { font-family: 'Inter', sans-serif; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.price-iva { font-size: .92rem; color: var(--muted); margin-bottom: 1rem; }
.prod-price small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.product-desc { color: var(--muted); font-size: .95rem; margin-bottom: 1.6rem; }
.attr-group { margin-bottom: 1.1rem; }
.attr-group label { font-weight: 700; font-size: .88rem; display: block; margin-bottom: .45rem; }
.attr-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { background: var(--card); border: 1.5px solid var(--border); padding: .45rem .9rem; border-radius: 30px; font-size: .85rem; cursor: pointer; font-family: inherit; transition: all .15s; }
.pill:hover { border-color: var(--green); }
.pill.active { background: var(--dark); color: #fff; border-color: var(--dark); font-weight: 700; }
.pill.unavailable { opacity: .35; text-decoration: line-through; pointer-events: none; }
.qty-row { display: flex; align-items: center; gap: 1rem; margin: 1.4rem 0; }
.qty-row label { font-weight: 700; font-size: .88rem; }
.qty-ctrl { display: flex; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.qty-ctrl button { width: 38px; height: 40px; background: transparent; border: 0; font-size: 1.2rem; cursor: pointer; color: var(--text); }
.qty-ctrl button:hover { background: #eef2f6; }
.qty-ctrl input { width: 52px; text-align: center; border: 0; font-size: .95rem; font-weight: 700; outline: 0; -moz-appearance: textfield; }
.qty-ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stock-note { font-size: .82rem; color: var(--muted); }
.product-trust { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.4rem; font-size: .82rem; color: var(--muted); }

/* Carrito */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto auto auto; gap: 1rem; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: .8rem; }
.ci-img img { width: 80px; height: 80px; object-fit: contain; background: #fff; border-radius: 8px; }
.ci-info { display: flex; flex-direction: column; gap: .15rem; }
.ci-info small { color: var(--muted); }
.ci-price { font-size: .85rem; color: var(--muted); }
.ci-total { font-weight: 800; min-width: 105px; text-align: right; line-height: 1.35; }
.ci-total small { font-weight: 500; color: var(--muted); font-size: .72rem; margin-left: .25rem; }
.ci-total-iva { display: block; font-weight: 600; font-size: .8rem; color: var(--green-dark); }
.ci-remove { background: transparent; border: 0; color: #c33; font-size: 1rem; cursor: pointer; padding: .4rem; }
.cart-summary { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 90px; }
.cart-summary h3 { margin-bottom: 1rem; }
.sum-row { display: flex; justify-content: space-between; padding: .5rem 0; font-size: .92rem; border-bottom: 1px dashed var(--border); margin-bottom: .5rem; }
.sum-total { font-size: 1.15rem; border-bottom: 0; }
.sum-item { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; padding: .45rem 0; border-bottom: 1px dashed var(--border); }
.sum-item small { display: block; color: var(--muted); }
.cart-summary .btn { margin-top: .9rem; }
.secure-note { font-size: .78rem; color: var(--muted); text-align: center; margin-top: .8rem; }

/* Checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1.5px solid var(--border); margin-bottom: .8rem; }
.mode-btn { padding: .9rem 1rem; background: #fff; border: 0; font-family: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; color: var(--muted); transition: all .2s; }
.mode-btn + .mode-btn { border-left: 1.5px solid var(--border); }
.mode-btn.is-active { background: var(--dark); color: var(--green); }
.mode-hint { font-size: .85rem; color: var(--muted); margin-bottom: 1.4rem; padding: .6rem .9rem; background: #eef2f6; border-left: 3px solid var(--green); }
.rut-status { display: block; font-weight: 400; margin-top: .25rem; color: var(--muted); min-height: 1em; }
.rut-status.ok { color: #166534; font-weight: 600; }
.rut-status.err { color: #b91c1c; }
.notas-field { width: 100%; border: 1.5px solid var(--border); border-radius: 9px; padding: .6rem .8rem; font-size: .92rem; font-family: inherit; outline: 0; margin-top: .3rem; }
.notas-field:focus { border-color: var(--green); }
.sum-iva span:last-child { font-weight: 600; }
.checkout-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; }
.checkout-form h3 { margin-bottom: 1.2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 600; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { border: 1.5px solid var(--border); border-radius: 9px; padding: .6rem .8rem; font-size: .92rem; font-family: inherit; outline: 0; transition: border-color .15s; background: #fff; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--green); }
.checkout-form .btn { margin-top: 1.4rem; }
.form-error { background: #fde8e8; color: #b91c1c; border-radius: 9px; padding: .7rem 1rem; font-size: .88rem; margin-top: 1rem; }

/* Resultado pago */
.pay-result { text-align: center; padding: 3rem 1.5rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.pay-icon { font-size: 3.5rem; display: block; margin-bottom: 1rem; }
.pay-result h1 { margin-bottom: .8rem; }
.pay-result p { color: var(--muted); }

/* Footer */
.site-footer { background: var(--dark); color: #9aa9bc; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; padding: 3.5rem 1.25rem 2rem; }
.footer-logo { height: 130px; max-width: 100%; object-fit: contain; margin-bottom: 1rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.site-footer a { display: block; font-size: .88rem; padding: .2rem 0; transition: color .2s; }
.site-footer a:hover { color: var(--green); }
.site-footer p { font-size: .88rem; }
.footer-bottom { border-top: 1px solid #1c2735; text-align: center; font-size: .8rem; padding: 1.2rem; }

/* WhatsApp FAB */
.wsp-fab { position: fixed; bottom: 22px; right: 22px; width: 56px; height: 56px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 6px 20px rgba(37,211,102,.45); z-index: 90; transition: transform .2s; }
.wsp-fab:hover { transform: scale(1.1); }

/* Toast */
.toast { position: fixed; bottom: 95px; right: 22px; background: var(--dark); color: #fff; padding: .85rem 1.3rem; border-radius: 12px; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transform: translateY(12px); transition: all .3s; z-index: 200; border-left: 4px solid var(--green); }
.toast.show { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 960px) {
  .catalog-layout, .cart-layout, .checkout-layout, .product-layout { grid-template-columns: 1fr; }
  .catalog-side { position: static; }
  .hero-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark-2); flex-direction: column; padding: 1rem 1.5rem; gap: .8rem; box-shadow: 0 12px 24px rgba(0,0,0,.4); z-index: 99; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; padding: .35rem .55rem; min-height: 40px; }
  /* Header en dos filas: marca+acciones arriba, buscador abajo a lo ancho */
  .header-inner { flex-wrap: wrap; gap: .6rem; padding: .7rem 1rem; }
  .brand-logo { height: 32px; }
  .header-actions { gap: .7rem; margin-left: auto; }
  .search-form { order: 5; flex: 1 1 100%; }
  .search-form input { width: 100%; flex: 1; min-height: 38px; }
  .promo-bar { font-size: .7rem; padding: .35rem .6rem; }
  .hero-dots { right: 50%; transform: translateX(50%); }
  .hero-dot { width: 13px; height: 13px; }
  .hero-dot.is-active { width: 30px; }
  .hero-stats { gap: 1.4rem; flex-wrap: wrap; }
  .hero-v2 h1 { font-size: clamp(1.7rem, 8vw, 2.4rem) !important; }
  .pill { padding: .55rem 1rem; }
  .footer-logo { height: 90px; }
  .hero-v2 .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-v2 .hero-ctas .btn { text-align: center; }
  .hero-align-right .hero-v2 .hero-ctas, .hero-align-center .hero-v2 .hero-ctas { align-items: stretch; }
  .cart-item { grid-template-columns: 64px 1fr; grid-template-rows: auto auto; }
  .ci-img img { width: 64px; height: 64px; }
  .qty-ctrl { grid-column: 2; justify-self: start; }
  .ci-total { grid-column: 2; text-align: left; }
  .ci-remove { position: absolute; }
  .cart-item { position: relative; }
  .ci-remove { top: .6rem; right: .6rem; }
  .form-grid { grid-template-columns: 1fr; }
}
