/* Módulo veterinarias. Usa los tokens de app.css. */
.vt-copy[hidden], .row[hidden], .field[hidden], img[hidden] { display: none; }

/* Directorio: el buscador es terreno añil con curvas de nivel. */
.vt-find { background: var(--anil-deep) var(--contour); color: var(--on-dark); border-radius: var(--radius-lg); padding: 28px 20px; margin-bottom: 20px; }
.vt-find h1 { color: #fff; margin: 0 0 .3em; font-size: clamp(1.45rem, 5vw, 2.4rem); line-height: 1.15; max-width: 18ch; }
.vt-find > p { color: var(--on-dark-2); margin: 0 0 20px; }
.vt-find__form { display: grid; gap: 14px; }
.vt-find .field > label { color: var(--on-dark); }
.vt-find input[type=search], .vt-find select { width: 100%; }
.vt-find__checks { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; min-height: 44px; }
.vt-find .check { color: var(--on-dark); align-items: center; }
.vt-find .check input { accent-color: var(--mango); margin-top: 0; }
.vt-count { font-weight: 600; color: var(--ink-2); margin: 0 0 10px; }

.vt-results { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.vt-results li + li { border-top: 1px solid var(--line); }
.vt-result { display: flex; gap: 14px; padding: 16px; color: var(--ink); text-decoration: none; min-width: 0; }
.vt-result:hover { background: var(--niebla); color: var(--ink); }
.vt-result:focus-visible { outline: 3px solid var(--anil); outline-offset: -3px; }
.vt-result__logo { flex: none; width: 60px; height: 60px; border-radius: 14px; object-fit: cover; background: var(--surface-2); }
.vt-result__logo--blank { display: grid; place-items: center; background: var(--anil); color: var(--mango); font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; }
.vt-result__body { display: grid; gap: 3px; min-width: 0; }
.vt-result__name { font-size: 1.05rem; overflow-wrap: anywhere; }
.vt-result__tags { gap: 6px; margin-top: 5px; }

/* Perfil público */
.vt-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--anil-deep) var(--contour); color: #fff; min-height: 220px; display: flex; align-items: flex-end; }
.vt-hero--plain { min-height: 170px; }
.vt-hero__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vt-hero:not(.vt-hero--plain)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,17,71,.92), rgba(15,17,71,.1) 75%); }
.vt-hero__in { position: relative; z-index: 1; display: flex; gap: 14px; align-items: flex-end; padding: 18px; min-width: 0; }
.vt-hero__logo { flex: none; width: 72px; height: 72px; border-radius: 16px; object-fit: cover; background: #fff; border: 3px solid #fff; }
.vt-hero h1 { color: #fff; margin: 0 0 6px; font-size: clamp(1.3rem, 5vw, 2.3rem); line-height: 1.15; overflow-wrap: anywhere; }
.vt-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; color: var(--on-dark-2); }
.vt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 0; }
.vt-actions .btn:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.vt-about { max-width: 68ch; margin: 22px 0 0; white-space: normal; }
.vt-section { margin-top: 30px; }
.vt-section > h2 { margin: 0 0 12px; }

.vt-promos { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.vt-promos li { background: var(--accent-soft); border-radius: var(--radius); overflow: hidden; }
.vt-promos img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.vt-promos li > div { padding: 14px 16px; }
.vt-promos p { margin: 4px 0 0; }

.vt-catalog { list-style: none; margin: 0; padding: 0 16px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.vt-catalog li { display: flex; gap: 12px; align-items: center; padding: 13px 0; min-width: 0; }
.vt-catalog li + li { border-top: 1px solid var(--line); }
.vt-catalog img { flex: none; width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.vt-catalog li > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.vt-catalog p { margin: 2px 0 0; }
.vt-price { flex: none; font-weight: 700; }

.vt-branches { display: grid; gap: 14px; }
.vt-branch { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.vt-branch p { margin: 0 0 4px; overflow-wrap: anywhere; }
.vt-branch__head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.vt-branch__head h3 { margin: 0; font-size: 1.05rem; }
.vt-week { width: 100%; border-collapse: collapse; margin: 12px 0 14px; font-size: .92rem; }
.vt-week th { text-align: left; font-weight: 600; padding: 5px 10px 5px 8px; white-space: nowrap; vertical-align: top; }
.vt-week td { padding: 5px 8px 5px 0; text-align: right; }
.vt-week .is-today { background: var(--accent-soft); font-weight: 700; }
.vt-week .is-today th { border-radius: 6px 0 0 6px; }
.vt-week .is-today td { border-radius: 0 6px 6px 0; }
.vt-map { display: block; width: 100%; height: 280px; border: 0; border-radius: var(--radius-sm); margin-top: 12px; background: var(--surface-2); }

/* Gestión */
.vt-publish { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: var(--radius); background: var(--warn-soft); margin-bottom: 16px; }
.vt-publish.is-live { background: var(--ok-soft); }
.vt-publish p { margin: 2px 0 0; }
.vt-media { display: grid; gap: 18px; }
.vt-media__cover { width: 100%; height: 150px; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); }
.vt-media__logo { width: 96px; height: 96px; object-fit: cover; border-radius: 14px; background: var(--surface-2); }

.vt-split { display: grid; gap: 16px; align-items: start; }
.vt-split > * { min-width: 0; }
.vt-branchlist { display: grid; gap: 8px; }
.vt-branchlist a { display: grid; gap: 3px; padding: 12px 14px; border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); overflow-wrap: anywhere; }
.vt-branchlist a[aria-current] { background: var(--anil); color: #fff; }
.vt-branchlist a[aria-current] .muted { color: var(--on-dark-2); }
.vt-branchlist .row { gap: 6px; }
.vt-branchlist .row:empty { display: none; }

.vt-hours { display: grid; gap: 12px; }
.vt-day { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 12px 0 0; min-width: 0; display: grid; gap: 8px; }
.vt-day legend { font-weight: 700; padding: 0 8px 0 0; }
.vt-shifts { display: grid; gap: 6px; }
.vt-shift { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.vt-shift input { min-width: 0; width: 100%; padding: 8px 6px; font-size: .9rem; }
.form--2 { align-items: start; }
.vt-copy { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 10px 12px; background: var(--niebla); border-radius: var(--radius-sm); }

.vt-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; }
.vt-tabs a { flex: 1 0 auto; justify-content: center; min-height: 44px; display: inline-flex; gap: 4px; align-items: center; padding: 0 8px; border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .86rem; }
.vt-tabs a[aria-current] { background: var(--anil); color: #fff; }

.vt-itemlist { list-style: none; margin: 0; padding: 0 14px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.vt-itemlist li { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px 0; }
.vt-itemlist li + li { border-top: 1px solid var(--line); }
.vt-itemlist li.is-off img, .vt-itemlist li.is-off strong { opacity: .55; }
.vt-itemlist img { flex: none; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.vt-itemlist__body { flex: 1 1 150px; min-width: 0; display: grid; gap: 2px; overflow-wrap: anywhere; }
.vt-itemlist__body .row:empty { display: none; }
.vt-adminact { display: grid; gap: 6px; min-width: 190px; }
.vt-adminact form { display: flex; gap: 6px; align-items: center; }
.vt-adminact select { min-width: 0; flex: 1; }

@media (min-width: 720px) {
  .vt-find { padding: 40px 36px; }
  .vt-find__form { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; align-items: end; }
  .vt-find__checks { grid-column: 1 / 3; grid-row: 2; }
  .vt-find__form .btn { grid-column: 3; grid-row: 1; }
  .vt-hero { min-height: 340px; }
  .vt-hero--plain { min-height: 220px; }
  .vt-hero__in { padding: 28px 32px; gap: 20px; }
  .vt-hero__logo { width: 96px; height: 96px; border-radius: 22px; }
  .vt-actions { display: flex; flex-wrap: wrap; }
  .vt-promos { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .vt-branches { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
  .vt-media { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .vt-split { grid-template-columns: 260px minmax(0, 1fr); }
  .vt-result { align-items: center; padding: 18px 20px; }
  .vt-result__logo { width: 72px; height: 72px; border-radius: 16px; }
}

.vt-day { border-radius: 0; }
@media (max-width: 719px) {
  /* En móvil el selector nativo abre al tocar: el ícono solo le quita espacio a la hora. */
  .vt-shift input::-webkit-calendar-picker-indicator { display: none; }
  .vt-shift .btn { padding-inline: 6px; }
}
.table td:last-child > .row { min-width: 250px; gap: 6px; }
