:root {
  --sky: #4fc0e8;
  --sky-light: #8fdcf5;
  --sky-deep: #1d9fd8;
  --yellow: #ffd42a;
  --yellow-soft: #ffe57a;
  --cream: #fff6dc;
  --red: #e3261f;
  --red-dark: #b51a14;
  --navy: #0f2f86;
  --blue: #1c54c4;
  --green: #138a3a;
  --orange: #f08a12;
  --ink: #16213f;
  --paint: 'Luckiest Guy', 'Permanent Marker', cursive;
  --brush: 'Permanent Marker', 'Comic Sans MS', cursive;
  --hand: 'Kalam', 'Comic Sans MS', cursive;
  --sans: 'Nunito', system-ui, sans-serif;
  --radius: 16px;
  /* Letra pintada: contorno crema + sombra azul desplazada */
  --painted: 2px 0 0 var(--cream), -2px 0 0 var(--cream), 0 2px 0 var(--cream), 0 -2px 0 var(--cream),
    2px 2px 0 var(--cream), -2px -2px 0 var(--cream), 2px -2px 0 var(--cream), -2px 2px 0 var(--cream),
    5px 5px 0 var(--navy);
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  background-color: var(--sky);
  /* agua pintada: manchas claras/oscuras + grano de papel */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 60% 30% at 15% 20%, rgba(255, 255, 255, .35), transparent 70%),
    radial-gradient(ellipse 50% 25% at 85% 55%, rgba(29, 159, 216, .55), transparent 70%),
    radial-gradient(ellipse 70% 30% at 30% 85%, rgba(143, 220, 245, .6), transparent 70%),
    repeating-linear-gradient(-8deg, transparent 0 22px, rgba(255, 255, 255, .07) 22px 26px);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 0 16px calc(92px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

.view { display: none; }
.view[data-active] { display: block; animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }

.center { text-align: center; }
.fine { font-size: .78rem; color: var(--navy); opacity: .85; margin: 6px 0 0; }
.red { color: var(--red); }
.navy { color: var(--navy); }

/* Título de sección: brocha azul con subrayado rojo pintado */
.tag {
  display: inline-block;
  font-family: var(--brush);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--navy);
  text-transform: uppercase;
  margin: 0 0 12px;
  padding: 0 4px 6px;
  background: linear-gradient(var(--red), var(--red)) left bottom / 100% 4px no-repeat;
  border-radius: 2px;
}
h3.tag { margin-top: 28px; color: var(--cream); background-image: linear-gradient(var(--yellow), var(--yellow)); text-shadow: 2px 2px 0 var(--navy); }

/* ---------- Hero ---------- */
.hero { position: relative; text-align: center; padding-top: 52px; isolation: isolate; }
.hero::before {
  /* papel crema-amarillo detrás del título, como la parte alta del cartel */
  content: '';
  position: absolute;
  inset: 0 -16px -10px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, var(--cream), transparent 75%),
    linear-gradient(175deg, var(--yellow-soft) 0 60%, transparent 85%);
  z-index: -1;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 92% 90%, 80% 85%, 64% 93%, 45% 87%, 28% 95%, 12% 88%, 0 94%);
}
.hero-title {
  font-family: var(--paint);
  font-weight: 400;
  margin: 0;
  line-height: .86;
  text-transform: uppercase;
  transform: rotate(-3deg);
}
.hero-title span { display: block; }
.hero-title .the {
  color: var(--navy);
  font-size: 1.7rem;
  text-align: left;
  margin-left: 4%;
  text-shadow: 2px 2px 0 var(--cream), 3px 3px 0 var(--yellow);
}
.hero-title .mojarra {
  color: var(--red);
  font-size: clamp(3.6rem, 18vw, 5.4rem);
  text-shadow: var(--painted);
}
.hero-title .index {
  color: var(--blue);
  font-size: clamp(3.2rem, 16vw, 4.8rem);
  text-shadow: var(--painted);
  margin-top: 2px;
}
.hero-claim {
  font-family: var(--brush);
  font-size: 1.12rem;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 18px 4px 10px;
  transform: rotate(-1.5deg);
}
.hero-claim span { display: block; }
.hero-claim .red { font-size: 1.32rem; margin-top: 4px; }

/* ---------- Plato con precio pintado ---------- */
.stage { position: relative; margin: 6px -10px 0; padding-bottom: 54px; }
.stage-plate {
  display: block;
  width: 100%;
  height: auto;
  mask-image: url(img/plato-mask.svg);
  -webkit-mask-image: url(img/plato-mask.svg);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
}
.stage-price {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  transform: rotate(-4deg);
}
.painted-price {
  font-family: var(--paint);
  font-weight: 400;
  -webkit-text-stroke: 1.5px var(--red);
  font-size: clamp(3.6rem, 19vw, 5.2rem);
  line-height: 1;
  margin: 0;
  color: var(--red);
  letter-spacing: .01em;
  text-shadow:
    3px 0 0 var(--cream), -3px 0 0 var(--cream), 0 3px 0 var(--cream), 0 -3px 0 var(--cream),
    3px 3px 0 var(--cream), -3px -3px 0 var(--cream), 3px -3px 0 var(--cream), -3px 3px 0 var(--cream),
    7px 7px 0 var(--navy);
}
.ribbon {
  display: inline-block;
  margin: 2px 0 0;
  padding: 7px 22px 5px;
  font-family: var(--brush);
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--yellow);
  clip-path: polygon(2% 15%, 12% 4%, 30% 10%, 50% 2%, 70% 9%, 88% 3%, 99% 14%, 96% 50%, 100% 86%, 85% 97%, 62% 90%, 40% 98%, 20% 91%, 3% 97%, 0 52%);
}
.range {
  text-align: center;
  font-weight: 900;
  color: var(--navy);
  margin: 14px auto 0;
  background: rgba(255, 246, 220, .85);
  border-radius: 999px;
  padding: 4px 12px;
  width: fit-content;
}

/* ---------- Paneles crema ---------- */
.panel {
  position: relative;
  background: var(--cream);
  border: 2.5px solid var(--blue);
  border-radius: 14px 18px 12px 20px;
  padding: 18px;
  margin: 20px 0;
  box-shadow: 5px 5px 0 var(--navy);
}

.hint { margin: -2px 0 12px; font-size: .92rem; }

/* Formularios */
input, textarea, button { font: inherit; color: inherit; }
.check-form { display: flex; gap: 10px; }
.money {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 2.5px solid var(--navy);
  border-radius: 12px;
  padding: 0 12px;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--navy);
}
.money input { border: 0; background: none; padding: 10px 6px; width: 100%; font-weight: 900; }
.money input:focus { outline: none; }
.money:focus-within, .form input:focus, .form textarea:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }

.btn {
  border: 2.5px solid var(--navy);
  border-radius: 12px;
  padding: 11px 18px;
  font-family: var(--paint);
  font-size: 1.05rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--navy);
  transition: transform .1s, box-shadow .1s;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--navy); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-blue { background: var(--blue); }
.btn-red { background: var(--red); color: var(--cream); }
.wide { width: 100%; margin-top: 14px; }

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; }
.label { font-weight: 900; font-size: .85rem; color: var(--navy); }
.form input:not([type=checkbox]), .form textarea, .form select {
  background: #fff;
  border: 2.5px solid var(--navy);
  border-radius: 12px;
  padding: 10px 12px;
  width: 100%;
}
.form .money input { border: 0; padding: 8px 6px; }
.form textarea { resize: vertical; }
.form .check { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.form .check input { width: 18px; height: 18px; accent-color: var(--navy); }

/* Veredicto */
.result { margin-top: 16px; border-radius: 12px; padding: 16px; color: #fff; border: 2.5px solid var(--navy); }
.result h3 { font-family: var(--paint); font-weight: 400; font-size: 1.8rem; margin: 0 0 4px; color: var(--yellow); text-shadow: 2px 2px 0 var(--navy); }
.result p { margin: 0 0 10px; }
.result.justo { background: var(--green); }
.result.alto { background: var(--orange); }
.result.alto h3 { color: #fff; }
.result.abuso { background: var(--red); }
.result .btn { width: 100%; background: var(--yellow); color: var(--red-dark); }

/* ---------- Mismo plato ---------- */
.hand-title {
  font-family: var(--brush);
  font-weight: 400;
  color: var(--navy);
  text-transform: uppercase;
  font-size: 1.3rem;
  text-align: center;
  margin: 0 0 8px;
}
.same-row { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 10px; }
.same-row img { width: 100%; height: auto; mix-blend-mode: multiply; }
.same-prices p {
  font-family: var(--paint);
  font-size: 2rem;
  -webkit-text-stroke: 1.2px currentColor;
  line-height: 1.15;
  margin: 0;
  white-space: nowrap;
}
.same-prices .ok { color: var(--green); }
.same-prices .ko { color: var(--red); }
.caption {
  font-family: var(--brush);
  text-transform: uppercase;
  text-align: center;
  color: var(--navy);
  font-size: .9rem;
  margin: 10px 0 0;
}

/* ---------- Números ---------- */
.stats {
  background: var(--cream);
  border-radius: 18px 12px 20px 14px;
  padding: 6px 18px;
  margin: 20px 0;
  box-shadow: 5px 5px 0 var(--navy);
  border: 2.5px solid var(--blue);
}
.stat {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 3px solid var(--blue);
}
.stat:last-child { border-bottom: 0; }
.stat b {
  font-family: var(--paint);
  font-weight: 400;
  font-size: 2.9rem;
  line-height: 1;
  color: var(--red);
  -webkit-text-stroke: 1.5px var(--red);
  text-shadow: 3px 3px 0 var(--navy);
  letter-spacing: .01em;
}
.stat span { font-weight: 900; font-size: .95rem; line-height: 1.25; color: var(--navy); }

.coast {
  display: block;
  width: 100%;
  height: auto;
  border: 4px solid var(--cream);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--navy);
  margin: 24px 0 8px;
  transform: rotate(1deg);
}

.slogan {
  margin: 26px -16px 0;
  padding: 22px 16px 26px;
  text-align: center;
  background: var(--yellow);
  clip-path: polygon(0 10%, 8% 3%, 22% 8%, 40% 1%, 58% 7%, 76% 0, 92% 6%, 100% 2%, 100% 92%, 88% 98%, 70% 93%, 52% 100%, 33% 94%, 15% 99%, 0 95%);
}
.slogan p {
  font-family: var(--paint);
  font-size: 1.9rem;
  line-height: 1.05;
  margin: 0;
  text-transform: uppercase;
  transform: rotate(-2deg);
}
.slogan .red { text-shadow: 2px 2px 0 var(--cream); }
.slogan .navy { font-size: 1.45rem; }

/* ---------- Encabezados de Cerca / Denunciar ---------- */
.page-head { text-align: center; padding: 26px 0 8px; }
.page-head .brush {
  font-family: var(--paint);
  font-weight: 400;
  font-size: 2.8rem;
  line-height: 1;
  margin: 0;
  color: var(--red);
  text-transform: uppercase;
  text-shadow: var(--painted);
  transform: rotate(-2deg);
}
.page-head p {
  display: inline-block;
  margin: 14px 0 10px;
  padding: 6px 16px 4px;
  font-family: var(--brush);
  color: var(--navy);
  font-size: .95rem;
  background: var(--yellow);
  clip-path: polygon(2% 15%, 12% 4%, 30% 10%, 50% 2%, 70% 9%, 88% 3%, 99% 14%, 96% 50%, 100% 86%, 85% 97%, 62% 90%, 40% 98%, 20% 91%, 3% 97%, 0 52%);
}

/* Mapa */
.map {
  position: relative;
  height: 360px;
  border: 4px solid var(--cream);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--navy);
  overflow: hidden;
  background: #ffd65c;
}
/* grano de papel encima del mapa, para que se sienta pintado */
.map::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.75' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.map .maplibregl-marker { z-index: 2; }
.map .maplibregl-popup { z-index: 4; }
.map .maplibregl-ctrl-bottom-right, .map .maplibregl-ctrl-bottom-left { z-index: 3; }

/* nombres pintados a mano */
.map-label {
  font-family: var(--brush);
  font-size: .82rem;
  color: var(--navy);
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 1.5px 0 0 var(--cream), -1.5px 0 0 var(--cream), 0 1.5px 0 var(--cream), 0 -1.5px 0 var(--cream);
  transform: rotate(-4deg);
}
.map-label.water {
  font-family: var(--hand);
  font-weight: 700;
  font-size: .95rem;
  color: var(--cream);
  text-shadow: 1px 1px 0 var(--navy), 2px 2px 0 rgba(15, 47, 134, .35);
}
.map.far .map-label:not(.water) { display: none; }
.legend {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: .82rem;
  font-weight: 900;
  margin: 14px auto 0;
  padding: 6px 14px;
  width: fit-content;
  background: var(--cream);
  border-radius: 999px;
  color: var(--navy);
}
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.dot.justo, .pin.justo { background: var(--green); }
.dot.alto, .pin.alto { background: var(--orange); }
.dot.abuso, .pin.abuso { background: var(--red); }

.pin {
  display: block;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  border: 3.5px solid var(--cream);
  box-shadow: 2px 2px 0 var(--navy);
  cursor: pointer;
  transition: transform .12s;
}
.pin:hover { transform: scale(1.15); }
.pin.me { width: 20px; height: 20px; background: var(--blue); box-shadow: 0 0 0 8px rgba(28, 84, 196, .3), 2px 2px 0 var(--navy); cursor: default; }

/* popups tipo cartel */
.maplibregl-popup-content {
  font-family: var(--sans);
  font-size: .88rem;
  color: var(--ink);
  background: var(--cream);
  border: 2.5px solid var(--navy);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--navy);
  padding: 12px 14px;
}
.maplibregl-popup-content strong { color: var(--navy); font-weight: 900; }
.maplibregl-popup-content .btn { font-size: .85rem; padding: 6px 12px; margin-top: 8px; }
.maplibregl-popup-close-button { font-size: 1.2rem; color: var(--navy); padding: 0 6px; }
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--navy); }
.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--navy); }
.popup-price { font-family: var(--paint); font-weight: 400; font-size: 1.1rem; }
.popup-price.justo { color: var(--green); }
.popup-price.alto { color: var(--orange); }
.popup-price.abuso { color: var(--red); }
.maplibregl-ctrl-group { border: 2px solid var(--navy); border-radius: 10px; box-shadow: 2px 2px 0 var(--navy); }

#locate-status { color: var(--navy); font-weight: 700; }

/* Listas */
.list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  background: var(--cream);
  border: 2.5px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--navy);
  overflow: hidden;
}
.list:empty { display: none; }
.list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 12px 14px;
  border-bottom: 2px dashed rgba(28, 84, 196, .3);
}
.list li:last-child { border-bottom: 0; }
.list li[data-id] { cursor: pointer; }
.list li[data-id]:hover { background: #fff; }
.list .name { font-weight: 900; color: var(--navy); }
.list .meta { font-size: .8rem; color: #5a6178; grid-column: 1; }
.list .price { font-family: var(--paint); font-size: 1.4rem; text-align: right; -webkit-text-stroke: .8px currentColor; }
.list .price.justo { color: var(--green); }
.list .price.alto { color: var(--orange); }
.list .price.abuso { color: var(--red); }
.list .tag {
  justify-self: end;
  align-self: start;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 900;
  color: #fff;
  padding: 1px 8px;
  margin: 0;
  border-radius: 999px;
  background: var(--navy);
  text-shadow: none;
}
.list .tag.justo { background: var(--green); }
.list .tag.alto { background: var(--orange); }
.list .tag.abuso { background: var(--red); }
.list .desc { grid-column: 1 / -1; font-size: .88rem; margin-top: 4px; font-style: italic; }
.empty { text-align: center; padding: 20px; font-size: .9rem; display: block !important; }

/* Foto en la denuncia */
.photo-field { display: grid; gap: 6px; }
.photo-drop {
  position: relative;
  display: grid !important;
  place-items: center;
  min-height: 120px;
  background: #fff;
  border: 2.5px dashed var(--navy);
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  text-align: center;
}
.photo-drop:hover, .photo-drop.drag { background: #fff8dc; }
.photo-drop:focus-within { outline: 3px solid var(--yellow); outline-offset: 1px; }
.photo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-empty { display: grid; gap: 2px; padding: 16px; color: var(--navy); font-size: 1.4rem; }
.photo-empty b { font-size: .95rem; }
.photo-empty small { font-size: .75rem; color: #5a6178; }
.photo-drop img { width: 100%; max-height: 260px; object-fit: contain; background: #f4eee0; }
.photo-drop.has-photo .photo-empty { display: none; }
.photo-remove {
  justify-self: start;
  background: none;
  border: 0;
  padding: 0;
  color: var(--red);
  font-weight: 900;
  font-size: .85rem;
  text-decoration: underline;
  cursor: pointer;
}
.list .thumb {
  grid-column: 1 / -1;
  margin-top: 8px;
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid rgba(28, 84, 196, .3);
  cursor: zoom-in;
}

/* Barra inferior: limpia, con pastilla amarilla en la pestaña activa */
.tabs {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--navy);
  padding: 8px 6px calc(10px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -6px 20px -8px rgba(15, 47, 134, .5);
  z-index: 1000;
}
.tabs button {
  background: none;
  border: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: .72rem;
  color: rgba(255, 255, 255, .72);
  cursor: pointer;
  padding: 2px 0;
}
.tabs svg {
  width: 52px;
  height: 30px;
  padding: 4px 14px;
  border-radius: 999px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: background .15s;
}
.tabs button:hover { color: #fff; }
.tabs button[aria-current] { color: var(--yellow); font-weight: 900; }
.tabs button[aria-current] svg { background: var(--yellow); stroke: var(--navy); }
.tabs button:focus-visible { outline: none; }
.tabs button:focus-visible svg { box-shadow: 0 0 0 2px var(--cream); }

/* Cambio de idioma */
.lang-switch {
  position: absolute;
  top: 12px;
  right: 0;
  z-index: 2;
  display: flex;
  padding: 3px;
  background: var(--cream);
  border: 2.5px solid var(--navy);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--navy);
}
.lang-switch button {
  border: 0;
  background: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: .78rem;
  color: var(--navy);
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--navy); color: var(--yellow); }

/* ---------- Formulario: select ---------- */
.form select { appearance: none; font-weight: 700; color: var(--navy); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230f2f86' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; }

.cta-prices { font-size: .95rem; line-height: 1.2; }
.nw { white-space: nowrap; }

/* ---------- Precios ---------- */
.index-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 6px 0 14px;
  padding: 14px 16px;
  background: var(--navy);
  color: var(--cream);
  border-radius: 16px 12px 18px 14px;
  box-shadow: 5px 5px 0 var(--red);
}
.index-fish { font-size: 2.4rem; line-height: 1; }
.index-eq { margin: 0; font-family: var(--paint); font-size: 1.5rem; line-height: 1.1; text-transform: uppercase; }
.index-eq b { font-weight: 400; color: var(--yellow); -webkit-text-stroke: 1px var(--yellow); }
.index-note { margin: 4px 0 0; font-size: .78rem; opacity: .9; }

.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  border: 2.5px solid var(--navy);
  background: var(--cream);
  color: var(--navy);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 900;
  font-size: .85rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--navy);
}
.chip[aria-pressed="true"] { background: var(--red); color: var(--cream); }

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2.5px solid var(--navy);
  border-radius: 12px;
  padding: 0 12px;
  margin-top: 8px;
  box-shadow: 3px 3px 0 var(--navy);
}
.search input { border: 0; outline: 0; background: none; width: 100%; padding: 11px 0; font-weight: 700; }
.search:focus-within { outline: 3px solid var(--yellow); outline-offset: 1px; }

.catalog { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.item {
  background: var(--cream);
  border: 2.5px solid var(--blue);
  border-radius: 14px 18px 12px 16px;
  box-shadow: 4px 4px 0 var(--navy);
  overflow: hidden;
}
.item-head {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.item-emoji { font-size: 1.8rem; line-height: 1; text-align: center; }
.item-name { display: block; font-weight: 900; color: var(--navy); line-height: 1.2; }
.item-meta { display: block; font-size: .76rem; color: #5a6178; margin-top: 2px; }
.item-price {
  font-family: var(--paint);
  font-size: 1.65rem;
  line-height: 1;
  color: var(--red);
  -webkit-text-stroke: 1px var(--red);
  text-shadow: 2px 2px 0 var(--navy);
  white-space: nowrap;
}
/* barra de rango: barato → caro, con el precio sugerido marcado */
.range-bar { position: relative; height: 8px; margin: 0 14px 12px; border-radius: 99px; background: linear-gradient(90deg, var(--green), var(--yellow) 60%, var(--red)); opacity: .9; }
.range-bar i { position: absolute; top: -4px; width: 4px; height: 16px; border-radius: 2px; background: var(--navy); transform: translateX(-2px); }
.range-labels { display: flex; justify-content: space-between; gap: 8px; margin: -6px 14px 10px; font-size: .72rem; font-weight: 800; color: var(--navy); }
.item-check { display: none; padding: 0 14px 14px; }
.item.open .item-check { display: block; }
.item-check .check-form { margin-top: 2px; }
.item-check .result { margin-top: 12px; }
.low-sample { color: var(--orange); font-weight: 900; }

.index-seal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 22px auto 4px;
  padding: 10px 20px 10px 12px;
  width: fit-content;
  background: var(--cream);
  border: 2.5px solid var(--blue);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--navy);
  transform: rotate(-2deg);
}
.index-seal img { width: 64px; height: auto; border-radius: 50%; mix-blend-mode: multiply; }
.index-seal p { margin: 0; font-family: var(--brush); color: var(--navy); text-transform: uppercase; font-size: .85rem; line-height: 1.15; }
.index-seal b { font-family: var(--paint); font-weight: 400; font-size: 1.35rem; color: var(--red); }
