/* ==========================================================================
   Local — theme grocery/comida. Overrides sobre dawn.css.
   Carga DESPUÉS de dawn.css (ver snippets/head.html). Solo pisa lo específico
   del look Local; hereda el resto del motor dawn. Tokens: verde oliva #5c8e61,
   tipografía Outfit, botones pill, cards flat, grid amplio.
   ========================================================================== */

:root {
  /* Marca */
  --local-accent: #5c8e61;
  --local-accent-footer: #5dbc8b;
  --local-text: #1d1d1d;
  --local-text-secondary: rgba(29, 29, 29, 0.62);
  --local-bg: #ffffff;
  --local-border: #e9e9e9;

  /* Layout */
  --local-max-width: 1680px;
  --local-section-space: 120px;
  --local-grid-gap: 30px;

  /* Componentes */
  --local-btn-radius: 30px;
  --local-card-radius: 0px;
  --local-card-border: 1px solid var(--local-border);
}

/* --- Tipografía Outfit, headings grandes y tight --- */
body {
  font-family: 'Outfit', var(--font-body, system-ui), sans-serif;
  font-weight: 400;
  color: var(--local-text);
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Outfit', var(--font-heading, system-ui), sans-serif;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

/* --- Contenedor ancho grocery --- */
.container,
.page-width {
  max-width: var(--local-max-width);
}

/* --- Botones pill --- */
.btn,
.button,
button.button,
.button--solid,
.button--outline,
[class*="button--"] {
  border-radius: var(--local-btn-radius);
}
.btn--primary,
.button--solid {
  background-color: var(--local-accent);
  border-color: var(--local-accent);
}

/* --- Cards flat (sin sombra, borde fino, esquinas rectas) --- */
.card,
.product-card,
[class*="product-card"],
.card-widget {
  border-radius: var(--local-card-radius);
  border: var(--local-card-border);
  box-shadow: none;
}

/* --- Grid de productos amplio --- */
.product-grid {
  gap: var(--local-grid-gap);
}

/* --- Footer oscuro --- */
.site-footer {
  --ftr-bg: #1d1d1d;
  --ftr-fg: #c7c7c7;
  --ftr-accent: var(--local-accent-footer);
}

/* --- Acento en links/hover coherente con la marca --- */
a:hover { color: var(--local-accent); }

/* ==========================================================================
   Header propio "Local" — logo + search grande + acciones + nav mega-menú
   ========================================================================== */
[x-cloak] { display: none !important; }

.lh { background: #fff; border-bottom: 1px solid var(--local-border); position: relative; z-index: 40; }

/* Announcement bar */
.lh-ann { background: #1d1d1d; color: #fff; font-size: 13px; letter-spacing: .01em; }
.lh-ann__inner { max-width: var(--local-max-width); margin: 0 auto; padding: 9px 40px; text-align: center; }

/* Main bar: logo | search (grande) | acciones */
.lh-bar {
  max-width: var(--local-max-width); margin: 0 auto;
  padding: 18px 40px; display: flex; align-items: center; gap: 32px;
}
.lh-logo { flex: 0 0 auto; display: inline-flex; align-items: center; }
.lh-logo img { height: 40px; width: auto; display: block; }
.lh-logo__text { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 28px; color: var(--local-text); letter-spacing: -.02em; }

.lh-search { flex: 1 1 auto; display: flex; align-items: center; max-width: 900px; margin: 0 auto;
  border: 1px solid var(--local-border); border-radius: 30px; background: #fff; overflow: hidden; }
.lh-search input { flex: 1 1 auto; border: 0; outline: 0; padding: 13px 22px; font-size: 15px; font-family: 'Outfit', sans-serif; background: transparent; color: var(--local-text); }
.lh-search__btn { flex: 0 0 auto; border: 0; background: transparent; padding: 0 20px; color: var(--local-text); cursor: pointer; display: flex; align-items: center; }
.lh-search:focus-within { border-color: var(--local-accent); }

.lh-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.lh-action { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--local-border);
  border-radius: 30px; color: var(--local-text); font-size: 14px; text-decoration: none; white-space: nowrap; }
.lh-action:hover { border-color: var(--local-accent); color: var(--local-accent); }
.lh-action__label { font-family: 'Outfit', sans-serif; }

/* Nav row + mega-menú */
.lh-nav { border-top: 1px solid var(--local-border); }
.lh-nav__list { max-width: var(--local-max-width); margin: 0 auto; padding: 0 40px; list-style: none;
  display: flex; align-items: center; gap: 34px; }
.lh-nav__item { position: static; }
.lh-nav__link { display: inline-flex; align-items: center; gap: 5px; padding: 15px 0; font-family: 'Outfit', sans-serif;
  font-size: 15px; font-weight: 500; color: var(--local-text); text-decoration: none; }
.lh-nav__link:hover { color: var(--local-accent); }
.lh-nav__caret { font-size: 10px; opacity: .7; }

.lh-mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff;
  border-top: 1px solid var(--local-border); box-shadow: 0 24px 40px -24px rgba(0,0,0,.18); z-index: 50; }
.lh-mega__grid { max-width: var(--local-max-width); margin: 0 auto; padding: 34px 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 48px; }
.lh-mega__head { display: block; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 16px;
  color: var(--local-text); text-decoration: none; margin-bottom: 12px; }
.lh-mega__head:hover { color: var(--local-accent); }
.lh-mega__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.lh-mega__links a { font-size: 14px; color: var(--local-text-secondary); text-decoration: none; }
.lh-mega__links a:hover { color: var(--local-accent); }

@media (max-width: 900px) {
  .lh-bar { padding: 14px 18px; gap: 16px; flex-wrap: wrap; }
  .lh-search { order: 3; flex: 1 1 100%; max-width: none; }
  .lh-nav__list { overflow-x: auto; gap: 22px; padding: 0 18px; }
  .lh-action__label { display: none; }
}

/* ==========================================================================
   Sección: fila de categorías (text_columns_images)
   ========================================================================== */
.lx-cats { padding: 56px 0; }
.lx-cats__inner { max-width: var(--local-max-width); margin: 0 auto; padding: 0 40px; }
.lx-cats__title { font-family: 'Outfit', sans-serif; font-weight: 400; font-size: 28px; letter-spacing: -.02em;
  margin: 0 0 28px; color: var(--local-text); }
.lx-cats__row { display: flex; gap: 26px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.lx-cats__row::-webkit-scrollbar { display: none; }
.lx-cat { flex: 0 0 auto; width: 132px; display: flex; flex-direction: column; align-items: center;
  gap: 12px; text-decoration: none; color: var(--local-text); }
.lx-cat__img { width: 132px; height: 132px; border-radius: 50%; overflow: hidden; background: var(--local-bg-secondary, #f4f4f4);
  border: 1px solid var(--local-border); display: flex; align-items: center; justify-content: center; transition: border-color .15s; }
.lx-cat:hover .lx-cat__img { border-color: var(--local-accent); }
.lx-cat__img img { width: 100%; height: 100%; object-fit: cover; }
.lx-cat__label { font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 500; text-align: center; line-height: 1.2; }
.lx-cat:hover .lx-cat__label { color: var(--local-accent); }
.lx-cat__count { font-size: 12px; color: var(--local-text-secondary); }

@media (max-width: 700px) {
  .lx-cats { padding: 36px 0; }
  .lx-cats__inner { padding: 0 18px; }
  .lx-cat, .lx-cat__img { width: 104px; }
  .lx-cat__img { height: 104px; }
}

/* ==========================================================================
   Sección: banda de bloques promo (flex_grid)
   ========================================================================== */
.lx-flex { max-width: var(--local-max-width); margin: 0 auto; padding: 8px 40px 56px; }
.lx-flex__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }
.lx-flex__block {
  position: relative; min-height: 440px; border-radius: var(--local-card-radius);
  overflow: hidden; background-size: cover; background-position: center; display: flex;
  align-items: flex-end; text-decoration: none; color: #fff;
}
.lx-flex__block--wide { grid-row: span 1; }
.lx-flex__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.05) 55%); }
.lx-flex__content { position: relative; z-index: 2; padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.lx-flex__eyebrow { font-family: 'Outfit', sans-serif; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.lx-flex__title { font-family: 'Outfit', sans-serif; font-weight: 400; font-size: 30px; line-height: 1.05; letter-spacing: -.02em; }
.lx-flex__block--wide .lx-flex__title { font-size: 40px; }
.lx-flex__cta { align-self: flex-start; margin-top: 6px; background: #fff; color: var(--local-text);
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 500; padding: 11px 26px; border-radius: 30px; }
.lx-flex__block:hover .lx-flex__cta { background: var(--local-accent); color: #fff; }

@media (max-width: 900px) {
  .lx-flex { padding: 8px 18px 36px; }
  .lx-flex__grid { grid-template-columns: 1fr 1fr; }
  .lx-flex__block { min-height: 300px; }
  .lx-flex__block--wide { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .lx-flex__grid { grid-template-columns: 1fr; }
}
