:root {
  /* Paleta del logo POROTOS.CL: naranja + negro + blanco (marca coherente con PorotoFit) */
  --navy: #232323;        /* negro/gris oscuro estructural (fondo del logo) */
  --navy-osc: #111111;
  --azul: #ee7218;        /* acento vivo = naranja (focus, bordes activos) */
  --naranja: #ee7218;     /* naranja principal de la marca */
  --naranja-osc: #d5610f;
  --rojo: #e0561a;        /* naranja-rojizo para alertas / stock bajo */
  --rojo-osc: #c24a12;
  --verde: #43a82a;       /* verde de las hojas (disponible) */
  --grad-marca: linear-gradient(90deg, #ee7218 0%, #f59331 100%);
  --grad-accion: linear-gradient(90deg, #f59331 0%, #e56710 100%);

  --gris-bg: #f4f6f9;
  --gris-borde: #e6e9ef;
  --texto: #1f2937;
  --texto-suave: #6b7280;
  --sombra: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --sombra-media: 0 4px 14px rgba(0, 0, 0, 0.08);
  --sombra-hover: 0 12px 30px rgba(0, 0, 0, 0.14);
  --radio: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--gris-bg);
  color: var(--texto);
}

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #171717;
  color: #fff;
  border-bottom: 3px solid transparent;
  border-image: var(--grad-marca) 1;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 24px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand-logo {
  height: 88px;
  width: auto;
  display: block;
}
.search {
  flex: 1;
  min-width: 220px;
  max-width: 560px;
}
.search input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border: 1px solid var(--gris-borde);
  border-radius: 999px;
  font-size: 15px;
  outline: none;
  background: var(--gris-bg) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%236b7280" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>') no-repeat 14px center;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.search input:focus {
  border-color: var(--azul);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(31, 134, 204, 0.15);
}

/* ---------- Banner de bienvenida (hero) ---------- */
.hero {
  background: linear-gradient(120deg, #171717 0%, #2a1a0e 55%, #c85a10 135%);
  color: #fff;
  padding: 42px 24px 44px;
  text-align: center;
}
.hero-inner { max-width: 900px; margin: 0 auto; }
.hero-title { font-size: 34px; font-weight: 800; margin: 0 0 10px; line-height: 1.15; letter-spacing: -0.5px; }
.hero-title span { color: var(--naranja); }
.hero-sub { font-size: 16px; margin: 0; color: rgba(255, 255, 255, 0.85); }

/* ---------- Franja de beneficios ---------- */
.beneficios { background: #fff; border-bottom: 1px solid var(--gris-borde); }
.beneficios-inner {
  max-width: 1280px; margin: 0 auto; padding: 16px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.benef { display: flex; align-items: center; gap: 10px; }
.benef-ico { font-size: 26px; line-height: 1; }
.benef b { display: block; font-size: 14px; color: var(--navy); }
.benef small { color: var(--texto-suave); font-size: 12px; }

/* ---------- Accesos rápidos por categoría ---------- */
.cats-rapidas {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  max-width: 1280px; margin: 0 auto; padding: 22px 24px 2px;
}
.cat-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1.5px solid var(--gris-borde); color: var(--navy);
  padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.cat-chip:hover { border-color: var(--naranja); color: var(--naranja); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(238, 114, 24, 0.15); }
.cat-chip.on { background: var(--grad-accion); border-color: transparent; color: #fff; }
.cat-chip .cat-ico { font-size: 17px; line-height: 1; }

/* ---------- Barra de filtros ---------- */
.toolbar {
  display: flex; align-items: center; gap: 12px; padding: 18px 24px;
  flex-wrap: wrap; max-width: 1280px; margin: 0 auto;
}
.toolbar select {
  padding: 10px 14px; border: 1.5px solid var(--gris-borde); border-radius: 10px;
  background: #fff; font-size: 14px; color: var(--texto); cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.toolbar select:hover { border-color: var(--naranja); }
.toolbar select:focus { outline: none; border-color: var(--naranja); box-shadow: 0 0 0 3px rgba(238, 114, 24, 0.15); }

@media (max-width: 760px) {
  .hero { padding: 32px 20px; }
  .hero-title { font-size: 25px; }
  .hero-sub { font-size: 14px; }
  .beneficios-inner { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
.count {
  margin-left: auto;
  color: var(--texto-suave);
  font-size: 14px;
}

/* ---------- Grilla de productos ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
  padding: 0 24px 32px;
  max-width: 1280px;
  margin: 0 auto;
}
.card {
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sombra);
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}
.card:hover {
  box-shadow: 0 14px 30px rgba(238, 114, 24, 0.16);
  transform: translateY(-4px);
  border-color: var(--naranja);
}
.card .foto {
  height: 210px;
  flex: 0 0 210px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-bottom: 1px solid var(--gris-borde);
}
.card .foto img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.card .cuerpo {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #047857;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 999px;
  width: fit-content;
}
.card .titulo {
  font-size: 14px;
  line-height: 1.35;
  color: var(--texto);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.card .precio {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
}
.card .tiers {
  font-size: 12px;
  color: var(--texto-suave);
  line-height: 1.6;
  background: #f9fafb;
  border-radius: 6px;
  padding: 6px 8px;
}
.card .stock {
  font-size: 12px;
  color: var(--texto-suave);
}
.card .stock.pocas { color: var(--rojo); font-weight: 600; }
.btn-comprar {
  margin-top: auto;
  display: block;
  text-align: center;
  background: var(--grad-accion);
  color: #fff;
  border: none;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 11px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(238, 114, 24, 0.26);
  transition: filter 0.15s, box-shadow 0.15s, transform 0.1s;
}
.btn-comprar:hover { filter: brightness(1.04); box-shadow: 0 6px 18px rgba(238, 114, 24, 0.36); }
.btn-comprar:active { transform: translateY(1px); }
.btn-comprar:disabled { background: #cbd2dd; box-shadow: none; cursor: default; filter: none; }

/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0;
  height: 60px;
  padding: 0;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  overflow: hidden;
  transition: gap 0.2s ease, padding 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.whatsapp-fab svg {
  width: 34px;
  height: 34px;
  fill: #fff;
  flex: 0 0 auto;
  margin: 0 13px;
}
.whatsapp-fab-txt {
  max-width: 0;
  white-space: nowrap;
  font-weight: 700;
  font-size: 15px;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.25s ease, opacity 0.2s ease, margin 0.25s ease;
}
.whatsapp-fab:hover {
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.55);
  transform: translateY(-1px);
}
.whatsapp-fab:hover .whatsapp-fab-txt {
  max-width: 220px;
  opacity: 1;
  margin-right: 20px;
}
/* Latido suave para llamar la atención al cargar */
@keyframes wa-pulse {
  0% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-fab { animation: wa-pulse 2.6s ease-out 3; }
@media (max-width: 680px) {
  .whatsapp-fab { right: 16px; bottom: 16px; height: 56px; }
  .whatsapp-fab svg { width: 30px; height: 30px; margin: 0 13px; }
}

/* En teléfono: 2 productos por fila (en vez de 1), con tarjetas más compactas. */
@media (max-width: 620px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 12px 24px;
  }
  .card .foto { height: 150px; flex-basis: 150px; padding: 8px; }
  .card .cuerpo { padding: 10px 10px 12px; gap: 6px; }
  .card .titulo { font-size: 13px; min-height: 34px; }
  .card .precio { font-size: 17px; }
  .card .tiers { font-size: 11px; padding: 5px 7px; }
  .btn-comprar { font-size: 13px; padding: 9px; }
  .toolbar { padding: 12px; }
}

/* ---------- Paginacion ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 24px 48px;
}
.pagination button {
  padding: 9px 16px;
  border: 1px solid var(--gris-borde);
  background: #fff;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
.pagination button:disabled { opacity: 0.4; cursor: default; }
.pagination .pag-info { color: var(--texto-suave); font-size: 14px; }

.vacio {
  text-align: center;
  color: var(--texto-suave);
  padding: 60px 20px;
  grid-column: 1 / -1;
}

/* ---------- Pie de página (footer minimalista) ---------- */
.site-footer {
  margin-top: 48px; background: #fff; border-top: 1px solid var(--gris-borde);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 38px 24px 32px;
}
.foot-social { display: flex; gap: 12px; margin-bottom: 22px; }
.foot-social a {
  width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--gris-borde);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.14s, box-shadow 0.14s, border-color 0.14s;
}
.foot-social a:hover { transform: translateY(-2px); box-shadow: var(--sombra-media); border-color: transparent; }
.foot-social svg { width: 19px; height: 19px; }
.foot-social .ig svg { fill: #e1306c; }
.foot-social .fb svg { fill: #1877f2; }
.foot-social .tk svg { fill: #111; }
.foot-place {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--texto-suave); font-size: 14px; margin-bottom: 16px;
}
.foot-place svg { width: 17px; height: 17px; fill: var(--naranja); flex: 0 0 auto; }
.foot-como {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1.5px solid var(--navy); color: var(--navy); border-radius: 999px;
  padding: 8px 18px; font-size: 13px; font-weight: 600; text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.foot-como svg { width: 16px; height: 16px; fill: currentColor; }
.foot-como:hover { background: var(--navy); color: #fff; }
.foot-copy {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--gris-borde);
  width: 100%; max-width: 760px; font-size: 12px; color: var(--texto-suave);
}
.foot-copy a { color: var(--texto-suave); text-decoration: none; }
.foot-copy a:hover { text-decoration: underline; color: var(--navy); }

/* ================= PANEL DE ADMINISTRACION ================= */
.admin-wrap { max-width: 1000px; margin: 0 auto; padding: 24px; }
.admin-header {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.admin-logo { height: 46px; width: auto; }
.admin-header h1 { margin: 0; font-size: 22px; color: var(--navy); }
.admin-header .spacer { flex: 1; }
.admin-header a, .admin-header button {
  font-size: 14px; text-decoration: none; color: var(--texto-suave);
  background: none; border: none; cursor: pointer;
}

.login-box {
  max-width: 380px; margin: 80px auto; background: #fff;
  border: 1px solid var(--gris-borde); border-radius: 12px; padding: 32px;
  box-shadow: var(--sombra);
}
.login-box { text-align: center; }
.login-logo { height: 72px; width: auto; margin: 0 auto 14px; display: block; }
.login-box h1 { margin: 0 0 6px; font-size: 22px; color: var(--navy); }
.login-box p { margin: 0 0 20px; color: var(--texto-suave); font-size: 14px; }
.login-box input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--gris-borde);
  border-radius: 8px; font-size: 15px; margin-bottom: 12px;
}
.login-box button {
  width: 100%; padding: 11px; border: none; border-radius: 8px;
  background: var(--rojo); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer;
}
.login-box .error { color: var(--rojo); font-size: 14px; min-height: 20px; }

.admin-nav { display: flex; gap: 6px; background: var(--gris-bg); padding: 5px; border-radius: 10px; margin-bottom: 22px; width: fit-content; }
.admin-nav-tab {
  border: none; background: none; padding: 9px 20px; border-radius: 8px; font-size: 14px;
  font-weight: 600; color: var(--texto-suave); cursor: pointer;
}
.admin-nav-tab.on { background: #fff; color: var(--navy); box-shadow: var(--sombra); }

.clientes-sub { color: var(--texto-suave); font-size: 14px; margin: 0 0 16px; }
.cliente-card {
  background: #fff; border: 1px solid var(--gris-borde); border-radius: 12px;
  padding: 16px 18px; margin-bottom: 12px;
}
.cliente-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cliente-nombre { font-size: 16px; font-weight: 700; color: var(--navy); }
.cliente-fecha { font-size: 12px; color: var(--texto-suave); white-space: nowrap; }
.cliente-datos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; font-size: 13px; color: var(--texto); }
.cliente-dir { grid-column: 1 / -1; }
.cli-k { display: inline-block; min-width: 62px; color: var(--texto-suave); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.02em; }
.cli-pend { color: #b45309; font-style: italic; }
.cli-nota { color: var(--texto-suave); }
.cliente-datos a { color: var(--navy); }
@media (max-width: 560px) { .cliente-datos { grid-template-columns: 1fr; } }

/* ---- Pedidos (admin) ---- */
.pedidos-barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.pedidos-filtros { display: flex; gap: 8px; flex-wrap: wrap; }
.pedidos-barra #btnEtiquetas { white-space: nowrap; }
.ped-filtro {
  border: 1px solid var(--gris-borde); background: #fff; color: var(--texto-suave);
  border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.ped-filtro.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.pedido-card {
  background: #fff; border: 1px solid var(--gris-borde); border-radius: 12px;
  padding: 16px 18px; margin-bottom: 12px;
}
.pedido-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ped-num { font-size: 16px; font-weight: 700; color: var(--navy); margin-right: 8px; }
.pedido-estado { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 3px 9px; border-radius: 999px; }
.pedido-estado.pagado { background: #dcfce7; color: #166534; }
.pedido-estado.atendido { background: #e0e7ff; color: #3730a3; }
.pedido-estado.sinpagar { background: #f3f4f6; color: #6b7280; }
.pedido-estado.rechazado { background: #fee2e2; color: #991b1b; }
.pedido-estado.terreno { background: #ffedd5; color: #9a3412; }
.ped-origen { font-size: 11px; color: var(--texto-suave); margin-left: 8px; white-space: nowrap; }
.ped-desc { display: block; font-size: 12px; color: var(--texto-suave); }
.pedido-cliente { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; font-size: 13px; color: var(--texto); margin-bottom: 12px; }
.pedido-cliente a { color: var(--navy); }
.pedido-items { border-top: 1px solid var(--gris-borde); padding-top: 10px; margin-bottom: 12px; }
.ped-item { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 3px 0; color: var(--texto); }
.ped-x { color: var(--texto-suave); font-size: 12px; }
.pedido-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--gris-borde); padding-top: 12px; }
.pedido-total { font-size: 15px; color: var(--texto); }
.pedido-total b { font-size: 18px; color: var(--navy); margin-left: 6px; }
.pedido-acciones { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-wa { background: #25d366; color: #fff; text-decoration: none; display: inline-flex; align-items: center; }
.btn-wa:hover { background: #1eb858; }
@media (max-width: 560px) { .pedido-cliente { grid-template-columns: 1fr; } }

.tools {
  background: #fff; border: 1px solid var(--gris-borde); border-radius: 12px;
  padding: 20px; margin-bottom: 24px; display: flex; gap: 24px; flex-wrap: wrap;
}
.tools .tool { flex: 1; min-width: 260px; }
.tools h3 { margin: 0 0 8px; font-size: 15px; }
.tools p { margin: 0 0 12px; color: var(--texto-suave); font-size: 13px; }
.tools input {
  padding: 9px 12px; border: 1px solid var(--gris-borde); border-radius: 8px;
  width: 100%; margin-bottom: 8px;
}
.btn {
  padding: 9px 16px; border: none; border-radius: 8px; background: var(--navy);
  color: #fff; font-weight: 600; cursor: pointer; font-size: 14px;
}
.btn-rojo { background: var(--rojo); }
.btn-gris { background: #fff; color: var(--texto-suave); border: 1px solid var(--gris-borde); }

.tools textarea {
  padding: 9px 12px; border: 1px solid var(--gris-borde); border-radius: 8px;
  width: 100%; margin-bottom: 8px; min-height: 60px; font: inherit; resize: vertical;
}

.admin-search {
  width: 100%; padding: 11px 14px; border: 1px solid var(--gris-borde);
  border-radius: 8px; font-size: 15px; margin-bottom: 16px;
}
.prod-row {
  display: flex; align-items: center; gap: 14px; background: #fff;
  border: 1px solid var(--gris-borde); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px;
}
.prod-row img { width: 48px; height: 48px; object-fit: contain; }
.prod-row .info { flex: 1; min-width: 0; }
.prod-row .info .t { font-size: 14px; margin-bottom: 2px; }
.prod-row .info .p { font-size: 13px; color: var(--texto-suave); }
.prod-row .estado {
  font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #ecfdf5; color: #047857;
}
.prod-row .estado.paused { background: #fef3c7; color: #92400e; }
.prod-row .estado.closed { background: #f3f4f6; color: #6b7280; }
.prod-row .estado.oculto { background: #f3f4f6; color: #6b7280; }
.prod-row.oculto-row { opacity: 0.6; }
.tag-catalogo {
  font-size: 10px; padding: 1px 6px; border-radius: 999px;
  background: #eef2ff; color: #4338ca; vertical-align: middle; margin-left: 6px;
}

.editor {
  background: #f9fafb; border: 1px solid var(--gris-borde);
  border-radius: 0 0 10px 10px; padding: 16px; margin: -8px 0 8px;
}
.editor label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 4px; }
.editor textarea, .editor input {
  width: 100%; padding: 8px 10px; border: 1px solid var(--gris-borde);
  border-radius: 6px; font-size: 14px; font-family: inherit;
}
.editor textarea { min-height: 70px; resize: vertical; }
.editor .fila { display: flex; gap: 12px; }
.editor .fila > div { flex: 1; }
.editor .guardar { margin-top: 16px; }
.editor .hint-cat { font-size: 12px; color: var(--texto-suave); margin-top: 4px; }
.editor .bloque-tramo {
  border: 1px solid var(--gris-borde); border-radius: 10px; padding: 10px 14px 14px;
  margin-top: 14px; background: #fff;
}
.editor .bloque-tit { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.editor .auto-desc {
  font-size: 11px; font-weight: 600; color: #047857; background: #ecfdf5;
  padding: 1px 8px; border-radius: 999px; margin-left: 6px;
}
.editor .opc { font-weight: 400; color: var(--texto-suave); font-size: 12px; }
.editor .req { font-weight: 600; color: var(--rojo); font-size: 11px; }
.msg { font-size: 14px; margin-top: 10px; color: #047857; }
.msg.err { color: var(--rojo); }

/* Galería de fotos del editor */
.fotos { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin-top: 4px; }
.foto-item {
  position: relative; width: 100px; border: 1px solid var(--gris-borde);
  border-radius: 8px; overflow: hidden; background: #fff;
}
.foto-item.principal { border-color: var(--rojo); }
.foto-item img { width: 100px; height: 100px; object-fit: contain; display: block; }
.foto-item .tag-principal {
  position: absolute; top: 4px; left: 4px; background: var(--rojo); color: #fff;
  font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px;
}
.foto-acciones { display: flex; flex-direction: column; }
.foto-item .mini {
  border: none; background: #f3f4f6; font-size: 11px; padding: 4px; cursor: pointer;
  border-top: 1px solid var(--gris-borde);
}
.foto-item .mini.quitar { color: var(--rojo); }
.foto-item .mini:hover { background: #e5e7eb; }
.add-fotos { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.add-fotos .btn { display: inline-block; }
.upmsg { font-size: 13px; color: var(--texto-suave); }
.sin-fotos { font-size: 13px; color: var(--texto-suave); align-self: center; max-width: 220px; }

/* ================= TIENDA: CARRITO Y FICHA ================= */
/* Botón del carrito en la barra */
.cart-btn {
  position: relative; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22);
  color: #fff; font-size: 20px; width: 46px; height: 46px; border-radius: 12px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.cart-btn:hover { background: rgba(255,255,255,0.18); border-color: var(--naranja); }
.cart-count {
  position: absolute; top: -6px; right: -6px; background: var(--rojo); color: #fff;
  font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(230, 58, 30, 0.4);
}

/* Aviso corto */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 600; box-shadow: var(--sombra-hover); z-index: 100;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Ficha del producto (modal) ---------- */
.detail-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.detail-backdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, 0.66); }
.detail-modal {
  position: relative; background: #fff; border-radius: 16px; max-width: 900px; width: 100%;
  max-height: 92vh; overflow-y: auto; box-shadow: var(--sombra-hover); animation: pop 0.15s ease-out;
}
@keyframes pop { from { transform: scale(0.97); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.detail-x {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 999px;
  border: none; background: #fff; box-shadow: var(--sombra); font-size: 16px; cursor: pointer; color: var(--texto);
}
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 28px; }

.galeria-main {
  height: 340px; background: #fff; border: 1px solid var(--gris-borde); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; padding: 12px; cursor: zoom-in;
}
.galeria-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.galeria-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb {
  width: 60px; height: 60px; border: 2px solid var(--gris-borde); border-radius: 8px; padding: 3px;
  background: #fff; cursor: pointer; overflow: hidden;
}
.thumb.on { border-color: var(--rojo); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }

.ficha h2 { margin: 8px 0 12px; font-size: 20px; line-height: 1.3; color: var(--texto); }
.ficha .precio-grande { font-size: 30px; font-weight: 800; color: var(--navy); }
.ficha .tiers { margin-top: 10px; }
.ficha .stock { margin-top: 10px; font-size: 14px; }
.tramos-sel { display: flex; gap: 8px; margin: 18px 0 6px; flex-wrap: wrap; }
.tramo-op {
  flex: 1; min-width: 120px; text-align: left; background: #fff; border: 1.5px solid var(--gris-borde);
  border-radius: 10px; padding: 8px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 1px;
  transition: border-color 0.15s, background 0.15s;
}
.tramo-op b { font-size: 14px; color: var(--texto); }
.tramo-op small { font-size: 11px; color: var(--texto-suave); }
.tramo-op.on { border-color: var(--naranja); background: #fff6ee; }
.tramo-op.on b { color: var(--naranja-osc); }
.linea-total { font-size: 15px; color: var(--texto); margin: 4px 0 14px; }
.linea-total b { color: var(--navy); }
.linea-total span { color: var(--texto-suave); font-size: 13px; }
.cart-item-extra { font-size: 11px; color: var(--texto-suave); margin-top: 4px; }
.tramo-tag.detalle { background: var(--gris-bg); color: var(--texto-suave); }
.cantidad { display: flex; align-items: center; gap: 8px; margin: 18px 0; }
.cantidad span { font-size: 14px; color: var(--texto-suave); }
.cantidad button {
  width: 34px; height: 34px; border: 1px solid var(--gris-borde); background: #fff; border-radius: 8px;
  font-size: 18px; cursor: pointer; line-height: 1;
}
.cantidad input {
  width: 56px; height: 34px; text-align: center; border: 1px solid var(--gris-borde); border-radius: 8px; font-size: 15px;
}
.btn-agregar {
  width: 100%; background: var(--grad-accion); color: #fff; border: none; padding: 14px; border-radius: 12px;
  font-size: 15px; font-weight: 700; cursor: pointer; transition: filter 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 12px rgba(238, 114, 24, 0.26);
}
.btn-agregar:hover { filter: brightness(1.04); box-shadow: 0 6px 18px rgba(238, 114, 24, 0.36); }
.desc { margin-top: 22px; border-top: 1px solid var(--gris-borde); padding-top: 16px; }
.desc h3 { margin: 0 0 8px; font-size: 15px; color: var(--texto); }
.desc p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--texto-suave); }

/* Lupa */
.zoom-overlay {
  position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.85);
  display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out;
}
.zoom-overlay img { max-width: 96%; max-height: 96%; object-fit: contain; }

/* ---------- Panel del carrito ---------- */
.cart-overlay { position: fixed; inset: 0; z-index: 70; visibility: hidden; }
.cart-overlay.abierto { visibility: visible; }
.cart-backdrop {
  position: absolute; inset: 0; background: rgba(17, 17, 17, 0.6); opacity: 0; transition: opacity 0.2s;
}
.cart-overlay.abierto .cart-backdrop { opacity: 1; }
.cart-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: 400px; max-width: 90vw; background: #fff;
  display: flex; flex-direction: column; box-shadow: var(--sombra-hover);
  transform: translateX(100%); transition: transform 0.22s ease-out;
}
.cart-overlay.abierto .cart-panel { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 20px;
  border-bottom: 1px solid var(--gris-borde);
}
.cart-head h2 { margin: 0; font-size: 18px; color: var(--navy); }
.cart-x { border: none; background: none; font-size: 18px; cursor: pointer; color: var(--texto-suave); }
.cart-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cart-vacio { text-align: center; color: var(--texto-suave); padding: 60px 20px; font-size: 14px; line-height: 1.6; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--gris-borde); }
.cart-item > img { width: 60px; height: 60px; object-fit: contain; border: 1px solid var(--gris-borde); border-radius: 8px; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-size: 13px; line-height: 1.35; margin-bottom: 4px; }
.cart-item-price { font-size: 12px; color: var(--texto-suave); }
.cart-qty { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.cart-qty button {
  width: 26px; height: 26px; border: 1px solid var(--gris-borde); background: #fff; border-radius: 6px;
  cursor: pointer; font-size: 14px; line-height: 1;
}
.cart-qty span { min-width: 22px; text-align: center; font-size: 14px; }
.cart-remove { margin-left: auto; border: none !important; background: none !important; color: var(--rojo) !important; font-size: 12px !important; width: auto !important; cursor: pointer; }
.cart-item-sub { font-weight: 700; font-size: 14px; color: var(--navy); white-space: nowrap; }
.cart-foot { border-top: 1px solid var(--gris-borde); padding: 18px 20px; }
.cart-total { display: flex; justify-content: space-between; align-items: center; font-size: 16px; margin-bottom: 14px; }
.cart-total b { font-size: 22px; color: var(--navy); }
.btn-pagar {
  width: 100%; background: var(--grad-accion); color: #fff; border: none; padding: 14px; border-radius: 12px;
  font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px rgba(230, 58, 30, 0.22);
  transition: filter 0.15s, box-shadow 0.15s;
}
.btn-pagar:hover { filter: brightness(0.96); box-shadow: 0 6px 16px rgba(230, 58, 30, 0.3); }
/* Botón "Pedir por WhatsApp" del carrito (verde WhatsApp) */
.btn-wa-pedir {
  width: 100%; background: #25D366; color: #fff; border: none; padding: 14px; border-radius: 12px;
  font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px rgba(37, 211, 102, 0.28);
  transition: filter 0.15s, box-shadow 0.15s;
}
.btn-wa-pedir:hover { filter: brightness(0.97); box-shadow: 0 6px 16px rgba(37, 211, 102, 0.36); }
/* Selector de comuna + desglose de envío en el carrito */
.cart-envio { margin: 6px 0 12px; }
.cart-envio label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.cart-envio select, .cart-envio input {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--gris-borde); border-radius: 10px;
  background: #fff; font-size: 14px; color: var(--texto); transition: border-color 0.15s; margin-bottom: 8px;
}
.cart-envio select { cursor: pointer; }
.cart-envio select:focus, .cart-envio input:focus { outline: none; border-color: var(--naranja); }
.cart-desglose { margin-bottom: 6px; }
.cart-linea { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; color: var(--texto); padding: 3px 0; }
.cart-envio-pend { justify-content: center; color: var(--texto-suave); font-size: 12.5px; font-style: italic; }
.cart-nota { text-align: center; font-size: 12px; color: var(--texto-suave); margin-top: 10px; }
.cart-ahorro {
  background: #ecfdf5; color: #047857; font-size: 13px; font-weight: 600;
  text-align: center; padding: 8px; border-radius: 8px; margin-bottom: 12px;
}
.cart-item-price s { color: #9ca3af; margin-left: 4px; }
.cart-tramos { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 4px; }
.cart-tramo {
  font-size: 11px; padding: 3px 8px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--gris-borde); background: #fff; color: var(--texto-suave); line-height: 1;
  transition: all 0.12s;
}
.cart-tramo:hover { border-color: #cbd5e1; }
.cart-tramo.on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.tramo-tag {
  display: inline-block; background: #ecfdf5; color: #047857; font-size: 11px; font-weight: 700;
  padding: 1px 6px; border-radius: 999px; margin-left: 2px;
}
.desc-tag { color: #047857; font-weight: 700; }
.precio-tramo { font-size: 13px; color: var(--texto-suave); margin-top: 4px; min-height: 18px; }

/* ================= CUENTA DE CLIENTE ================= */
.cuenta-btn {
  margin-left: auto; /* empuja cuenta + carrito al borde derecho */
  display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.22); color: #fff; font-size: 14px; font-weight: 600; padding: 0 16px; height: 46px;
  border-radius: 12px; cursor: pointer; white-space: nowrap; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.cuenta-btn:hover { background: rgba(255,255,255,0.18); border-color: var(--naranja); color: #fff; }
.cuenta-btn .cuenta-ico { font-size: 17px; }
.cuenta-btn.logueado { background: var(--grad-accion); border-color: transparent; color: #fff; }
.cuenta-btn.logueado:hover { filter: brightness(0.95); color: #fff; }

.cuenta-overlay { position: fixed; inset: 0; z-index: 75; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cuenta-backdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, 0.66); }
.cuenta-modal {
  position: relative; background: #fff; border-radius: 16px; width: 100%; max-width: 400px;
  padding: 26px; box-shadow: var(--sombra-hover); animation: pop 0.15s ease-out;
}
.cuenta-x {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 999px;
  border: none; background: var(--gris-bg); font-size: 15px; cursor: pointer; color: var(--texto);
}
.cuenta-tabs { display: flex; gap: 6px; margin-bottom: 20px; background: var(--gris-bg); padding: 4px; border-radius: 10px; }
.cuenta-tab {
  flex: 1; border: none; background: none; padding: 9px; border-radius: 8px; font-size: 14px;
  font-weight: 600; color: var(--texto-suave); cursor: pointer;
}
.cuenta-tab.on { background: #fff; color: var(--navy); box-shadow: var(--sombra); }
.cuenta-form { display: flex; flex-direction: column; }
.cuenta-form[hidden] { display: none; }
.cuenta-form label { font-size: 13px; font-weight: 600; margin: 10px 0 4px; }
.cuenta-form .opc { font-weight: 400; color: var(--texto-suave); }
.cuenta-form input[type="email"],
.cuenta-form input[type="password"],
.cuenta-form input[type="text"],
.cuenta-form input[type="tel"] {
  padding: 10px 12px; border: 1px solid var(--gris-borde); border-radius: 8px; font-size: 14px; font-family: inherit;
}
.doc-fila { display: flex; gap: 8px; }
.doc-fila select {
  border: 1px solid var(--gris-borde); border-radius: 8px; padding: 10px 8px; font-size: 14px;
  font-family: inherit; background: #fff; cursor: pointer; flex: 0 0 auto;
}
.doc-fila input { flex: 1; }
.cuenta-consent { flex-direction: row !important; align-items: flex-start; gap: 8px; margin: 14px 0 4px; font-weight: 400 !important; font-size: 13px; color: var(--texto-suave); cursor: pointer; }
.cuenta-consent input { margin-top: 2px; flex: 0 0 auto; }
.cuenta-submit {
  margin-top: 18px; background: var(--grad-accion); color: #fff; border: none; padding: 13px; border-radius: 12px;
  font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px rgba(230, 58, 30, 0.22);
  transition: filter 0.15s, box-shadow 0.15s;
}
.cuenta-submit:hover { filter: brightness(0.96); box-shadow: 0 6px 16px rgba(230, 58, 30, 0.3); }
.cuenta-submit.gris { background: var(--navy); box-shadow: none; }
.cuenta-submit.gris:hover { background: var(--navy-osc); filter: none; }
.cuenta-legal { font-size: 12px; color: var(--texto-suave); margin-top: 12px; line-height: 1.4; text-align: center; }
.cuenta-msg { font-size: 13px; margin-top: 10px; text-align: center; color: var(--texto-suave); min-height: 18px; }
.cuenta-msg.err { color: var(--rojo); }
.cuenta-menu { text-align: center; }
.cuenta-hola { font-size: 18px; margin: 6px 0 4px; color: var(--navy); }
.cuenta-dato { font-size: 14px; color: var(--texto-suave); }
.cuenta-opcion {
  display: block; width: 100%; margin-top: 10px; padding: 12px; border-radius: 12px;
  border: 1px solid var(--gris-borde); background: #fff; color: var(--navy);
  font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.cuenta-opcion:first-of-type { margin-top: 18px; }
.cuenta-opcion:hover { border-color: var(--azul); color: var(--azul); background: var(--gris-bg); }

/* Mis pedidos */
.cuenta-pedidos { max-width: 460px; }
.cuenta-pedidos .cuenta-hola { text-align: center; margin-bottom: 14px; }
.cuenta-volver {
  position: absolute; top: 14px; left: 14px; border: none; background: none; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--azul); padding: 4px 2px;
}
.cuenta-volver:hover { text-decoration: underline; }
.ped-lista { max-height: 62vh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.ped-vacio { text-align: center; color: var(--texto-suave); font-size: 14px; line-height: 1.6; padding: 24px 8px; }
.ped-card { border: 1px solid var(--gris-borde); border-radius: 12px; padding: 14px; background: #fff; }
.ped-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.ped-num { font-weight: 700; color: var(--navy); font-size: 15px; }
.ped-badge { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.ped-badge.ok { background: #dcfce7; color: #15803d; }
.ped-badge.warn { background: #fef3c7; color: #b45309; }
.ped-badge.bad { background: #fee2e2; color: var(--rojo-osc); }
.ped-fecha { font-size: 12px; color: var(--texto-suave); margin-bottom: 10px; }
.ped-items { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--gris-bg); padding-top: 10px; }
.ped-item { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--texto); }
.ped-total { text-align: right; margin-top: 10px; font-size: 14px; color: var(--texto-suave); }
.ped-total b { color: var(--navy); font-size: 15px; margin-left: 4px; }
.ped-acciones { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin-top: 10px; }
.ped-acciones:empty { display: none; }
.ped-ver {
  border: none; background: none; cursor: pointer; padding: 4px 0;
  font-size: 13px; font-weight: 600; color: var(--azul);
}
.ped-ver:hover { text-decoration: underline; }
.ped-wa { font-size: 13px; font-weight: 600; color: #16a34a; text-decoration: none; }
.ped-wa:hover { text-decoration: underline; }
.ped-detalle { margin-top: 8px; border-top: 1px solid var(--gris-bg); padding-top: 10px; }
.ped-detalle[hidden] { display: none; }
.ped-comprobante { width: 100%; border-collapse: collapse; font-size: 13px; }
.ped-comprobante th {
  text-align: left; font-weight: 500; color: var(--texto-suave); padding: 3px 0; vertical-align: top; white-space: nowrap;
}
.ped-comprobante td { text-align: right; color: var(--texto); padding: 3px 0; padding-left: 10px; }

/* Checkout: datos de envío */
.checkout-overlay { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.checkout-backdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, 0.66); }
.checkout-modal {
  position: relative; background: #fff; border-radius: 16px; width: 100%; max-width: 460px;
  max-height: 90vh; overflow-y: auto; padding: 26px; box-shadow: var(--sombra-hover); animation: pop 0.15s ease-out;
}
.checkout-x {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 999px;
  border: none; background: var(--gris-bg); font-size: 15px; cursor: pointer; color: var(--texto);
}
.checkout-modal h2 { font-size: 20px; color: var(--navy); margin: 0 30px 4px 0; }
.co-sub { font-size: 13px; color: var(--texto-suave); margin: 0 0 16px; }
.co-resumen { background: var(--gris-bg); border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; }
.co-linea { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 3px 0; color: var(--texto); }
.co-linea span { color: var(--texto-suave); }
.co-total { border-top: 1px solid var(--gris-borde); margin-top: 6px; padding-top: 8px; font-size: 15px; }
.co-total span, .co-total b { color: var(--navy); }
.co-form { display: flex; flex-direction: column; }
.co-form label { font-size: 13px; font-weight: 600; margin: 10px 0 4px; }
.co-form .opc { font-weight: 400; color: var(--texto-suave); }
.co-form input, .co-form select {
  padding: 10px 12px; border: 1px solid var(--gris-borde); border-radius: 8px; font-size: 14px;
  font-family: inherit; background: #fff;
}
.co-doc { display: flex; gap: 8px; }
.co-doc select { flex: 0 0 auto; cursor: pointer; }
.co-doc input { flex: 1; }
.co-msg { font-size: 13px; margin-top: 10px; text-align: center; color: var(--texto-suave); min-height: 18px; }
.co-msg.err { color: var(--rojo); }
.co-listo { text-align: center; padding: 10px 4px; }
.co-check { width: 56px; height: 56px; margin: 6px auto 12px; border-radius: 999px; background: #16a34a; color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center; }
.co-listo h2 { margin: 0 0 8px; }
.co-listo p { font-size: 14px; color: var(--texto-suave); line-height: 1.5; margin: 0 0 18px; }
.co-spinner { width: 46px; height: 46px; margin: 10px auto 16px; border-radius: 999px; border: 4px solid #e5e7eb; border-top-color: var(--naranja, #ea580c); animation: co-spin 0.8s linear infinite; }
@keyframes co-spin { to { transform: rotate(360deg); } }

/* Responsivo: ficha en una columna en móvil */
@media (max-width: 680px) {
  .detail-grid { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .galeria-main { height: 260px; }
  .cuenta-btn span:not(.cuenta-ico) { display: none; } /* en móvil, solo el ícono */
  .cuenta-btn { padding: 0 12px; }
}

/* ---------- Admin: vendedores de terreno ---------- */
.msg.ok { color: #047857; }
.vend-desc-lbl {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  color: var(--texto-suave); margin-bottom: 10px;
}
.vend-desc-lbl input { width: 80px; margin: 0; }

.vend-card {
  background: #fff; border: 1px solid var(--gris-borde); border-radius: 12px;
  padding: 16px 18px; margin-bottom: 12px;
}
.vend-card.off { opacity: 0.6; }
.vend-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.vend-head b { font-size: 16px; color: var(--navy); display: block; }
.vend-head small { font-size: 13px; color: var(--texto-suave); }
.vend-estado {
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: #ecfdf5; color: #047857; white-space: nowrap;
}
.vend-card.off .vend-estado { background: var(--gris-bg); color: var(--texto-suave); }

.vend-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; }
.vend-form label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12px; font-weight: 600; color: var(--texto-suave);
}
.vend-form input[type="text"], .vend-form input[type="tel"], .vend-form input[type="number"] {
  padding: 9px 12px; border: 1px solid var(--gris-borde); border-radius: 8px;
  font-size: 14px; font-weight: 400; color: var(--texto);
}
.vend-form .opc { font-weight: 400; text-transform: none; }
.vend-chk {
  grid-column: 1 / -1; flex-direction: row !important; align-items: center;
  gap: 8px !important; font-size: 13px; color: var(--texto);
}
.vend-chk input { width: 16px; height: 16px; }
.vend-acciones { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.vend-acciones .msg { margin-top: 0; }
@media (max-width: 560px) { .vend-form { grid-template-columns: 1fr; } }

/* ============================================================================
   ================   PORTADA PREMIUM (rediseño de agencia)   ================
   Hero potente, ventajas, testimonios y contacto. Marca naranja/negro.
   ========================================================================== */

:root {
  --font-display: 'Sora', system-ui, sans-serif;
  --ink: #14100c;            /* negro cálido para fondos oscuros */
  --ink-2: #241a12;
  --crema: #fbf7f2;          /* fondo cálido claro de secciones */
}

body { font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* ---------- Etiquetas y encabezados de sección ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--naranja-osc); background: rgba(238, 114, 24, 0.10);
  border: 1px solid rgba(238, 114, 24, 0.22);
  padding: 6px 14px; border-radius: 999px;
}
.eyebrow.center { margin: 0 auto; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--naranja); box-shadow: 0 0 0 4px rgba(238,114,24,0.18); }

.seccion { max-width: 1200px; margin: 0 auto; padding: 78px 24px; }
.seccion-head { text-align: center; max-width: 720px; margin: 0 auto 46px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.seccion-title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(28px, 4vw, 44px); line-height: 1.08; color: var(--navy); margin: 0;
}
.seccion-title.left { text-align: left; }
.seccion-sub { font-size: 17px; line-height: 1.6; color: var(--texto-suave); margin: 0; }

/* ---------- Botones premium ---------- */
.btn-primario {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--grad-accion); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 15.5px; padding: 14px 26px; border: none; border-radius: 999px;
  cursor: pointer; box-shadow: 0 10px 24px rgba(238, 114, 24, 0.34);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.btn-primario:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(238, 114, 24, 0.44); filter: brightness(1.03); }
.btn-primario:active { transform: translateY(0); }
.btn-primario.grande { padding: 16px 30px; font-size: 16px; margin-top: 8px; }
.btn-primario.ancho { width: 100%; }
.btn-fantasma {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: rgba(255,255,255,0.06); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 15.5px; padding: 13px 24px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.28); backdrop-filter: blur(4px);
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.btn-fantasma svg { width: 20px; height: 20px; fill: #25d366; }
.btn-fantasma:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.5); transform: translateY(-2px); }

/* ============ HERO ============ */
.hero2 {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 80% -10%, #3a2411 0%, #1b130d 45%, var(--ink) 100%);
  color: #fff; padding: 74px 24px 0;
}
.hero2-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero2-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(100% 80% at 50% 0%, #000 40%, transparent 78%);
  -webkit-mask-image: radial-gradient(100% 80% at 50% 0%, #000 40%, transparent 78%);
}
.orb { position: absolute; border-radius: 999px; filter: blur(60px); opacity: 0.55; }
.orb-1 { width: 420px; height: 420px; background: #ee7218; top: -120px; right: -80px; animation: float1 14s ease-in-out infinite; }
.orb-2 { width: 320px; height: 320px; background: #f59331; bottom: -140px; left: -60px; opacity: 0.4; animation: float2 18s ease-in-out infinite; }
.orb-3 { width: 240px; height: 240px; background: #ff9d4d; top: 40%; left: 44%; opacity: 0.25; animation: float1 20s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-26px, 26px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px, -20px); } }

.hero2-inner {
  position: relative; z-index: 1; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
  padding-bottom: 40px;
}
.hero2-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero2-title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em;
  font-size: clamp(34px, 5.2vw, 60px); line-height: 1.03; margin: 0;
}
.hero2-title em { font-style: normal; color: var(--naranja); }
.hero2-title .grad {
  display: inline-block;
  background: linear-gradient(92deg, #ffb063 0%, #ee7218 60%, #ff8a2b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero2-sub { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.78); margin: 0; max-width: 520px; }
.hero2-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2px; }
.hero2-stats { display: flex; align-items: center; gap: 22px; margin-top: 16px; flex-wrap: wrap; }
.hstat b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 800; color: #fff; }
.hstat small { color: rgba(255,255,255,0.6); font-size: 13px; }
.hstat-sep { width: 1px; height: 34px; background: rgba(255,255,255,0.16); }

/* Composición visual del hero (placeholders) */
.hero2-visual { position: relative; height: 420px; }
.hv-card {
  position: absolute; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 22px; backdrop-filter: blur(10px); box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.hv-main {
  inset: 20px 40px 40px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; background: linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
  border-style: dashed; animation: hvfloat 7s ease-in-out infinite;
}
.hv-ph-ico { font-size: 60px; filter: grayscale(0.1); }
.hv-ph-txt { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.55); font-weight: 600; }
.hv-float { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.hv-float b { display: block; font-size: 14px; color: #fff; }
.hv-float small { font-size: 12px; color: rgba(255,255,255,0.62); }
.hv-mini-ico { font-size: 26px; }
.hv-f1 { top: 6px; right: 0; animation: hvfloat 6s ease-in-out infinite; }
.hv-f2 { bottom: 8px; left: -6px; animation: hvfloat 6s ease-in-out infinite 1.5s; }
.hv-badge {
  position: absolute; top: -10px; left: 30px; background: var(--grad-accion); color: #fff;
  font-weight: 800; font-size: 14px; padding: 8px 16px; border-radius: 999px;
  box-shadow: 0 10px 24px rgba(238,114,24,0.5); font-family: var(--font-display);
}
@keyframes hvfloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Cinta de rubros en movimiento */
.hero2-marquee {
  position: relative; z-index: 1; margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 26px; white-space: nowrap; width: max-content; animation: marquee 26s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: rgba(255,255,255,0.42); letter-spacing: 0.01em; }
.marquee-track span:nth-child(even) { color: var(--naranja); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ VENTAJAS ============ */
.ventajas { background: var(--crema); max-width: none; }
.ventajas .seccion-head, .ventajas .ventajas-grid { max-width: 1200px; margin-left: auto; margin-right: auto; }
.ventajas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.vent-card {
  background: #fff; border: 1px solid var(--gris-borde); border-radius: 20px; padding: 30px 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative; overflow: hidden;
}
.vent-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-marca);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.vent-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(238,114,24,0.14); border-color: rgba(238,114,24,0.3); }
.vent-card:hover::before { transform: scaleX(1); }
.vent-ico {
  width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 28px; background: linear-gradient(160deg, #fff3e8, #ffe2c9); margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(238,114,24,0.18);
}
.vent-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--navy); margin: 0 0 8px; }
.vent-card p { font-size: 14.5px; line-height: 1.6; color: var(--texto-suave); margin: 0; }

/* ============ CATÁLOGO (marco de la tienda) ============ */
.catalogo { padding-top: 78px; padding-bottom: 40px; }
.catalogo .cats-rapidas, .catalogo .toolbar, .catalogo .grid, .catalogo .pagination { max-width: 1200px; }
.catalogo .cats-rapidas { padding-top: 4px; }

/* ============ TESTIMONIOS ============ */
.testimonios { background: linear-gradient(180deg, #fff 0%, var(--crema) 100%); max-width: none; }
.testimonios .seccion-head, .testimonios .testi-grid { max-width: 1200px; margin-left: auto; margin-right: auto; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card {
  background: #fff; border: 1px solid var(--gris-borde); border-radius: 20px; padding: 28px 26px;
  box-shadow: var(--sombra-media); display: flex; flex-direction: column; gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.testi-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.10); }
.testi-stars { color: #f5a623; font-size: 18px; letter-spacing: 2px; }
.testi-txt { font-size: 15.5px; line-height: 1.6; color: var(--texto); margin: 0; font-style: italic; }
.testi-autor { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-avatar {
  width: 46px; height: 46px; border-radius: 999px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  background: var(--a, var(--naranja)); color: #fff; font-weight: 800; font-family: var(--font-display); font-size: 15px;
}
.testi-autor b { display: block; font-size: 14.5px; color: var(--navy); }
.testi-autor small { font-size: 12.5px; color: var(--texto-suave); }

/* ============ CONTACTO ============ */
.contacto { background: var(--ink); color: #fff; max-width: none; position: relative; overflow: hidden; }
.contacto::before {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 999px;
  background: radial-gradient(circle, rgba(238,114,24,0.35), transparent 70%); top: -160px; right: -120px; filter: blur(40px);
}
.contacto-inner {
  position: relative; z-index: 1; max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center;
}
.contacto-info .seccion-title { color: #fff; }
.contacto-lead { font-size: 16.5px; line-height: 1.6; color: rgba(255,255,255,0.78); margin: 18px 0 22px; }
.contacto-lista { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 14px; }
.contacto-lista li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; color: rgba(255,255,255,0.9); }
.contacto-lista b { color: #fff; }
.ci-ico {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  font-size: 20px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
}
.contacto-form {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); border-radius: 22px;
  padding: 30px 28px; backdrop-filter: blur(8px); display: flex; flex-direction: column; gap: 4px;
}
.contacto-form h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 0 0 14px; color: #fff; }
.contacto-form label { display: block; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,0.82); margin-bottom: 14px; }
.contacto-form input, .contacto-form textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 12px; font: inherit; font-size: 14.5px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: #fff; resize: vertical;
  transition: border-color 0.15s, background 0.15s;
}
.contacto-form input::placeholder, .contacto-form textarea::placeholder { color: rgba(255,255,255,0.45); }
.contacto-form input:focus, .contacto-form textarea:focus { outline: none; border-color: var(--naranja); background: rgba(255,255,255,0.12); }
.contacto-form .btn-primario { margin-top: 6px; }
.contacto-nota { font-size: 12.5px; color: rgba(255,255,255,0.5); text-align: center; margin: 12px 0 0; }

/* ---------- Revelado al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .hv-main, .hv-float, .marquee-track { animation: none !important; }
}

/* ---------- Responsivo portada ---------- */
@media (max-width: 940px) {
  .hero2-inner { grid-template-columns: 1fr; gap: 30px; padding-bottom: 20px; }
  .hero2-visual { height: 300px; order: -1; }
  .ventajas-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .contacto-inner { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  .seccion { padding: 54px 18px; }
  .hero2 { padding-top: 48px; }
  .hero2-visual { height: 250px; }
  .ventajas-grid { grid-template-columns: 1fr; }
  .hero2-stats { gap: 14px; }
  .hstat-sep { display: none; }
  .btn-primario, .btn-fantasma { width: 100%; }
}

/* ---------- Foto real dentro del hero ---------- */
.hv-foto { padding: 0; border-style: solid; overflow: hidden; }
.hv-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============ ENVÍOS REALES (galería de confianza) ============ */
.envios { background: var(--crema); max-width: none; }
.envios .seccion-head, .envios .envios-grid { max-width: 1200px; margin-left: auto; margin-right: auto; }
.envios-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.envio-foto {
  margin: 0; border-radius: 18px; overflow: hidden; background: #fff;
  border: 1px solid var(--gris-borde); box-shadow: var(--sombra-media);
  aspect-ratio: 3 / 4; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.envio-foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.envio-foto:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.14); }
.envio-foto:hover img { transform: scale(1.05); }
@media (max-width: 940px) { .envios-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .envios-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* ============ CARRUSEL DEL HERO ============ */
.hero-carousel {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden;
  background: #0d0a07; border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.hc-track { display: flex; height: 100%; transition: transform 0.5s ease; }
.hc-slide { min-width: 100%; height: 100%; }
.hc-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(0,0,0,0.42); color: #fff; font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px);
  transition: background 0.15s;
}
.hc-arrow:hover { background: rgba(238,114,24,0.9); }
.hc-prev { left: 12px; } .hc-next { right: 12px; }
.hc-dots { position: absolute; bottom: 12px; left: 0; right: 0; z-index: 2; display: flex; gap: 7px; justify-content: center; }
.hc-dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px; background: rgba(255,255,255,0.45); cursor: pointer; transition: all 0.2s; }
.hc-dot.on { background: #fff; width: 22px; }

/* ============ BENEFICIOS (recuadro marrón compacto) ============ */
.beneficios2 { max-width: 1200px; margin: 0 auto; padding: 26px 24px 6px; }
.b2-box {
  background: linear-gradient(120deg, #1b130d 0%, #2a1a0e 65%, #3a2411 130%);
  border: 1px solid rgba(238,114,24,0.28); border-radius: 22px; padding: 22px 26px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap; box-shadow: var(--sombra-media);
}
.b2-title { font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1.25; color: #fff; margin: 0; flex: 0 0 auto; max-width: 210px; }
.b2-title span { color: var(--naranja); }
.b2-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 18px; flex: 1; min-width: 300px; }
.b2 { display: flex; align-items: center; gap: 11px; }
.b2-ico {
  width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
}
.b2 b { display: block; font-size: 13.5px; color: #fff; }
.b2 small { font-size: 12px; color: rgba(255,255,255,0.62); }
@media (max-width: 820px) { .b2-items { grid-template-columns: repeat(2, 1fr); } .b2-title { max-width: none; } }
@media (max-width: 480px) { .b2-items { grid-template-columns: 1fr 1fr; gap: 12px; } .b2-box { padding: 18px; gap: 18px; } }

/* Catálogo: pegado a los beneficios para llegar rápido al producto */
.catalogo { padding-top: 34px !important; }
.catalogo .seccion-head { margin-bottom: 28px; }

/* ============ CINTA DE CATEGORÍAS CLICKEABLE ============ */
.marquee-track { align-items: center; }
.mq-item {
  background: none; border: none; padding: 0; cursor: pointer; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.01em;
  color: rgba(255,255,255,0.55); transition: color 0.15s, transform 0.15s;
}
.mq-item:hover { color: var(--naranja); transform: translateY(-1px); }
.hero2-marquee .marquee-track .mq-dot { color: rgba(255,255,255,0.22); font-weight: 700; }
/* Se pausa al pasar el mouse para poder hacer clic */
.hero2-marquee:hover .marquee-track { animation-play-state: paused; }

/* ============ HERO SIN FOTO (una sola columna centrada) ============ */
.hero2-inner.solo { grid-template-columns: 1fr; max-width: 860px; text-align: center; }
.hero2-inner.solo .hero2-copy { align-items: center; }
.hero2-inner.solo .hero2-sub { margin-left: auto; margin-right: auto; }
.hero2-inner.solo .hero2-cta { justify-content: center; }
.hero2-inner.solo .hero2-stats { justify-content: center; }
.hero2-inner.solo .hero2-title { font-size: clamp(38px, 6vw, 66px); }

/* ============ BARRA DE CATEGORÍAS FIJA (sin movimiento) ============ */
.hero2-marquee.estatica { -webkit-mask-image: none; mask-image: none; overflow: visible; padding: 18px 16px; }
.hero2-marquee.estatica .marquee-track {
  animation: none; width: auto; flex-wrap: wrap; justify-content: center;
  gap: 10px 12px; max-width: 1100px; margin: 0 auto;
}
.hero2-marquee.estatica .mq-item {
  font-family: 'Inter', system-ui, sans-serif; font-weight: 600; font-size: 14px;
  color: rgba(255,255,255,0.82); background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16); border-radius: 999px; padding: 9px 16px; transition: all 0.15s;
}
.hero2-marquee.estatica .mq-item:hover { color: #fff; background: var(--grad-accion); border-color: transparent; transform: translateY(-1px); }

/* Categoría seleccionada en la barra de arriba */
.hero2-marquee.estatica .mq-item.on { color: #fff; background: var(--grad-accion); border-color: transparent; }

/* ============ HERO COMPACTO (opción 1) + slogan ============ */
.hero2 { padding-top: 40px; }
.hero2-inner.solo { max-width: 900px; }
.hero-slogan { font-size: clamp(30px, 4.4vw, 50px) !important; margin: 0 0 6px; }
.hero2-inner.solo .hero2-stats { margin-top: 22px; }

/* ============ BARRA SUPERIOR SIMÉTRICA (buscador centrado) ============ */
.topbar-inner { display: grid; grid-template-columns: 1fr minmax(0, 620px) 1fr; align-items: center; gap: 20px; }
.topbar-inner .brand { justify-self: start; }
.topbar-inner .search { max-width: none; width: 100%; }
.topbar-inner .cart-btn { justify-self: end; }
@media (max-width: 640px) {
  .topbar-inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
}

/* ============ LOGO EN EL HERO ============ */
.hero-logo { height: 118px; width: auto; display: block; margin: 0 auto 10px; }
@media (max-width: 560px) { .hero-logo { height: 82px; } }

/* Barra sin logo: buscador centrado (col 2), carrito a la derecha (col 3) */
.topbar-inner .search { grid-column: 2; }
.topbar-inner .cart-btn { grid-column: 3; justify-self: end; }

/* ============ CARRITO 3D (más visible) ============ */
.cart-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 16px; border: none; cursor: pointer; color: #fff;
  background: linear-gradient(145deg, #f8a24a 0%, #ee7218 55%, #d5610f 100%);
  box-shadow: 0 7px 16px rgba(238,114,24,0.5), inset 0 1.5px 0 rgba(255,255,255,0.4), inset 0 -2px 4px rgba(0,0,0,0.18);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.cart-btn:hover { transform: translateY(-2px); background: linear-gradient(145deg, #f8a24a 0%, #ee7218 55%, #d5610f 100%); border-color: transparent; box-shadow: 0 11px 24px rgba(238,114,24,0.6), inset 0 1.5px 0 rgba(255,255,255,0.45), inset 0 -2px 4px rgba(0,0,0,0.2); }
.cart-btn:active { transform: translateY(0); }
.cart-btn svg { width: 27px; height: 27px; }
.cart-btn .cart-count {
  top: -7px; right: -7px; background: #171717; color: #fff;
  box-shadow: 0 0 0 2.5px #fff, 0 2px 6px rgba(0,0,0,0.3);
}

/* ============ HERO CON LOGO A LA IZQUIERDA ============ */
.hero2-inner.conlogo { display: flex; align-items: center; justify-content: center; gap: 38px; max-width: 1040px; text-align: left; }
.hero2-inner.conlogo .hero-logo { flex: 0 0 auto; height: 158px; margin: 0; }
.hero2-inner.conlogo .hero2-copy { align-items: flex-start; }
.hero2-inner.conlogo .hero2-stats { justify-content: flex-start; }
@media (max-width: 720px) {
  .hero2-inner.conlogo { flex-direction: column; text-align: center; gap: 14px; }
  .hero2-inner.conlogo .hero-logo { height: 96px; }
  .hero2-inner.conlogo .hero2-copy { align-items: center; }
  .hero2-inner.conlogo .hero2-stats { justify-content: center; }
}

/* ============ MENÚ DESPLEGABLE DE CATEGORÍAS (al lado de los botones) ============ */
.hero2-marquee.estatica .mq-more {
  font-family: 'Inter', system-ui, sans-serif; font-weight: 600; font-size: 14px;
  color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16); border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.hero2-marquee.estatica .mq-more:hover { color: #fff; border-color: rgba(255,255,255,0.32); }
.hero2-marquee.estatica .mq-more option { color: #1f2937; }

/* Barra de categorías más compacta */
.hero2-marquee.estatica { padding: 13px 16px; }

/* ============ HERO CENTRADO Y SIMÉTRICO (módulo completo) ============ */
.hero2-inner.centrado { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 820px; }
.hero2-inner.centrado .hero-logo { height: 172px; width: auto; margin: 0 0 8px; }
.hero2-inner.centrado .hero2-title { margin: 0 0 6px; }
.hero2-inner.centrado .hero2-stats { justify-content: center; margin-top: 14px; }
.hero-search { width: 100%; max-width: 520px; margin: 18px auto 0; }
.hero-search input { background-color: #fff; }
@media (max-width: 560px) { .hero2-inner.centrado .hero-logo { height: 118px; } }

/* ============ CARRITO FLOTANTE (3D, cerca de la compra) ============ */
.cart-fab {
  position: fixed; right: 22px; bottom: 92px; z-index: 61;
  width: 60px; height: 60px; border-radius: 999px; border: none; cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #f8a24a 0%, #ee7218 55%, #d5610f 100%);
  box-shadow: 0 8px 20px rgba(238,114,24,0.5), inset 0 1.5px 0 rgba(255,255,255,0.4), inset 0 -2px 4px rgba(0,0,0,0.18);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.cart-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(238,114,24,0.6), inset 0 1.5px 0 rgba(255,255,255,0.45); }
.cart-fab:active { transform: translateY(0); }
.cart-fab svg { width: 28px; height: 28px; }
.cart-fab .cart-count { top: -4px; right: -4px; background: #171717; color: #fff; box-shadow: 0 0 0 2.5px #fff, 0 2px 6px rgba(0,0,0,0.3); }
@media (max-width: 680px) { .cart-fab { right: 16px; bottom: 84px; width: 54px; height: 54px; } }

/* ============ LOGO + SLOGAN LADO A LADO (par simétrico) ============ */
.hero-head { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; }
.hero2-inner.centrado .hero-head .hero-logo { height: 140px; width: auto; margin: 0; flex: 0 0 auto; }
.hero-head .hero-slogan { text-align: left; margin: 0 !important; font-size: clamp(26px, 3.6vw, 42px) !important; max-width: 540px; }
@media (max-width: 620px) {
  .hero-head { gap: 14px; }
  .hero2-inner.centrado .hero-head .hero-logo { height: 96px; }
  .hero-head .hero-slogan { text-align: center; }
}

/* ============ BARRA DE CATEGORÍAS: pills + menú + carrito en línea ============ */
.hero2-marquee.cats-bar { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero2-marquee.cats-bar .marquee-track { width: auto; margin: 0; }
.cart-inline {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 46px; height: 40px; border-radius: 12px; border: none; cursor: pointer; color: #fff;
  background: linear-gradient(145deg, #f8a24a 0%, #ee7218 55%, #d5610f 100%);
  box-shadow: 0 4px 11px rgba(238,114,24,0.45), inset 0 1px 0 rgba(255,255,255,0.35), inset 0 -2px 3px rgba(0,0,0,0.15);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.cart-inline:hover { transform: translateY(-2px); box-shadow: 0 7px 16px rgba(238,114,24,0.55), inset 0 1px 0 rgba(255,255,255,0.4); }
.cart-inline svg { width: 22px; height: 22px; }
.cart-inline .cart-count { position: absolute; top: -7px; right: -7px; background: #171717; color: #fff; box-shadow: 0 0 0 2px #fff, 0 2px 5px rgba(0,0,0,0.3); }

/* ============ SLOGAN EN 2 LÍNEAS PAREJAS ============ */
.hero2-inner.centrado { max-width: 1000px; }
.hero-head .hero-slogan {
  max-width: none !important;
  font-size: clamp(22px, 2.9vw, 34px) !important;
  line-height: 1.16;
}
.hero-slogan .l1, .hero-slogan .l2 { display: block; white-space: nowrap; }
@media (max-width: 620px) {
  .hero-slogan .l1, .hero-slogan .l2 { white-space: normal; }
}

/* Categorías en UNA sola línea (dropdown pegado a Mascotas) */
.hero2-marquee.cats-bar .marquee-track { max-width: none; gap: 10px; }

/* Respetar el atributo hidden en el carrito en línea */
.cart-inline[hidden] { display: none !important; }

/* ============ HERO MÁS COMPACTO (menos espacio vertical) ============ */
.hero2 { padding-top: 26px; }
.hero2-inner.centrado { gap: 10px; padding-bottom: 4px; }
.hero2-inner.centrado .hero2-stats { margin-top: 2px; }
.hero-search { margin: 6px auto 0; }
.hero2-marquee.estatica { padding-top: 10px; padding-bottom: 14px; }

/* Slogan de una sola línea: "Todo a precio de poroto" */
.hero-head .hero-slogan { font-size: clamp(22px, 4.2vw, 50px) !important; white-space: nowrap; line-height: 1.1; }
@media (max-width: 620px) { .hero-head .hero-slogan { white-space: normal; text-align: center; } }

/* ============ CARTELITO (eyebrow) + SLOGAN en bloque ============ */
.hero-headtext { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hero-head .eyebrow { color: #f6923a; background: rgba(238,114,24,0.12); border-color: rgba(238,114,24,0.35); }
@media (max-width: 620px) { .hero-headtext { align-items: center; } }

/* La fila de categorías nunca se sale del ancho (envuelve si no cabe) */
.hero2-marquee.cats-bar .marquee-track { max-width: 100%; }

/* Centrar el cartelito sobre el slogan */
.hero-headtext { align-items: center; }

/* ============ BARRA "VER MI CARRITO" (abajo, fácil para el cliente) ============ */
.cart-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; border: none; cursor: pointer; color: #fff; font-family: inherit;
  padding: 15px 22px; background: linear-gradient(90deg, #f59331 0%, #e56710 100%);
  box-shadow: 0 -6px 22px rgba(0,0,0,0.28);
  transition: transform 0.28s ease;
}
.cart-bar-hidden { transform: translateY(115%); }
.cart-bar-left { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16.5px; }
.cart-bar-left svg { width: 24px; height: 24px; }
.cart-bar .cart-count {
  position: static; background: rgba(0,0,0,0.28); color: #fff; box-shadow: none;
  min-width: 22px; height: 22px;
}
.cart-bar-total { font-weight: 700; font-size: 15px; opacity: 0.96; white-space: nowrap; }
/* Cuando la barra está visible, sube el botón de WhatsApp para que no la tape */
.cart-bar:not(.cart-bar-hidden) ~ .whatsapp-fab { bottom: 82px; }
@media (max-width: 480px) {
  .cart-bar { padding: 13px 16px; }
  .cart-bar-left { font-size: 15px; }
  .cart-bar-total { font-size: 13.5px; }
}
