@charset "UTF-8";
/* TusReformas — sistema visual compartido. Sin dependencias externas.
   Contrato: tr-shell > tr-sidebar + tr-main. En móvil, el controlador
   de navegación aplica .is-nav-open al shell y sincroniza aria-expanded,
   inert, foco y Escape. Los estilos no sustituyen ese comportamiento. */
:root {
  color-scheme: light;
  --tr-bg: #f6f5f1; --tr-surface: #fff; --tr-soft: #eeeee8;
  --tr-ink: #252e29; --tr-muted: #59645e; --tr-border: #d5dad4;
  --tr-brand: #285b48; --tr-brand-hover: #1c4535; --tr-brand-soft: #e5eee8;
  --tr-accent: #a05b37; --tr-focus: #326fa2;
  --tr-success: #216144; --tr-success-bg: #e7f3eb;
  --tr-warning: #80500e; --tr-warning-bg: #fff2d8;
  --tr-danger: #a22932; --tr-danger-bg: #fce9e9;
  --tr-info: #275b82; --tr-info-bg: #e9f2f8;
  --tr-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tr-display: Georgia, "Times New Roman", serif;
  --tr-xs: .8125rem; --tr-sm: .875rem; --tr-base: 1rem;
  --tr-radius: 8px; --tr-radius-lg: 12px;
  --tr-shadow: 0 2px 8px rgba(32,45,38,.06);
  --tr-sidebar-width: 264px; --tr-header-height: 72px; --tr-content-width: 1440px;
  --tr-space-1: 4px; --tr-space-2: 8px; --tr-space-3: 12px; --tr-space-4: 16px;
  --tr-space-5: 24px; --tr-space-6: 32px; --tr-space-7: 48px; --tr-space-8: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--tr-bg); color: var(--tr-ink); font: 400 1rem/1.6 var(--tr-font); overflow-wrap: anywhere; }
[hidden] { display: none !important; }
img, video, canvas { max-width: 100%; height: auto; }
svg { vertical-align: middle; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--tr-brand); text-underline-offset: .18em; }
a:hover { color: var(--tr-brand-hover); }
:focus-visible { outline: 3px solid var(--tr-focus); outline-offset: 3px; }
h1,h2,h3,h4,h5,h6 { margin: 0 0 .6em; line-height: 1.2; font-weight: 650; letter-spacing: -.025em; }
h1 { font-size: clamp(1.8rem, 3vw, 2.65rem); } h2 { font-size: clamp(1.35rem, 2vw, 1.85rem); }
h3 { font-size: 1.2rem; } h4 { font-size: 1.05rem; } h5,h6 { font-size: 1rem; }
p { margin: 0 0 1em; } p:last-child { margin-bottom: 0; }
hr { border: 0; border-top: 1px solid var(--tr-border); margin: 24px 0; }
small { font-size: var(--tr-xs); } strong { font-weight: 650; }
.tr-display { font-family: var(--tr-display); font-weight: 400; letter-spacing: -.035em; }
.tr-muted { color: var(--tr-muted); } .tr-small { font-size: var(--tr-sm); }
.tr-numeric { font-variant-numeric: tabular-nums; } .tr-text-right { text-align: right; }
.tr-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.tr-skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-200%); z-index: 200; background: white; padding: 12px 16px; }
.tr-skip-link:focus { transform: none; }
/* Distribución */
.tr-container { width: min(100% - 48px, 1240px); margin-inline: auto; }
.tr-section { padding-block: clamp(40px, 6vw, 88px); }
.tr-section--white { background: var(--tr-surface); }
.tr-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tr-stack--tight { gap: 8px; } .tr-stack--large { gap: 32px; }
.tr-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.tr-row--between { justify-content: space-between; }
.tr-grid { display: grid; gap: 20px; min-width: 0; }
.tr-grid--2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.tr-grid--3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.tr-grid--4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.tr-grid--auto { grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); }
.tr-span-all { grid-column: 1 / -1; } .tr-grow { flex: 1 1 0; min-width: 0; }
.tr-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.tr-page-heading h1 { margin-bottom: 6px; } .tr-page-heading p { color: var(--tr-muted); }
.tr-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style: none; padding: 0; margin: 0 0 20px; color: var(--tr-muted); font-size: var(--tr-sm); }
.tr-breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--tr-muted); }
/* Acciones */
.tr-btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 10px 17px; border: 1px solid transparent; border-radius: var(--tr-radius); background: var(--tr-brand); color: white; text-decoration: none; font-weight: 650; font-size: var(--tr-sm); line-height: 1.4; text-align: center; transition: background-color .15s, border-color .15s; }
.tr-btn:hover { background: var(--tr-brand-hover); color: white; }
.tr-btn--secondary { background: var(--tr-surface); color: var(--tr-ink); border-color: var(--tr-border); }
.tr-btn--secondary:hover { background: var(--tr-soft); color: var(--tr-ink); }
.tr-btn--ghost { background: transparent; color: var(--tr-brand); }
.tr-btn--ghost:hover { background: var(--tr-brand-soft); color: var(--tr-brand-hover); }
.tr-btn--danger { background: var(--tr-danger); } .tr-btn--danger:hover { background: #831c25; }
.tr-btn--small { min-height: 36px; padding: 7px 12px; } .tr-btn--large { min-height: 52px; padding: 12px 22px; font-size: 1rem; }
.tr-btn--block { width: 100%; } .tr-btn--icon { width: 44px; padding: 0; flex-shrink: 0; }
.tr-btn:disabled, .tr-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.tr-icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* Paneles y tarjetas */
.tr-card { background: var(--tr-surface); border: 1px solid var(--tr-border); border-radius: var(--tr-radius-lg); padding: 24px; min-width: 0; }
.tr-card--compact { padding: 16px; } .tr-card--flush { padding: 0; }
.tr-card__header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px; }
.tr-card__header h2, .tr-card__header h3 { margin: 0; }
.tr-card__body { min-width: 0; } .tr-card__footer { border-top: 1px solid var(--tr-border); padding-top: 16px; margin-top: 20px; }
.tr-card--flush > .tr-card__body, .tr-card--flush > .tr-card__header, .tr-card--flush > .tr-card__footer { padding: 20px; margin: 0; }
.tr-card__media { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--tr-radius-lg) var(--tr-radius-lg) 0 0; }
.tr-card--link { display: block; color: inherit; text-decoration: none; transition: border-color .15s; }
.tr-card--link:hover { color: inherit; border-color: var(--tr-brand); }
.tr-stat { padding: 20px; background: white; border: 1px solid var(--tr-border); border-radius: var(--tr-radius); }
.tr-stat__label { color: var(--tr-muted); font-size: var(--tr-sm); }
.tr-stat__value { font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 650; line-height: 1.2; margin-block: 8px; font-variant-numeric: tabular-nums; }
.tr-empty { padding: 40px 24px; text-align: center; border: 1px dashed var(--tr-border); border-radius: var(--tr-radius-lg); background: white; }
.tr-empty p { max-width: 48ch; margin-inline: auto; color: var(--tr-muted); }
/* Formularios */
.tr-form { display: grid; gap: 20px; }
.tr-field { display: grid; gap: 6px; min-width: 0; }
.tr-label, .tr-field > label, .tr-fieldset legend { font-weight: 650; font-size: var(--tr-sm); }
.tr-input, .tr-select, .tr-textarea { display: block; width: 100%; min-width: 0; min-height: 44px; border: 1px solid #aeb9b0; border-radius: var(--tr-radius); background: white; padding: 10px 12px; line-height: 1.5; font-size: 1rem; }
.tr-input::placeholder, .tr-textarea::placeholder { color: #69756d; opacity: 1; }
.tr-textarea { min-height: 120px; resize: vertical; }
.tr-input:focus, .tr-select:focus, .tr-textarea:focus { border-color: var(--tr-brand); }
.tr-input[aria-invalid="true"], .tr-select[aria-invalid="true"], .tr-textarea[aria-invalid="true"] { border-color: var(--tr-danger); }
.tr-input:disabled, .tr-select:disabled, .tr-textarea:disabled, .tr-input[readonly] { background: var(--tr-soft); }
.tr-help { font-size: var(--tr-xs); color: var(--tr-muted); } .tr-error { color: var(--tr-danger); font-size: var(--tr-sm); }
.tr-fieldset { border: 1px solid var(--tr-border); border-radius: var(--tr-radius); padding: 16px; min-width: 0; margin: 0; }
.tr-check { display: flex; align-items: flex-start; gap: 10px; padding-block: 6px; }
.tr-check input { accent-color: var(--tr-brand); width: 18px; height: 18px; margin: 4px 0 0; flex: 0 0 auto; }
.tr-upload { padding: 24px; border: 1px dashed #87998c; border-radius: var(--tr-radius-lg); background: var(--tr-brand-soft); text-align: center; }
.tr-upload input[type="file"] { max-width: 100%; }
.tr-input::file-selector-button { font: inherit; border: 0; border-radius: 4px; padding: 5px 10px; background: var(--tr-soft); margin-right: 10px; cursor: pointer; }
/* Tablas y estados */
.tr-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--tr-border); border-radius: var(--tr-radius); background: white; }
.tr-table { width: 100%; border-collapse: collapse; font-size: var(--tr-sm); text-align: left; }
.tr-table caption { text-align: left; padding: 12px 16px; font-weight: 650; }
.tr-table th, .tr-table td { padding: 13px 16px; border-bottom: 1px solid var(--tr-border); vertical-align: middle; }
.tr-table th { background: #f0f2ee; font-weight: 650; white-space: nowrap; }
.tr-table tbody tr:last-child td { border-bottom: 0; }
.tr-table tbody tr:hover { background: #fafbf9; } .tr-table .tr-numeric { white-space: nowrap; text-align: right; }
.tr-status { display: inline-flex; align-items: center; gap: 6px; border-radius: 5px; padding: 3px 8px; font-size: var(--tr-xs); font-weight: 650; background: var(--tr-soft); color: var(--tr-muted); }
.tr-status--success, .tr-alert--success { background: var(--tr-success-bg); color: var(--tr-success); }
.tr-status--warning, .tr-alert--warning { background: var(--tr-warning-bg); color: var(--tr-warning); }
.tr-status--danger, .tr-alert--danger { background: var(--tr-danger-bg); color: var(--tr-danger); }
.tr-status--info, .tr-alert--info { background: var(--tr-info-bg); color: var(--tr-info); }
.tr-alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid currentColor; border-radius: var(--tr-radius); }
.tr-alert p { margin: 0; }
.tr-progress { display: block; width: 100%; height: 8px; border: 0; border-radius: 8px; overflow: hidden; background: var(--tr-soft); accent-color: var(--tr-brand); }
.tr-progress::-webkit-progress-bar { background: var(--tr-soft); } .tr-progress::-webkit-progress-value { background: var(--tr-brand); } .tr-progress::-moz-progress-bar { background: var(--tr-brand); }
.tr-spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: tr-spin .8s linear infinite; }
@keyframes tr-spin { to { transform: rotate(360deg); } }
.tr-skeleton { min-height: 1em; border-radius: 4px; background: var(--tr-soft); }
/* Navegación de paneles */
.tr-shell { min-height: 100vh; display: grid; grid-template-columns: var(--tr-sidebar-width) minmax(0,1fr); align-items: start; }
.tr-sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; min-width: 0; background: #fdfdfb; border-right: 1px solid var(--tr-border); }
.tr-sidebar__brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; min-height: var(--tr-header-height); border-bottom: 1px solid var(--tr-border); flex-shrink: 0; }
.tr-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 1.35rem; letter-spacing: -.045em; font-weight: 750; text-decoration: none; color: var(--tr-brand); }
.tr-brand { max-width: 100%; min-width: 0; }
.tr-brand img { display: block; width: 240px; max-width: 100%; height: auto; object-fit: contain; }
.tr-sidebar__brand .tr-brand { flex: 1 1 auto; }
.tr-sidebar__brand .tr-brand img { width: 180px; }
.tr-auth__card .tr-brand { align-self: flex-start; }
.tr-footer .tr-brand { background: #fff; padding: 8px 12px; border-radius: var(--tr-radius); }
.tr-footer .tr-brand img { width: 210px; }
.tr-public-header__inner > .tr-brand { flex: 0 1 240px; }
@media (max-width: 900px) {
  .tr-sidebar__brand .tr-brand img { width: 168px; }
  .tr-public-header__inner > .tr-brand { flex-basis: 180px; }
}
@media (max-width: 600px) {
  .tr-public-header__inner > .tr-brand { flex-basis: 150px; }
  .tr-auth__card .tr-brand img { width: 210px; }
  .tr-footer .tr-brand img { width: 180px; }
}
.tr-sidebar__nav { flex: 1; overflow-y: auto; padding: 16px 12px; overscroll-behavior: contain; }
.tr-sidebar__footer { border-top: 1px solid var(--tr-border); padding: 14px 16px; flex-shrink: 0; }
.tr-nav-group { margin: 0 0 12px; } .tr-nav-group:last-child { margin-bottom: 0; }
.tr-nav-group__label { color: var(--tr-muted); font-size: var(--tr-xs); font-weight: 650; padding: 8px 10px; margin: 0; }
.tr-nav-group > summary { cursor: pointer; list-style-position: inside; }
.tr-nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tr-nav-link { display: flex; gap: 10px; align-items: center; min-height: 42px; padding: 9px 10px; border-radius: 6px; text-decoration: none; color: var(--tr-muted); font-size: var(--tr-sm); line-height: 1.4; }
.tr-nav-link:hover { background: var(--tr-soft); color: var(--tr-ink); }
.tr-nav-link.is-active, .tr-nav-link[aria-current="page"] { background: var(--tr-brand-soft); color: var(--tr-brand-hover); font-weight: 700; box-shadow: inset 3px 0 var(--tr-brand); }
.tr-main { min-width: 0; } .tr-topbar { position: sticky; top: 0; z-index: 20; background: white; border-bottom: 1px solid var(--tr-border); min-height: var(--tr-header-height); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 28px; }
.tr-content { max-width: var(--tr-content-width); margin-inline: auto; padding: 28px; }
.tr-nav-toggle, .tr-nav-close, .tr-nav-overlay { display: none; }
.tr-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--tr-border); overflow-x: auto; margin-bottom: 20px; }
.tr-tab { flex-shrink: 0; padding: 12px 2px; background: transparent; border: 0; border-bottom: 3px solid transparent; text-decoration: none; color: var(--tr-muted); font-size: var(--tr-sm); }
.tr-tab[aria-selected="true"], .tr-tab[aria-current="page"], .tr-tab.is-active { color: var(--tr-brand); border-bottom-color: var(--tr-brand); font-weight: 650; }
.tr-pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; list-style: none; padding: 0; }
.tr-pagination a, .tr-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 6px; border: 1px solid var(--tr-border); border-radius: 6px; text-decoration: none; }
.tr-pagination [aria-current="page"] { color: white; background: var(--tr-brand); border-color: var(--tr-brand); }
/* Web pública */
.tr-public-header { background: white; border-bottom: 1px solid var(--tr-border); }
.tr-public-header__inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tr-public-nav { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.tr-public-nav a:not(.tr-btn) { font-size: var(--tr-sm); text-decoration: none; color: var(--tr-ink); }
.tr-public-nav a:not(.tr-btn):hover { color: var(--tr-brand); text-decoration: underline; }
.tr-public-toggle { display: none; }
.tr-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(28px,5vw,72px); align-items: center; padding-block: clamp(40px,6vw,84px); }
.tr-hero h1 { font-family: var(--tr-display); font-weight: 400; font-size: clamp(2.6rem,5vw,4.6rem); line-height: 1.05; letter-spacing: -.045em; }
.tr-hero p { font-size: clamp(1rem,1.4vw,1.18rem); color: var(--tr-muted); max-width: 50ch; }
.tr-hero__media { display: block; width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--tr-radius-lg); }
.tr-section-heading { max-width: 72ch; margin-bottom: 28px; }
.tr-section-heading h2 { font-family: var(--tr-display); font-weight: 400; font-size: clamp(1.9rem,3.3vw,2.8rem); }
.tr-footer { background: #263b32; color: #f2f4ee; padding-block: 48px 24px; }
.tr-footer a { color: #f2f4ee; } .tr-footer .tr-muted { color: #c4d1c8; }
.tr-footer__bottom { border-top: 1px solid #607367; margin-top: 32px; padding-top: 20px; font-size: var(--tr-sm); }
.tr-auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.tr-auth__card { width: min(100%,460px); }
.tr-prose { max-width: 78ch; line-height: 1.75; }
.tr-prose h2, .tr-prose h3 { margin-top: 1.7em; }
.tr-prose img { border-radius: var(--tr-radius); }
.tr-prose figure { margin: 24px 0; } .tr-prose figcaption { color: var(--tr-muted); font-size: var(--tr-sm); }
.tr-prose blockquote { border-left: 3px solid var(--tr-brand); padding: 4px 20px; margin: 24px 0; color: var(--tr-muted); }
.tr-prose pre { overflow: auto; padding: 16px; background: var(--tr-soft); border-radius: var(--tr-radius); }
.tr-faq { border-bottom: 1px solid var(--tr-border); padding: 16px 0; } .tr-faq summary { font-weight: 650; cursor: pointer; } .tr-faq[open] summary { margin-bottom: 12px; }
/* Herramientas: documentos, diseño, mediciones, IA y créditos */
.tr-media-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,180px),1fr)); gap: 16px; }
.tr-media-tile { background: white; border: 1px solid var(--tr-border); border-radius: var(--tr-radius); min-width: 0; overflow: hidden; }
.tr-media-tile img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.tr-media-tile__body { padding: 12px; }
.tr-comparison { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.tr-comparison figure { margin: 0; min-width: 0; } .tr-comparison img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: var(--tr-soft); border-radius: var(--tr-radius); }
.tr-comparison figcaption { font-size: var(--tr-sm); color: var(--tr-muted); margin-top: 6px; }
.tr-step-list { display: flex; gap: 12px; list-style: none; margin: 0 0 24px; padding: 0; flex-wrap: wrap; }
.tr-step { display: flex; align-items: center; gap: 8px; color: var(--tr-muted); font-size: var(--tr-sm); }
.tr-step__number { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--tr-border); border-radius: 50%; font-weight: 650; background: white; }
.tr-step[aria-current="step"] { color: var(--tr-brand); font-weight: 650; } .tr-step[aria-current="step"] .tr-step__number { background: var(--tr-brand); color: white; border-color: var(--tr-brand); }
.tr-chat { display: grid; gap: 16px; }
.tr-message { max-width: min(100%,76ch); padding: 14px 18px; border: 1px solid var(--tr-border); border-radius: var(--tr-radius); background: white; }
.tr-message--user { justify-self: end; background: var(--tr-brand-soft); border-color: #c5d7cb; }
.tr-credit-balance { display: grid; gap: 12px; }
.tr-credit-balance__amount { font-size: 1.8rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.tr-price { font-size: 1.75rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.tr-timeline { list-style: none; padding: 0 0 0 14px; margin: 0; border-left: 2px solid var(--tr-border); }
.tr-timeline li { position: relative; padding: 0 0 24px 10px; } .tr-timeline li::before { content: ''; position: absolute; left: -21px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--tr-brand); border: 2px solid white; }
.tr-timeline li:last-child { padding-bottom: 0; }
/* Diálogos nativos: abrir con showModal(), cerrar con close(). */
.tr-dialog { width: min(calc(100% - 32px),640px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid var(--tr-border); border-radius: var(--tr-radius-lg); color: var(--tr-ink); background: white; overflow: auto; }
.tr-dialog::backdrop { background: rgba(25,38,31,.55); }
.tr-dialog__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (max-width: 1100px) { .tr-grid--4 { grid-template-columns: repeat(2,minmax(0,1fr)); } .tr-grid--3 { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 900px) {
  .tr-shell { display: block; }
  .tr-sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: min(var(--tr-sidebar-width),calc(100% - 48px)); z-index: 60; transform: translateX(-105%); visibility: hidden; transition: transform .18s ease, visibility .18s; }
  .tr-shell.is-nav-open .tr-sidebar { transform: none; visibility: visible; }
  .tr-nav-toggle, .tr-nav-close { display: inline-flex; }
  .tr-shell.is-nav-open .tr-nav-overlay { display: block; position: fixed; inset: 0; background: rgba(25,38,31,.5); border: 0; z-index: 50; }
  .tr-shell.is-nav-open { overflow: hidden; }
  .tr-topbar { padding: 10px 16px; } .tr-content { padding: 24px; }
  .tr-public-header__inner { flex-wrap: wrap; padding-block: 12px; min-height: 64px; }
  .tr-public-toggle { display: inline-flex; } .tr-public-nav { display: none; width: 100%; }
  .tr-public-header.is-nav-open .tr-public-nav { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .tr-public-nav a:not(.tr-btn) { padding: 8px 0; }
  .tr-hero { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 600px) {
  .tr-container { width: calc(100% - 32px); } .tr-content { padding: 16px; }
  .tr-grid--2,.tr-grid--3,.tr-grid--4 { grid-template-columns: minmax(0,1fr); }
  .tr-card { padding: 16px; } .tr-card--flush { padding: 0; }
  .tr-page-heading { gap: 12px; } .tr-page-heading > .tr-row { width: 100%; }
  .tr-table th,.tr-table td { padding: 10px 12px; }
  .tr-comparison { grid-template-columns: minmax(0,1fr); }
  .tr-topbar { gap: 8px; } .tr-topbar .tr-row { gap: 6px; }
  .tr-dialog { padding: 16px; } .tr-dialog__actions .tr-btn { flex: 1 1 120px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media print { body { background: white; color: black; } .tr-sidebar,.tr-topbar,.tr-public-header,.tr-footer,.tr-no-print,.tr-nav-overlay { display: none !important; } .tr-shell { display: block; } .tr-content,.tr-container { width: 100%; max-width: none; padding: 0; } .tr-card { box-shadow: none; break-inside: avoid; } .tr-table-wrap { overflow: visible; } .tr-table thead { display: table-header-group; } .tr-table tr { break-inside: avoid; } a { color: black; } }


/* Formularios de MiReforma: estilos comunes también sin clases explícitas. */
.tr-content :is(input:not([type]), input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], input[type="datetime-local"], input[type="time"], input[type="month"], input[type="week"], input[type="file"], select, textarea) {
  display: block;
  width: 100%; max-width: 100%; min-width: 0; min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #aeb9b0;
  border-radius: var(--tr-radius);
  background: var(--tr-surface);
  color: var(--tr-ink);
  font: inherit; font-size: 1rem; line-height: 1.5;
  transition: border-color .15s, box-shadow .15s;
}
.tr-content select { padding-right: 28px; }
.tr-content textarea { min-height: 112px; resize: vertical; }
.tr-content :is(input,textarea)::placeholder { color: #69756d; opacity: 1; }
.tr-content :is(input:not([type]), input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]), select, textarea):focus {
  border-color: var(--tr-brand);
  outline: 2px solid var(--tr-focus); outline-offset: 2px;
}
.tr-content :is(input,select,textarea)[aria-invalid="true"] { border-color: var(--tr-danger); }
.tr-content :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea):is(:disabled,[readonly]) { background-color: var(--tr-soft); }
.tr-content input[type="file"]::file-selector-button { font: inherit; border: 0; border-radius: 5px; padding: 6px 10px; background: var(--tr-soft); color: var(--tr-ink); margin-right: 10px; cursor: pointer; }
.tr-content :is(input[type="checkbox"],input[type="radio"]) { accent-color: var(--tr-brand); width: 19px; height: 19px; flex: 0 0 auto; vertical-align: middle; }
.tr-content label:has(> :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea)) { display: grid; gap: 7px; min-width: 0; font-size: var(--tr-sm); font-weight: 650; }
.tr-content label:has(> :is(input[type="checkbox"],input[type="radio"])) { display: flex; align-items: flex-start; gap: 10px; font-size: 1rem; font-weight: 400; }
.tr-content :is(.tr-field, label) > :is(input, select, textarea) { min-width: 0; }
.tr-content input[type="hidden"] { display: none; }
@media (max-width: 600px) {
  .tr-content :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]), select, textarea) { font-size: 16px; }
}

/* Navegación privada de particulares: un único panel desplazable. */
.tr-user-shell > .tr-sidebar { min-height: 0; overflow: hidden; }
.tr-user-shell .tr-sidebar__brand { padding: 10px 14px; min-height: 58px; flex: 0 0 auto; }
.tr-user-shell .tr-sidebar__brand .tr-brand img { width: 158px; max-height: 46px; object-fit: contain; }
.tr-user-shell .tr-sidebar__nav { flex: 1 1 0; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 10px 10px 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
.tr-user-shell .tr-user-nav-group { margin: 3px 0; }
.tr-user-shell .tr-user-nav-summary { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 10px; border-radius: 6px; cursor: pointer; list-style: none; font-size: var(--tr-sm); font-weight: 650; color: var(--tr-ink); }
.tr-user-shell .tr-user-nav-summary::-webkit-details-marker { display: none; }
.tr-user-shell .tr-user-nav-summary::marker { content: ''; }
.tr-user-shell .tr-user-nav-summary:hover, .tr-user-shell .tr-user-nav-group.is-active > summary { background: var(--tr-brand-soft); }
.tr-user-shell .tr-user-nav-summary > span:first-of-type, .tr-user-shell .tr-nav-link > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.tr-user-shell .tr-user-nav-chevron { flex: 0 0 8px; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: 0 4px 4px 0; }
.tr-user-shell details[open] > summary .tr-user-nav-chevron { transform: rotate(225deg); margin-bottom: -4px; }
.tr-user-shell .tr-user-nav-children { margin: 3px 0 5px 13px; padding-left: 5px; border-left: 1px solid var(--tr-border); }
.tr-user-shell .tr-nav-link { min-height: 42px; padding: 8px 10px; gap: 9px; }
.tr-user-shell .tr-nav-link svg, .tr-user-shell .tr-user-nav-summary svg { flex: 0 0 auto; }
.tr-user-shell .tr-user-nav-direct { margin: 3px 0; }
.tr-user-shell .tr-user-nav-logout { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--tr-border); }
.tr-user-shell .tr-user-nav-logout button { border: 0; background: transparent; width: 100%; font: inherit; font-size: var(--tr-sm); text-align: left; cursor: pointer; }
.tr-user-shell .tr-user-nav-logout button:hover { background: var(--tr-soft); }
@media (max-width: 900px) {
  .tr-user-shell > .tr-sidebar { width: min(320px, calc(100vw - 32px)); height: 100vh; height: 100dvh; max-height: 100dvh; }
  .tr-user-shell .tr-sidebar__brand { padding-top: max(10px, env(safe-area-inset-top)); }
  .tr-user-shell .tr-nav-link, .tr-user-shell .tr-user-nav-summary { min-height: 44px; }
}
