/* ============================================================
   SG Tienda · Capa funcional sobre el tema "Suplementos Gym"
   Se carga DESPUES de design.css (tema base).
   Mantiene toda la funcionalidad (carrito, checkout, cuenta...).
   ============================================================ */

/* ---------- alias de layout ---------- */
.container-x {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.6rem;
  flex-wrap: wrap;
  max-width: none;
  margin-bottom: clamp(30px, 4.5vw, 50px);
}

.section-subtitle { color: var(--muted); font-size: 1.02rem; max-width: 62ch; margin-top: 10px; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-eyebrow::before { content: '//'; color: var(--red); font-weight: 800; letter-spacing: 0; }

.bg-alt { background: var(--bg-2); }

/* ---------- botones propios ---------- */
.btn-brand, .btn-outline, .btn-dark, .btn-ghost, .btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), background-color .3s, border-color .3s, box-shadow .3s;
}
.btn-brand { background: var(--red); box-shadow: 0 14px 30px -14px rgba(230,46,46,.75); }
.btn-brand:hover { background: #F43B3B; color: #fff; transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(230,46,46,.85); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.22); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.07); color: #fff; transform: translateY(-2px); }
.btn-dark { background: #0A0A0B; border-color: rgba(255,255,255,.16); color: #fff; }
.btn-dark:hover { background: #191A1F; color: #fff; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.03); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255,255,255,.32); color: #fff; transform: translateY(-2px); }
.btn-wa { background: linear-gradient(135deg, #25D366 0%, #12A44F 100%); color: #fff; box-shadow: 0 14px 30px -14px rgba(29,168,81,.85); }
.btn-wa:hover { background: linear-gradient(135deg, #22C15C 0%, #0E8C42 100%); color: #fff; transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(29,168,81,.95); }
.btn-block { width: 100%; }
.btn-sm { padding: .68rem 1.05rem; font-size: .86rem; }
.btn-lg { padding: 1.12rem 2rem; font-size: 1rem; }
.btn[disabled], .btn-brand[disabled], .btn-dark[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.add-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--red); background: rgba(230,46,46,.1); color: #FF6B6B; display: inline-flex; align-items: center; justify-content: center; font-size: 1.08rem; cursor: pointer; transition: background .25s, color .25s, transform .25s; }
.add-btn:hover { background: var(--red); color: #fff; transform: translateY(-3px); }

/* ---------- header: extras (carrito / cuenta) ---------- */
.icon-link { position: relative; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line); color: #fff; transition: background .25s, border-color .25s, transform .25s; }
.icon-link:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.26); color: #fff; transform: translateY(-2px); }
.icon-link .cart-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: .66rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #0A0A0B; }
.country-btn img { width: 21px; height: 14px; border-radius: 3px; flex-shrink: 0; object-fit: cover; }

/* ---------- tarjetas de producto ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(256px, 1fr)); gap: 18px; }
.product-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.2,.7,.3,1), border-color .35s, box-shadow .35s; }
.product-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.2); box-shadow: 0 28px 54px -28px rgba(0,0,0,.75); }
.product-media { position: relative; display: grid; place-items: center; padding: 24px 20px; min-height: 210px; background: radial-gradient(120% 92% at 50% 6%, rgba(255,255,255,.06), transparent 58%); border-bottom: 1px solid var(--line); }
.product-media img { max-height: 168px; object-fit: contain; filter: drop-shadow(0 20px 22px rgba(0,0,0,.5)); transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.product-card:hover .product-media img { transform: translateY(-7px) scale(1.03); }
.product-badge { position: absolute; top: 14px; left: 14px; z-index: 1; font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: .34rem .6rem; border-radius: 7px; }
.badge-featured { background: var(--red); color: #fff; }
.badge-out { background: rgba(255,255,255,.14); color: #fff; }
.badge-low { background: var(--gold); color: #3a2a00; }
.product-body { display: grid; gap: 7px; padding: 16px 20px 22px; flex: 1; align-content: start; }
.product-lab { color: var(--red-2); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.product-name { font-size: 1.06rem; font-weight: 800; line-height: 1.3; }
.product-name a { color: var(--text); }
.product-name a:hover { color: var(--red-2); }
.product-meta { font-size: .8rem; color: var(--muted-2); display: flex; flex-wrap: wrap; gap: .4rem; }
.product-meta span + span::before { content: '·'; margin-right: .4rem; }
.product-desc { font-size: .86rem; color: var(--muted); min-height: 2.5em; }
.product-foot { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding-top: 12px; border-top: 1px solid var(--line); }
.product-price { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: .02em; line-height: 1; }
.product-actions { display: flex; gap: .4rem; }

/* ---------- catalogo / filtros ---------- */
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; }
.catalog-layout--right { grid-template-columns: 1fr 302px; }
.catalog-main { min-width: 0; }
.filter-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: calc(var(--header-h) + 18px); }
.filter-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.filter-clear { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red-2); }
.filter-clear:hover { color: #fff; }
.filter-group { padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.filter-title { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .7rem; }
.filter-option { display: flex; align-items: center; gap: .55rem; padding: .3rem 0; font-size: .9rem; color: #C9C9CD; cursor: pointer; }
.filter-option input { accent-color: var(--red); width: 16px; height: 16px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; color: var(--muted); }
.catalog-toolbar .muted strong, .catalog-toolbar strong { color: var(--text); font-family: var(--font-display); }
.toolbar-select { border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1rem; background: rgba(255,255,255,.03); color: var(--text); }

/* ---------- estados vacios ---------- */
.empty-state { background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 4rem 1.5rem; text-align: center; color: var(--muted); }
.empty-state i { font-size: 2.6rem; color: var(--red); display: block; margin-bottom: .9rem; }
.empty-state h3 { color: var(--text); font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.5rem; margin-bottom: .5rem; }

/* ---------- detalle de producto ---------- */
.pd-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.pd-media { position: relative; background: radial-gradient(120% 92% at 50% 6%, rgba(255,255,255,.06), transparent 58%); border: 1px solid var(--line); border-radius: 26px; padding: 2.6rem; display: grid; place-items: center; min-height: 440px; }
.pd-media img { max-height: 380px; object-fit: contain; filter: drop-shadow(0 26px 26px rgba(0,0,0,.5)); }
.pd-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin: .4rem 0 .2rem; line-height: 1; }
.pd-price { font-family: var(--font-display); font-size: 2.2rem; color: var(--red-2); margin: .9rem 0; letter-spacing: .02em; }
.pd-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1.2rem; margin: 1.5rem 0; }
.pd-spec { font-size: .9rem; color: var(--muted); }
.pd-spec strong { display: block; color: var(--muted-2); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .15rem; }
.pd-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; align-items: center; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.03); }
.qty-control button { width: 48px; height: 50px; font-size: 1.2rem; color: var(--text); }
.qty-control button:hover { background: rgba(230,46,46,.14); color: var(--red-2); }
.qty-control input { width: 60px; height: 50px; border: 0; border-inline: 1px solid var(--line); background: transparent; color: var(--text); text-align: center; font-family: var(--font-display); font-size: 1.05rem; }

/* ---------- carrito ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 370px; gap: 2rem; align-items: start; }
.cart-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-row { display: grid; grid-template-columns: 84px 1fr auto auto; gap: 1.1rem; align-items: center; padding: 1.15rem; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-thumb { width: 84px; height: 84px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 14px; display: grid; place-items: center; padding: .5rem; }
.cart-thumb img { max-height: 64px; object-fit: contain; }
.cart-name { font-size: .98rem; font-weight: 800; margin-bottom: .2rem; }
.cart-name a { color: var(--text); }
.cart-line-price { font-family: var(--font-display); min-width: 90px; text-align: right; }
.cart-remove { color: var(--muted-2); font-size: 1.15rem; }
.cart-remove:hover { color: var(--red-2); }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; position: sticky; top: calc(var(--header-h) + 18px); }
.summary h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.25rem; margin-bottom: 1.1rem; }
.summary-line { display: flex; justify-content: space-between; padding: .45rem 0; color: var(--muted); font-size: .94rem; }
.summary-line strong { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .98rem; letter-spacing: 0; }
.summary-total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: .85rem; padding-top: 1.1rem; font-family: var(--font-display); font-size: 1.5rem; }

/* ---------- formularios ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.form-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.form-group { margin-bottom: 1.15rem; }
.form-group label { display: block; margin-bottom: .45rem; font-size: .88rem; font-weight: 700; color: #E4E4E6; }
.form-control { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: .65rem .9rem; background: rgba(255,255,255,.03); color: var(--text); font: inherit; transition: border-color .25s, box-shadow .25s; }
.form-control::placeholder { color: var(--muted-2); }
.form-control:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(230,46,46,.22); outline: 0; }
textarea.form-control { min-height: 0; padding-top: .7rem; }
.form-text { color: var(--muted-2); font-size: .78rem; margin-top: .3rem; }
.form-check { display: flex; align-items: center; gap: .5rem; color: #C9C9CD; }
.form-check input { accent-color: var(--red); }

/* ---------- flash ---------- */
.flash { border-radius: 14px; padding: .95rem 1.15rem; margin: 1rem 0; font-size: .92rem; display: flex; gap: .55rem; align-items: flex-start; border: 1px solid var(--line-2); }
.flash-error { background: rgba(230,46,46,.12); border-color: rgba(230,46,46,.5); color: #FFB4B4; }
.flash-success { background: rgba(29,168,81,.12); border-color: rgba(29,168,81,.5); color: #9BE7B8; }

/* ---------- checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 390px; gap: 2rem; align-items: start; }
.pay-options { display: grid; gap: .7rem; }
.pay-option { display: flex; align-items: center; gap: .8rem; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.15rem; background: rgba(255,255,255,.02); color: #E4E4E6; cursor: pointer; transition: border-color .25s, background .25s; }
.pay-option:hover { border-color: rgba(230,46,46,.55); }
.pay-option input { accent-color: var(--red); width: 17px; height: 17px; }
.order-lines { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .5rem; }
.order-line { display: flex; justify-content: space-between; gap: 1rem; padding: .42rem 0; font-size: .89rem; color: var(--muted); }
.order-line span:first-child { flex: 1; }

/* ---------- formas de pago ---------- */
.pay-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.pay-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; transition: transform .35s, border-color .35s; }
.pay-card:hover { transform: translateY(-5px); border-color: rgba(230,46,46,.45); }
.pay-card .bicon { width: 52px; height: 52px; border-radius: 14px; background: rgba(230,46,46,.12); color: var(--red-2); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1rem; }
.pay-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: .35rem; }
.pay-card p { color: var(--muted); font-size: .88rem; }

/* ---------- info / guia / objetivos ---------- */
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; transition: transform .35s, border-color .35s; }
.info-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.2); }
.info-card .bicon { width: 48px; height: 48px; border-radius: 13px; background: rgba(230,46,46,.12); color: var(--red-2); display: grid; place-items: center; font-size: 1.35rem; margin-bottom: .95rem; }
.info-card h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: .35rem; }
.info-card p { color: var(--muted); font-size: .88rem; }

.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.guide-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; display: flex; flex-direction: column; gap: .5rem; transition: transform .35s, border-color .35s; }
.guide-card:hover { transform: translateY(-5px); border-color: rgba(230,46,46,.45); }
.guide-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(230,46,46,.12); color: var(--red-2); display: grid; place-items: center; font-size: 1.45rem; }
.guide-card h3 { margin-top: .3rem; font-size: 1.15rem; font-weight: 800; }
.guide-tagline { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red-2); }
.guide-card p { color: var(--muted); font-size: .89rem; }
.guide-meta { display: flex; flex-direction: column; gap: .4rem; margin-top: .35rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.guide-meta strong { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }

.goal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.goal-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; display: flex; flex-direction: column; gap: .5rem; transition: transform .35s, border-color .35s; }
.goal-card:hover { transform: translateY(-5px); border-color: rgba(230,46,46,.45); }
.goal-card .gicon { width: 48px; height: 48px; border-radius: 13px; background: rgba(230,46,46,.12); color: var(--red-2); display: grid; place-items: center; font-size: 1.4rem; }
.goal-card h3 { margin-top: .25rem; font-size: 1.05rem; font-weight: 800; }
.goal-card p { color: var(--muted); font-size: .88rem; }
.goal-card .goal-rec { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.goal-card .goal-rec strong { color: var(--text); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- proceso / valores ---------- */
.process-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; transition: transform .35s, border-color .35s; }
.step:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.2); }
.step-num { font-family: var(--font-display); color: var(--red-2); letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; }
.step h3 { font-size: 1.02rem; font-weight: 800; margin: .6rem 0 .35rem; }
.step p { color: var(--muted); font-size: .87rem; }

.value-list { display: grid; gap: 1rem; }
.value-list li { display: flex; gap: .85rem; align-items: flex-start; color: #C9C9CD; }
.value-list li i { color: var(--red-2); font-size: 1.3rem; line-height: 1.4; }
.value-list strong { color: var(--text); font-weight: 800; }
.value-list p { color: var(--muted); font-size: .88rem; margin-top: .15rem; }

/* ---------- acordeon ---------- */
.store-accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.store-accordion-item { border-bottom: 1px solid var(--line); }
.store-accordion-item:last-child { border-bottom: 0; }
.store-accordion-btn { width: 100%; text-align: left; padding: 1.25rem 1.5rem; color: var(--text); font-weight: 800; font-size: .98rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; transition: background .25s; }
.store-accordion-btn:hover { background: rgba(255,255,255,.03); }
.store-accordion-btn .bi { color: var(--red-2); transition: transform .3s; }
.store-accordion-btn[aria-expanded="true"] .bi { transform: rotate(180deg); }
.store-accordion-panel { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.2,.7,.3,1); }
.store-accordion-panel-inner { padding: 0 1.5rem 1.35rem; color: var(--muted); font-size: .93rem; }

/* ---------- page band / split ---------- */
.page-band { position: relative; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: clamp(48px, 7vw, 90px) 0; overflow: hidden; }
.page-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 130% at 88% 0%, rgba(230,46,46,.22), transparent 60%); }
.page-band > * { position: relative; z-index: 1; }
.page-band h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1; }
.page-band p { color: var(--muted); max-width: 60ch; margin-top: .6rem; }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

/* ---------- auth ---------- */
.auth-wrap { display: grid; place-items: center; padding: 4rem 1rem; }
.auth-card { width: min(100%, 540px); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 2.6rem; position: relative; overflow: hidden; }
.auth-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--red), #FF8A8A); }
.auth-card.auth-card-wide { width: min(100%, 780px); }
.auth-head { text-align: center; margin-bottom: 1.6rem; }
.auth-head .bicon { width: 58px; height: 58px; border-radius: 16px; background: rgba(230,46,46,.14); color: var(--red-2); display: grid; place-items: center; font-size: 1.6rem; margin: 0 auto 1rem; }
.auth-head h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.9rem; }
.auth-head p { color: var(--muted); }
.auth-links { text-align: center; margin-top: 1.4rem; color: var(--muted); font-size: .9rem; }
.auth-links a { color: var(--red-2); font-weight: 700; }

/* ---------- cuenta / pedidos ---------- */
.account-nav { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.7rem; }
.account-pill { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.15rem; color: #C9C9CD; font-size: .85rem; font-weight: 700; transition: all .25s; }
.account-pill:hover { border-color: rgba(255,255,255,.32); color: #fff; }
.account-pill.active { background: var(--red); border-color: var(--red); color: #fff; }
.orders-list { display: grid; gap: 1.1rem; }
.order-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.order-card-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.order-card-head strong { font-family: var(--font-display); letter-spacing: .04em; }
.status { display: inline-flex; align-items: center; border-radius: 999px; padding: .28rem .75rem; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.status-pendiente, .status-en_verificacion { background: rgba(255,201,74,.16); color: var(--gold); }
.status-pagado, .status-confirmado, .status-entregado { background: rgba(29,168,81,.18); color: #9BE7B8; }
.status-cancelado { background: rgba(230,46,46,.18); color: #FF9B9B; }
.status-preparando, .status-enviado { background: rgba(90,150,255,.18); color: #A9C4FF; }

/* ---------- toast / modal ---------- */
.store-toast { position: fixed; left: 50%; top: calc(var(--header-h) + 20px); transform: translate(-50%, -14px); z-index: 120; background: #17181D; border: 1px solid var(--line-2); color: #fff; font-size: .88rem; font-weight: 700; padding: .72rem 1.15rem; border-radius: 999px; opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s, visibility .3s; box-shadow: 0 18px 40px -18px rgba(0,0,0,.8); max-width: calc(100vw - 40px); text-align: center; }
.store-toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.store-toast.error { background: #7E1010; border-color: rgba(230,46,46,.6); }
.store-modal { position: fixed; inset: 0; z-index: 130; background: rgba(5,5,6,.7); display: none; place-items: center; padding: 1rem; backdrop-filter: blur(4px); }
.store-modal.open { display: grid; }
.store-modal-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; padding: 2rem; width: min(100%, 470px); }
.store-modal-card h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.4rem; margin-bottom: .5rem; }
.store-modal-card p { color: var(--muted); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); transition-delay: var(--d, 0ms); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- iconos Bootstrap Icons en componentes del diseno ---------- */
.tb-icon i { font-size: 17px; }
.cat-icon i { font-size: 27px; }
.cat-arrow i { font-size: 19px; }
.b-icon i { font-size: 26px; }
.store-rows i { font-size: 18px; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.socials i { font-size: 17px; }
.f-contact li i { font-size: 17px; color: var(--red); flex-shrink: 0; margin-top: 3px; }
.stars i { font-size: 13px; }
.t-stars .stars i { font-size: 14px; }
.video-toggle i { font-size: 18px; }
.video-toggle .i-play { display: none; }
.video-toggle.is-paused .i-pause { display: none; }
.video-toggle.is-paused .i-play { display: block; }
.fab-wa i { font-size: 27px; }
.btn i, .btn-brand i, .btn-ghost i, .btn-wa i, .btn-dark i, .btn-outline i { font-size: 1.05em; }
.t-stars .stars i { opacity: 1; }

/* ---------- selects / dropdowns (tema oscuro legible) ---------- */
html { color-scheme: dark; }
select.form-control, .toolbar-select, .perpage select, .flavor-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(255,255,255,.03);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23A2A2A8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.4rem;
  cursor: pointer;
}
select.form-control option, .toolbar-select option, .perpage select option, .flavor-select option {
  background-color: #14151A;
  color: #F6F6F5;
}
select.form-control option:checked, .toolbar-select option:checked, .perpage select option:checked, .flavor-select option:checked {
  background: var(--red);
  color: #fff;
}
select.form-control:hover, .toolbar-select:hover { border-color: rgba(255,255,255,.28); }

/* ---------- carga de imagenes de producto ---------- */
.product-media { position: relative; }
.product-media a { position: relative; display: block; }
.product-media img { opacity: 1; }

/* ---------- selector de sabor ---------- */
.flavor-field { display: flex; align-items: center; gap: .5rem; margin: .45rem 0 .15rem; }
.flavor-label { flex: 0 0 auto; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.product-flavors { font-size: .82rem; color: var(--muted); line-height: 1.45; margin: .1rem 0; }
.flavor-options { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .2rem; }
.flavor-option { padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03); color: #C9C9CD; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.flavor-option:hover { border-color: rgba(255,255,255,.35); color: #fff; }
.flavor-option.active { background: var(--red); border-color: var(--red); color: #fff; }
.flavor-option.is-out, .flavor-option:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.add-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.pd-flavors { margin: 1.3rem 0 .5rem; }
.pd-flavors-label { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .6rem; }
.flavor-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.flavor-chip { display: inline-flex; align-items: center; padding: .45rem .95rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 600; color: #C9C9CD; transition: border-color .2s, background .2s, color .2s; }
.flavor-chip:hover { border-color: rgba(255,255,255,.35); color: #fff; }
.flavor-chip.active { background: var(--red); border-color: var(--red); color: #fff; }
.flavor-chip.is-out { opacity: .5; text-decoration: line-through; }

/* ---------- paginacion ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; justify-content: center; margin-top: 2.6rem; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding: 0 .75rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 12px; color: #C9C9CD;
  font-weight: 700; font-size: .9rem; transition: all .2s;
}
.pagination a:hover { border-color: rgba(255,255,255,.3); color: #fff; transform: translateY(-2px); }
.pagination .is-active { background: var(--red); border-color: var(--red); color: #fff; }
.pagination .is-disabled { opacity: .35; pointer-events: none; }
.pagination .ellipsis { border: 0; min-width: 24px; }
.perpage { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .88rem; }
.perpage select { min-height: 40px; padding: .35rem 2.2rem .35rem .8rem; border-radius: 12px; }

/* ---------- dropdowns del navbar ---------- */
.nav-list { align-items: center; }
.nav-list > li { display: flex; align-items: center; }
.nav-item-dropdown { position: relative; display: flex; align-items: center; }
.nav-drop-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  color: #CFCFD3; font-family: var(--font-body); font-size: .92rem; font-weight: 600;
  line-height: inherit; margin: 0; padding: 6px 0; cursor: pointer; transition: color .25s;
  position: relative;
}
.nav-drop-btn::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.nav-drop-btn:hover::after, .nav-item-dropdown.open .nav-drop-btn::after { transform: scaleX(1); }
.nav-drop-btn .bi { font-size: .7rem; }
.nav-drop-btn:hover, .nav-item-dropdown.open .nav-drop-btn { color: #fff; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 12px); left: 0; min-width: 232px;
  background: #121317; border: 1px solid var(--line); border-radius: 14px; padding: .4rem;
  box-shadow: 0 26px 60px -22px rgba(0,0,0,.85);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s, transform .2s, visibility .2s; z-index: 130;
}
.nav-item-dropdown.open .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop-menu a {
  display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: 10px;
  color: #C9C9CD; font-size: .9rem; font-weight: 600; white-space: nowrap;
}
.nav-drop-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-drop-menu a .bi { color: var(--red-2); font-size: 1rem; }
.nav-drop-menu hr { border: 0; border-top: 1px solid var(--line); margin: .4rem .25rem; }
.nav-drop-menu--right { left: auto; right: 0; }
.account-dropdown .icon-link .bi { font-size: 1.2rem; }

/* ---------- calculadora de macros ---------- */
.macro-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.macro-radio { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.macro-radio .pay-option { justify-content: center; }
.macro-result { opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .4s; pointer-events: none; }
.macro-result.show { opacity: 1; transform: none; pointer-events: auto; }
.macro-kcal { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.macro-kcal::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 120% at 90% 0%, rgba(230,46,46,.2), transparent 60%); pointer-events: none; }
.macro-kcal > * { position: relative; }
.macro-kcal-num { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; color: #fff; margin: .5rem 0 .5rem; }
.macro-kcal-num small { font-size: .95rem; color: var(--muted); font-family: var(--font-body); margin-left: .3rem; }
.macro-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.2rem; }
.macro-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.macro-label { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.macro-val { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; margin: .45rem 0 .7rem; }
.macro-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.macro-bar span { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .5s cubic-bezier(.2,.7,.3,1); }
.macro-bar.protein span { background: linear-gradient(90deg, #FF4D5E, #E11D2E); }
.macro-bar.carbs span { background: linear-gradient(90deg, #6EA8FF, #3B6FD8); }
.macro-bar.fat span { background: linear-gradient(90deg, #FFD86B, #E0A21B); }
.macro-pct { display: inline-block; margin-top: .5rem; font-size: .8rem; color: var(--muted); }

/* ---------- redes sociales en el hero ---------- */
.hero-stats .stat-social { display: grid; gap: 8px; align-content: start; }
.hero-social { display: flex; gap: .5rem; }
.hero-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: background .25s, border-color .25s, transform .25s; }
.hero-social a:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }
.hero-social i { font-size: 18px; }

/* ---------- utilidades ---------- */
.muted { color: var(--muted); }
.mt-2 { margin-top: .5rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.d-none { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- responsive de componentes ---------- */
@media (max-width: 1120px) {
  .pay-grid, .goal-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .catalog-layout, .catalog-layout--right { grid-template-columns: 1fr; }
  .catalog-layout--right .catalog-aside { order: -1; }
  .filter-panel { position: static; }
  .cart-layout, .checkout-layout, .pd-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .split-layout { grid-template-columns: 1fr; }
  .macro-layout { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .pay-grid, .goal-grid, .guide-grid, .info-grid, .process-steps { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 64px 1fr; row-gap: .9rem; }
  .section-head { align-items: flex-start; }
  .macro-cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* Seguimiento de pedidos (Mis pedidos) */
.order-timeline { list-style: none; margin: 0; padding: 0; }
.order-timeline-item { display: flex; gap: .6rem; padding: .35rem 0; }
.order-timeline-dot { width: 10px; height: 10px; border-radius: 50%; background: #e11d48; margin-top: .35rem; flex: none; }

/* Zoom de imagen de producto */
.pd-media.is-zoomable { cursor: zoom-in; }
.pd-media.is-zoomable:focus-visible { outline: 3px solid #e11d48; outline-offset: 6px; }
.pd-zoom-hint { position: absolute; bottom: 14px; right: 16px; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.55); padding: .35rem .6rem; border-radius: 999px; pointer-events: none; }
.store-zoom-overlay { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 2.5rem; background: rgba(8,8,12,.94); }
.store-zoom-overlay.is-open { display: flex; }
.store-zoom-overlay img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.store-zoom-close { position: fixed; top: 16px; right: 20px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; }
.store-zoom-close:hover { background: rgba(255,255,255,.3); }
body.zoom-open { overflow: hidden; }

/* Galeria de imagenes del producto */
.pd-media-col { display: flex; flex-direction: column; }
.pd-thumbs { display: flex; gap: .6rem; overflow-x: auto; padding: .7rem 0 0; }
.pd-thumb { width: 72px; height: 72px; border-radius: 12px; border: 2px solid var(--line); background: transparent; padding: 0; cursor: pointer; overflow: hidden; flex: none; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb.active { border-color: #e11d48; }
