:root {
  --cream: 52 56% 94%;
  --cream-dark: 48 30% 88%;
  --slate: 192 13% 34%;
  --slate-deep: 192 16% 22%;
  --gold: 38 28% 53%;
  --gold-deep: 38 32% 42%;
  --gold-soft: 42 40% 90%;
  --background: var(--cream);
  --foreground: var(--slate-deep);
  --card: 0 0% 100%;
  --card-foreground: var(--slate-deep);
  --muted: 48 25% 92%;
  --muted-foreground: 192 10% 42%;
  --border: 48 18% 82%;
  --input: 48 18% 82%;
  --primary: var(--slate);
  --primary-foreground: var(--cream);
  --secondary: 48 25% 92%;
  --secondary-foreground: var(--slate-deep);
  --accent: var(--gold);
  --accent-foreground: var(--slate-deep);
  --destructive: 0 72% 51%;
  --destructive-foreground: 0 0% 98%;
  --success: 142 55% 36%;
  --success-foreground: 0 0% 98%;
  --ring: var(--gold);
  --radius: 0.25rem;
  --radius-lg: 0.375rem;
  --sidebar-width: 16rem;
  --font-sans: "Karla", system-ui, sans-serif;
  --font-display: "Sora", system-ui, sans-serif;
  --shadow-soft: 0 2px 16px hsl(var(--slate) / 0.06);
  --shadow-card: 0 8px 28px hsl(var(--slate) / 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, .page-header__title, .app-header__title, .card__title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  height: 2.25rem;
  padding: 0 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}
.btn:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}
.btn--primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.btn--primary:hover {
  background: hsl(var(--slate-deep));
}
.btn--accent {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-weight: 600;
}
.btn--accent:hover {
  background: hsl(var(--gold-deep));
  color: hsl(var(--cream));
}
.btn--secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border-color: hsl(var(--border));
}
.btn--secondary:hover {
  background: hsl(240, 4.8%, 90%);
}
.btn--outline {
  background: transparent;
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}
.btn--outline:hover {
  background: hsl(var(--muted));
}
.btn--ghost {
  background: transparent;
  color: hsl(var(--foreground));
}
.btn--ghost:hover {
  background: hsl(var(--muted));
}
.btn--destructive {
  background: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}
.btn--destructive:hover {
  opacity: 0.9;
}
.btn--sm {
  height: 2rem;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
}
.btn--lg {
  height: 2.5rem;
  padding: 0 1.25rem;
}
.btn--block {
  width: 100%;
}

.card {
  margin-top: 10px;
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.card__header {
  padding: 1.25rem 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.card__title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}
.card__description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}
.card__content {
  padding: 1.25rem;
}
.card__content.list-meta {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid hsl(var(--border));
}
.card__content--table {
  padding: 0;
}
.card__content--table .table-wrap {
  border: none;
  border-radius: 0;
}
.card__footer {
  padding: 0 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.input,
.select,
.textarea {
  display: flex;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--input));
  background: hsl(var(--card));
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder,
.select::placeholder,
.textarea::placeholder {
  color: hsl(var(--muted-foreground));
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring)/0.15);
}
.input:disabled,
.select:disabled,
.textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.textarea {
  min-height: 5rem;
  resize: vertical;
}

.select {
  height: 2.25rem;
}

.input {
  height: 2.25rem;
}
.input--title {
  height: auto;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 0.25rem 0.75rem;
  border-color: transparent;
  background: transparent;
}
.input--title:hover, .input--title:focus {
  border-color: hsl(var(--input));
  background: hsl(var(--card));
}
.input--sm {
  height: 2rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
}

.label {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0.375rem;
  display: block;
}

.form-hint {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  border: 1px solid transparent;
}
.badge--default {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.badge--secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border-color: hsl(var(--border));
}
.badge--outline {
  background: transparent;
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}
.badge--success {
  background: hsl(var(--success)/0.12);
  color: hsl(var(--success));
}
.badge--destructive {
  background: hsl(var(--destructive)/0.12);
  color: hsl(var(--destructive));
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.table th,
.table td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid hsl(var(--border));
}
.table th {
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted)/0.5);
}
.table tr:last-child td {
  border-bottom: none;
}
.table tbody tr:hover {
  background: hsl(var(--muted)/0.35);
}

td.table__actions {
  vertical-align: middle;
  padding: 0.75rem 1rem;
  text-align: right;
}

.table__actions-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.5rem;
  min-height: 2.25rem;
}
.table__actions-inner form {
  display: contents;
  margin: 0;
}

.alert {
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.alert--success {
  border-color: hsl(var(--success)/0.3);
  background: hsl(var(--success)/0.08);
  color: hsl(142, 76%, 26%);
}
.alert--error {
  border-color: hsl(var(--destructive)/0.3);
  background: hsl(var(--destructive)/0.08);
  color: hsl(0, 84%, 40%);
}

.flash-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.dialog {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.dialog[hidden] {
  display: none;
}
.dialog__backdrop {
  position: absolute;
  inset: 0;
  background: hsla(240, 10%, 3.9%, 0.5);
  animation: dialog-fade-in 0.15s ease-out;
}
.dialog__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 15px -3px hsla(240, 10%, 3.9%, 0.1), 0 4px 6px -4px hsla(240, 10%, 3.9%, 0.1);
  animation: dialog-zoom-in 0.15s ease-out;
}
.dialog__header {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.5rem 1.5rem 0;
  text-align: left;
}
.dialog__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.dialog__description {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}
.dialog__footer {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem 1.5rem;
}

body.dialog-open {
  overflow: hidden;
}

@keyframes dialog-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes dialog-zoom-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  border-right: 1px solid hsl(192, 16%, 18%);
  background: hsl(var(--slate-deep));
  display: flex;
  flex-direction: column;
  padding: 1rem 0.875rem;
  position: fixed;
  left: 0;
  top: 0;
}
.sidebar__brand {
  display: block;
  line-height: 0;
  padding: 0.25rem 0.5rem 1rem;
  margin-bottom: 0.5rem;
  transition: opacity 0.15s;
}
.sidebar__brand:hover {
  opacity: 0.9;
}
.sidebar__logo {
  display: block;
  height: 2.5rem;
  width: auto;
  transform: scale(1.5);
  transform-origin: left center;
  margin-right: 2rem;
}
.sidebar__section {
  font-size: 0.6875rem;
  font-weight: 600;
  color: hsl(var(--cream)/0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.875rem 0.75rem 0.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
  overflow-y: auto;
}
.sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--cream)/0.82);
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.sidebar__link:hover {
  background: hsl(var(--slate)/0.55);
  color: hsl(var(--cream));
}
.sidebar__link--active {
  background: hsl(var(--slate));
  border-color: hsl(var(--accent)/0.45);
  color: hsl(var(--cream));
  box-shadow: inset 3px 0 0 hsl(var(--accent));
}
.sidebar__footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--cream)/0.12);
}
.sidebar__footer .inmobiliaria-switcher__label {
  color: hsl(var(--cream)/0.5);
}
.sidebar__footer .select,
.sidebar__footer .inmobiliaria-switcher__select {
  background: hsl(var(--slate));
  border-color: hsl(var(--cream)/0.15);
  color: hsl(var(--cream));
}

.form-grid {
  display: grid;
  gap: 1rem;
}
.form-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 768px) {
  .form-grid--2 {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-width: 0;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  position: sticky;
  top: 0;
  z-index: 10;
}

.app-header__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.app-header__right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.inmobiliaria-switcher {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  width: 100%;
}
.inmobiliaria-switcher__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.inmobiliaria-switcher__select {
  width: 100%;
  height: 2.25rem;
  font-size: 0.8125rem;
}

.user-menu {
  position: relative;
}
.user-menu__trigger {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  list-style: none;
  cursor: pointer;
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  user-select: none;
}
.user-menu__trigger::-webkit-details-marker {
  display: none;
}
.user-menu__trigger::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid hsl(var(--muted-foreground));
  margin-left: 0.125rem;
}
.user-menu__trigger:hover {
  background: hsl(var(--muted));
}
.user-menu[open] .user-menu__trigger {
  background: hsl(var(--muted));
}
.user-menu__panel {
  position: absolute;
  top: calc(100% + 0.375rem);
  right: 0;
  min-width: 11rem;
  padding: 0.25rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 50;
}
.user-menu__item {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}
.user-menu__item:hover {
  background: hsl(var(--muted));
}
.user-menu__item--danger {
  color: hsl(var(--destructive));
}

.app-content {
  padding: 1.5rem;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.page-header__main {
  flex: 1;
  min-width: 0;
}
.page-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.page-header__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.page-header__subtitle {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin: 0.25rem 0 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stats-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding: 1.25rem;
}
.stat-card__value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: hsl(var(--gold-deep));
}
.stat-card__label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, hsl(var(--gold-soft)) 0%, transparent 55%), hsl(var(--background));
  padding: 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 26rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.auth-card .card {
  margin-top: 0;
}
.auth-card__brand {
  text-align: center;
  line-height: 0;
}
.auth-card__logo {
  display: inline-block;
  height: 2.75rem;
  width: auto;
  margin: 0 auto;
  transform: scale(1.45);
  transform-origin: center center;
}
.auth-card__tagline {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.4;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.inmueble-thumb {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  object-fit: cover;
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
}

.inmueble-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.inmueble-gallery--managed {
  margin-top: 1.5rem;
}
.inmueble-gallery__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.inmueble-gallery__badge {
  position: absolute;
  top: 0.375rem;
  left: 0.375rem;
}
.inmueble-gallery__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.inmueble-gallery__meta {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.inmueble-gallery__alt-form {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.inmueble-gallery__caption {
  margin: 0;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}
.inmueble-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
}

.inmueble-detail-form {
  display: flex;
  flex-direction: column;
}

.upload-dropzone {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px dashed hsl(var(--border));
  border-radius: calc(var(--radius) + 2px);
  background: hsl(var(--muted)/0.35);
}
.upload-dropzone__fields {
  display: grid;
  gap: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.inline-upload {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.inline-upload .input--sm {
  width: auto;
  max-width: 10rem;
  height: 2rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.aviso-preview {
  width: 100%;
  max-height: 20rem;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted)/0.35);
  margin-bottom: 1rem;
}

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
}
.filters-bar__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  flex: 1;
  min-width: 12rem;
}
.filters-bar__fields .form-group {
  margin: 0;
  min-width: 8rem;
}
.filters-bar__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}
.pagination__info {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/*# sourceMappingURL=app.css-fNQJ5O7.map */
