:root {
  --cafe: #9A5B34;
  --cafe-hover: #84492A;
  --durazno: #F0A770;
  --salvia: #A9C8A0;
  --crema: #F8F1E7;
  --texto: #4A2E1B;
  --muted: #7A5A44;
  --card: #FFFDF9;
  --linea: #E8D9C5;
  --salvia-suave: #E3EEDF;
  --durazno-suave: #FBE6D3;
  --peligro: #A8402A;
  --radio: 16px;
  --sombra: 0 2px 10px rgba(74, 46, 27, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--crema); color: var(--texto);
  font-family: "Nunito", "Segoe UI Rounded", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.5;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
/* Un título de sección que sigue a una tarjeta, a las cifras o a un grupo de datos necesita aire arriba */
.card + h2, .tiles + h2, .walk + h2, .pills + h2, .note + h2, .docs + h2 { margin-top: 28px; }
p { margin: 0 0 .8em; }
a { color: var(--cafe); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.wrap { width: min(100%, 880px); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 12px; }
.mt { margin-top: 16px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; }

/* Encabezado */
.top { background: var(--crema); border-bottom: 1px solid var(--linea); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; }
.top .row { flex-wrap: nowrap; flex: none; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texto); font-weight: 800; font-size: 1.15rem; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.brand { white-space: nowrap; }
.brand img { width: 38px; height: 38px; flex: none; }
.brand small { font-weight: 700; font-size: .75em; color: var(--muted); }
.who { font-size: .9rem; color: var(--muted); max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px;
  border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none;
  background: var(--cafe); color: #fff; transition: background .15s, transform .05s;
}
.btn:hover { background: var(--cafe-hover); }
.btn:active { transform: scale(.98); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .tab:focus-visible, .pill:focus-visible, .star:focus-visible {
  outline: 3px solid var(--durazno); outline-offset: 2px;
}
.btn.sec { background: var(--durazno); color: var(--texto); }
.btn.sec:hover { background: #E89A5E; }
.btn.ghost { background: transparent; color: var(--cafe); border-color: var(--cafe); }
.btn.ghost:hover { background: var(--durazno-suave); }
.btn.good { background: var(--salvia); color: var(--texto); }
.btn.good:hover { background: #97BB8D; }
.btn.danger { background: transparent; color: var(--peligro); border-color: var(--peligro); }
.btn.danger:hover { background: #F7E3DD; }
.btn.small { min-height: 40px; padding: 6px 14px; font-size: .92rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.card.unread { border-left: 4px solid var(--cafe); }
.linklike { background: none; border: 0; padding: 0; color: var(--cafe); text-decoration: underline; font: inherit; cursor: pointer; }

/* Portada */
.hero { padding-top: 36px; padding-bottom: 8px; }
.hero p.lead { font-size: 1.15rem; max-width: 34em; }
.hero .cta { margin: 18px 0 8px; }
.waves { display: block; width: 100%; height: 96px; margin-top: 18px; border-radius: var(--radio); }
.band { background: var(--salvia-suave); border-radius: var(--radio); padding: 20px; margin: 22px 0; }
.band.peach { background: var(--durazno-suave); }
.grid3 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { background: var(--card); border: 1px solid var(--linea); border-radius: var(--radio); padding: 16px; }
.step .num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--durazno); font-weight: 800; margin-bottom: 8px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--salvia); font-weight: 800; font-size: .8rem; margin-top: 2px; }
footer.foot { padding-top: 28px; padding-bottom: 40px; color: var(--muted); font-size: .9rem; }

/* Tarjetas y formularios */
.card { background: var(--card); border: 1px solid var(--linea); border-radius: var(--radio); padding: 16px; box-shadow: var(--sombra); }
.card + .card { margin-top: 12px; }
.panel { padding-top: 20px; padding-bottom: 48px; }
form.card > * + * { margin-top: 14px; }
label, .label { display: block; font-weight: 700; margin-bottom: 4px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=datetime-local], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--linea); border-radius: 12px; background: #fff; color: var(--texto); font: inherit; font-size: 16px;
}
textarea { min-height: 84px; resize: vertical; }
input[type=file] { width: 100%; padding: 10px; border: 2px dashed var(--linea); border-radius: 12px; background: #fff; color: var(--muted); font: inherit; font-size: .95rem; }
/* Botón "Elegir archivo" con la paleta de la app (igual que .btn) */
input[type=file]::file-selector-button {
  margin-right: 12px; min-height: 40px; padding: 6px 18px; border: 2px solid transparent; border-radius: 999px;
  background: var(--cafe); color: #fff; font: inherit; font-weight: 800; font-size: .92rem; cursor: pointer; transition: background .15s;
}
input[type=file]::file-selector-button:hover { background: var(--cafe-hover); }
input[type=file]::-webkit-file-upload-button { /* Safari y navegadores antiguos */
  margin-right: 12px; min-height: 40px; padding: 6px 18px; border: 2px solid transparent; border-radius: 999px;
  background: var(--cafe); color: #fff; font: inherit; font-weight: 800; font-size: .92rem; cursor: pointer;
}
input[type=file]:focus-visible::file-selector-button { outline: 3px solid var(--durazno); outline-offset: 2px; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.checkline input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--cafe); flex: none; }
.fieldset { border: 1px solid var(--linea); border-radius: 12px; padding: 14px; background: var(--card); }
.fieldset > * + * { margin-top: 12px; }
.error { background: #F7E3DD; color: var(--peligro); border-radius: 12px; padding: 10px 14px; font-weight: 700; }
.note { background: var(--salvia-suave); border-radius: 12px; padding: 12px 14px; }
.note.peach { background: var(--durazno-suave); }
.banner-prueba { position: sticky; top: 0; z-index: 20; background: #b3261e; color: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: .95rem; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.choice span { display: block; text-align: center; padding: 12px; border: 2px solid var(--linea); border-radius: 14px; background: #fff; font-weight: 800; }
.choice span em { display: block; font-style: normal; font-weight: 600; color: var(--muted); font-size: .88rem; }
.choice input:checked + span { border-color: var(--cafe); background: var(--durazno-suave); }
.choice input:focus-visible + span { outline: 3px solid var(--durazno); outline-offset: 2px; }

/* Pestañas */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 2px solid var(--linea); background: var(--card); color: var(--texto); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 800; cursor: pointer; min-height: 44px; }
.tab[aria-current=page] { background: var(--cafe); border-color: var(--cafe); color: #fff; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.pill { border: 2px solid var(--linea); background: var(--card); border-radius: 999px; padding: 4px 14px; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; min-height: 38px; }
.pill[aria-pressed=true] { background: var(--durazno); border-color: var(--durazno); }

/* Insignias */
.badge { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: .82rem; font-weight: 800; white-space: nowrap; }
.badge.sage { background: var(--salvia); }
.badge.peach { background: var(--durazno); }
.badge.cafe { background: var(--cafe); color: #fff; }
.badge.muted { background: #E9DFD2; color: var(--muted); }
.badge.bad { background: #F7E3DD; color: var(--peligro); }
.verified { display: inline-flex; align-items: center; gap: 6px; background: var(--salvia); border-radius: 999px; padding: 2px 12px 2px 8px; font-weight: 800; font-size: .82rem; }
.verified::before { content: "✓"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--texto); color: var(--salvia); font-size: .7rem; }
button.verified { border: 0; font-family: inherit; color: inherit; cursor: pointer; }
button.verified:focus-visible { outline: 3px solid var(--texto); outline-offset: 2px; }

/* Paseos */
.walk h3 { margin: 0; }
.walk .dogline { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.person { display: flex; gap: 10px; align-items: center; }
.person > span { min-width: 0; }
.walk .meta { color: var(--muted); font-size: .95rem; }
.walk dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 10px 0 0; }
.walk dt { color: var(--muted); font-weight: 700; }
.walk dd { margin: 0; overflow-wrap: anywhere; }
.walk .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.price { font-weight: 800; font-size: 1.15rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--salvia); background: var(--salvia-suave); }
.avatar.ph { display: grid; place-items: center; font-weight: 800; }
.fotos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.fotos a { display: block; position: relative; }
.fotos img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; border: 1px solid var(--linea); }
.fotos span { position: absolute; left: 4px; bottom: 4px; background: rgba(74, 46, 27, .85); color: #fff; border-radius: 999px; padding: 0 8px; font-size: .72rem; font-weight: 700; }
.stars { display: inline-flex; gap: 2px; }
.star { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--durazno); padding: 2px; min-width: 40px; min-height: 40px; }
.stars-ro { color: var(--durazno); letter-spacing: 2px; margin: 12px 0 0; }

/* Resumen */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.tile { background: var(--card); border: 1px solid var(--linea); border-radius: var(--radio); padding: 14px; }
.tile b { display: block; font-size: 1.9rem; line-height: 1.1; }
.tile.hot { background: var(--durazno-suave); border-color: var(--durazno); }

/* Modal y aviso */
.modal { position: fixed; inset: 0; background: rgba(74, 46, 27, .55); display: flex; align-items: flex-end; justify-content: center; z-index: 20; padding: 0; overflow-y: auto; }
.modal .sheet { background: var(--crema); width: min(100%, 680px); max-height: 92vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 20px 16px 28px; }
.modal .sheet header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.docs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 12px 0; }
.docs figure { margin: 0; background: var(--card); border: 1px solid var(--linea); border-radius: 12px; padding: 8px; }
.docs img { width: 100%; height: 150px; object-fit: contain; background: #fff; border-radius: 8px; }
.docs figure.video { grid-column: 1 / -1; }
.docs video { width: 100%; max-height: 360px; background: #000; border-radius: 8px; }
.docs figcaption { font-weight: 700; font-size: .88rem; margin-top: 6px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--texto); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; z-index: 30; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.toast.bad { background: var(--peligro); }
.empty { text-align: center; padding: 28px 16px; color: var(--muted); }
.legal h3 { margin-top: 1em; }
.legal p, .legal li { font-size: .95rem; }

@media (min-width: 700px) {
  .modal { align-items: center; padding: 24px; }
  .modal .sheet { border-radius: 22px; }
}
@media (max-width: 520px) { .who { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Zonas, horarios y etiquetas pequeñas */
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--durazno-suave); border: 1px solid var(--linea); border-radius: 999px; padding: 2px 10px; margin: 2px 4px 2px 0; font-weight: 700; font-size: .92rem; }
.chip .linklike { text-decoration: none; font-weight: 800; padding: 4px; min-width: 28px; min-height: 28px; }
.filters { margin: 4px 0; }
.filters summary { cursor: pointer; font-weight: 800; padding: 6px 0; }
.walker-hit h3 { margin-bottom: 2px; }
.qa { border: 0; padding: 0; margin: 0 0 12px; }
.qa legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
