:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f3f4;
  --text: #202124;
  --muted: #70757a;
  --line: #e8eaed;
  --blue: #1a73e8;
  --blue-dark: #174ea6;
  --blue-soft: #e8f0fe;
  --star: #fbbc04;
  --star-off: #dadce0;
  --green: #188038;
  --red: #ea4335;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --sheet-w: 408px;
  --map-h: clamp(170px, 34svh, 300px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: #e5e3df;
  color: var(--text);
  font: 14px/1.43 "Roboto", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.link { color: var(--muted); }
.link:hover { text-decoration: underline; }

/* ---------- Map ---------- */
.map { position: fixed; inset: 0 0 auto 0; height: calc(var(--map-h) + 24px); overflow: hidden; }
.map__svg { width: 100%; height: 100%; display: block; animation: mapIn 1.4s var(--ease) both; }
.m-land { fill: #f5f3ee; }
.m-park { fill: #c8e7c3; }
.m-water { fill: #aadaff; }
.m-block rect { fill: #ebe8e1; }
.m-road path, .m-road--main { fill: none; stroke: #fff; stroke-width: 10; stroke-linecap: round; }
.m-road--main { stroke: #fde293; stroke-width: 16; }
.m-label { font: 500 12px Roboto, sans-serif; fill: #5f6368; }
.m-label--park { fill: #3a7d44; }
.pin { position: absolute; left: 50%; top: 50%; width: 36px; height: 54px; margin: -54px 0 0 -18px; }
.pin__drop { width: 100%; height: 100%; fill: var(--red); filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .3)); animation: drop .9s var(--spring) .5s both; transform-origin: bottom center; }
.pin__pulse {
  position: absolute; left: 50%; bottom: -6px; width: 22px; height: 8px; margin-left: -11px;
  border-radius: 50%; background: rgba(234, 67, 53, .35);
}
.pin__pulse::after {
  content: ""; position: absolute; inset: -14px -20px; border-radius: 50%;
  border: 2px solid rgba(234, 67, 53, .5);
  animation: ripple 2.2s ease-out 1.4s infinite;
  opacity: 0;
}

/* ---------- Search bar ---------- */
.searchbar {
  position: absolute; z-index: 30;
  top: max(10px, env(safe-area-inset-top)); left: 12px; right: 12px;
  height: 48px;
  display: flex; align-items: center; gap: 4px;
  padding: 0 4px;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2), 0 -1px 0 rgba(0, 0, 0, .02);
  animation: slideDown .6s var(--ease) both;
}
.sb-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #5f6368; flex: none; }
.sb-icon:hover { background: var(--surface-2); }
.sb-text { flex: 1; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 4px; }
.demo-chip {
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  padding: 3px 7px; border-radius: 6px;
  background: #fef7e0; color: #b06000;
}

/* ---------- Sheet ---------- */
.sheet {
  position: relative; z-index: 10;
  margin-top: var(--map-h);
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .15);
  min-height: calc(100svh - var(--map-h));
  padding-bottom: var(--safe-b);
  animation: sheetUp .8s var(--ease) .15s both;
}
.sheet__handle { width: 36px; height: 4px; border-radius: 2px; background: #dadce0; margin: 10px auto 4px; }

.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 3px; height: clamp(130px, 40vw, 180px); margin: 8px 0 0; padding: 0 16px; }
.gallery > div, .gallery__side > div {
  background: var(--g); display: grid; place-items: center;
  overflow: hidden;
}
.gallery__main { border-radius: 12px 0 0 12px; }
.gallery__side { display: grid; grid-template-rows: 1fr 1fr; gap: 3px; }
.gallery__side > div:first-child { border-top-right-radius: 12px; }
.gallery__side > div:last-child { border-bottom-right-radius: 12px; }
.gallery__side .ico { width: 30px; height: 30px; }

/* Fondos tipo foto: gradiente + viñeta + grano */
.tile { position: relative; }
.tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255, 255, 255, .08), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}
.ico {
  fill: none; stroke: rgba(245, 240, 231, .88); stroke-width: 1.2;
  stroke-linecap: round; stroke-linejoin: round;
  position: relative; z-index: 1;
}
/* Ilustración del horno */
.cover { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cv-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flame 1.6s ease-in-out infinite alternate; mix-blend-mode: screen; }
.cv-coals { animation: coals 2.4s ease-in-out infinite; }
.cv-lamp { animation: lamp 6s ease-in-out infinite; transform-origin: 50% 0; transform-box: fill-box; }
.cv-embers circle { transform-box: fill-box; animation: ember 3.2s linear infinite; opacity: 0; }
@keyframes flame {
  0% { transform: scaleY(.88) skewX(-3deg); opacity: .85; }
  50% { transform: scaleY(1.06) skewX(2deg); opacity: 1; }
  100% { transform: scaleY(.95) skewX(4deg); opacity: .9; }
}
@keyframes coals { 0%, 100% { opacity: .45; } 50% { opacity: .75; } }
@keyframes lamp { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
@keyframes ember {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(var(--dx), -110px); opacity: 0; }
}

.info { padding: 16px 16px 4px; }
.info h1 { font-size: 22px; line-height: 28px; }
.info__rating { display: flex; align-items: center; gap: 4px; margin: 4px 0 2px; }
.info__rating > span:first-child { color: var(--text); }
.info p { line-height: 20px; }
.link-ish { color: var(--muted); }
.drive { display: inline-flex; align-items: center; gap: 4px; vertical-align: -2px; }
.open { margin-top: 2px; }
.open b { color: var(--green); font-weight: 400; }

.actions { display: flex; gap: 8px; padding: 14px 16px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.actions::-webkit-scrollbar { display: none; }
.act {
  flex: 1 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px; color: var(--blue); font-weight: 500;
  min-width: 64px;
}
.act__icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue-soft);
  transition: transform .3s var(--spring), background .2s;
}
.act__icon svg { width: 20px; height: 20px; fill: var(--blue); }
.act--primary .act__icon { background: var(--blue); }
.act--primary .act__icon svg { fill: #fff; }
.act:hover .act__icon { transform: scale(1.08); }
.act:active .act__icon { transform: scale(.92); }
.act.saved .act__icon svg { fill: var(--blue); }
.act.saved .act__icon { animation: pop .5s var(--spring); }

.tabs {
  position: sticky; top: 0; z-index: 20;
  display: flex; overflow-x: auto; scrollbar-width: none;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1 0 auto; padding: 14px 16px; font-weight: 500; color: var(--muted); position: relative; white-space: nowrap; }
.tab:hover { background: var(--surface-2); }
.tab.active { color: var(--blue); }
.tab.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); animation: grow .5s var(--ease) both; }

/* ---------- Stars ---------- */
.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.star { width: 14px; height: 14px; position: relative; display: inline-block; }
.star svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.star .off { fill: var(--star-off); }
.star .on { fill: var(--star); clip-path: inset(0 calc(100% - var(--fill, 100%)) 0 0); }
.stars--md .star { width: 16px; height: 16px; }
.stars--sm .star { width: 12px; height: 12px; }
.stars.animate .star .on { animation: starIn .5s var(--spring) both; animation-delay: calc(var(--i) * .07s + .5s); }

/* ---------- Summary ---------- */
main { padding: 0 16px 24px; }
.summary { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 20px 0 16px; }
.bars { display: grid; gap: 4px; }
.bar { display: grid; grid-template-columns: 10px 1fr; gap: 10px; align-items: center; font-size: 12px; color: var(--text); cursor: pointer; }
.bar__track { height: 10px; border-radius: 5px; background: #e8eaed; overflow: hidden; }
.bar__fill { height: 100%; width: 0; border-radius: inherit; background: var(--star); transition: width 1.2s var(--ease); }
.bar.on .bar__fill { background: var(--blue); }
.score { text-align: center; min-width: 96px; }
.score__num { font-size: 48px; line-height: 52px; font-variant-numeric: tabular-nums; }

.rate-cta {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.rate-cta__title { font-size: 16px; margin-bottom: 4px; }
.rate-cta__stars { display: flex; gap: 6px; }
.rate-cta__stars button { width: 32px; height: 32px; transition: transform .3s var(--spring); }
.rate-cta__stars button:hover { transform: scale(1.15); }
.rate-cta__stars svg { width: 100%; height: 100%; fill: none; stroke: #9aa0a6; stroke-width: 1.4; transition: fill .15s, stroke .15s; }
.rate-cta__stars button.lit svg { fill: var(--star); stroke: var(--star); }

/* ---------- Topics ---------- */
.chips {
  display: flex; gap: 8px; padding: 16px 16px 8px;
  margin: 0 -16px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-padding: 0 16px;
}
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; white-space: nowrap; }
.chip {
  height: 32px; padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #dadce0;
  font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .2s, border-color .2s, color .2s;
  animation: pop .4s var(--spring) both;
  animation-delay: calc(var(--i) * .035s + .4s);
}
.chip b { font-weight: 400; color: var(--muted); }
.chip:hover { background: var(--surface-2); }
.chip.on { background: var(--blue-soft); border-color: transparent; color: var(--blue-dark); }
.chip.on b { color: inherit; }
.chip--all { color: var(--blue-dark); }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; gap: 8px; align-items: center; padding: 8px 0 12px; border-bottom: 1px solid var(--line); }
.search {
  flex: 1; display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  border-radius: 20px;
  border: 1px solid #dadce0;
  color: var(--muted);
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
/* 16px evita el zoom automático de iOS al enfocar */
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--text); }
.sort { position: relative; }
.sort__btn {
  height: 40px; display: flex; align-items: center; gap: 6px;
  padding: 0 14px; border-radius: 20px;
  border: 1px solid #dadce0;
  font-weight: 500; color: var(--blue-dark);
  white-space: nowrap;
}
.sort__btn:hover { background: var(--blue-soft); }
.sort__menu {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 25;
  list-style: none; margin: 0; padding: 8px 0;
  min-width: 220px;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(60, 64, 67, .15), 0 8px 24px rgba(60, 64, 67, .2);
  opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top right;
  pointer-events: none;
  transition: opacity .15s, transform .2s var(--ease);
}
.sort.open .sort__menu { opacity: 1; transform: none; pointer-events: auto; }
.sort__menu li { padding: 10px 20px; cursor: pointer; }
.sort__menu li:hover { background: var(--surface-2); }
.sort__menu li.on { color: var(--blue); background: var(--blue-soft); }

/* ---------- Reviews ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.review { padding: 18px 0; border-bottom: 1px solid var(--line); animation: up .5s var(--ease) both; animation-delay: calc(var(--i, 0) * .045s); }
.review.fresh { animation: fresh 2s var(--ease) both; }
.review__head { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 36px; height: 36px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c); color: #fff;
  font-weight: 500; font-size: 16px;
}
.review__who { flex: 1; min-width: 0; }
.review__name { font-weight: 500; }
.review__meta { font-size: 12px; color: var(--muted); }
.guide { display: inline-flex; align-items: center; gap: 3px; }
.guide::before { content: "★"; color: #e37400; font-size: 11px; }
.more-btn { width: 32px; height: 32px; border-radius: 50%; color: var(--muted); font-size: 18px; }
.more-btn:hover { background: var(--surface-2); }
.review__rate { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; font-size: 12px; color: var(--muted); }
.new-badge { color: var(--blue); font-weight: 500; }
.review__text { white-space: pre-line; line-height: 20px; }
.review__text.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.review__text mark { background: #fef7e0; color: inherit; font-weight: 500; }
.expand { color: var(--blue-dark); font-weight: 500; padding: 2px 0; }
.attrs { margin-top: 8px; font-size: 13px; line-height: 20px; }
.attrs b { font-weight: 500; }
.photos { display: flex; gap: 4px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.photo {
  width: 96px; height: 96px; flex: none; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--g);
  overflow: hidden;
  transition: transform .3s var(--spring);
  cursor: pointer;
}
.photo:hover { transform: scale(1.04); }
.review__actions { display: flex; gap: 8px; margin-top: 12px; }
.like {
  height: 36px; display: inline-flex; align-items: center; gap: 6px;
  padding: 0 14px; border-radius: 18px;
  border: 1px solid #dadce0;
  font-size: 13px; font-weight: 500; color: #3c4043;
  transition: background .2s, color .2s, border-color .2s;
}
.like:hover { background: var(--surface-2); }
.like svg { transition: transform .4s var(--spring); }
.like.on { color: var(--blue-dark); border-color: transparent; background: var(--blue-soft); }
.like.on svg { transform: rotate(-12deg) scale(1.15); fill: currentColor; }
.owner { margin-top: 12px; padding: 12px 14px; border-radius: 8px; background: var(--surface-2); }
.owner__head { font-weight: 500; margin-bottom: 2px; }
.owner__head span { font-weight: 400; color: var(--muted); font-size: 12px; }
.owner p { color: #3c4043; }

.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.empty svg { display: block; margin: 0 auto 8px; }
.photo .ico { width: 34px; height: 34px; }
.footer { padding: 24px 0 8px; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------- Writer ---------- */
.writer { position: fixed; inset: 0; z-index: 50; visibility: hidden; }
.writer__scrim { position: absolute; inset: 0; background: rgba(32, 33, 36, .6); opacity: 0; transition: opacity .3s; }
.writer__card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: var(--surface);
  transform: translateY(100%);
  transition: transform .45s var(--ease);
}
.writer.open { visibility: visible; }
.writer.open .writer__scrim { opacity: 1; }
.writer.open .writer__card { transform: none; }
.writer__top {
  display: flex; align-items: center; gap: 8px;
  padding: max(8px, env(safe-area-inset-top)) 12px 8px 4px;
  border-bottom: 1px solid var(--line);
}
.writer__place { flex: 1; min-width: 0; }
.writer__place h3 { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-btn {
  height: 36px; padding: 0 22px; border-radius: 18px;
  background: var(--blue); color: #fff; font-weight: 500;
  transition: background .2s, opacity .2s, box-shadow .2s;
}
.post-btn:hover:not(:disabled) { background: var(--blue-dark); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.post-btn:disabled { background: #e8eaed; color: #9aa0a6; cursor: default; }
.post-btn--block { width: 100%; margin-top: 20px; }
.writer__body { padding: 20px 20px calc(32px + var(--safe-b)); overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.writer__card { height: 100dvh; }
.writer__user { display: flex; align-items: center; gap: 12px; }
.writer__name { font-weight: 500; font-size: 15px; }
.info-dot { cursor: help; }

.picker { display: flex; justify-content: center; gap: clamp(4px, 2.5vw, 10px); margin-top: 24px; }
.picker button { width: clamp(42px, 13vw, 52px); height: clamp(42px, 13vw, 52px); transition: transform .3s var(--spring); }
.picker button svg { width: 100%; height: 100%; fill: none; stroke: #5f6368; stroke-width: 1.3; transition: fill .12s, stroke .12s; }
.picker button.lit svg { fill: var(--star); stroke: var(--star); }
.picker button:hover { transform: scale(1.12); }
.picker button.boom { animation: boom .45s var(--spring) both; }
.picker__hint { text-align: center; color: var(--text); font-size: 15px; margin: 8px 0 22px; min-height: 22px; transition: opacity .2s; }

.field { position: relative; margin-bottom: 16px; }
.field input, .field textarea {
  width: 100%; padding: 16px 14px 10px;
  border: 1px solid #dadce0; border-radius: 4px;
  font: inherit; font-size: 16px; color: var(--text); background: var(--surface);
  resize: vertical; outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 128px; padding-top: 22px; }
.field label {
  position: absolute; left: 10px; top: 14px; padding: 0 4px;
  color: var(--muted); font-size: 15px; background: var(--surface);
  pointer-events: none;
  max-width: calc(100% - 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: transform .18s var(--ease), font-size .18s, color .18s, top .18s;
}
.field input:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label {
  top: -8px; font-size: 12px;
}
.field input:focus + label, .field textarea:focus + label { color: var(--blue); }

.attr-pickers { display: grid; gap: 14px; margin: 8px 0 20px; }
.attr-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.attr-row span { font-weight: 500; }
.seg { display: flex; gap: 6px; }
.seg button {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid #dadce0; font-size: 13px; color: #3c4043;
  transition: background .15s, color .15s, border-color .15s, transform .25s var(--spring);
}
.seg button:hover { background: var(--surface-2); }
.seg button.on { background: var(--blue); color: #fff; border-color: var(--blue); transform: scale(1.08); }

.add-photos {
  width: 100%; height: 44px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 22px; border: 1px solid #dadce0;
  color: var(--blue-dark); font-weight: 500;
}
.add-photos:hover { background: var(--blue-soft); }

/* ---------- Success ---------- */
.success {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center; padding: 24px;
  background: rgba(32, 33, 36, .6);
  visibility: hidden; opacity: 0;
  transition: opacity .3s, visibility .3s;
}
.success.open { visibility: visible; opacity: 1; }
.success__card {
  width: min(360px, 100%);
  background: var(--surface); border-radius: 24px;
  padding: 32px 24px 24px; text-align: center;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .3);
  transform: scale(.85); transition: transform .5s var(--spring);
}
.success.open .success__card { transform: none; }
.success__card h3 { font-size: 22px; margin: 16px 0 6px; }
.success__stars { display: flex; justify-content: center; gap: 4px; margin-top: 16px; }
.success__stars svg { width: 28px; height: 28px; fill: var(--star); animation: starIn .5s var(--spring) both; }
.check { width: 72px; height: 72px; }
.check circle { fill: none; stroke: var(--green); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; }
.check path { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; }
.success.open .check circle { animation: dash .6s var(--ease) .15s forwards; }
.success.open .check path { animation: dash .4s var(--ease) .65s forwards; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i {
  position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px;
  animation: fall var(--t) linear var(--d) forwards;
}

/* toast */
.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 80;
  padding: 14px 20px; border-radius: 4px;
  background: #323232; color: #fff; font-size: 14px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, .2), 0 6px 10px rgba(0, 0, 0, .14);
  transform: translate(-50%, 160%); opacity: 0;
  transition: transform .4s var(--ease), opacity .25s;
  max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Keyframes ---------- */
@keyframes up { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { from { opacity: 0; transform: scale(.85); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
@keyframes starIn { from { transform: scale(0) rotate(-90deg); opacity: 0; } }
@keyframes boom { 40% { transform: scale(1.35) rotate(14deg); } }
@keyframes drop { 0% { transform: translateY(-160px) scaleY(1.1); opacity: 0; } 60% { transform: translateY(0) scaleY(.9); opacity: 1; } 80% { transform: scaleY(1.05); } }
@keyframes ripple { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes mapIn { from { transform: scale(1.15); filter: blur(6px); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } }
@keyframes sheetUp { from { transform: translateY(60vh); } }
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes fall { to { transform: translate(var(--x), 110vh) rotate(var(--r)); } }
@keyframes fresh {
  0% { opacity: 0; transform: translateY(-12px); background: var(--blue-soft); }
  25% { opacity: 1; transform: none; background: var(--blue-soft); }
  100% { background: transparent; }
}

/* ---------- Desktop: panel lateral + mapa ---------- */
@media (min-width: 900px) {
  .map { height: 100vh; left: var(--sheet-w); }
  .searchbar { left: 16px; right: auto; width: calc(var(--sheet-w) - 32px); top: 12px; }
  .sheet {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: var(--sheet-w);
    margin: 0; border-radius: 0;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, .25);
    animation: panelIn .7s var(--ease) both;
  }
  .sheet::before {
    content: ""; display: block; height: 72px;
    position: sticky; top: 0; z-index: 21;
    background: var(--surface);
  }
  .sheet__handle { display: none; }
  .tabs { top: 72px; }
  .writer__card {
    inset: auto; left: 50%; top: 50%;
    width: 560px; max-height: calc(100vh - 48px);
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, .3);
    transform: translate(-50%, -45%) scale(.96); opacity: 0;
    transition: transform .4s var(--spring), opacity .25s;
  }
  .writer.open .writer__card { transform: translate(-50%, -50%); opacity: 1; }
  .writer__card { height: auto; }
  .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 16px 0 8px; }
  .writer__top { padding-top: 8px; }
  @keyframes panelIn { from { transform: translateX(-100%); } }
}

/* ---------- Teléfonos ---------- */
@media (max-width: 380px) {
  main { padding-inline: 14px; }
  .info, .actions { padding-inline: 14px; }
  .gallery { padding-inline: 14px; }
  .chips { margin-inline: -14px; padding-inline: 14px; }
  .summary { gap: 14px; }
  .score { min-width: 76px; }
  .score__num { font-size: 40px; line-height: 44px; }
  .act { min-width: 56px; font-size: 11px; }
  .sort__btn { padding: 0 10px; }
  .writer__body { padding-inline: 16px; }
  .attr-row span { font-size: 13px; }
  .seg { gap: 4px; }
  .seg button { width: 34px; height: 34px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  :root { --map-h: 120px; }
  .searchbar { height: 42px; }
}
@media (hover: none) {
  .photo:hover, .act:hover .act__icon, .picker button:hover, .rate-cta__stars button:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
