/* Paleta del manual de marca CCAA:
   negro #1c1c1c · blanco #fafafa · verde #199434 · cobre #ad551d · amarillo #fdd740 · celeste #98cbef */
:root {
  --brand-black: #1c1c1c;
  --brand-white: #fafafa;
  --brand-green: #199434;
  --brand-copper: #ad551d;
  --brand-yellow: #fdd740;
  --brand-sky: #98cbef;

  --paper: #F4F9FD;
  --paper-raised: #FFFFFF;
  --paper-band: #E4F1FB;
  --ink: #1c1c1c;
  --ink-soft: #545A60;
  --line: #D3E4F0;
  --hover: #EAF4FB;
  --accent: #ad551d;
  --accent-strong: #fdd740;
  --accent-ink: #1c1c1c;
  --hop: #1c1c1c;
  --hop-strong: #1c1c1c;
  --link: #8E4516;
  --danger: #B3261E;
  --ok: #157D2C;
  --focus: #199434;
  --shadow: rgba(28,28,28,0.14);
  --t-fabrica: #ad551d;
  --t-tap: #199434;
  --t-bares: #1c1c1c;
  --t-brewpub: #2B78B8;
  --on-c: #FFFFFF;
  --province-fill: #D9ECFA;
  --province-hover: #B8DBF5;
  --province-stroke: #7FB6E0;
  --font: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --display: 'Bricolage Grotesque', 'Archivo', system-ui, sans-serif;
  --mono: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --radius: 14px;
  --header-h: 76px;
  --bar: #1c1c1c;
  --bar-ink: #fafafa;
  --bar-soft: rgba(250,250,250,.68);
  --bar-line: rgba(250,250,250,.14);
  --bar-hover: rgba(250,250,250,.08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141414; --paper-raised: #1E1E1E; --paper-band: #191919;
    --ink: #fafafa; --ink-soft: #A3A3A3; --line: #2E2E2E; --hover: #262626;
    --accent: #E08A4E; --hop: #fdd740; --hop-strong: #fdd740; --link: #fdd740;
    --danger: #F2876F; --ok: #4CC76A; --focus: #fdd740; --shadow: rgba(0,0,0,0.55);
    --t-fabrica: #E08A4E; --t-tap: #3FBF5C; --t-bares: #fafafa; --t-brewpub: #98cbef; --on-c: #1c1c1c;
    --province-fill: #1F262C; --province-hover: #2A343C; --province-stroke: #3F5566;
    --bar: #0F0F0F; --bar-line: #262626;
  }
}
:root[data-theme="dark"] {
  --paper: #141414; --paper-raised: #1E1E1E; --paper-band: #191919;
  --ink: #fafafa; --ink-soft: #A3A3A3; --line: #2E2E2E; --hover: #262626;
  --accent: #E08A4E; --hop: #fdd740; --hop-strong: #fdd740; --link: #fdd740;
  --danger: #F2876F; --ok: #4CC76A; --focus: #fdd740; --shadow: rgba(0,0,0,0.55);
  --t-fabrica: #E08A4E; --t-tap: #3FBF5C; --t-bares: #fafafa; --t-brewpub: #98cbef; --on-c: #1c1c1c;
  --province-fill: #1F262C; --province-hover: #2A343C; --province-stroke: #3F5566;
  --bar: #0F0F0F; --bar-line: #262626;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.i { width: 18px; height: 18px; flex: none; }
.i-sm { width: 15px; height: 15px; flex: none; }

/* ---------- header ---------- */
.site-header {
  height: var(--header-h); position: sticky; top: 0; z-index: 900; overflow: hidden;
  display: flex; align-items: center; gap: 28px; padding: 0 20px 0 14px;
  background: var(--bar); color: var(--bar-ink);
}
/* franja inferior con los colores de la marca: celeste, blanco, amarillo */
.site-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand-sky) 0 33.33%, var(--brand-white) 33.33% 66.66%, var(--brand-yellow) 66.66% 100%);
}
.header-hop {
  position: absolute; right: -18px; top: -14px; width: 88px; height: 120px; pointer-events: none;
  background: var(--brand-yellow); opacity: .08; transform: rotate(-18deg);
  -webkit-mask: url('../img/lupulo.svg') center / contain no-repeat; mask: url('../img/lupulo.svg') center / contain no-repeat;
}
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; min-width: 0; color: var(--bar-ink); text-decoration: none; }
.brand-logo {
  height: 52px; width: auto; display: block; transition: transform .15s ease;
  /* contorno blanco del logo sobre fondo oscuro, como pide el manual */
  filter: drop-shadow(1.5px 0 0 #fafafa) drop-shadow(-1.5px 0 0 #fafafa) drop-shadow(0 1.5px 0 #fafafa) drop-shadow(0 -1.5px 0 #fafafa);
}
.brand:hover .brand-logo { transform: rotate(-3deg) scale(1.04); }
.brand-text { display: flex; flex-direction: column; min-width: 0; padding-left: 14px; border-left: 1px solid var(--bar-line); }
.brand-text strong {
  font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: -.015em;
  color: var(--brand-yellow); white-space: nowrap;
}
.brand-text span { font-size: 13px; color: var(--bar-soft); white-space: nowrap; margin-top: 5px; letter-spacing: .01em; }
.header-stats {
  margin-left: auto; font-size: 13px; color: var(--bar-soft); white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.header-stats b { color: var(--bar-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.header-stats .live { width: 7px; height: 7px; border-radius: 50%; background: #3FBF5C; box-shadow: 0 0 0 3px rgba(63,191,92,.22); }
.header-actions { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.page-nosotros .header-actions { margin-left: auto; }
.header-link {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px;
  color: var(--bar-soft); text-decoration: none; font-size: 14px; font-weight: 600; border-radius: 999px;
  transition: color .15s ease, background .15s ease;
}
.header-link:hover { color: var(--bar-ink); background: var(--bar-hover); }
.site-header .icon-btn { background: transparent; border-color: var(--bar-line); color: var(--bar-soft); }
.site-header .icon-btn:hover { background: var(--bar-hover); color: var(--bar-ink); }
.site-header .btn-cta:hover { background: var(--brand-white); color: var(--brand-black); }
.site-header :focus-visible { outline-color: var(--brand-yellow); }
.btn {
  font-family: var(--font);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: scale(.98); }
.btn-cta { background: var(--accent-strong); color: var(--accent-ink); }
.btn-cta:hover { background: var(--brand-black); color: var(--brand-yellow); }
.btn-ghost { background: var(--paper-raised); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--hover); }
.btn-primary { background: var(--hop-strong); color: var(--paper); }
.btn-primary:hover { background: var(--brand-copper); color: #fff; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper-raised); color: var(--ink-soft); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  transition: background .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--hover); color: var(--ink); }

/* ---------- layout ---------- */
.app {
  display: grid; grid-template-columns: 400px minmax(0, 1fr);
  height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
}
.panel {
  display: flex; flex-direction: column; min-height: 0;
  background: var(--paper); border-right: 1px solid var(--line);
}
.panel-top { padding: 18px 18px 12px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.search {
  position: relative; display: flex; align-items: center;
}
.search .i { position: absolute; left: 14px; color: var(--ink-soft); pointer-events: none; }
.search input {
  width: 100%; height: 48px; padding: 0 44px 0 42px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper-raised); font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search input::placeholder { color: var(--ink-soft); }
.search input:focus { outline: none; border-color: var(--hop); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hop) 22%, transparent); }
.search .clear {
  position: absolute; right: 4px; width: 40px; height: 40px; border: 0; background: none;
  color: var(--ink-soft); cursor: pointer; border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.filters-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.select {
  height: 44px; padding: 0 36px 0 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--paper-raised) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%2355606C' stroke-width='1.8' fill='none' stroke-linecap='round'/></svg>") no-repeat right 14px center;
  appearance: none; cursor: pointer; width: 100%;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--paper-raised);
  font-size: 13px; font-weight: 500; cursor: pointer; color: var(--ink-soft);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip[aria-pressed="true"] .dot { box-shadow: 0 0 0 2px var(--paper); }
.chip:hover:not([aria-pressed="true"]) { background: var(--hover); color: var(--ink); }
.results-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-soft);
}
.results-meta b { color: var(--ink); font-family: var(--mono); font-weight: 500; }
.toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.toggle input { width: 16px; height: 16px; accent-color: var(--hop); cursor: pointer; }

.list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; flex: 1; min-height: 0; }
.item {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center;
  padding: 10px; border-radius: 12px; cursor: pointer; border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}
.item:hover, .item.is-active { background: var(--paper-raised); border-color: var(--line); }
.item:focus-visible { outline-offset: -2px; }
.avatar {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: var(--on-c); background: var(--c); letter-spacing: .02em;
  flex: none; overflow: hidden;
}
.avatar.has-logo { background: #fff; border: 1px solid var(--line); }
.avatar.has-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.item-name { font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.item-loc { font-size: 12.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.item-tipo { font-size: 11.5px; font-weight: 600; color: var(--c); margin-top: 3px; }
.item-year { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-soft); }
.empty .i { width: 32px; height: 32px; margin-bottom: 8px; }

.panel-foot {
  padding: 12px 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--ink-soft);
}
.panel-foot img { height: 40px; width: auto; }
.seal-dark { display: none; }
:root[data-theme="dark"] .seal-light { display: none; }
:root[data-theme="dark"] .seal-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .seal-light { display: none; }
  :root:not([data-theme="light"]) .seal-dark { display: block; }
}

/* ---------- map ---------- */
.map-wrap { position: relative; min-height: 0; }
#map { position: absolute; inset: 0; background: var(--paper); }
.map-legend {
  position: absolute; left: 14px; bottom: 14px; z-index: 500;
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; font-size: 12px; display: grid; gap: 4px; box-shadow: 0 4px 16px var(--shadow);
}
.map-legend span { display: flex; align-items: center; gap: 8px; }
.map-legend i { width: 20px; height: 20px; border-radius: 50%; background: var(--c); color: var(--on-c); display: inline-flex; align-items: center; justify-content: center; }
.map-legend i svg { width: 12px; height: 12px; }
.map-cta {
  position: absolute; right: 14px; bottom: 14px; z-index: 500;
  box-shadow: 0 6px 20px var(--shadow);
}

/* marcadores: punto chico de lejos; de cerca, logo o ícono del tipo */
.mk {
  width: 12px; height: 12px; border-radius: 50%; background: var(--c);
  border: 2px solid var(--paper-raised); box-shadow: 0 1px 3px rgba(0,0,0,.28);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  transform: translate(-50%, -50%);
  transition: width .18s ease, height .18s ease, transform .15s ease;
}
.mk svg, .mk img { display: none; }
.mk svg { width: 18px; height: 18px; color: var(--on-c); }
.mk img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.leaflet-marker-icon:hover .mk, .leaflet-marker-icon:focus-visible .mk, .mk.is-active { transform: translate(-50%, -50%) scale(1.35); }
.z-mid .mk { width: 16px; height: 16px; }
.z-hi .mk { width: 34px; height: 34px; border-width: 2.5px; box-shadow: 0 3px 10px rgba(0,0,0,.25); }
.z-hi .mk svg, .z-hi .mk img { display: block; }
.z-hi .mk.has-logo { width: 42px; height: 42px; border: 3px solid var(--c); background: #fff; }
.z-hi .leaflet-marker-icon:hover .mk, .z-hi .mk.is-active { transform: translate(-50%, -50%) scale(1.12); }
.loc-label {
  font: 500 11px/1 var(--font); color: var(--ink-soft); white-space: nowrap; letter-spacing: .02em;
  text-shadow: 0 0 3px var(--province-fill), 0 0 3px var(--province-fill), 0 0 3px var(--province-fill);
  transform: translate(-50%, 20px); pointer-events: none;
}
.dot-tip { background: var(--paper-raised); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; font: 600 12.5px var(--font); padding: 5px 10px; box-shadow: 0 4px 12px var(--shadow); }
.dot-tip::before { display: none; }

.prov-tip { background: var(--ink); color: var(--paper); border: 0; border-radius: 8px; font: 600 12.5px var(--font); padding: 5px 10px; box-shadow: 0 4px 12px var(--shadow); }
.prov-tip::before { display: none; }
/* popup */
.leaflet-popup-content-wrapper {
  background: var(--paper-raised); color: var(--ink); border-radius: var(--radius);
  box-shadow: 0 10px 30px var(--shadow); border: 1px solid var(--line);
}
.leaflet-popup-tip { background: var(--paper-raised); }
.leaflet-popup-content { margin: 16px; font-family: var(--font); width: 260px !important; }
.leaflet-container a.leaflet-popup-close-button { color: var(--ink-soft); width: 32px; height: 32px; font-size: 20px; line-height: 30px; }
.pop-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; padding-right: 16px; }
.pop-head .avatar { width: 52px; height: 52px; }
.pop-name { font-weight: 700; font-size: 16px; line-height: 1.2; }
.pop-tipo {
  display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent);
}
.pop-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); margin: 4px 0; }
.pop-notes { font-size: 13px; line-height: 1.45; margin: 10px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pop-actions { display: flex; gap: 8px; margin-top: 14px; }
.pop-actions .btn { min-height: 40px; padding: 0 14px; font-size: 13px; flex: 1; }
.leaflet-container .pop-actions a.btn-primary { color: var(--paper); }
.leaflet-container .pop-actions a.btn-ghost { color: var(--ink); }
.leaflet-control-zoom a { background: var(--paper-raised) !important; color: var(--ink) !important; border-color: var(--line) !important; }

/* ---------- mobile view switch ---------- */
.view-switch { display: none; }

@media screen and (max-width: 1100px) {
  .header-stats { display: none; }
}
@media screen and (max-width: 900px) {
  :root { --header-h: 64px; }
  .site-header { padding: 0 12px 0 10px; gap: 10px; }
  .brand { gap: 10px; }
  .brand-logo { height: 42px; }
  .brand-text { padding-left: 10px; }
  .brand-text strong { font-size: 18px; white-space: normal; max-width: 150px; line-height: .92; }
  .brand-text span { display: none; }
  .header-link { width: 44px; padding: 0; justify-content: center; border: 1px solid var(--bar-line); }
  .header-link span { display: none; }
  .header-hop { display: none; }
  .header-actions { margin-left: auto; gap: 8px; }
  .header-actions .btn-cta .label-long { display: none; }
  .header-actions .btn-cta { width: 44px; padding: 0; }
  .app { grid-template-columns: minmax(0, 1fr); position: relative; }
  .panel { border-right: 0; }
  .app[data-view="map"] .panel .list, .app[data-view="map"] .panel .panel-foot, .app[data-view="map"] .results-meta { display: none; }
  .app[data-view="map"] .panel { position: absolute; inset: 0 0 auto 0; z-index: 600; background: transparent; }
  .app[data-view="map"] .panel-top { background: linear-gradient(var(--paper) 70%, transparent); border: 0; padding: 12px 16px 18px; }
  .app[data-view="list"] .map-wrap { display: none; }
  .panel-top { padding: 12px 16px; }
  .map-cta { display: none; }
  .leaflet-control-zoom { display: none; }
  .map-legend { bottom: 84px; left: 12px; }
  .view-switch {
    display: flex; position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 950;
    background: var(--ink); color: var(--paper); border-radius: 999px; padding: 4px; gap: 4px;
    box-shadow: 0 8px 24px var(--shadow);
  }
  .view-switch button {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px;
    border: 0; border-radius: 999px; background: transparent; color: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
  }
  .view-switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
  .list { padding-bottom: 90px; }
}

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 2000; background: rgba(12,20,26,.55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: fade .2s ease;
}
.modal {
  width: min(640px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column;
  background: var(--paper-raised); border-radius: 20px; border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0,0,0,.3); animation: rise .25s cubic-bezier(.2,.8,.2,1);
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .modal, .modal-backdrop { animation: none; } * { transition: none !important; } }
.modal-head { padding: 22px 24px 0; display: flex; justify-content: space-between; gap: 12px; }
.modal-head h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.modal-head p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 18px 24px 0; list-style: none; margin: 0; }
.step { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); display: grid; gap: 6px; }
.step::before { content: ''; height: 4px; border-radius: 4px; background: var(--line); transition: background .2s ease; }
.step.is-done::before, .step.is-current::before { background: var(--accent-strong); }
.step.is-current { color: var(--ink); }
.step small { font-family: var(--mono); font-weight: 400; display: block; }
.modal-body { padding: 20px 24px; overflow-y: auto; }
.modal-foot {
  padding: 14px 24px 20px; display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13.5px; font-weight: 600; }
.field label em { font-style: normal; color: var(--danger); }
.field .help { font-size: 12.5px; color: var(--ink-soft); }
.field .err { font-size: 12.5px; color: var(--danger); display: flex; align-items: center; gap: 6px; }
.input {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper); transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.input { min-height: 92px; resize: vertical; }
.input:focus, .select:focus { outline: none; border-color: var(--hop); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hop) 22%, transparent); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.lock { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); background: var(--paper); border: 1px dashed var(--line); padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; }
.dupe {
  display: flex; gap: 10px; align-items: flex-start; font-size: 13px; padding: 10px 12px; border-radius: 10px; margin-top: 2px;
  background: color-mix(in srgb, var(--accent-strong) 16%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
}
.tipo-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tipo-opt { position: relative; }
.tipo-opt input { position: absolute; opacity: 0; }
.tipo-opt span {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 13.5px; font-weight: 500;
}
.tipo-opt span::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.tipo-opt input:checked + span { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); background: color-mix(in srgb, var(--c) 10%, var(--paper)); }
.tipo-opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
#pickMap { height: 260px; border-radius: 12px; border: 1px solid var(--line); }
.drop {
  border: 2px dashed var(--line); border-radius: 16px; padding: 28px 20px; text-align: center; cursor: pointer;
  background: var(--paper); transition: border-color .15s ease, background .15s ease;
}
.drop:hover, .drop.is-over { border-color: var(--hop); background: var(--hover); }
.drop .i { width: 34px; height: 34px; color: var(--hop); }
.drop strong { display: block; margin-top: 8px; }
.drop small { color: var(--ink-soft); font-size: 12.5px; }
.logo-preview { display: flex; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.logo-preview img { width: 96px; height: 96px; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.logo-preview .meta { font-size: 13px; color: var(--ink-soft); flex: 1; min-width: 0; }
.logo-preview .meta b { color: var(--ink); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check-ok { color: var(--ok); display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.done { text-align: center; padding: 20px 8px 8px; }
.done .badge { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.done .badge .i { width: 30px; height: 30px; }
.done h3 { margin: 0 0 6px; font-size: 20px; }
.done p { color: var(--ink-soft); margin: 0 auto; max-width: 42ch; }
.hp { position: absolute; left: -9999px; }
@media screen and (max-width: 560px) {
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal { border-radius: 20px 20px 0 0; max-height: 94dvh; }
  .grid-2, .tipo-options { grid-template-columns: 1fr; }
  .modal-head, .steps, .modal-body, .modal-foot { padding-left: 16px; padding-right: 16px; }
}

/* ---------- nosotros ---------- */
body.page-nosotros, body.page-ficha { height: auto; min-height: 100%; }
.about { overflow: hidden; }
.about-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; line-height: 1.04; margin: 0; text-wrap: balance; }
.deco {
  position: absolute; pointer-events: none; background: currentColor;
  -webkit-mask: url('../img/lupulo.svg') center / contain no-repeat; mask: url('../img/lupulo.svg') center / contain no-repeat;
}
.about-hero { position: relative; padding: 72px 0 0; }
.about-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.about-hero-text { padding-bottom: 72px; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.about-hero h1 { font-size: clamp(38px, 5.2vw, 68px); color: var(--ink); max-width: 16ch; }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 56ch; margin: 22px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.about .btn { text-decoration: none; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.about-hero-img img { display: block; height: 400px; width: auto; margin-bottom: -60px; position: relative; z-index: 2; filter: drop-shadow(0 18px 30px rgba(28,28,28,.18)); }
.deco-hop { color: var(--brand-sky); opacity: .35; width: 260px; height: 340px; right: -40px; top: -30px; transform: rotate(-16deg); }

.about-band { position: relative; background: var(--brand-sky); padding: 38px 0; }
.band-title { font-size: clamp(24px, 3.2vw, 40px); color: var(--brand-white); max-width: 30ch; text-shadow: 0 1px 0 rgba(28,28,28,.08); }
.deco-hop-band { color: var(--brand-white); opacity: .45; width: 150px; height: 190px; right: 4%; top: -20px; transform: rotate(12deg); }

.about-section { position: relative; padding: 84px 0; }
.about-section h2 { font-size: clamp(28px, 3.3vw, 42px); color: var(--ink); margin-bottom: 22px; }
.about-two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.about-two-rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.about-logo img { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto; }
.prose p { font-size: 17px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 16px; max-width: 62ch; }

.about-values { background: var(--paper-band); }
.deco-wheat {
  color: var(--accent); opacity: .12; width: 180px; height: 300px; left: -30px; bottom: -30px; transform: rotate(14deg);
  -webkit-mask-image: url('../img/trigo.svg'); mask-image: url('../img/trigo.svg');
}
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.values li { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.v-ic { width: 26px; height: 26px; color: var(--accent); }
.values h3 { margin: 14px 0 6px; font-size: 18px; font-weight: 700; color: var(--ink); }
.values p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

.types { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.types li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); }
.t-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); margin-top: 4px; flex: none; box-shadow: 0 0 0 3px var(--paper-raised), 0 0 0 4px var(--line); }
.types b { display: block; font-size: 16px; color: var(--ink); }
.types span:not(.t-dot) { font-size: 14px; color: var(--ink-soft); }

.about-seal { padding: 0 0 84px; }
.seal-row { display: flex; align-items: center; gap: 24px; padding-top: 40px; border-top: 1px solid var(--line); }
.seal-row img { width: 84px; height: auto; flex: none; }
.seal-row p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); max-width: 70ch; }
.seal-row b { color: var(--ink); }

.about-cta { position: relative; background: var(--brand-black); color: var(--brand-white); padding: 64px 0; }
.about-cta h2 { font-size: clamp(28px, 3.5vw, 44px); color: var(--brand-yellow); margin-bottom: 12px; }
.about-cta p { margin: 0; font-size: 17px; color: rgba(250,250,250,.72); max-width: 52ch; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.about-cta .btn-cta:hover { background: var(--brand-white); color: var(--brand-black); }
.deco-hop-cta { color: var(--brand-yellow); opacity: .07; width: 220px; height: 290px; left: 38%; top: -40px; transform: rotate(-22deg); }
.about-cta :focus-visible { outline-color: var(--brand-yellow); }

.about-foot { background: var(--bar); color: var(--bar-soft); font-size: 13px; padding: 20px 0; border-top: 1px solid var(--bar-line); }
.foot-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- ficha de cervecería (usa la estructura de nosotros) ---------- */
.ficha-hero { padding-top: 28px; }
.ficha-volver { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-bottom: 28px; font-size: 14px; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.ficha-volver:hover { color: var(--ink); }
.ficha-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.ficha-hero .about-hero-text { padding-bottom: 72px; }
.ficha-hero h1 { font-size: clamp(38px, 5vw, 64px); max-width: 16ch; overflow-wrap: anywhere; }
.ficha-tipo { display: inline-flex; align-items: center; gap: 8px; color: var(--c); filter: saturate(1.1); }
.ficha-logo {
  width: 240px; height: 240px; border-radius: 28px; margin-bottom: 72px; flex: none;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: var(--c); color: var(--on-c); box-shadow: 0 18px 40px var(--shadow);
}
.ficha-logo svg { width: 96px; height: 96px; stroke-width: 1.5; }
.ficha-logo.has-logo { background: #fff; border: 1px solid var(--line); padding: 18px; }
.ficha-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ficha-body { background: var(--paper-band); }
.ficha-body .about-two { align-items: start; }
.ficha-datos li { align-items: center; }
.ficha-datos a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.ficha-datos a:hover { text-decoration: underline; }
.ficha-ic {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center;
  color: var(--ink); background: var(--paper-band);
}
.ficha-datos li:first-child .ficha-ic { background: var(--c); color: var(--on-c); }
.ficha-map { height: 340px; margin-top: 56px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.ficha-nota { margin: 10px 0 0; font-size: 13px; color: var(--ink-soft); }
.ficha-body + .about-values { background: var(--paper); }
.ficha-otras { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ficha-otras a {
  display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px; border-radius: var(--radius);
  background: var(--paper-raised); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.ficha-otras a:hover { border-color: var(--c); transform: translateY(-2px); }
.ficha-otras b { display: block; font-size: 15px; line-height: 1.25; }
.ficha-otras small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-soft); }
.ficha-404 { padding: 40px 24px; }
.ficha-404 h1 { font-size: clamp(40px, 6vw, 72px); color: var(--ink); max-width: 16ch; }
@media (prefers-reduced-motion: reduce) { .ficha-otras a { transition: none; } .ficha-otras a:hover { transform: none; } }

:root[data-theme="dark"] .about-band { background: #1B2A35; }
:root[data-theme="dark"] .band-title { color: var(--brand-sky); }
:root[data-theme="dark"] .deco-hop-band { color: var(--brand-sky); opacity: .12; }
:root[data-theme="dark"] .deco-hop { opacity: .08; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .about-band { background: #1B2A35; }
  :root:not([data-theme="light"]) .band-title { color: var(--brand-sky); }
  :root:not([data-theme="light"]) .deco-hop-band { color: var(--brand-sky); opacity: .12; }
  :root:not([data-theme="light"]) .deco-hop { opacity: .08; }
}

@media screen and (max-width: 900px) {
  .about-hero { padding-top: 48px; }
  .about-hero-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
  .about-hero-img img { height: 260px; margin-bottom: -40px; }
  .about-hero-text { padding-bottom: 48px; }
  .about-two, .about-two-rev { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .about-logo img { max-width: 240px; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .about-section { padding: 60px 0; }
  .ficha-hero-grid { gap: 24px; }
  .ficha-logo { width: 180px; height: 180px; border-radius: 22px; }
  .ficha-logo svg { width: 72px; height: 72px; }
  .ficha-otras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 560px) {
  .about-wrap { padding: 0 16px; }
  .about-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .about-hero-img { display: none; }
  .lead { font-size: 16px; }
  .values { grid-template-columns: minmax(0, 1fr); }
  .deco-hop { width: 160px; height: 210px; right: -50px; }
  .seal-row { flex-direction: column; align-items: flex-start; }
  .about-seal { padding-bottom: 60px; }
  .ficha-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .ficha-logo { order: -1; width: 120px; height: 120px; margin-bottom: 0; border-radius: 18px; }
  .ficha-logo.has-logo { padding: 10px; }
  .ficha-logo svg { width: 52px; height: 52px; }
  .ficha-hero .about-hero-text { padding-bottom: 56px; }
  .ficha-volver { margin-bottom: 16px; }
  .ficha-map { height: 260px; margin-top: 40px; }
  .ficha-otras { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- impresión ---------- */
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: A4 landscape; margin: 0; }
  .site-header { position: static; }
  .header-actions, .hero-actions, .about-cta .btn, .map-cta, .leaflet-control-zoom { display: none !important; }
  .page-mapa .site-header .header-stats { margin-left: auto; }
  .about-section, .about-cta, .values li, .types li, .seal-row { break-inside: avoid; }
  .about-hero { padding-top: 40px; }
  .about-hero-text { padding-bottom: 40px; }
  .about-hero-img img { height: 330px; }
  .about-section { padding: 48px 0; }
}
