/* Páginas internas: arriendos, propietarios, administración. Usa los tokens de styles.css. */

.app { background: var(--bg-soft); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.app > .app-main { flex: 1; }
.app-header { position: sticky; }
.app-header .brand { box-shadow: none; padding-inline: 0; }
.app-main { min-height: 70vh; padding-bottom: 80px; }

.nav-list a[aria-current="page"] { background: var(--green-tint); color: var(--green-hover); }
.nav-form { margin: 0; }
.nav-link-btn {
  display: block; padding: 10px 14px; border-radius: 999px; border: 0; background: none;
  font: inherit; font-weight: 600; font-size: 0.9375rem; color: inherit; cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .nav-link-btn:hover { background: var(--bg-soft); }
}

/* Mensajes */
.flashes { display: grid; gap: 8px; padding-top: 20px; }
.flash {
  margin: 0; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--green-tint); color: var(--green-hover); font-weight: 600; font-size: 0.9375rem;
}
.flash-error { background: #fdecea; color: #a1281a; }
.flash-info { background: #e8eef9; color: var(--blue-deep); margin-top: 20px; }

/* Encabezados de página */
.page-head { padding-top: clamp(32px, 5vw, 56px); padding-bottom: 8px; }
.page-head h1 { font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem); font-weight: 800; }
.page-head > p, .page-head div > p { margin-top: 10px; color: var(--ink-2); max-width: 62ch; }
.page-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.page-body { padding-top: 28px; }
.page-narrow { max-width: 640px; }
.block-title { font-size: 1.375rem; font-weight: 800; margin-bottom: 16px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px;
  font-weight: 700; font-size: 0.9375rem; color: var(--ink-2); text-decoration: none;
}
.back-link .icon { width: 1.1em; height: 1.1em; }
@media (hover: hover) and (pointer: fine) { .back-link:hover { color: var(--ink); } }
.muted { color: var(--ink-3); font-weight: 600; font-size: 0.75em; }
.actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }

/* Tarjeta de panel */
.panel-card { background: #fff; border-radius: 18px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.panel-card h2 { font-size: 1.25rem; font-weight: 800; }
.panel-card h3 { font-size: 1rem; font-weight: 800; margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.stack { display: grid; gap: 18px; }
.stack-sm { display: grid; gap: 8px; }

/* Campos */
.field input[type="email"], .field input[type="password"], .field input[type="number"],
.field input[type="date"], .field textarea, .reject textarea {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font: inherit; font-size: 1rem; caret-color: var(--green);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea, .reject textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .reject textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgb(26 122 52 / 0.16); }
.field textarea[aria-invalid="true"] { border-color: #c2321f; }
.field-help { color: var(--ink-3); font-size: 0.875rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.field-row-4 { grid-template-columns: repeat(4, 1fr); }
.checks { display: grid; gap: 10px; padding-top: 28px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.9375rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--green); }
.check-inline { padding-top: 34px; }
.check-error span { color: #a1281a; }

/* Ingreso y registro */
.auth { display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: clamp(32px, 6vw, 88px); align-items: start; padding-top: clamp(32px, 6vw, 72px); }
.auth-single { grid-template-columns: minmax(0, 440px); justify-content: center; }
.auth-intro h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); font-weight: 800; max-width: 14ch; }
.auth-intro > p { margin-top: 14px; color: var(--ink-2); font-size: 1.125rem; max-width: 44ch; }
.auth-form { display: grid; gap: 16px; }
.auth-form h1 { font-size: 1.75rem; font-weight: 800; }
.auth-alt { font-size: 0.9375rem; color: var(--ink-2); text-align: center; }
.auth-alt a { color: var(--green); font-weight: 700; }
.steps { counter-reset: paso; margin-top: 32px; display: grid; gap: 18px; }
.steps li { counter-increment: paso; display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; }
.steps li::before {
  content: counter(paso); grid-row: span 2;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; font-weight: 800;
}
.steps strong { font-weight: 800; }
.steps span { color: var(--ink-2); font-size: 0.9375rem; }

/* Listado público */
.listings { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.listing-link {
  display: block; height: 100%; text-decoration: none; background: #fff;
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms ease, transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .listing-link:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
}
.listing-link:active { transform: scale(0.99); }
.listing-media { position: relative; aspect-ratio: 4 / 3; background: var(--line); }
.listing-media img { width: 100%; height: 100%; object-fit: cover; }
.listing-nophoto { height: 100%; display: grid; place-items: center; color: var(--ink-3); }
.listing-nophoto .icon { width: 40px; height: 40px; }
.listing-count {
  position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgb(14 34 64 / 0.78); color: #fff; font-size: 0.8125rem; font-weight: 700;
}
.listing-body { padding: 18px 20px 22px; display: grid; gap: 6px; }
.listing-price { font-variant-numeric: tabular-nums; }
.listing-price strong { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; }
.listing-price span { color: var(--ink-2); font-size: 0.875rem; margin-left: 4px; }
.listing-body h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.specs { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; color: var(--ink-2); font-size: 0.875rem; }
.specs li { display: inline-flex; align-items: center; gap: 6px; }
.specs .icon { width: 1.1em; height: 1.1em; color: var(--green); }

.owner-cta {
  margin-top: 56px; padding-block: 32px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.owner-cta h2 { font-size: 1.5rem; font-weight: 800; }
.owner-cta p { margin-top: 8px; color: var(--ink-2); max-width: 60ch; }

/* Estado vacío */
.empty { background: #fff; border-radius: 18px; padding: clamp(32px, 6vw, 64px) clamp(20px, 4vw, 48px); text-align: center; display: grid; justify-items: center; gap: 14px; box-shadow: var(--shadow-sm); }
.empty h1, .empty h2 { font-size: 1.5rem; font-weight: 800; }
.empty p { color: var(--ink-2); max-width: 52ch; }
.empty-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--green-tint); color: var(--green); }
.empty-icon .icon { width: 30px; height: 30px; }
.page-narrow.empty { margin-top: 56px; }
.empty-inline { display: flex; align-items: center; gap: 8px; color: var(--ink-2); background: #fff; padding: 18px 20px; border-radius: 14px; }
.empty-inline .icon { color: var(--green); }

/* Detalle */
.detail { padding-top: 24px; }
.gallery { display: grid; gap: 10px; }
.gallery-main { position: relative; border-radius: 18px; overflow: hidden; background: var(--night); aspect-ratio: 16 / 9; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-nav {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgb(255 255 255 / 0.92); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform 160ms var(--ease-out);
}
.gallery-nav:active { transform: scale(0.94); }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.gallery-counter {
  position: absolute; left: 14px; bottom: 14px; padding: 4px 10px; border-radius: 999px;
  background: rgb(14 34 64 / 0.78); color: #fff; font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gallery-thumbs button {
  width: 96px; height: 68px; flex: none; padding: 0; border: 2px solid transparent; border-radius: 10px;
  overflow: hidden; cursor: pointer; background: var(--line); opacity: 0.7; transition: opacity 160ms ease, border-color 160ms ease;
}
.gallery-thumbs button[aria-current] { border-color: var(--green); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(28px, 5vw, 64px); margin-top: 32px; align-items: start; }
.detail-main h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 800; }
.detail-main h2 { font-size: 1.25rem; font-weight: 800; margin-top: 36px; margin-bottom: 10px; }
.detail-loc { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--ink-2); }
.detail-loc .icon { color: var(--green); }
.spec-grid { display: flex; flex-wrap: wrap; gap: 1px; margin-top: 28px; background: var(--line); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.spec-grid li { flex: 1 1 150px; background: #fff; padding: 16px; display: grid; gap: 2px; }
.spec-grid .icon { color: var(--green); margin-bottom: 6px; }
.spec-grid strong { font-size: 1.125rem; font-weight: 800; }
.spec-grid span { color: var(--ink-2); font-size: 0.875rem; }
.prose { color: var(--ink-2); max-width: 68ch; }

.price-card { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border-radius: 18px; padding: 28px; box-shadow: var(--shadow-lg); display: grid; gap: 18px; }
.price-card-amount { font-variant-numeric: tabular-nums; }
.price-card-amount strong { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.price-card-amount span { color: var(--ink-2); }
.terms { margin: 0; display: grid; border-top: 1px solid var(--line); }
.terms div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.terms dt { color: var(--ink-2); }
.terms dd { margin: 0; font-weight: 700; text-align: right; }
.price-card-note { font-size: 0.8125rem; color: var(--ink-3); }
.detail-bar { display: none; }

/* Panel del propietario: filas */
.rows { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 20px; align-items: center; background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow-sm); }
.row-media { display: block; width: 132px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--bg-soft); }
.row-media img { width: 100%; height: 100%; object-fit: cover; }
.row-media span { height: 100%; display: grid; place-items: center; color: var(--ink-3); }
.row-body { display: grid; gap: 4px; min-width: 0; }
.row-body h2, .row-body h3 { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.015em; }
.row-body h2 a, .row-body h3 a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .row-body h2 a:hover, .row-body h3 a:hover { text-decoration: underline; } }
.row-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.875rem; color: var(--ink-2); }
.row-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.row-sub { font-size: 0.875rem; color: var(--ink-2); }
.row-sub a { color: var(--green); font-weight: 700; }
.row-note { font-size: 0.875rem; color: var(--ink-2); background: var(--bg-soft); padding: 8px 12px; border-radius: 8px; margin-top: 4px; }
.row-warn { background: #fff6e5; color: #7a4b00; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.badge {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.01em; background: var(--bg-soft); color: var(--ink-2);
}
.badge-publicado { background: var(--green-tint); color: var(--green-hover); }
.badge-pendiente { background: #fff1d6; color: #7a4b00; }
.badge-rechazado { background: #fdecea; color: #a1281a; }
.badge-arrendado { background: #e8eef9; color: var(--blue-deep); }

.disclosure summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; }
.disclosure summary::after { content: "+"; font-weight: 600; color: var(--ink-3); }
.disclosure[open] summary::after { content: "–"; }
.disclosure[open] summary { margin-bottom: 18px; }

/* Editor de anuncio */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 24px; align-items: start; padding-top: 24px; }
.editor-main { display: grid; gap: 24px; }
.editor-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.editor-side p { color: var(--ink-2); font-size: 0.9375rem; }
.checklist { display: grid; gap: 8px; font-size: 0.9375rem; color: var(--ink-3); }
.checklist li { display: flex; align-items: center; gap: 8px; }
.checklist li .icon { width: 18px; height: 18px; border-radius: 50%; padding: 2px; background: var(--line); color: #fff; }
.checklist li.ok { color: var(--ink); }
.checklist li.ok .icon { background: var(--green); }
.btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.section-row { display: flex; justify-content: space-between; align-items: center; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photo { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-badge { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 999px; background: var(--sun); color: var(--night); font-size: 0.75rem; font-weight: 800; }
.photo-actions { position: absolute; right: 8px; top: 8px; display: flex; gap: 6px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgb(255 255 255 / 0.94); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.icon-btn .icon { width: 18px; height: 18px; }
.icon-btn:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover { background: #fff; }
  .icon-btn-danger:hover { color: #b42318; }
}

.uploader { display: grid; gap: 12px; }
.dropzone {
  position: relative; display: grid; justify-items: center; gap: 6px; text-align: center;
  padding: 32px 20px; border: 2px dashed #c9d3c5; border-radius: 14px; background: var(--bg-soft);
  cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease;
}
.dropzone .icon { width: 32px; height: 32px; color: var(--green); }
.dropzone span { color: var(--ink-2); font-size: 0.875rem; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone.is-over, .dropzone:focus-within { border-color: var(--green); background: var(--green-tint); }
.uploader [data-submit] { justify-self: start; }

.danger-zone { text-align: center; }
.link-danger {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer;
  color: #b42318; font: inherit; font-weight: 700; font-size: 0.875rem; padding: 8px;
}
.link-danger .icon { width: 1.1em; height: 1.1em; }

/* Administración */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 20px; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; text-decoration: none; font-weight: 700; font-size: 0.9375rem; box-shadow: var(--shadow-sm); }
.count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--bg-soft); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.row-review { grid-template-columns: 132px minmax(0, 1fr) minmax(0, 260px); align-items: start; }
.review-actions { display: grid; gap: 8px; justify-items: stretch; }
.review-actions .btn { width: 100%; }
.reject summary { list-style: none; }
.reject summary::-webkit-details-marker { display: none; }
.reject[open] summary { margin-bottom: 8px; }
.temp-pass { display: grid; gap: 10px; border: 2px solid var(--sun); }
.temp-pass-value code { font-size: 1.5rem; font-weight: 800; letter-spacing: 0.04em; background: var(--bg-soft); padding: 6px 12px; border-radius: 8px; }
.temp-pass .btn { justify-self: start; }

.table-wrap { overflow-x: auto; background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.table th, .table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 0.8125rem; color: var(--ink-2); font-weight: 700; background: #fafbf9; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table td a { color: var(--ink); font-weight: 700; }
.table a.btn { color: var(--ink); }
.cell-actions { text-align: right; }
.cell-actions, .cell-actions form { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin: 0; }
.cell-actions .btn { white-space: nowrap; }
.table tr.is-off td { color: var(--ink-3); }

/* Pie compacto */
.footer-slim { padding: 28px 0; }
.footer-slim-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.875rem; }
.footer-slim a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; text-decoration: none; }

/* Sección de arriendos en la página de inicio */
.arriendos-home .listings { margin-top: 0; }
.arriendos-home-foot { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Responsivo */
@media (max-width: 1080px) {
  .detail-grid, .editor { grid-template-columns: 1fr; }
  .price-card, .editor-side { position: static; }
  .row-review { grid-template-columns: 100px minmax(0, 1fr); }
  .row-review .review-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (max-width: 880px) {
  .app .site-header .nav-list a[aria-current="page"] { background: none; color: var(--green); }
  .auth { grid-template-columns: 1fr; }
  .auth-intro .steps { display: none; }
  .field-row, .field-row-4 { grid-template-columns: 1fr 1fr; }
  .check-inline, .checks { padding-top: 0; }
  .detail-bar { display: block; }
  .detail-bar.mobile-bar { translate: 0 0; }
  .gallery-main { aspect-ratio: 4 / 3; margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
  .gallery-nav { display: none; }
  .spec-grid li { flex-basis: 40%; }
  .row { grid-template-columns: 96px minmax(0, 1fr); }
  .row-media { width: 96px; }
  .row-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .app .mobile-bar:not(.detail-bar) { display: none; }
  .app body, body.app { padding-bottom: 0; }
  body.app:has(.detail-bar) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .row-review .review-actions { grid-template-columns: 1fr; }
}
.arriendos-empty { color: var(--ink-2); background: var(--bg-soft); padding: 20px 24px; border-radius: 14px; }
.progress { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress[hidden] { display: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--green); border-radius: inherit; transition: width 240ms var(--ease-out); }
.row:target { box-shadow: 0 0 0 2px var(--green), var(--shadow-sm); }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.panel-card .card-title { margin: 0; padding: 0; border: 0; font-size: 1.125rem; }
@media (max-width: 880px) { .account-grid { grid-template-columns: 1fr; } }

/* Emprendimientos de propietarios */
.field select {
  width: 100%; min-height: 48px; padding: 0 40px 0 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6676' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--ink); font: inherit; font-size: 1rem; appearance: none; cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgb(26 122 52 / 0.16); }
.field select[aria-invalid="true"] { border-color: #c2321f; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; margin-bottom: 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm);
  text-decoration: none; font-weight: 700; font-size: 0.9375rem; color: var(--ink);
}
.chips a[aria-current="page"] { background: var(--ink); color: #fff; }
.chips a[aria-current="page"] .count { background: rgb(255 255 255 / 0.16); }

.emp-resumen { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; }
.emp-categoria { color: var(--green); font-weight: 800; font-size: 0.875rem; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 4px; }

.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.block-head .block-title { margin-bottom: 0; }
.block-subtitle { font-size: 1.0625rem; font-weight: 800; margin: 28px 0 12px; }

.emp-invite { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; }
.emp-invite h3 { font-size: 1.125rem; font-weight: 800; }
.emp-invite p { color: var(--ink-2); margin-top: 4px; max-width: 62ch; }
@media (max-width: 720px) {
  .emp-invite { grid-template-columns: 1fr; justify-items: start; }
}

/* Avisos de la administración (panel) */
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.aviso-eliminar { margin-top: 20px; }
.aviso-eliminar .card-title { font-size: 1rem; }

/* Ver u ocultar contraseña */
.pass-wrap { position: relative; display: block; }
.pass-wrap input { padding-right: 52px !important; }
.pass-wrap input::-ms-reveal, .pass-wrap input::-ms-clear { display: none; }
.pass-toggle {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  display: inline-grid; place-items: center; width: 44px; height: 40px;
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink-2); cursor: pointer;
}
.pass-toggle .icon { width: 20px; height: 20px; }
.pass-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px rgb(26 122 52 / 0.35); }
@media (hover: hover) and (pointer: fine) { .pass-toggle:hover { color: var(--ink); background: var(--bg-soft); } }

/* Fotos del inicio (panel) */
.hero-admin-list { display: grid; gap: 16px; }
.hero-admin-item {
  position: relative; display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 24px; align-items: start;
  padding: 18px;
}
.hero-admin-item.is-off .hero-admin-media img { filter: grayscale(0.6); opacity: 0.75; }
.hero-admin-media { position: relative; border-radius: 12px; overflow: hidden; background: var(--bg-soft); aspect-ratio: 24 / 11; }
.hero-admin-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-admin-pos {
  position: absolute; left: 8px; top: 8px; min-width: 28px; height: 28px; padding: 0 8px;
  display: inline-grid; place-items: center; border-radius: 999px;
  background: var(--night); color: #fff; font-size: 0.8125rem; font-weight: 800; font-variant-numeric: tabular-nums;
}
.hero-admin-form { display: grid; gap: 14px; min-width: 0; padding-right: 44px; }
.hero-admin-form .row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero-admin-form .field-row { gap: 14px; }
.hero-admin-orden { display: inline-flex; gap: 6px; margin-left: auto; }
.hero-admin-orden .icon-btn:disabled { opacity: 0.35; cursor: default; }
.hero-admin-borrar { position: absolute; top: 18px; right: 18px; margin: 0; }
.hero-admin-subir { margin-top: 20px; }
@media (max-width: 880px) {
  .hero-admin-item { grid-template-columns: 1fr; }
  .hero-admin-form { padding-right: 0; }
  .hero-admin-form .field-row { grid-template-columns: 1fr; }
  .hero-admin-borrar { top: 26px; right: 26px; }
  .hero-admin-borrar .icon-btn { background: #fff; }
}
.hero-admin-form .row-meta .row-warn { padding: 3px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; }

/* Panel: fotos de zonas comunes */
.zona-admin-media { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.zona-admin-media img { width: 100%; height: 100%; object-fit: cover; }
.zona-admin-media > .icon { width: 48px; height: 48px; stroke-width: 1.5; }
.zona-admin-cuerpo { display: grid; gap: 18px; min-width: 0; }
.zona-admin-titulo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-right: 52px; }
.zona-admin-titulo .card-title { margin: 0; }
.zona-admin-titulo .row-warn { padding: 3px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; }
.zona-admin-dropzone { padding: 18px; }
.hero-admin-list + .field-help { margin-top: 16px; }
