:root {
  --color-primary: #111827;
  --color-accent: #2563eb;
  --color-bg: #ffffff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-primary);
}
a { color: var(--color-accent); }

/* ── Barra promocional ── */
.promo-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--color-primary); color: #fff;
  font-size: 11.5px; letter-spacing: 0.02em; padding: 6px 24px;
}
.promo-bar .promo-right { opacity: 0.85; }
@media (max-width: 640px) { .promo-bar .promo-right { display: none; } }

/* ── Header tipo e-commerce ── */
header.store-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 20px;
  padding: 12px 24px; background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.store-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--color-primary); flex-shrink: 0; }
.store-brand img { height: 40px; max-width: 140px; object-fit: contain; }
.store-brand strong { font-size: 18px; letter-spacing: -0.01em; }
.store-brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-accent); color: #fff; font-weight: 800; font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center;
}
.store-search { flex: 1; display: flex; max-width: 560px; margin: 0 auto; }
.store-search input {
  flex: 1; border: 1px solid #e2e2e2; border-right: none;
  border-radius: 999px 0 0 999px; padding: 10px 18px; font-size: 14px; outline: none;
  background: #fafafa;
}
.store-search input:focus { border-color: var(--color-accent); background: #fff; }
.store-search button {
  border: none; background: var(--color-accent); color: #fff; font-weight: 700; font-size: 14px;
  padding: 0 22px; border-radius: 0 999px 999px 0; cursor: pointer;
}
.store-cart {
  display: flex; align-items: center; gap: 7px; text-decoration: none;
  color: var(--color-primary); font-size: 14px; font-weight: 600; flex-shrink: 0;
}
@media (max-width: 720px) {
  header.store-header { flex-wrap: wrap; justify-content: space-between; gap: 10px; }
  /* La búsqueda pasa a una segunda fila, siempre accesible en móvil */
  .store-search { order: 3; flex-basis: 100%; max-width: none; }
}

/* ── Hero de la tienda ── */
.store-hero {
  background: linear-gradient(115deg, var(--color-primary), color-mix(in srgb, var(--color-accent) 80%, var(--color-primary)));
  color: #fff; padding: 56px 24px 64px;
}
.store-hero-inner { max-width: 1180px; margin: 0 auto; display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .store-hero-inner { grid-template-columns: 1.1fr 0.9fr; } }
.store-hero-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.8; }
.store-hero h1 { margin: 10px 0 14px; font-size: clamp(30px, 4.5vw, 46px); line-height: 1.1; letter-spacing: -0.02em; }
.store-hero p { margin: 0 0 24px; font-size: 16px; line-height: 1.6; opacity: 0.9; max-width: 480px; }
.store-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.store-hero-ctas a {
  text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 12px 22px; border-radius: 999px; transition: transform 0.15s;
}
.store-hero-ctas a:hover { transform: translateY(-1px); }
.store-hero-ctas .cta-light { background: #fff; color: var(--color-primary); }
.store-hero-ctas .cta-outline { border: 2px solid rgba(255,255,255,0.7); color: #fff; }
.hero-agent-card {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 16px; padding: 22px 24px; backdrop-filter: blur(6px);
}
.hero-agent-card .hac-label { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.75; }
.hero-agent-card h3 { margin: 10px 0 8px; font-size: 20px; }
.hero-agent-card p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.55; opacity: 0.85; }
.hero-agent-card .hac-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-agent-card .hac-chips span {
  font-size: 12px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.28);
}

/* ── Sección de productos ── */
.store-section { max-width: 1180px; margin: 0 auto; padding: 44px 24px 20px; }
.store-section h2 { margin: 0 0 4px; font-size: 24px; letter-spacing: -0.01em; }
.store-section .section-sub { margin: 0; color: #6b7280; font-size: 14px; }
.product-grid {
  display: grid; gap: 16px; padding: 20px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}
.product-card {
  border: 1px solid rgba(0,0,0,0.08); border-radius: 8px; overflow: hidden;
  display: block; text-decoration: none; color: inherit;
}
.product-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.product-card .body { padding: 10px; }
.product-card .name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 14px; min-height: 2.6em;
}
.price-current { font-size: 18px; font-weight: 700; }
.price-previous { text-decoration: line-through; color: #6b7280; margin-left: 6px; font-size: 13px; }
.badge-discount {
  display: inline-block; background: #dc2626; color: #fff; font-size: 12px;
  padding: 2px 6px; border-radius: 4px; margin-left: 6px;
}
footer.store-footer {
  padding: 24px 20px; text-align: center; font-size: 12px; color: #6b7280;
}

/* ── Yalo branding ── */
.yalo-logo { height: 26px; display: block; }
.yalo-logo-footer { height: 18px; vertical-align: middle; opacity: 0.75; }
footer.store-footer { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px; color: #6b7280; font-size: 13px; }

/* ── Landing ── */
.landing-body { margin: 0; background: #f7f7f8; color: #111; font-family: inherit; }
.landing-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; background: #fff; border-bottom: 1px solid rgba(0,0,0,0.07);
}
.landing-admin-link {
  font-size: 14px; color: #374151; text-decoration: none;
  border: 1px solid #d1d5db; border-radius: 8px; padding: 6px 14px;
}
.landing-admin-link:hover { background: #f3f4f6; }
.landing-hero { text-align: center; padding: 64px 20px 40px; }
.yalo-logo-hero { height: 48px; margin-bottom: 18px; }
.landing-hero h1 { margin: 0 0 10px; font-size: 34px; letter-spacing: -0.5px; }
.landing-hero p { margin: 0; color: #4b5563; font-size: 16px; line-height: 1.6; }
.landing-main { max-width: 860px; margin: 0 auto; padding: 0 20px 70px; }
.landing-section-title { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: #6b7280; margin: 0 0 14px; }
.landing-empty { color: #6b7280; }
.tenant-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tenant-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 12px;
  padding: 16px 18px; text-decoration: none; color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.tenant-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.08); transform: translateY(-1px); }
.tenant-card-logo { height: 36px; width: 36px; object-fit: contain; }
.tenant-card-initial {
  height: 36px; width: 36px; border-radius: 8px; background: #111; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.tenant-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tenant-card-body span { font-size: 13px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tenant-card-arrow { margin-left: auto; color: #9ca3af; }
.yalo-logo, .yalo-logo-hero, .yalo-logo-footer { mix-blend-mode: multiply; }
