/* Prueba DEV 2026-10-15. Ajusta sólo la jerarquía y presentación del portal. */
:root {
  --owner-deep: #0b5047;
  --owner-teal: #087f74;
  --owner-mint: #e8f7f2;
  --owner-paper: #fffdf9;
  --owner-line: #cfe2dc;
  --owner-muted: #5e7575;
}

body { background: linear-gradient(145deg, #f4faf8, #f7f8f4 52%, #eef7f5); }
header { border-bottom-color: var(--owner-line); }
main { max-width: 1060px; margin: 34px auto 74px; }

.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 226px;
  padding: 32px 38px;
  border-radius: 24px;
  background: linear-gradient(120deg, #094b42, #08796e);
  box-shadow: 0 16px 38px #0b50471f;
}
.heading h1 { margin: 0; font: 700 clamp(2.5rem, 5vw, 3.45rem)/1 Georgia, serif; letter-spacing: -.045em; }
.heading .eyebrow { color: #bdf2df; }
.heading p:last-child { max-width: 660px; margin: 12px 0 0; color: #e1f5ef; font-size: 17px; }
.heading img { width: 112px; filter: brightness(0) invert(1); }

.owner-account-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 25px 0 38px;
  padding: 18px 22px;
  border: 1px solid var(--owner-line);
  border-radius: 18px;
  background: var(--owner-mint);
  color: #426666;
  line-height: 1.4;
}
.owner-account-notice strong { color: var(--owner-deep); }
.owner-account-notice a {
  flex: 0 0 auto;
  padding: 11px 17px;
  border-radius: 999px;
  background: var(--owner-deep);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.owner-section-heading,
.owner-properties-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 15px;
}
.owner-section-heading .eyebrow,
.owner-properties-heading .eyebrow { color: var(--owner-teal); }
.owner-section-heading h2,
.owner-properties-heading h2 {
  margin: 0;
  color: var(--navy);
  font: 700 1.75rem/1.08 Georgia, serif;
}
.owner-section-heading > p,
.owner-properties-heading .owner-property-count { margin: 0; color: var(--owner-muted); font-size: 14px; }
.owner-properties-heading { margin-top: 46px; }
.owner-properties-heading p:not(.eyebrow) { margin: 7px 0 0; color: var(--owner-muted); }

.owner-utility-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.owner-utility-grid .delivery-standard-owner,
.owner-utility-grid .owner-inventory-hub {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 232px;
  margin: 0;
  padding: 28px 30px;
  border: 1px solid var(--owner-line);
  border-radius: 20px;
  background: var(--owner-paper);
  box-shadow: 0 8px 24px #163f350d;
}
.owner-utility-grid .delivery-standard-owner span,
.owner-utility-grid .owner-inventory-hub > div > span {
  display: block;
  margin: 0 0 8px;
  color: var(--owner-teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
.owner-utility-grid .delivery-standard-owner h2,
.owner-utility-grid .owner-inventory-hub h2 {
  margin: 0 0 11px;
  color: var(--navy);
  font: 700 1.55rem/1.08 Georgia, serif;
}
.owner-utility-grid .delivery-standard-owner p,
.owner-utility-grid .owner-inventory-hub p { margin: 0; color: var(--owner-muted); font-size: 15px; line-height: 1.47; }
.owner-utility-grid .owner-inventory-hub p + p { display: none; }
.owner-utility-grid .delivery-standard-owner a,
.owner-utility-grid .owner-inventory-hub > a {
  width: auto;
  margin-top: 18px;
  padding: 11px 15px;
  border-radius: 999px;
  background: var(--owner-teal);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.owner-utility-grid .owner-inventory-hub > a small { display: none; }

/* Reservas: la estructura proviene de owner-dashboard.js y conserva los datos reales. */
.reservation-updates { margin-top: 38px; }
.reservation-heading { padding: 0 0 15px; border: 0; background: transparent; }
.reservation-heading h2 { margin: 3px 0 7px; font: 700 2.1rem/1.08 Georgia, serif; }
.reservation-heading p { margin: 0; color: var(--owner-muted); }
.reservation-heading .eyebrow { color: var(--owner-teal); }
.owner-priorities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--owner-line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--owner-line);
}
.owner-priority-group { min-width: 0; padding: 25px 26px; background: var(--owner-paper); }
.owner-priority-group + .owner-priority-group { border-left: 1px solid var(--owner-line); }
.owner-priority-group h3 { margin: 0 0 7px; color: var(--navy); }
.owner-priority-group > p { min-height: 40px; margin: 0 0 14px; color: var(--owner-muted); }
.owner-priority-group button {
  display: grid;
  width: 100%;
  gap: 5px;
  margin: 9px 0 0;
  padding: 14px 15px;
  border: 1px solid var(--owner-line);
  border-radius: 14px;
  background: #fff;
  color: var(--owner-deep);
  text-align: left;
}
.owner-priority-group button:first-of-type { background: var(--owner-mint); border-color: var(--owner-teal); }
.owner-priority-group button strong { font-size: 14px; }
.owner-priority-group button span { color: #48696a; font-size: 13px; line-height: 1.35; }
.owner-priority-empty { display: block; padding: 14px; border: 1px dashed var(--owner-line); border-radius: 12px; color: var(--owner-muted); font-size: 14px; }
.reservation-list { display: grid; gap: 16px; margin-top: 22px; border: 0; background: transparent; }
.reservation-card { padding: 22px; border: 1px solid var(--owner-line); border-radius: 18px; background: var(--owner-paper); }
.owner-operation-card { box-shadow: 0 8px 24px #163f350d; }

/* Propiedades: se conserva el contenido y los enlaces de cada tarjeta. */
.property-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 0;
}
.property-grid > p { grid-column: 1 / -1; }
.property-grid .card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--owner-line);
  border-radius: 20px;
  background: var(--owner-paper);
  box-shadow: 0 8px 24px #163f350d;
}
.property-grid .card > img { width: 100%; height: 238px; object-fit: cover; }
.property-grid .card-body { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 22px; }
.property-grid .card-body > h2,
.property-grid .card-body > p,
.property-grid .card-body > .owner-next-step,
.property-grid .card-body > .status { flex-basis: 100%; }
.property-grid .card-body h2 { margin: 0; color: var(--navy); font: 700 1.5rem/1.1 Georgia, serif; }
.property-grid .card-body > p { margin: 0 0 8px; color: var(--owner-muted); }
.property-grid .card-body .status { width: max-content; flex-basis: auto; margin: 0 auto 4px 0; padding: 6px 11px; border-radius: 999px; background: var(--owner-mint); color: var(--owner-deep); font-weight: 800; font-size: 13px; }
.property-grid .owner-next-step { display: flex; justify-content: space-between; gap: 12px; margin: 4px 0 8px; padding: 12px 13px; border-radius: 12px; background: var(--owner-mint); color: var(--owner-deep); }
.property-grid .owner-next-step strong { text-transform: none; }
.property-grid .card-body button,
.property-grid .card-body a.owner-edit-link {
  display: inline-flex;
  align-items: center;
  width: auto;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--owner-line);
  border-radius: 999px;
  background: var(--owner-paper);
  color: var(--owner-deep);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.property-grid .card-body [data-open] { border-color: var(--owner-deep); background: var(--owner-deep); color: #fff; }
.property-grid .card-body [data-title-holders-property] { flex-basis: auto; }
.property-grid .card-body [data-withdraw-listing] { color: #9a342d; }

/* Estos módulos existen y conservan su lógica. Sólo se ubican después de las propiedades. */
.availability-obligation-owner,
.inventory-incident-owner,
.title-holders-panel {
  margin: 28px 0 0;
  padding: 24px;
  border: 1px solid var(--owner-line);
  border-radius: 20px;
  background: var(--owner-paper);
  color: var(--navy);
  box-shadow: 0 8px 24px #163f350d;
}
.availability-obligation-owner { background: #fff9e9; color: #5d4916; }
.title-holders-panel > h2 { margin-top: 5px; font: 700 1.65rem/1.1 Georgia, serif; }
.title-holders-panel .eyebrow { color: var(--owner-teal); }

/* Los datos personales se administran en Mi cuenta. */
[data-owner-private-data] { display: none !important; }

@media (max-width: 720px) {
  main { margin-top: 25px; padding: 0 15px; }
  .heading { min-height: 190px; padding: 27px; }
  .heading img { display: none; }
  .owner-account-notice,
  .owner-section-heading,
  .owner-properties-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .owner-account-notice { margin-bottom: 30px; }
  .owner-utility-grid,
  .property-grid,
  .owner-priorities { grid-template-columns: 1fr; }
  .owner-utility-grid .delivery-standard-owner,
  .owner-utility-grid .owner-inventory-hub { min-height: auto; }
  .owner-priority-group + .owner-priority-group { border-top: 1px solid var(--owner-line); border-left: 0; }
  .property-grid .card > img { height: 205px; }
  .property-grid .owner-next-step { align-items: flex-start; flex-direction: column; }
}

/* Los paneles históricos siguen cargando sus datos, pero dejan de ser secciones del tablero.
   La interfaz equivalente se muestra dentro del expediente de la propiedad. */
.title-holders-panel,
.inventory-incident-owner { display: none !important; }

.property-governance-owner,
.property-incidents-owner { scroll-margin-top: 24px; }
.property-governance-owner .eyebrow,
.property-incidents-owner .eyebrow { color: var(--owner-teal); }
.property-governance-list { display: grid; gap: 10px; }
.property-governance-row {
  padding: 13px;
  border: 1px solid var(--owner-line);
  border-radius: 10px;
  background: #fff;
}
.property-governance-row strong,
.property-governance-row small { display: block; }
.property-governance-row small { margin-top: 4px; color: var(--owner-muted); }
.property-governance-row p { margin: 8px 0 0; color: var(--owner-muted); line-height: 1.45; }
.property-governance-status {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--owner-mint);
  color: var(--owner-deep);
  font-size: 12px;
  font-weight: 800;
}
.property-governance-status.pending { background: #fff3d7; color: #8a5a00; }
.property-governance-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.property-governance-actions button {
  width: auto;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--owner-teal);
  color: #fff;
  font: inherit;
  font-weight: 700;
}
.property-governance-actions .secondary { border: 1px solid var(--owner-line); background: #fff; color: var(--owner-deep); }
.property-governance-actions .danger { background: #fff0f0; color: #a62929; }
.property-governance-divider { height: 1px; margin: 22px 0; background: var(--owner-line); }
.property-governance-form { margin-top: 14px; padding: 14px; border: 1px solid var(--owner-line); border-radius: 10px; background: var(--owner-mint); }
.property-governance-form h4 { margin: 0 0 12px; color: var(--owner-deep); }
.property-governance-form p { margin: 10px 0 0; color: var(--owner-muted); }
.property-governance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.property-governance-grid label { display: grid; gap: 5px; color: var(--owner-deep); font-size: 13px; font-weight: 700; }
.property-governance-grid input,
.property-governance-grid select,
.property-governance-grid textarea { width: 100%; padding: 9px; border: 1px solid var(--owner-line); border-radius: 8px; font: inherit; }
.property-governance-grid textarea { min-height: 72px; resize: vertical; }
.incident-relevant { border-left: 4px solid #d18b14; }
.incident-grave { border-left: 4px solid #be3941; background: #fff6f6; }
.property-incident-form { margin-top: 15px; }
.property-incident-form summary { color: var(--owner-teal); font-weight: 800; cursor: pointer; }
.property-incident-form > div { display: grid; gap: 10px; margin-top: 14px; }
.property-incident-form label { display: grid; gap: 5px; color: var(--owner-deep); font-size: 13px; font-weight: 700; }
.property-incident-form input,
.property-incident-form textarea { width: 100%; padding: 9px; border: 1px solid var(--owner-line); border-radius: 8px; font: inherit; }
.property-incident-form textarea { min-height: 78px; resize: vertical; }

@media (max-width: 720px) {
  .property-governance-grid { grid-template-columns: 1fr; }
}
