$1
/* Reset de caja para evitar desbordes en móvil */
*, *::before, *::after { box-sizing: border-box; }

/* Contenedor principal */
.tr-wrap { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; max-width: 1200px; margin: 0 auto; padding: 0 .75rem; }
/* Título principal */
.tr-title { color: var(--tr-primary, #353a3f); font-weight: 700; margin: 0 0 .5rem; }
/* Cabecera */
.tr-head { margin-bottom: 1rem; display: grid; gap: .75rem; }
/* Cabecera: H2 sin bordes/espaciado */
.tr-head H2 { border: none; padding: 0; margin: 0 !important; }

/* ===== Filtros y campos ===== */
/* Contenedor de filtros */
.tr-filters { display: grid; grid-template-columns: 1fr; gap: .5rem; align-items: end; }
/* Campo (wrapper) */
.tr-field { display: flex; flex-direction: column; gap: .25rem; margin-bottom: 12px; }
/* Etiqueta de campo */
.tr-field label { font-size: .85rem; color: #374151; }
/* Controles de texto/select/range */
.tr-field input[type="text"], .tr-field select, .tr-field input[type="range"] { border: 1px solid #e5e7eb; border-radius: 8px; padding: .55rem .7rem; font-size: .95rem; background: #fff; width: 100%; }
/* Campo checkbox (alineación) */
.tr-field--checkbox { align-self: start; }
/* Campo checkbox: label en línea */
.tr-field--checkbox label { display: flex; align-items: center; gap: .4rem; }

/* ===== Acciones ===== */
/* Barra de acciones */
.tr-actions { display: flex; justify-content: stretch; }
/* Botón dentro de acciones (cta/aplicar) */
.tr-actions .tr-btn { width: 100%; background: #da2451; height: 50px; line-height: 50px; padding: 0 24px; font-size: 16px; border-radius: 6px; }

/* ===== Botones genéricos ===== */
/* Botón base */
.tr-btn { background: var(--tr-primary, #353a3f); color: #fff; border: 0; border-radius: 10px; padding: .6rem .9rem; cursor: pointer; }
/* Hover accesible */
.tr-btn:hover { opacity: .9; }
/* Botón marcado como CTA */
.tr-btn--cta { background: var(--tr-cta, #d92551); }
/* Wrapper para CTA secundario */
.tr-cta-wrap { text-align: center; margin-top: 1rem; }

/* ===== Grid de tarjetas ===== */
/* Grid responsive de tarjetas */
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }

/* ===== Tarjeta ===== */
/* Tarjeta contenedor */
.tr-card { border: 1px solid #e5e7eb; border-radius: 14px; padding: .9rem; display: block; background: #fff; position: relative; padding-bottom: 88px; }
/* Logo de la tarjeta */
.tr-logo { max-width: 96px; max-height: 96px; object-fit: contain; margin-bottom: .25rem; }
/* Nombre/comercial */
.tr-name { color: var(--tr-primary, #353a3f); font-size: 1.05rem; margin: 0; }
/* Meta info en fila */
.tr-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .9rem; }
/* Rating (nota: 'size' no es estándar) */
.tr-rating { color: #111827; size: 20px; }
/* Dirección */
.tr-address { color: #4b5563; font-size: .9rem; }
/* Enlace destacado */
.tr-link { color: var(--tr-cta, #d92551); text-decoration: underline; }
/* CTA fijo al fondo (con safe-area) */
.tr-card > .tr-btn--cta { position: absolute; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; margin: 0; text-align: center; display: block; }
/* Evitar solape del enlace "Llamar" con CTA */
.tr-card > .tr-link { display: inline-block; margin-bottom: 12px; }
/* Emoji de teléfono alineado */
.tr-phone-emoji { display: inline-block; margin-right: 6px; vertical-align: -1px; font-size: 1rem; }

/* ===== Theming / Variables ===== */
/* Variable de color CTA ligada al wrapper */
:root .tr-wrap { --tr-cta: #d92551; }

/* ===== Abierto,Cerrado / Badges ===== */
/* Badge circular */
.tr-badge { display: inline-flex !important; align-items: center !important; justify-content: center !important; width: 60px !important; height: 60px !important; padding: 0 !important; border-radius: 50% !important; font-size: .78rem !important; font-weight: 600 !important; line-height: 1 !important; border: 1px solid transparent !important; background: #f8fafc !important; white-space: nowrap !important; }
/* Badge: abierto */
.tr-badge--open { background: #f0fefa !important; border-color: #34d399 !important; color: #065f46 !important; }
/* Badge: cerrado */
.tr-badge--closed { background: #fff1f2 !important; border-color: #fecdd3 !important; color: #b91c1c !important; }

/* ===== Controles: checkbox y range ===== */
/* Accents en controles */
.tr-filters input[type="checkbox"], .tr-filters input[type="range"] { accent-color: var(--tr-cta); }
/* Enfoque accesible */
.tr-filters input[type="text"]:focus, .tr-filters select:focus, .tr-filters input[type="range"]:focus { outline: none; border-color: var(--tr-cta); box-shadow: 0 0 0 3px rgba(217, 37, 81, .18); }
/* Range: fallback WebKit */
.tr-filters input[type="range"] { -webkit-appearance: none; height: 6px; background: #e5e7eb; border-radius: 999px; }
.tr-filters input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: #e5e7eb; border-radius: 999px; }
.tr-filters input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--tr-cta); border: 0; margin-top: -5px; }
/* Range: Firefox */
.tr-filters input[type="range"]::-moz-range-track { height: 6px; background: #e5e7eb; border-radius: 999px; }
.tr-filters input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--tr-cta); }
/* Range: tamaño mayor y centrado (override) */
.tr-filters input[type="range"] { -webkit-appearance: none !important; appearance: none !important; height: 38px !important; }
.tr-filters input[type="range"]::-webkit-slider-runnable-track { height: 8px !important; }
.tr-filters input[type="range"]::-moz-range-track { height: 8px !important; }
.tr-filters input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none !important; width: 22px !important; height: 22px !important; margin-top: -7px !important; }
.tr-filters input[type="range"]::-moz-range-thumb { width: 22px !important; height: 22px !important; }
/* Checkbox: alinear con barra del range */
.tr-field.tr-field--checkbox { display: flex !important; align-items: center !important; padding-top: 29px !important; margin-left: 0 !important; }
/* Checkbox: label inline */
.tr-field.tr-field--checkbox label { display: flex !important; align-items: center !important; gap: 8px !important; margin: 0 !important; font-size: 18px !important; line-height: 1.2 !important; }
/* Checkbox: tamaño mayor */
.tr-field.tr-field--checkbox input[type="checkbox"] { transform: scale(1.7) !important; transform-origin: left center !important; margin-right: 10px !important; vertical-align: middle !important; accent-color: #b38590 !important; }

$1
/* < 640px: evita que el botón absoluto tape contenido dentro de tarjetas */
@media (max-width: 639px) { .tr-card { padding-bottom: 0; } .tr-card > .tr-btn--cta { position: static; left: auto; right: auto; bottom: auto; width: 100%; margin-top: 12px; } }

/* ≥ 480px: filtros en 2 columnas */
@media (min-width: 480px) { .tr-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* ≥ 640px (sm): filtros en 3 columnas; logo y padding de tarjeta */
@media (min-width: 640px) { .tr-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tr-logo { max-width: 110px; max-height: 110px; } .tr-card { padding-bottom: 76px; } }
/* ≥ 768px (md): filtros en 4 columnas; acciones a derecha; CTA ajustado */
@media (min-width: 768px) { .tr-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tr-actions { justify-content: flex-end; } .tr-actions .tr-btn { width: auto; } .tr-logo { max-width: 120px; max-height: 120px; } .tr-card > .tr-btn--cta { left: 16px; right: 16px; bottom: 16px; } .tr-card { padding-bottom: 72px; } }
/* ≥ 1024px (lg): filtros en 6 columnas; tarjetas con min 260px */
@media (min-width: 1024px) { .tr-filters { grid-template-columns: repeat(6, minmax(140px, 1fr)); } .tr-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
/* ≥ 1280px (xl): más aire en grid */
@media (min-width: 1280px) { .tr-grid { gap: 14px; } }
/* Preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) { .tr-btn:hover { opacity: 1; } }