/* ===================================================
   KUBO — Stylesheet
   Paleta: Negro industrial + Amarillo señal
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,600;0,700;0,900;1,400&family=Barlow+Condensed:wght@500;700;900&display=swap');

/* — TOKENS — */
:root {
  --bg:          #111111;
  --bg-2:        #181818;
  --bg-3:        #1f1f1f;
  --surface:     #242424;
  --border:      #2e2e2e;
  --yellow:      #FFD600;
  --yellow-dim:  #c9a800;
  --yellow-glow: rgba(255,214,0,.18);
  --text:        #e8e8e8;
  --text-muted:  #888;
  --text-dark:   #111111;
  --danger:      #e04444;
  --success:     #3dba7b;
  --radius:      6px;
  --radius-lg:   12px;
  --font-ui:     'Barlow', sans-serif;
  --font-display:'Barlow Condensed', sans-serif;
  --transition:  160ms ease;
}

/* — BASE — */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { color: var(--yellow); text-decoration: none; }
a:hover { color: #fff; }

/* — SCROLLBAR — */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* — TIPOGRAFÍA — */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.01em; }

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
}

/* — BOTONES — */
.btn-kubo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 11px 28px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-kubo:hover  { background: #fff; color: var(--text-dark); }
.btn-kubo:active { transform: scale(.97); }

.btn-outline {
  background: transparent;
  color: var(--yellow);
  border: 1.5px solid var(--yellow);
}
.btn-outline:hover { background: var(--yellow); color: var(--text-dark); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }

/* — HEADER — */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
#header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.5); }

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo img  { height: 36px; width: auto; }
.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: .05em;
}
.logo-text span { color: var(--yellow); }

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  flex: 1;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 0 14px;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--yellow); }

/* Search bar */
.search-wrap {
  position: relative;
  width: 220px;
}
.search-wrap input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 13px;
  padding: 8px 36px 8px 14px;
  outline: none;
  transition: border-color var(--transition);
}
.search-wrap input:focus { border-color: var(--yellow); }
.search-wrap .search-icon {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

/* Cart button */
.cart-btn {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 18px;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  flex-shrink: 0;
}
.cart-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--yellow);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  min-width: 20px; height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}
.cart-count.hidden { display: none; }

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }

/* — HERO — */
#inicio {
  min-height: 100vh;
  padding-top: 64px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .4;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -200px; left: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--yellow-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 1320px;
  margin: 0 auto;
  padding: 80px 24px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--yellow);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  max-width: 780px;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: normal;
  color: var(--yellow);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  flex-wrap: wrap;
}
.stat-item .num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
}
.stat-item .label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 4px;
}

/* — SECCIONES COMUNES — */
.section {
  padding: 96px 24px;
  max-width: 1320px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
}

.section-divider {
  width: 40px;
  height: 4px;
  background: var(--yellow);
  border-radius: 2px;
  margin-bottom: 40px;
}

/* — CATÁLOGO — */
#catalogo {
  background: var(--bg-2);
  width: 100%;
  max-width: 100%;
  padding: 96px 0;
}

.catalogo-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Category tabs */
.cat-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 40px;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  cursor: pointer;
  transition: all var(--transition);
}
.cat-tab i { font-size: 14px; }
.cat-tab:hover { border-color: var(--yellow); color: var(--yellow); }
.cat-tab.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--text-dark);
}

/* Search results banner */
#search-info {
  background: var(--surface);
  border-left: 3px solid var(--yellow);
  padding: 12px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-muted);
  display: none;
}
#search-info strong { color: var(--yellow); }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* Product card */
.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition);
}
.product-card:hover {
  border-color: rgba(255,214,0,.35);
  transform: translateY(-3px);
}

.card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-3);
  position: relative;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.product-card:hover .card-img img { transform: scale(1.05); }

.card-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--yellow);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
}

.card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--yellow-dim);
  margin-bottom: 5px;
}
.card-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.25;
}
.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 14px;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--yellow);
}
.card-price small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  font-family: var(--font-ui);
}
.btn-add {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow);
  color: var(--text-dark);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-add:hover  { background: #fff; }
.btn-add:active { transform: scale(.95); }
.btn-add.added  { background: var(--success); color: #fff; }

.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.empty-state i { font-size: 48px; margin-bottom: 16px; display: block; }
.empty-state p { font-size: 16px; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--bg-3) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* — EMPRESA — */
#empresa { border-top: 1px solid var(--border); }

.empresa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.empresa-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
  max-width: 520px;
}

.valores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.valor-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.valor-item i {
  font-size: 22px;
  color: var(--yellow);
  margin-bottom: 10px;
  display: block;
}
.valor-item h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.valor-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* — PUNTOS DE VENTA — */
#puntos { background: var(--bg-2); width: 100%; max-width: 100%; padding: 96px 0; }
.puntos-inner { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

.sucursales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.sucursal-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition);
}
.sucursal-card:hover { border-color: var(--yellow); }
.suc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.suc-icon {
  width: 44px; height: 44px;
  background: var(--yellow-glow);
  border: 1px solid rgba(255,214,0,.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--yellow);
  flex-shrink: 0;
}
.suc-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.suc-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--text-dark);
  padding: 1px 8px;
  border-radius: 3px;
  margin-top: 2px;
}
.suc-info { display: flex; flex-direction: column; gap: 8px; }
.suc-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.suc-info-item i { color: var(--yellow-dim); font-size: 14px; margin-top: 2px; flex-shrink: 0; }

/* Map placeholder */
.map-placeholder {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}
.map-placeholder i { font-size: 36px; color: var(--yellow); }
.map-placeholder small {
  font-size: 12px;
  opacity: .6;
}
.map-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: .5;
  pointer-events: none;
}

/* — CONTACTO — */
#contacto { border-top: 1px solid var(--border); }

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-info-icon {
  width: 44px; height: 44px;
  background: var(--yellow-glow);
  border: 1px solid rgba(255,214,0,.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--yellow);
  flex-shrink: 0;
}
.contact-info-item h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.contact-info-item p  { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* Form */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--transition);
}
.form-control:focus { border-color: var(--yellow); }
.form-control::placeholder { color: var(--text-muted); opacity: .7; }
textarea.form-control { resize: vertical; min-height: 120px; }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-msg {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-top: 12px;
  display: none;
}
.form-msg.success { background: rgba(61,186,123,.15); border: 1px solid var(--success); color: var(--success); display: block; }
.form-msg.error   { background: rgba(224,68,68,.15);  border: 1px solid var(--danger);  color: var(--danger);  display: block; }

/* — FOOTER — */
#footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 56px 24px 24px;
}
.footer-inner { max-width: 1320px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 260px;
}
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: var(--text-muted); transition: color var(--transition); }
.footer-col a:hover { color: var(--yellow); }

.social-links { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.social-link {
  width: 36px; height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  transition: all var(--transition);
}
.social-link:hover { background: var(--yellow); border-color: var(--yellow); color: var(--text-dark); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--text-muted); }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--yellow); }

/* — OFFCANVAS CARRITO — */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-panel {
  position: fixed;
  top: 0; right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  z-index: 1101;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.cart-panel.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.cart-close {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 18px;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.cart-close:hover { border-color: var(--danger); color: var(--danger); }

.cart-body { flex: 1; overflow-y: auto; padding: 20px 24px; }

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.cart-empty i { font-size: 48px; margin-bottom: 14px; display: block; }
.cart-empty p  { font-size: 15px; }

.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }

.cart-item-img {
  width: 70px; height: 70px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--surface);
  flex-shrink: 0;
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-unit { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }

.qty-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.qty-btn {
  width: 28px; height: 28px;
  border: none;
  background: none;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}
.qty-btn:hover { color: var(--yellow); }
.qty-val {
  min-width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.cart-item-price {
  text-align: right;
  flex-shrink: 0;
}
.cart-item-subtotal {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--yellow);
}
.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  margin-top: 6px;
  display: block;
  transition: color var(--transition);
}
.cart-item-remove:hover { color: var(--danger); }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cart-total-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.cart-total-amount {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: #fff;
}
.cart-total-amount span { font-size: 16px; color: var(--text-muted); }

/* — MODAL CHECKOUT — */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  transform: scale(.95);
  transition: transform .25s;
}
.modal-overlay.open .modal-box { transform: scale(1); }
.modal-box h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
}
.modal-box p.modal-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

.tipo-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.tipo-btn {
  flex: 1;
  padding: 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
}
.tipo-btn.active { border-color: var(--yellow); color: var(--yellow); background: var(--yellow-glow); }

.empresa-fields { display: none; }
.empresa-fields.visible { display: block; }

.checkout-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.btn-wsp {
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition);
}
.btn-wsp:hover { background: #1da851; }

/* — WHATSAPP FAB — */
.fab-wsp {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  z-index: 900;
  transition: transform var(--transition), box-shadow var(--transition);
}
.fab-wsp:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.5); }

/* — TOAST — */
.toast-container {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn .25s ease forwards;
}
.toast i { color: var(--yellow); font-size: 16px; }
.toast.removing { animation: toastOut .2s ease forwards; }
@keyframes toastIn  { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }
@keyframes toastOut { to   { opacity:0; transform:translateY(16px); } }

/* — RESPONSIVE — */
@media (max-width: 1024px) {
  .empresa-grid { grid-template-columns: 1fr; gap: 40px; }
  .contacto-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .search-wrap { display: none; }
  .menu-toggle { display: flex; }

  .hero-stats { gap: 28px; }
  .stat-item .num { font-size: 32px; }

  .valores-grid { grid-template-columns: 1fr; }
  .form-grid-2  { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand p { max-width: 100%; }

  .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

  .cart-panel { width: 100%; }
  .modal-box  { padding: 20px; }
}

@media (max-width: 480px) {
  .section { padding: 64px 20px; }
  .cat-tabs { gap: 8px; }
  .cat-tab  { font-size: 12px; padding: 7px 14px; }
  .sucursales-grid { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
