/* =============================================================================
   BMI_VZLA · Hoja de estilos
   Identidad visual:  #FFFFFF (base) · #3C4044 (carbón) · #FD7B41 (acento) · #DDDCDB (gris)
   ============================================================================= */

/* ---------- Variables de marca y tema ---------- */
:root {
  --white: #FFFFFF;
  --gray:  #DDDCDB;
  --char:  #3C4044;
  --accent:#FD7B41;
  --accent-2:#ff9264;
  --accent-ink:#7a2f0e;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(20,22,24,.08), 0 1px 2px rgba(20,22,24,.06);
  --shadow-md: 0 10px 30px -12px rgba(20,22,24,.25), 0 4px 10px -6px rgba(20,22,24,.12);
  --shadow-lg: 0 30px 60px -20px rgba(20,22,24,.4);
  --font: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --tr: .28s cubic-bezier(.22,.61,.36,1);
}

:root[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-soft: #F6F6F5;
  --surface: #FFFFFF;
  --surface-2: #F2F1F0;
  --border: #E4E3E1;
  --text: #2c2f32;
  --text-soft: #3C4044;
  --muted: #7c8186;
  --nav-bg: rgba(255,255,255,.72);
  --glass: rgba(255,255,255,.55);
}

:root[data-theme="dark"] {
  --bg: #212427;
  --bg-soft: #1a1c1f;
  --surface: #2b2f33;
  --surface-2: #33383d;
  --border: #40454a;
  --text: #F4F4F3;
  --text-soft: #DDDCDB;
  --muted: #9aa0a6;
  --nav-bg: rgba(33,36,39,.72);
  --glass: rgba(43,47,51,.55);
  --shadow-md: 0 10px 30px -12px rgba(0,0,0,.6), 0 4px 10px -6px rgba(0,0,0,.4);
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.7);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background var(--tr), color var(--tr);
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.ic { flex: none; }
.muted { color: var(--muted); }
.accent-text { color: var(--accent); }

/* ============================ CHROME PERSISTENTE ============================ */

/* Logo flotante (esquina superior izquierda, presente en toda la web) */
.brand {
  position: fixed; top: 18px; left: 22px; z-index: 60;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
}
.brand__logo {
  width: 52px; height: 52px; object-fit: contain;
  animation: floaty 4.5s ease-in-out infinite;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.35));
}
.brand__name { font-weight: 800; letter-spacing: .5px; font-size: 1.05rem; }
.brand__name b { color: var(--accent); }
@keyframes floaty {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50%     { transform: translateY(-9px) rotate(1.5deg); }
}
.on-hero .brand__name { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); }

/* Barra de navegación (derecha) */
.topnav {
  position: fixed; top: 18px; right: 22px; z-index: 60;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 999px;
  background: var(--nav-bg); backdrop-filter: blur(14px);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.topnav a, .topnav button.navlink {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  background: transparent; border: 0; cursor: pointer; color: var(--text-soft);
  transition: background var(--tr), color var(--tr); line-height: 1;
}
.topnav a .ic, .topnav button.navlink .ic { flex: none; }
.topnav a:hover, .topnav button.navlink:hover { background: var(--surface-2); color: var(--text); }
.topnav a.active { color: var(--accent); }
.nav-admin {
  background: var(--char) !important; color: #fff !important;
  display: inline-flex; align-items: center; gap: 6px;
}
:root[data-theme="dark"] .nav-admin { background: var(--accent) !important; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; display: inline-grid; place-items: center;
  transition: background var(--tr), transform var(--tr); color: var(--text);
}
.icon-btn:hover { background: var(--surface-2); transform: translateY(-1px); }

/* Botón hamburguesa (móvil) */
.nav-toggle { display: none; }
.admin-menu-btn { display: none !important; }

/* Botón flotante "Volver atrás" */
.back-float {
  position: fixed; top: 82px; left: 22px; z-index: 55;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px 9px 12px; border-radius: 999px; cursor: pointer;
  background: var(--nav-bg); backdrop-filter: blur(14px);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  color: var(--text); font-weight: 700; font-size: .86rem;
  transition: transform var(--tr), background var(--tr);
}
.back-float:hover { transform: translateX(-3px); background: var(--surface-2); }
.back-float .ic { transform: rotate(180deg); }
.on-hero .back-float { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
@media (max-width: 640px) {
  .back-float span { display: none; }
  .back-float { padding: 9px; }
}

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 70;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 26px -6px rgba(37,211,102,.7); cursor: pointer;
  animation: waPulse 2.6s infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* Botón flotante del carrito */
.cart-float {
  position: fixed; bottom: 92px; right: 22px; z-index: 70;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--char); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-md); cursor: pointer; transition: transform var(--tr);
}
:root[data-theme="dark"] .cart-float { background: var(--accent); }
.cart-float:hover { transform: scale(1.08); }
.cart-float .badge {
  position: absolute; top: -4px; right: -4px; background: var(--accent);
  color: #fff; min-width: 22px; height: 22px; border-radius: 999px; font-size: .72rem;
  font-weight: 800; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--bg);
}
:root[data-theme="dark"] .cart-float .badge { background: var(--char); }

/* ============================ BOTONES / FORM ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; cursor: pointer; transition: all var(--tr); font-size: .92rem;
  white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 18px -8px rgba(253,123,65,.8); }
.btn--accent:hover:not(:disabled) { background: var(--accent-2); transform: translateY(-2px); }
.btn--dark { background: var(--char); color: #fff; }
.btn--dark:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.1); }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn--ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn--danger { background: #e5484d; color: #fff; }
.btn--danger:hover:not(:disabled) { background: #d63a3f; }
.btn--sm { padding: 7px 14px; font-size: .82rem; }
.btn--block { width: 100%; }
.btn--wa { background: #25D366; color: #fff; }
.btn--wa:hover { background: #1fb959; transform: translateY(-2px); }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; color: var(--text-soft); }
.input, .select, .textarea {
  width: 100%; padding: 11px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  transition: border-color var(--tr), box-shadow var(--tr);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(253,123,65,.18);
}
.textarea { resize: vertical; min-height: 84px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-end { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  border-radius: 999px; font-size: .78rem; font-weight: 700; border: 1px solid var(--border);
  background: var(--surface-2);
}
.chip--ok   { background: rgba(46,160,67,.14); color: #2ea043; border-color: transparent; }
.chip--no   { background: rgba(229,72,77,.14); color: #e5484d; border-color: transparent; }
.chip--warn { background: rgba(253,123,65,.16); color: var(--accent); border-color: transparent; }
.chip--info { background: rgba(60,64,68,.1); color: var(--text-soft); }

/* ============================ HERO / LANDING ============================ */
.hero {
  position: relative; min-height: 100vh; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 120px 20px 60px; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('../assets/fondo.jpg');
  background-position: center 70%;
  background-size: cover;
  background-repeat: no-repeat;
  transition: filter .5s ease, transform .5s ease;
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,11,12,.55) 0%, rgba(10,11,12,.35) 35%, rgba(10,11,12,.82) 100%);
}
/* Al pasar el cursor sobre una tarjeta, el fondo se desenfoca */
.hero.blurred .hero__bg { filter: blur(9px) brightness(.7); transform: scale(1.06); }

.hero__title {
  position: relative; z-index: 2; text-align: center; color: #fff; margin-bottom: 40px;
  text-shadow: 0 4px 30px rgba(0,0,0,.6);
}
.hero__eyebrow {
  display: inline-block; font-size: .8rem; letter-spacing: 3px; text-transform: uppercase;
  padding: 6px 16px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  margin-bottom: 18px; backdrop-filter: blur(6px); background: rgba(255,255,255,.08);
}
.hero__title h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: 1px; }
.hero__title h1 span { color: var(--accent); }
.hero__title p { margin-top: 10px; font-size: clamp(1rem,2vw,1.25rem); opacity: .92; font-weight: 300; }

/* Carrusel de opciones que se desplaza a la izquierda */
.options-viewport {
  position: relative; z-index: 2; width: 100%; max-width: 1200px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.options-track {
  display: flex; gap: 22px; width: max-content;
  animation: slideLeft 26s linear infinite;
}
.options-viewport.paused .options-track { animation-play-state: paused; }
@keyframes slideLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.opt-card {
  width: 300px; flex: none; border-radius: var(--radius);
  background: var(--glass); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.22); box-shadow: var(--shadow-lg);
  padding: 26px 24px; color: #fff; cursor: default;
  transition: transform var(--tr), box-shadow var(--tr), background var(--tr);
  display: flex; flex-direction: column; gap: 12px;
}
:root[data-theme="light"] .opt-card { color: #fff; }
.opt-card:hover { transform: translateY(-10px) scale(1.03); background: rgba(0,0,0,.42); border-color: var(--accent); }
.opt-card__icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 10px 22px -8px rgba(253,123,65,.9);
}
.opt-card h3 { font-size: 1.3rem; font-weight: 800; }
.opt-card p { font-size: .9rem; opacity: .9; font-weight: 300; min-height: 60px; }
.opt-card .btn { margin-top: auto; }

/* ============================ LAYOUT DE VISTAS INTERNAS ============================ */
.page { max-width: 1220px; margin: 0 auto; padding: 110px 22px 90px; }
.page-head { margin-bottom: 26px; }
.page-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; display: flex; align-items: center; gap: 12px; }
.page-head p { color: var(--muted); margin-top: 6px; max-width: 640px; }
.section-title { font-size: 1.3rem; font-weight: 800; margin: 34px 0 16px; display: flex; align-items: center; gap: 10px; }
.section-title .line { flex: 1; height: 1px; background: var(--border); }

/* Barra de utilidades tienda (búsqueda + tasa) */
.store-bar {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  margin-bottom: 22px; position: sticky; top: 84px; z-index: 30;
}
.search-box {
  flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 4px 6px 4px 16px; box-shadow: var(--shadow-sm);
}
.search-box input { border: 0; background: transparent; flex: 1; padding: 9px 0; outline: none; }
.rate-bubble {
  display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px;
  background: linear-gradient(135deg, var(--char), #4b5055); color: #fff; font-weight: 700;
  box-shadow: var(--shadow-md); font-size: .9rem;
}
:root[data-theme="dark"] .rate-bubble { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.rate-bubble small { opacity: .8; font-weight: 500; }

/* Grid de productos */
.grid { display: grid; gap: 20px; }
.grid--feat { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--prod { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--tr), box-shadow var(--tr);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card--soldout { opacity: .6; filter: grayscale(.35); }
.card--soldout:hover { opacity: 1; filter: none; }
.card--clickable .card__media, .card--clickable .card__title { cursor: pointer; }
.card__view-hint { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20,22,24,.35); color: #fff; font-weight: 700; opacity: 0; transition: opacity var(--tr); gap: 6px; }
.card__media:hover .card__view-hint { opacity: 1; }
.card__media { position: relative; aspect-ratio: 1/1; background: var(--surface-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.img-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 3rem; font-weight: 800;
  color: var(--muted); background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 12px, var(--bg-soft) 12px, var(--bg-soft) 24px); }
.card__badge { position: absolute; top: 10px; left: 10px; }
.card__fav { position: absolute; top: 10px; right: 10px; background: var(--accent); color:#fff;
  border-radius: 999px; padding: 4px 10px; font-size: .72rem; font-weight: 800; display:flex; gap:4px; align-items:center; }
.card__body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__cat { font-size: .72rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--accent); }
.card__title { font-weight: 700; font-size: 1rem; line-height: 1.25; }
.card__desc { font-size: .84rem; color: var(--muted); flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-size: 1.3rem; font-weight: 800; color: var(--text); }
.price--sm { font-size: 1.05rem; }
.price-bs { font-size: .78rem; color: var(--muted); }
.price-tag { font-size: .72rem; color: var(--muted); }

/* Control de cantidad + añadir */
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--border);
  border-radius: 999px; overflow: hidden; background: var(--bg);
}
.qty button { width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--text); }
.qty button:hover:not(:disabled) { background: var(--surface-2); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty input { width: 40px; text-align: center; border: 0; background: transparent; font-weight: 700; }
.add-row { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.stock-note { font-size: .74rem; color: var(--muted); margin-top: 2px; }
.price-type-toggle { display: flex; gap: 6px; margin-top: 4px; }
.price-type-toggle button {
  flex: 1; padding: 6px; font-size: .75rem; font-weight: 700; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg); cursor: pointer; color: var(--muted);
}
.price-type-toggle button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.price-type-toggle button:disabled { opacity: .4; cursor: not-allowed; }

/* ============================ CARRITO ============================ */
.cart-layout { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.cart-summary {
  position: sticky; top: 110px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-md);
}
.cart-summary h3 { margin-bottom: 16px; font-size: 1.2rem; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: .92rem; }
.sum-row.total { border-top: 2px solid var(--border); margin-top: 8px; padding-top: 14px; font-size: 1.25rem; font-weight: 800; }
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px;
}
.cart-item__img { width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { min-width: 0; }
.cart-item__info h4 { font-size: .95rem; margin-bottom: 3px; }
.cart-item__actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state .ic { width: 56px; height: 56px; opacity: .4; margin-bottom: 14px; }

/* ============================ CHECKOUT (pasos) ============================ */
.checkout-steps { display: flex; gap: 6px; margin-bottom: 22px; }
.checkout-steps .step { flex: 1; height: 5px; border-radius: 999px; background: var(--border); }
.checkout-steps .step.done { background: var(--accent); }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); gap: 10px; margin-bottom: 14px; }
.pay-method {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; cursor: pointer;
  text-align: center; font-weight: 700; transition: all var(--tr); background: var(--bg);
}
.pay-method:hover { border-color: var(--accent); }
.pay-method.active { border-color: var(--accent); background: rgba(253,123,65,.1); box-shadow: 0 0 0 2px rgba(253,123,65,.25); }
.pay-detail {
  background: var(--surface-2); border-radius: var(--radius-sm); padding: 16px; white-space: pre-wrap;
  font-size: .9rem; margin-bottom: 16px; border: 1px dashed var(--border); line-height: 1.7;
}
.drive-preview { margin-top: 10px; }
.drive-preview img { max-height: 160px; border-radius: 10px; object-fit: contain; box-shadow: var(--shadow-sm); background: var(--surface-2); }
.rate-note {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(60,64,68,.08), rgba(253,123,65,.12));
  border: 1px solid rgba(253,123,65,.3); border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: .9rem; color: var(--text);
}
.rate-note .ic { color: var(--accent); flex: none; }
.upload-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 2px dashed var(--border); border-radius: var(--radius-sm); padding: 22px 18px; min-height: 130px;
  text-align: center; cursor: pointer; transition: border-color var(--tr), background var(--tr), color var(--tr);
  color: var(--muted); background: var(--bg-soft); position: relative; overflow: hidden;
}
.upload-drop:hover { border-color: var(--accent); color: var(--accent); background: rgba(253,123,65,.05); }
.upload-drop .ic { color: currentColor; flex: none; }
.upload-drop > div { font-size: .88rem; font-weight: 600; }
.upload-drop img { max-height: 170px; max-width: 100%; border-radius: 10px; object-fit: contain; box-shadow: var(--shadow-sm); }
.upload-drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ============================ IMPORTACIONES ============================ */
.import-product {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; margin-bottom: 16px; position: relative;
}
.import-product__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.import-product__head h4 { font-size: 1.05rem; }

/* ============================ ESCUELA (próximamente) ============================ */
.coming-soon {
  min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 16px; padding: 40px;
}
.coming-soon .cs-icon {
  width: 120px; height: 120px; border-radius: 30px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: var(--shadow-lg); animation: floaty 4s ease-in-out infinite;
}
.coming-soon h1 { font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 800; }
.coming-soon .tag-soon { font-size: 1rem; letter-spacing: 4px; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.cs-bars { display: flex; gap: 6px; margin-top: 10px; }
.cs-bars span { width: 10px; height: 30px; background: var(--accent); border-radius: 4px; animation: csb 1.2s ease-in-out infinite; }
.cs-bars span:nth-child(2){ animation-delay:.15s } .cs-bars span:nth-child(3){ animation-delay:.3s }
.cs-bars span:nth-child(4){ animation-delay:.45s } .cs-bars span:nth-child(5){ animation-delay:.6s }
@keyframes csb { 0%,100%{ transform: scaleY(.4); opacity:.5 } 50%{ transform: scaleY(1); opacity:1 } }

/* ============================ SOBRE NOSOTROS / CONTACTO ============================ */
.info-hero { text-align: center; padding: 30px 0 40px; }
.info-hero h2 { font-size: clamp(2rem,4vw,3rem); }
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; }
.value-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.value-card .vc-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: rgba(253,123,65,.14); color: var(--accent); margin-bottom: 14px; }
.value-card h3 { margin-bottom: 8px; }
.stat-row { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin: 30px 0; }
.stat { text-align: center; }
.stat b { display: block; font-size: 2.4rem; font-weight: 800; color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 18px; }
.contact-card { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.contact-card .cc-icon { width: 48px; height: 48px; border-radius: 12px; display:grid; place-items:center; background: var(--surface-2); color: var(--accent); flex:none; }

/* ============================ ADMIN ============================ */
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side {
  background: var(--char); color: #fff; padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
:root[data-theme="light"] .admin-side { background: var(--char); }
.admin-side__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 0 6px; }
.admin-side__brand img { width: 40px; height: 40px; }
.admin-side__brand b { font-size: 1.05rem; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav button {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px;
  border: 0; background: transparent; color: rgba(255,255,255,.75); cursor: pointer;
  font-weight: 600; font-size: .92rem; text-align: left; transition: all var(--tr);
}
.admin-nav button:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav button.active { background: var(--accent); color: #fff; }
.admin-main { padding: 28px 30px 60px; overflow-x: hidden; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 14px; flex-wrap: wrap; }
.admin-topbar h2 { font-size: 1.6rem; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; margin-bottom: 26px; }
.kpi {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.kpi .k-label { color: var(--muted); font-size: .82rem; font-weight: 600; display:flex; align-items:center; gap:8px; }
.kpi .k-value { font-size: 1.9rem; font-weight: 800; margin-top: 8px; }
.kpi .k-sub { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.kpi--accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }
.kpi--accent .k-label, .kpi--accent .k-sub { color: rgba(255,255,255,.85); }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.panel__head h3 { font-size: 1.2rem; }

/* Tabla */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 640px; }
table.tbl th, table.tbl td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
table.tbl th { background: var(--surface-2); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); position: sticky; top: 0; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tr:hover td { background: var(--bg-soft); }
.tbl-img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.mini-actions { display: flex; gap: 6px; }
.mini-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); cursor: pointer; display: grid; place-items: center; color: var(--text); transition: all var(--tr); }
.mini-btn:hover { background: var(--surface-2); }
.mini-btn--danger:hover { background: #e5484d; color: #fff; border-color: #e5484d; }

.tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.tabs button { padding: 10px 16px; border: 0; background: transparent; cursor: pointer; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }

.status-select { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border); font-weight: 700; font-size: .8rem; background: var(--bg); cursor: pointer; }

/* Login admin */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(circle at 30% 20%, rgba(253,123,65,.12), transparent 45%), var(--bg); }
.login-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; padding: 36px 30px; box-shadow: var(--shadow-lg); text-align: center; }
.login-card img { width: 74px; height: 74px; margin: 0 auto 14px; animation: floaty 4s ease-in-out infinite; }
.login-card h2 { margin-bottom: 4px; } .login-card p { color: var(--muted); margin-bottom: 24px; font-size: .9rem; }

/* Analítica: gráfico de barras SVG */
.chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: .82rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ============================ TOASTS / MODAL ============================ */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--char); color: #fff;
  box-shadow: var(--shadow-lg); font-weight: 600; font-size: .9rem; opacity: 0; transform: translateY(20px); transition: all .3s ease; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast--success { background: #2ea043; } .toast--error { background: #e5484d; }

.modal-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(15,17,19,.55); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .25s ease; overflow-y: auto; }
.modal-overlay.show { opacity: 1; }
.modal { width: 100%; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(.98); transition: transform .25s cubic-bezier(.22,.61,.36,1); max-height: 92vh; display: flex; flex-direction: column; }
.modal-overlay.show .modal { transform: translateY(0) scale(1); }
.modal__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.modal__title { font-size: 1.2rem; font-weight: 800; }
.modal__body { padding: 22px; overflow-y: auto; }

/* Detalle de orden / solicitud */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.detail-box { background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px 16px; }
.detail-box .dl { font-size: .74rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
.detail-box .dv { font-weight: 600; }
.capture-img { max-width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border); margin-top: 8px; }

.divider { height: 1px; background: var(--border); margin: 18px 0; }
.badge-count { background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .72rem; font-weight: 800; margin-left: auto; }
.note-banner { background: rgba(253,123,65,.1); border: 1px solid rgba(253,123,65,.3); color: var(--text); border-radius: var(--radius-sm); padding: 12px 16px; font-size: .88rem; display: flex; gap: 10px; align-items: center; margin-bottom: 18px; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; order: 2; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: fixed; left: 0; top: 0; width: 250px; z-index: 90; transform: translateX(-100%); transition: transform var(--tr); }
  .admin-side.open { transform: translateX(0); }
  .admin-main { padding: 70px 16px 60px; }
  .admin-menu-btn { display: grid !important; }
}
@media (max-width: 640px) {
  .brand__name { display: none; }
  .topnav .navlink-text { display: none; }
  .topnav { gap: 4px; padding: 6px; }
  .field-row, .detail-grid { grid-template-columns: 1fr; }
  .opt-card { width: 260px; }
  .page { padding: 96px 14px 90px; }
  .hero { padding: 100px 12px 50px; }
}
