:root {
  --paper: #FBFBFA;
  --white: #FFFFFF;
  --ink: #232950;
  --ink-soft: #3B4060;
  --muted: #787774;
  --line: #EAEAEA;
  --accent: #232950;
  --accent-dark: #181D3B;
  --accent-pale: #FBF1DE;
  --accent-line: #F0DCB4;
  --amber: #ECA23F;
  --amber-dark: #A66A10;
  --yellow: #FAE04C;
  --tag-blue-bg: #E1F3FE;   --tag-blue-tx: #1F6C9F;
  --tag-green-bg: #EDF3EC;  --tag-green-tx: #346538;
  --tag-yellow-bg: #FBF3DB; --tag-yellow-tx: #956400;
  --tag-red-bg: #FDEBEC;    --tag-red-tx: #9F2F2D;
  --tag-gray-bg: #F1F1EF;   --tag-gray-tx: #57564F;
  --sans: 'Archivo', 'Helvetica Neue', -apple-system, sans-serif;
  --mono: 'SF Mono', ui-monospace, 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

::selection { background: var(--yellow); color: var(--ink); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Cintillo ---------- */
#cintillo {
  background: var(--accent);
  color: #fff;
  padding: 9px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  overflow: hidden;
  min-height: 38px;
  display: flex;
  align-items: center;
}

.cintillo-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: cintillo-scroll 90s linear infinite;
  will-change: transform;
}

.cintillo-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cintillo-track i { font-size: 15px; color: var(--yellow); }

@keyframes cintillo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .cintillo-track { animation: none; }
}

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo-mark { width: 26px; height: 20px; flex-shrink: 0; }
img.logo-mark { width: auto; height: 24px; max-width: 140px; object-fit: contain; }

.logo small {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

nav.desktop { display: flex; align-items: center; gap: 4px; }

nav.desktop a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 200ms var(--ease), background 200ms var(--ease);
}

nav.desktop a:hover { color: var(--ink); background: rgba(0,0,0,0.04); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  padding: 10px 18px;
  cursor: pointer;
  border: none;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), transform 150ms var(--ease);
}

.btn:active { transform: scale(0.98); }

.btn-dark, .btn-dark:visited, .btn-dark:hover, .btn-dark:active { color: #FFFFFF; }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: #333A66; }

.btn-accent, .btn-accent:visited, .btn-accent:hover, .btn-accent:active { color: #FFFFFF; }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); }

.btn-wa, .btn-wa:visited, .btn-wa:hover, .btn-wa:active { color: #FFFFFF; }
.btn-wa { background: #25D366; }
.btn-wa:hover { background: #1DA851; }

.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-line:hover { border-color: var(--ink); }

.btn-sm { padding: 7px 14px; font-size: 13px; }

#menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 6px;
  font-size: 22px;
  line-height: 1;
}

#mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 8px 0 16px;
}

#mobile-nav.open { display: block; }

#mobile-nav a {
  display: block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}

#mobile-nav a:active { background: rgba(0,0,0,0.04); }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--accent-pale) 0%, var(--paper) 60%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -220px; right: -160px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(236,162,63,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content { max-width: 720px; position: relative; }

.hero h1 {
  font-weight: 700;
  font-size: clamp(2.2rem, 5.2vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  font-weight: 700;
  color: var(--amber-dark);
}

.hero p {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 54ch;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.hero-meta span { display: flex; align-items: center; gap: 7px; }
.hero-meta i { font-size: 14px; color: var(--amber-dark); }

/* ---------- Marcas ---------- */
.marcas {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  padding: 26px 0;
}

.marcas-inner { display: flex; align-items: center; gap: 24px; }

@media (max-width: 680px) {
  .marcas-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .marcas-viewport { width: 100%; }
}

.marcas-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-dark);
  flex-shrink: 0;
}

.marcas-viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marcas-list {
  display: flex;
  gap: 44px;
  white-space: nowrap;
  width: max-content;
  font-size: 14px;
  font-weight: 700;
  color: #565D7E;
  letter-spacing: 0.02em;
  animation: marcas-scroll 120s linear infinite;
  will-change: transform;
}

.marcas-list span { transition: color 200ms var(--ease); }
.marcas-list span:hover { color: var(--ink); }

@keyframes marcas-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marcas-list { animation: none; }
}

/* ---------- Secciones ---------- */
section { padding: 88px 0; }

.sec-head { max-width: 640px; margin-bottom: 52px; }

.sec-head h2 {
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 14px;
  text-wrap: balance;
}

.sec-head p { font-size: 16px; color: var(--muted); max-width: 58ch; }

/* ---------- Nosotros ---------- */
#nosotros { background: var(--white); border-bottom: 1px solid var(--line); }

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

.nosotros-text p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 20px;
  max-width: 62ch;
}

.nosotros-nums {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  overflow: hidden;
}

.num-cell { padding: 28px 26px; background: var(--accent-pale); }

.num-cell:nth-child(1) { border-right: 1px solid var(--accent-line); border-bottom: 1px solid var(--accent-line); }
.num-cell:nth-child(2) { border-bottom: 1px solid var(--accent-line); }
.num-cell:nth-child(3) { border-right: 1px solid var(--accent-line); }

.num-val {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent-dark);
  line-height: 1;
  margin-bottom: 6px;
}

.num-lab { font-size: 13px; color: var(--ink-soft); }

/* ---------- Proceso ---------- */
#proceso { background: var(--paper); }

.proceso-list { border-top: 1px solid var(--line); }

.proceso-item {
  display: grid;
  grid-template-columns: 64px 1fr 1.1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.proceso-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--amber-dark);
  letter-spacing: 0.05em;
}

.proceso-item h3 { font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.proceso-item p { font-size: 15.5px; color: var(--muted); line-height: 1.65; }

/* ---------- Catálogo ---------- */
#catalogo { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.cat-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 36px; }

.cat-tab {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 7px 14px;
  cursor: pointer;
  transition: color 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease);
}

.cat-tab:hover { color: var(--ink); background: var(--tag-gray-bg); }

.cat-tab.active {
  color: var(--accent-dark);
  background: var(--accent-pale);
  border-color: var(--accent-line);
  font-weight: 600;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.prod {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 200ms var(--ease), transform 200ms var(--ease);
  display: flex;
  flex-direction: column;
}

.prod:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.05); transform: translateY(-2px); }
.prod.hide { display: none; }
.prod.oculto-admin { opacity: 0.4; }

.prod-media {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.prod-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.prod-media img.crop-code {
  height: 115%;
  object-position: center top;
}

.prod-media img.crop-code-2 {
  height: 148%;
  object-position: center 14%;
}

.prod-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }

.prod-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  padding: 3px 10px;
  margin-bottom: 8px;
}

.tag-sillas    { background: var(--tag-blue-bg);   color: var(--tag-blue-tx); }
.tag-mobiliario{ background: var(--tag-green-bg);  color: var(--tag-green-tx); }
.tag-papeleria { background: var(--tag-yellow-bg); color: var(--tag-yellow-tx); }
.tag-cafeteria { background: var(--accent-pale);   color: var(--accent-dark); }
.tag-limpieza  { background: var(--tag-gray-bg);   color: var(--tag-gray-tx); }
.tag-equipos   { background: var(--tag-red-bg);    color: var(--tag-red-tx); }
.tag-tintas    { background: #F0EAFB;              color: #5E3A9E; }
.tag-epp       { background: #E3F1F0;              color: #14615B; }
.tag-herramientas { background: #FBF3DB;           color: #7A5B00; }

.prod-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 12px;
  flex: 1;
}

.prod-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease), transform 150ms var(--ease);
}

.prod-add:hover { border-color: var(--accent); color: var(--accent-dark); }
.prod-add:active { transform: scale(0.98); }
.prod-add i { font-size: 14px; }

.prod-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 1px solid var(--accent);
  border-radius: 6px;
  overflow: hidden;
  background: var(--accent-pale);
}

.prod-qty button {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-dark);
  background: none;
  border: none;
  padding: 6px 14px;
  cursor: pointer;
  line-height: 1.3;
}

.prod-qty button:active { transform: scale(0.96); }

.prod-qty .q { font-family: var(--mono); font-size: 13.5px; font-weight: 600; color: var(--accent-dark); }

.prod-admin { display: none; gap: 6px; margin-top: 8px; }

body.admin .prod-admin { display: flex; }

.prod-admin button {
  flex: 1;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
}

.prod-admin button:hover { color: var(--ink); border-color: var(--muted); }

#ver-mas-wrap { text-align: center; margin-top: 36px; }

.catalog-note {
  margin-top: 44px;
  background: var(--accent-pale);
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.catalog-note-text { max-width: 58ch; }

.catalog-note h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.catalog-note p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }

.catalog-note .btn { flex-shrink: 0; }

@media (max-width: 680px) {
  .catalog-note { padding: 24px; }
  .catalog-note .btn { width: 100%; justify-content: center; }
}

#ver-mas {
  display: none;
  margin: 0 auto;
}

#ver-mas.visible { display: inline-flex; }

/* ---------- Testimonios ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: start;
}

.testi {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
}

.testi-featured { grid-row: 1 / 3; border-top: 3px solid var(--amber); }

.testi-featured blockquote {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 28px;
}

.testi blockquote {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.testi-who { display: flex; align-items: center; gap: 12px; }

.testi-init {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--accent-pale);
  border: 1px solid var(--accent-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  flex-shrink: 0;
}

.testi-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.testi-role { font-size: 12.5px; color: var(--muted); }

.testi-col { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Condiciones ---------- */
#condiciones { background: var(--white); border-top: 1px solid var(--line); }

.cond-list { border-top: 1px solid var(--line); }

.cond-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.cond-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cond-item h3 i { font-size: 16px; color: var(--amber-dark); }
.cond-item p { font-size: 15px; color: var(--muted); line-height: 1.65; max-width: 62ch; }

/* ---------- Caso ---------- */
#caso { background: var(--paper); }

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

.caso-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 18px;
  max-width: 60ch;
}

.caso-nums {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.caso-num .num-val { font-size: 1.9rem; }

.caso-quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: none;
  border-radius: 12px;
  padding: 40px;
  border-top: 3px solid var(--amber);
}

.caso-quote blockquote {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 20px;
}

.caso-quote figcaption {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- Contacto ---------- */
#preguntas { background: var(--paper); }

#contacto { background: var(--white); border-top: 1px solid var(--line); }

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

.contact-rows { border-top: 1px solid var(--line); margin-top: 32px; }

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-row-label {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.contact-row-val { font-size: 14.5px; font-weight: 600; color: var(--ink); text-align: right; }

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
}

.form-card h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.form-card > p { font-size: 14px; color: var(--muted); margin-bottom: 24px; }

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 13px;
  outline: none;
  transition: border-color 200ms var(--ease);
}

.field input:focus,
.field textarea:focus { border-color: var(--accent); }

.field input::placeholder,
.field textarea::placeholder { color: #B9B7B2; }

.field textarea { min-height: 96px; resize: vertical; }

.form-card .btn { width: 100%; justify-content: center; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 64px 0 40px; background: var(--paper); }

.foot-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.foot-brand p {
  font-size: 14px;
  color: var(--muted);
  max-width: 34ch;
  margin-top: 10px;
  line-height: 1.6;
}

.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }

.foot-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
}

.foot-col a {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 9px;
  transition: color 200ms var(--ease);
}

.foot-col a:hover { color: var(--accent-dark); }

.foot-fiscal {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.foot-fiscal span { display: inline-flex; gap: 18px; flex-wrap: wrap; }

/* ---------- WhatsApp flotante ---------- */
#wa {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 60;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.14);
  transition: background 200ms var(--ease), transform 150ms var(--ease), bottom 300ms var(--ease);
}

#wa { background: #25D366; color: #FFFFFF; }
#wa:hover { background: #1DA851; }
#wa:active { transform: scale(0.98); }

/* ---------- Lista de cotización ---------- */
#list-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
  transform: translateY(100%);
  transition: transform 300ms var(--ease);
}

body.has-list #list-bar { transform: translateY(0); }
body.has-list #wa { bottom: 92px; }

.list-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}

#list-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
}

#list-toggle i { font-size: 17px; color: var(--amber-dark); }

#list-count {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 9999px;
  padding: 2px 9px;
}

#list-panel {
  position: fixed;
  right: 16px; bottom: 76px;
  z-index: 71;
  width: min(400px, calc(100vw - 32px));
  max-height: min(440px, 60vh);
  display: none;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
}

#list-panel.open { display: flex; }

.list-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.list-panel-head h4 { font-size: 14px; font-weight: 600; color: var(--ink); }

#list-clear {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 150ms var(--ease);
}

#list-clear:hover { color: var(--tag-red-tx); }

#list-items { overflow-y: auto; flex: 1; }

.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.list-item:last-child { border-bottom: none; }

.list-item-name { flex: 1; font-size: 13.5px; font-weight: 500; color: var(--ink); line-height: 1.35; }

.list-item-qty {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.list-item-qty button {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: none;
  padding: 4px 9px;
  cursor: pointer;
}

.list-item-qty .q { font-family: var(--mono); font-size: 12.5px; min-width: 20px; text-align: center; }

.list-item-remove {
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  padding: 4px;
  transition: color 150ms var(--ease);
}

.list-item-remove:hover { color: var(--tag-red-tx); }

.list-empty { padding: 32px 18px; text-align: center; font-size: 13.5px; color: var(--muted); }

/* ---------- Modo edición ---------- */
#admin-bar {
  display: none;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

body.admin #admin-bar { display: flex; }

#admin-bar strong { font-weight: 700; }

#admin-bar button {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
}

#admin-bar button:hover { background: rgba(255,255,255,0.22); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .nosotros-grid, .caso-grid, .contacto-grid { grid-template-columns: 1fr; gap: 44px; }
  .proceso-item { grid-template-columns: 48px 1fr; }
  .proceso-item p { grid-column: 2; }
  .testi-grid { grid-template-columns: 1fr; }
  .testi-featured { grid-row: auto; }
}

@media (max-width: 680px) {
  section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }

  nav.desktop { display: none; }
  #menu-toggle { display: block; }

  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .cond-item { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }

  .proceso-item { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; }
  .proceso-item p { grid-column: 1; }

  .caso-nums { gap: 24px; }
  .foot-cols { gap: 36px; }
  .hero-actions .btn { flex: 1; justify-content: center; min-width: 150px; }

  #cintillo { font-size: 12px; }
  .list-bar-inner .btn { padding: 10px 14px; font-size: 13px; }
}

@media (max-width: 400px) {
  .wrap { padding: 0 18px; }
  .cat-grid { gap: 10px; }
  .prod-body { padding: 12px 12px 14px; }
  .form-card, .testi, .caso-quote { padding: 24px; }
}
/* ---------- Editor en vivo (solo administradores) ---------- */
#editor-toggle {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  border: none;
  border-radius: 8px;
  padding: 11px 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

#editor-toggle:hover { background: var(--accent-dark); }

body.editando .prod { outline: 2px dashed var(--amber); outline-offset: 2px; }
body.editando .prod[data-estado="draft"] { opacity: 0.45; }

.editor-barra { display: none; gap: 5px; margin-top: 8px; flex-wrap: wrap; }
body.editando .editor-barra { display: flex; }

.editor-barra button {
  flex: 1;
  min-width: 56px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--accent-pale);
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  padding: 5px 6px;
  cursor: pointer;
}

.editor-barra button:hover { background: var(--amber); color: #fff; }
.editor-barra button.peligro { color: #9F2F2D; background: #FDEBEC; border-color: #F5C9CB; }
.editor-barra button.peligro:hover { background: #9F2F2D; color: #fff; }

.editor-nota { font-size: 11.5px; color: var(--muted); font-style: italic; }

#editor-nuevo {
  display: none;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--accent-pale);
  border: 1px dashed var(--amber);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 13.5px;
}

body.editando #editor-nuevo { display: flex; }

#editor-nuevo input[type="text"], #editor-nuevo select {
  font-family: var(--sans);
  font-size: 13.5px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

#editor-nuevo .editor-file { font-size: 12.5px; color: var(--ink-soft); }
