@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #202e3e;
    --muted: #627184;
    --accent: #526c7d;
    --accent-dark: #384f61;
    --sidebar: #253847;
    --paper: #ffffff;
    --canvas: #f5f7f9;
    --line: #dfe5eb;
    --soft: #eaf0f4;
    --serif: Georgia, 'Times New Roman', serif;
    --shadow: 0 5px 20px rgb(32 46 62 / 5%);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 15px/1.55 'Segoe UI', Arial, sans-serif;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1, h2, h3 {
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(32px, 3vw, 46px);
    margin-bottom: 10px;
}

h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

a {
    color: var(--accent-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button, input, select, textarea {
    font: inherit;
}

button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    min-height: 46px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: var(--accent);
    color: white;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

button:hover, .button:hover {
    background: var(--accent-dark);
    color: white;
    text-decoration: none;
}

.secondary {
    color: var(--accent-dark);
    background: white;
}

.text-button {
    border: 0;
    color: var(--accent-dark);
    background: transparent;
    padding: 5px 10px;
}

input, select, textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--ink);
    background: white;
    border: 1px solid #cbd4de;
    border-radius: 5px;
}

input[type='checkbox'], input[type='radio'] {
    width: 19px;
    min-height: 19px;
    height: 19px;
    flex-shrink: 0;
    accent-color: var(--accent-dark);
}

input[type='file'] {
    max-width: 100%;
}

textarea {
    resize: vertical;
}

label {
    display: grid;
    gap: 7px;
    font-weight: 500;
    min-width: 0;
}

label small, .small, small {
    font-size: 12px;
    line-height: 1.5;
}

fieldset {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 14px;
    min-width: 0;
}

.borderless {
    border: 0;
    padding: 0;
    margin: 0;
}

.check {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 400;
    min-height: 40px;
}

:focus-visible {
    outline: 3px solid #b66a3f;
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    left: 15px;
    top: -100px;
    background: white;
    z-index: 100;
    padding: 10px;
}

.skip-link:focus {
    top: 10px;
}

.container {
    max-width: 1250px;
    width: calc(100% - 80px);
    margin-inline: auto;
}

.narrow {
    max-width: 760px;
}

.section {
    margin-block: 32px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 20px;
}

.muted, .page-heading p {
    color: var(--muted);
}

.lead {
    font-size: 19px;
    line-height: 1.7;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    font: 24px/1.1 var(--serif);
    color: inherit;
    letter-spacing: -0.02em;
}

.brand small {
    display: block;
    margin-top: 8px;
    font: 9px/1 'Segoe UI', sans-serif;
    letter-spacing: 0.3em;
}

.brand-logo {
    width: 310px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 3.6;
    object-fit: cover;
}

.public-header {
    max-width: 1330px;
    margin: auto;
    min-height: 90px;
    padding: 14px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.public-header nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
}

.hero {
    color: white;
    min-height: 410px;
    padding-block: 56px 90px;
    background: linear-gradient(90deg, rgb(20 35 43 / 78%), rgb(20 35 43 / 12%)), url('/assets/hero-ciudad-cerca.webp') center 50% / cover;
}

.hero h1 {
    font-size: clamp(46px, 5vw, 72px);
    max-width: 700px;
    line-height: 1.02;
}

.hero p:not(.eyebrow) {
    font: 21px/1.5 var(--serif);
    margin-block: 20px;
}

.hero small {
    font-size: 10px;
    opacity: 0.85;
}

.home-search {
    position: relative;
    margin-top: -48px;
}

.search-box {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    background: white;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 10px 24px rgb(20 35 43 / 10%);
    align-items: end;
}

.search-box label {
    font-size: 12px;
    color: var(--muted);
}

.search-box button {
    grid-column: 1 / -1;
}

.section-heading, .page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

.section-heading h2, .page-heading p {
    margin: 0;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.property-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.card-image {
    display: block;
    position: relative;
    height: 220px;
    background: var(--soft);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.operation-tag {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 6px 14px;
    background: var(--accent-dark);
    color: white;
    border-radius: 5px;
    font-size: 11px;
    text-transform: uppercase;
}

.card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-content > .badge { align-self: flex-start; }
.card-content h3 { height: 1.18em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-reduction { display: block; height: 1.5em; line-height: 1.5; white-space: nowrap; overflow: hidden; }
.card-content > .muted { height: 1.55em; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-content .price { min-height: 1.3em; margin-bottom: 6px; }
.card-content .card-bottom { margin-top: auto; }
.card-content .property-features { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 10px 0; gap: 8px 6px; }
.card-content .property-features li { min-width: 0; flex-direction: column; text-align: center; gap: 4px; }
.card-content .property-features li span { font-size: 11px; }
.property-card > .carousel { flex-shrink: 0; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .social-links { flex-wrap: nowrap; }
.social-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.social-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #111;
    border-radius: 50%;
    color: #111;
    background: #fff;
}
.social-circle:hover { color: #fff; background: #111; }
.social-circle:focus-visible, .floating-whatsapp:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.floating-whatsapp {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 16px #0003;
    z-index: 45;
}
.floating-whatsapp svg { width: 36px; height: 36px; }
.floating-whatsapp:hover { background: #1eb65a; color: #fff; }
.mobile-header-controls { display: none; }
@media (min-width: 901px) {
    .floating-whatsapp { bottom: 90px; }
}
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.contact-layout.contact-page { grid-template-columns: 1fr; gap: 32px; }
.contact-page > .container.section { width: 100%; padding: 0; margin: 0; }
.contact-page > .panel { width: 100%; max-width: 800px; justify-self: center; }
@media (min-width: 901px) {
    .contact-layout.contact-page { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; column-gap: 40px; }
    .contact-page > .container.section { grid-column: 1; grid-row: 2; }
    .contact-page > .panel { grid-column: 2; grid-row: 1 / span 2; }
    .contact-page .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.team-card { min-width: 0; text-align: center; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.team-card .staff-photo { width: 150px; margin-bottom: 14px; }
.team-card h3 { font-size: 18px; overflow-wrap: anywhere; }
.team-card .team-whatsapp { white-space: nowrap; }
.team-card .team-email { font-size: 13px; }
.staff-photo { display: block; width: 240px; max-width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; object-position: center; border-radius: 10px; margin: 0 auto 20px; }
.team-whatsapp, .table-whatsapp { display: inline-flex; align-items: center; gap: 6px; }
.team-email { display: block; margin-top: 10px; overflow-wrap: anywhere; }
.table-whatsapp { margin-top: 8px; font-size: 12px; white-space: nowrap; }
td:has(.table-whatsapp) .table-link { display: block; }

.card-content h3 {
    font-size: 21px;
    margin-bottom: 6px;
}

.card-content h3 a {
    color: var(--ink);
}

.price {
    font: bold 25px/1.3 var(--serif);
    color: var(--accent-dark);
    margin-bottom: 10px;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    flex-wrap: wrap;
}

.owner-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: var(--sidebar);
    color: white;
    padding: 35px 42px;
    border-radius: 8px;
}

.owner-callout h2, .owner-callout p {
    margin-bottom: 6px;
}

.about, .contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
}

.about {
    padding-block: 40px;
}

.about h2 {
    font-size: 40px;
}

.services {
    display: flex;
    gap: 24px;
    font-size: 13px;
}

.public-footer {
    border-top: 1px solid var(--line);
    margin: 40px auto 0;
    padding: 28px 40px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
}

.catalog-heading {
    padding-block: 40px 24px;
}

.empty {
    padding: 35px 20px;
    text-align: center;
    color: var(--muted);
    background: #fafbfc;
    border-radius: 6px;
}

.image-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--muted);
}

.property-heading {
    margin-top: 30px;
}

.public-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.public-gallery img, .public-gallery video {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--soft);
}

.features {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.features span {
    padding: 12px;
    background: var(--soft);
    border-radius: 6px;
}

.pre-line {
    white-space: pre-line;
}

.login-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 100vh;
}

.login-photo {
    background: linear-gradient(0deg, rgb(20 35 43 / 85%), rgb(20 35 43 / 18%) 65%, rgb(20 35 43 / 40%)), url('/assets/hero-ciudad-cerca.webp') center / cover;
    padding: 55px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
}

.login-photo h1 {
    font-size: clamp(40px, 4.5vw, 66px);
}

.login-photo p {
    font: 21px/1.5 var(--serif);
}

.login-form {
    padding: 80px clamp(28px, 6vw, 100px);
    align-self: center;
}

.login-form h2 {
    font-size: 42px;
}

.login-form details {
    font-size: 13px;
    margin-block: 28px;
}

.login-form summary {
    cursor: pointer;
    color: var(--accent-dark);
}

@media (min-width: 601px) {
    .login-layout { min-height: 100dvh; }
    .login-form { padding: clamp(20px, 4vh, 40px) clamp(24px, 4vw, 72px); }
    .login-form h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 12px; }
    .login-form .eyebrow, .login-form .lead { margin-bottom: 12px; }
    .login-form .stack { gap: 12px; }
    .login-form details { margin-block: 16px; }
}

@media (min-width: 601px) and (max-height: 700px) {
    .login-photo { padding: 28px; gap: 24px; }
    .login-form { padding-block: 16px; }
    .login-form .stack { gap: 8px; }
    .login-form details { margin-block: 12px; }
    .login-form .text-button { min-height: 32px; padding-block: 2px; }
}

.admin-body {
    background: var(--canvas);
}

.sidebar {
    display: flex;
    flex-direction: column;
    width: 230px;
    position: fixed;
    inset: 0 auto 0 0;
    background: var(--sidebar);
    color: white;
    padding: 32px 16px 20px;
    overflow: hidden;
    z-index: 30;
}

.sidebar .brand {
    flex-shrink: 0;
    padding: 0;
    margin-bottom: 20px;
    background: white;
    border-radius: 5px;
}

.sidebar nav {
    min-height: 0;
    overflow-y: auto;
    flex: 1;
    overscroll-behavior: contain;
}

.sidebar .eyebrow {
    flex-shrink: 0;
}

.sidebar .eyebrow {
    padding-left: 14px;
    color: #c0cbd5;
    margin-bottom: 10px;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #f2f5f8;
    padding: 11px 14px;
    margin-bottom: 4px;
    border-radius: 6px;
    font-size: 14px;
}

.sidebar nav a span {
    width: 23px;
    text-align: center;
    font-size: 22px;
    line-height: 1;
}

.sidebar svg {
    width: 22px;
    height: 22px;
    vertical-align: middle;
}

.stat-icon svg {
    width: 27px;
    height: 27px;
}

.property-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}

.property-cell img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
}

.property-cell small {
    display: block;
    font-weight: 400;
    color: var(--muted);
    margin-top: 4px;
}

.dashboard-grid td {
    min-width: 80px;
}

.demo-banner {
    margin-bottom: 18px;
}

.sidebar nav .active, .sidebar nav a:hover {
    background: var(--accent);
    text-decoration: none;
}

.nav-bottom {
    margin-top: 22px;
    border-top: 1px solid #51606e;
    padding-top: 15px;
}

.admin-shell {
    margin-left: 230px;
    min-width: 0;
}

.admin-topbar {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 32px;
    background: rgb(255 255 255 / 70%);
    border-bottom: 1px solid var(--line);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.avatar {
    display: inline-grid;
    place-items: center;
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e4edf3;
    color: var(--accent-dark);
    font: 17px var(--serif);
}

.admin-main {
    max-width: 1800px;
    padding: 30px 32px;
    margin: auto;
}

.page-heading {
    align-items: flex-start;
    margin-bottom: 28px;
}

.page-heading p {
    font-size: 16px;
}

.panel {
    background: white;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-width: 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 18px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 7px;
    box-shadow: var(--shadow);
    color: var(--ink);
}

.stat strong {
    display: block;
    font: bold 34px/1.2 var(--serif);
}

.stat div span {
    font-size: 12px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: var(--soft);
    border-radius: 50%;
    font-size: 27px;
}

.stat:nth-child(2) .stat-icon {
    background: #fcf0da;
}

.stat:nth-child(3) .stat-icon {
    background: #e5eefb;
}

.stat:nth-child(4) .stat-icon {
    background: #eeeaf4;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 22px;
}

.dashboard-grid .panel {
    padding: 20px;
}

.dashboard-grid h2 {
    font-size: 24px;
}

.dashboard-grid .section-heading a {
    font-size: 12px;
    white-space: nowrap;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

th {
    color: #4e6075;
    font-weight: 500;
    background: var(--canvas);
    padding: 12px;
}

td {
    padding: 17px 12px;
    border-bottom: 1px solid #ebeff3;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

td:first-child {
    font-weight: 600;
}

.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 5px 9px;
    background: var(--soft);
    color: #385366;
    border-radius: 6px;
    white-space: nowrap;
}

.warning {
    background: #fff1d8;
    color: #855000;
}

.task-select {
    width: auto;
    min-height: 0;
    border: 0;
    line-height: 1.55;
    cursor: pointer;
}

.task-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.badge[data-task-tone="red"] { background: #fde5e5; color: #923c3c; }
.badge[data-task-tone="yellow"] { background: #fff1d8; color: #855000; }
.badge[data-task-tone="green"] { background: #e3f2e7; color: #356547; }
.badge[data-task-tone="neutral"] { background: var(--soft); color: #385366; }
[data-task-status]:empty { display: none; }
[data-task-status]:not(:empty) { display: block; margin-top: 6px; color: #8b2721; }

.table-link {
    white-space: nowrap;
    font-size: 12px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 14px;
    margin-bottom: 24px;
}

.filter-bar label {
    flex: 1 1 125px;
    font-size: 12px;
}

.filter-bar .search-field {
    flex: 2 1 230px;
}

.filter-bar .check {
    flex: 0 0 auto;
}

.filter-bar a {
    align-self: center;
}

.stack {
    display: grid;
    gap: 20px;
}

.stack > button {
    justify-self: start;
}

.login-form .stack > button, .inquiry-form > button {
    justify-self: stretch;
}

.form-grid, .two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.full-width {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.notice {
    padding: 18px 24px;
    border: 1px solid #d5dee7;
    border-radius: 6px;
    background: var(--soft);
    margin: 20px;
}

.error {
    background: #fff0ed;
    color: #8d3024;
    border-color: #e5b2aa;
}

.success {
    background: #eaf5ef;
    color: #23543b;
}

.danger {
    color: #8d3024;
    border-color: #bf9d96;
}

.demo-banner {
    padding: 8px 24px;
    background: #fff2d9;
    color: #6a4a17;
    font-size: 12px;
    text-align: center;
}

.agenda-item {
    display: grid;
    padding: 16px 0 16px 18px;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid var(--soft);
    gap: 4px;
}

.agenda-item span {
    font-size: 12px;
}

.agenda-item strong {
    color: var(--ink);
}

.agenda-item small {
    color: var(--muted);
}

.activity {
    font-size: 13px;
    border-bottom: 1px solid var(--line);
    padding-block: 12px;
    margin: 0;
}

.pagination {
    display: flex;
    justify-content: end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.pagination .button {
    min-width: 40px;
    padding: 8px;
}

.gallery-editor {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gallery-item {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.gallery-item small {
    overflow-wrap: anywhere;
}

.document-preview {
    display: block;
    max-width: 100%;
    max-height: 600px;
    margin-top: 24px;
}

.permissions th, .permissions td {
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border: 1px solid var(--line);
    margin-bottom: 20px;
}

.calendar-day {
    min-height: 120px;
    padding: 8px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.calendar-day h3 {
    font: 12px 'Segoe UI', sans-serif;
    margin: 0 0 10px;
}

.today {
    background: #f1f5f9;
}

.event-card {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid #b8cad7;
    border-left: 4px solid var(--accent);
    background: #edf3f7;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.event-card small, .event-card span {
    font-size: 10px;
}

.cancelled {
    opacity: 0.7;
    border-left-color: #9b6c60;
}

.day-calendar {
    display: flex;
    overflow-x: auto;
    margin-bottom: 24px;
    min-height: 420px;
}

.day-person {
    flex: 1 0 220px;
    border-right: 1px solid var(--line);
    padding: 16px;
    background: repeating-linear-gradient(white 0, white 79px, #edf0f4 80px);
}

.day-person h2 {
    font: 16px 'Segoe UI', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.admin-footer {
    text-align: right;
    font-size: 11px;
    color: var(--muted);
    padding: 0 32px 22px;
}

.menu-button {
    display: none;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 1200px) {
    .sidebar {
        width: 205px;
    }

    .admin-shell {
        margin-left: 205px;
    }

    .admin-main {
        padding: 25px 22px;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .public-header nav {
        gap: 15px;
    }

    .search-box {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .search-box button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .mobile-header-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-basis: 100%;
        gap: 8px;
    }

    .public-header > .brand { flex-basis: 100%; display: flex; justify-content: center; }
    .public-header .brand-logo { width: min(310px, 100%); }
    .mobile-header-controls .menu-button { order: 2; margin-left: auto; }

    .mobile-header-controls .social-links {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .mobile-header-controls .social-circle {
        width: 30px;
        height: 30px;
    }

    .public-header .header-actions .social-links {
        display: none;
    }

    .public-header .menu-button {
        padding: 8px;
        font-size: 22px;
        line-height: 1;
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .team-card {
        padding: 12px 8px;
    }

    .team-card h3 {
        font-size: 16px;
    }

    .team-card .team-whatsapp, .team-card .team-email {
        font-size: 12px;
    }

    .team-card .staff-photo {
        width: 120px;
    }

    .menu-button {
        display: inline-flex;
    }

    .sidebar {
        display: none;
        top: 72px;
        width: 260px;
        box-shadow: 20px 0 40px rgb(0 0 0 / 20%);
    }

    .sidebar.is-open {
        display: flex;
    }

    .admin-shell {
        margin-left: 0;
    }

    .admin-topbar {
        position: sticky;
        top: 0;
        z-index: 40;
        background: white;
        padding: 12px 20px;
    }

    .admin-topbar > .muted {
        display: none;
    }

    .public-header {
        flex-wrap: wrap;
        padding: 20px;
    }

    .public-header nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .public-header nav.is-open {
        display: flex;
    }

    .container {
        width: calc(100% - 40px);
    }

    .property-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-layout, .about {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .login-photo {
        padding: 32px;
    }

    .calendar-grid {
        grid-template-columns: repeat(7, minmax(105px, 1fr));
    }

    .calendar-panel {
        overflow-x: auto;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 34px;
    }

    h2 {
        font-size: 25px;
    }

    .brand {
        font-size: 21px;
    }

    .hero {
        padding-block: 40px 90px;
        min-height: 380px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero p:not(.eyebrow) {
        font-size: 19px;
    }

    .search-box {
        grid-template-columns: 1fr 1fr;
        padding: 18px;
    }

    .search-box label:nth-child(1), .search-box label:nth-child(2), .search-box button {
        grid-column: 1 / -1;
    }

    .property-grid, .public-gallery, .form-grid, .two-columns, .gallery-editor {
        grid-template-columns: 1fr;
    }

    .property-card .card-image {
        height: 230px;
    }

    .section-heading {
        gap: 12px;
    }

    .section-heading a {
        font-size: 12px;
        flex-shrink: 0;
    }

    .owner-callout {
        display: grid;
        padding: 26px;
    }

    .services, .public-footer, .page-heading, .property-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .public-footer {
        padding: 25px 20px;
    }

    .public-gallery img, .public-gallery video {
        height: 260px;
    }

    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-photo {
        min-height: 260px;
        padding: 25px;
        gap: 24px;
    }

    .login-photo h1 {
        font-size: 36px;
    }

    .login-photo p, .login-photo small {
        display: none;
    }

    .login-form {
        padding: 35px 24px;
    }

    .login-form h2 {
        font-size: 34px;
    }

    .admin-main {
        padding: 24px 16px;
    }

    .admin-topbar {
        padding-inline: 16px;
    }

    .user-menu {
        gap: 6px;
        font-size: 12px;
    }

    .user-menu .avatar {
        display: none;
    }

    .stats {
        gap: 10px;
    }

    .stat {
        padding: 16px 12px;
        gap: 9px;
    }

    .stat-icon {
        width: 33px;
        height: 33px;
        font-size: 21px;
    }

    .stat strong {
        font-size: 28px;
    }

    .stat > span:last-child:not(.stat-icon) {
        display: none;
    }

    .panel, .dashboard-grid .panel {
        padding: 18px 14px;
    }

    .table-scroll table:not(.permissions) thead {
        display: none;
    }

    .table-scroll table:not(.permissions) tr {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
    }

    .table-scroll table:not(.permissions) td {
        display: flex;
        gap: 12px;
        justify-content: space-between;
        border: 0;
        padding: 5px 0;
        text-align: right;
    }

    td[data-label]::before {
        content: attr(data-label);
        color: var(--muted);
        font-weight: 400;
        text-align: left;
    }

    .calendar-grid {
        display: block;
    }

    .calendar-day {
        min-height: 60px;
    }

    .day-calendar {
        display: block;
        min-height: 0;
    }

    .day-person {
        border: 0;
        padding: 10px 0;
        background: white;
    }

    .calendar-toolbar label {
        flex-basis: 40%;
    }

    .form-actions {
        flex-wrap: wrap;
    }

    .notice {
        margin: 15px 0;
    }
}


.desktop-timeline {
    display: flex;
    overflow-x: auto;
    margin-bottom: 24px;
}

.time-column {
    flex: 0 0 65px;
}

.timeline-person {
    flex: 1 0 240px;
    min-width: 0;
}

.timeline-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    margin: 0;
    gap: 10px;
    font: 15px 'Segoe UI', sans-serif;
    border-bottom: 1px solid var(--line);
}

.timeline-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 20px;
    border-right: 1px solid var(--line);
    background: repeating-linear-gradient(white 0, white 79px, #dfe5eb 80px);
}

.timeline-event {
    grid-column: 1;
    padding: 4px 10px;
    margin: 1px 5px;
    gap: 0;
    overflow: hidden;
    min-height: 0;
    align-content: start;
}

.timeline-end {
    grid-column: 1;
    pointer-events: none;
}

.hour-label {
    font-size: 12px;
    color: var(--muted);
}

.mobile-calendar {
    display: none;
}

.slot-0 {
    grid-row-start: 1;
}

.end-0 {
    grid-row-end: 1;
}

.slot-1 {
    grid-row-start: 2;
}

.end-1 {
    grid-row-end: 2;
}

.slot-2 {
    grid-row-start: 3;
}

.end-2 {
    grid-row-end: 3;
}

.slot-3 {
    grid-row-start: 4;
}

.end-3 {
    grid-row-end: 4;
}

.slot-4 {
    grid-row-start: 5;
}

.end-4 {
    grid-row-end: 5;
}

.slot-5 {
    grid-row-start: 6;
}

.end-5 {
    grid-row-end: 6;
}

.slot-6 {
    grid-row-start: 7;
}

.end-6 {
    grid-row-end: 7;
}

.slot-7 {
    grid-row-start: 8;
}

.end-7 {
    grid-row-end: 8;
}

.slot-8 {
    grid-row-start: 9;
}

.end-8 {
    grid-row-end: 9;
}

.slot-9 {
    grid-row-start: 10;
}

.end-9 {
    grid-row-end: 10;
}

.slot-10 {
    grid-row-start: 11;
}

.end-10 {
    grid-row-end: 11;
}

.slot-11 {
    grid-row-start: 12;
}

.end-11 {
    grid-row-end: 12;
}

.slot-12 {
    grid-row-start: 13;
}

.end-12 {
    grid-row-end: 13;
}

.slot-13 {
    grid-row-start: 14;
}

.end-13 {
    grid-row-end: 14;
}

.slot-14 {
    grid-row-start: 15;
}

.end-14 {
    grid-row-end: 15;
}

.slot-15 {
    grid-row-start: 16;
}

.end-15 {
    grid-row-end: 16;
}

.slot-16 {
    grid-row-start: 17;
}

.end-16 {
    grid-row-end: 17;
}

.slot-17 {
    grid-row-start: 18;
}

.end-17 {
    grid-row-end: 18;
}

.slot-18 {
    grid-row-start: 19;
}

.end-18 {
    grid-row-end: 19;
}

.slot-19 {
    grid-row-start: 20;
}

.end-19 {
    grid-row-end: 20;
}

.slot-20 {
    grid-row-start: 21;
}

.end-20 {
    grid-row-end: 21;
}

.slot-21 {
    grid-row-start: 22;
}

.end-21 {
    grid-row-end: 22;
}

.slot-22 {
    grid-row-start: 23;
}

.end-22 {
    grid-row-end: 23;
}

.slot-23 {
    grid-row-start: 24;
}

.end-23 {
    grid-row-end: 24;
}

.slot-24 {
    grid-row-start: 25;
}

.end-24 {
    grid-row-end: 25;
}

.slot-25 {
    grid-row-start: 26;
}

.end-25 {
    grid-row-end: 26;
}

.slot-26 {
    grid-row-start: 27;
}

.end-26 {
    grid-row-end: 27;
}

.slot-27 {
    grid-row-start: 28;
}

.end-27 {
    grid-row-end: 28;
}

.slot-28 {
    grid-row-start: 29;
}

.end-28 {
    grid-row-end: 29;
}

.slot-29 {
    grid-row-start: 30;
}

.end-29 {
    grid-row-end: 30;
}

.slot-30 {
    grid-row-start: 31;
}

.end-30 {
    grid-row-end: 31;
}

.slot-31 {
    grid-row-start: 32;
}

.end-31 {
    grid-row-end: 32;
}

.slot-32 {
    grid-row-start: 33;
}

.end-32 {
    grid-row-end: 33;
}

.slot-33 {
    grid-row-start: 34;
}

.end-33 {
    grid-row-end: 34;
}

.slot-34 {
    grid-row-start: 35;
}

.end-34 {
    grid-row-end: 35;
}

.slot-35 {
    grid-row-start: 36;
}

.end-35 {
    grid-row-end: 36;
}

.slot-36 {
    grid-row-start: 37;
}

.end-36 {
    grid-row-end: 37;
}

.slot-37 {
    grid-row-start: 38;
}

.end-37 {
    grid-row-end: 38;
}

.slot-38 {
    grid-row-start: 39;
}

.end-38 {
    grid-row-end: 39;
}

.slot-39 {
    grid-row-start: 40;
}

.end-39 {
    grid-row-end: 40;
}

.slot-40 {
    grid-row-start: 41;
}

.end-40 {
    grid-row-end: 41;
}

.slot-41 {
    grid-row-start: 42;
}

.end-41 {
    grid-row-end: 42;
}

.slot-42 {
    grid-row-start: 43;
}

.end-42 {
    grid-row-end: 43;
}

.slot-43 {
    grid-row-start: 44;
}

.end-43 {
    grid-row-end: 44;
}

.slot-44 {
    grid-row-start: 45;
}

.end-44 {
    grid-row-end: 45;
}

.slot-45 {
    grid-row-start: 46;
}

.end-45 {
    grid-row-end: 46;
}

.slot-46 {
    grid-row-start: 47;
}

.end-46 {
    grid-row-end: 47;
}

.slot-47 {
    grid-row-start: 48;
}

.end-47 {
    grid-row-end: 48;
}

.slot-48 {
    grid-row-start: 49;
}

.end-48 {
    grid-row-end: 49;
}

.slot-49 {
    grid-row-start: 50;
}

.end-49 {
    grid-row-end: 50;
}

.slot-50 {
    grid-row-start: 51;
}

.end-50 {
    grid-row-end: 51;
}

.slot-51 {
    grid-row-start: 52;
}

.end-51 {
    grid-row-end: 52;
}

.slot-52 {
    grid-row-start: 53;
}

.end-52 {
    grid-row-end: 53;
}

.slot-53 {
    grid-row-start: 54;
}

.end-53 {
    grid-row-end: 54;
}

.slot-54 {
    grid-row-start: 55;
}

.end-54 {
    grid-row-end: 55;
}

.slot-55 {
    grid-row-start: 56;
}

.end-55 {
    grid-row-end: 56;
}

.slot-56 {
    grid-row-start: 57;
}

.end-56 {
    grid-row-end: 57;
}

.slot-57 {
    grid-row-start: 58;
}

.end-57 {
    grid-row-end: 58;
}

.slot-58 {
    grid-row-start: 59;
}

.end-58 {
    grid-row-end: 59;
}

.slot-59 {
    grid-row-start: 60;
}

.end-59 {
    grid-row-end: 60;
}

.slot-60 {
    grid-row-start: 61;
}

.end-60 {
    grid-row-end: 61;
}

.slot-61 {
    grid-row-start: 62;
}

.end-61 {
    grid-row-end: 62;
}

.slot-62 {
    grid-row-start: 63;
}

.end-62 {
    grid-row-end: 63;
}

.slot-63 {
    grid-row-start: 64;
}

.end-63 {
    grid-row-end: 64;
}

.slot-64 {
    grid-row-start: 65;
}

.end-64 {
    grid-row-end: 65;
}

.slot-65 {
    grid-row-start: 66;
}

.end-65 {
    grid-row-end: 66;
}

.slot-66 {
    grid-row-start: 67;
}

.end-66 {
    grid-row-end: 67;
}

.slot-67 {
    grid-row-start: 68;
}

.end-67 {
    grid-row-end: 68;
}

.slot-68 {
    grid-row-start: 69;
}

.end-68 {
    grid-row-end: 69;
}

.slot-69 {
    grid-row-start: 70;
}

.end-69 {
    grid-row-end: 70;
}

.slot-70 {
    grid-row-start: 71;
}

.end-70 {
    grid-row-end: 71;
}

.slot-71 {
    grid-row-start: 72;
}

.end-71 {
    grid-row-end: 72;
}

.slot-72 {
    grid-row-start: 73;
}

.end-72 {
    grid-row-end: 73;
}

.slot-73 {
    grid-row-start: 74;
}

.end-73 {
    grid-row-end: 74;
}

.slot-74 {
    grid-row-start: 75;
}

.end-74 {
    grid-row-end: 75;
}

.slot-75 {
    grid-row-start: 76;
}

.end-75 {
    grid-row-end: 76;
}

.slot-76 {
    grid-row-start: 77;
}

.end-76 {
    grid-row-end: 77;
}

.slot-77 {
    grid-row-start: 78;
}

.end-77 {
    grid-row-end: 78;
}

.slot-78 {
    grid-row-start: 79;
}

.end-78 {
    grid-row-end: 79;
}

.slot-79 {
    grid-row-start: 80;
}

.end-79 {
    grid-row-end: 80;
}

.slot-80 {
    grid-row-start: 81;
}

.end-80 {
    grid-row-end: 81;
}

.slot-81 {
    grid-row-start: 82;
}

.end-81 {
    grid-row-end: 82;
}

.slot-82 {
    grid-row-start: 83;
}

.end-82 {
    grid-row-end: 83;
}

.slot-83 {
    grid-row-start: 84;
}

.end-83 {
    grid-row-end: 84;
}

.slot-84 {
    grid-row-start: 85;
}

.end-84 {
    grid-row-end: 85;
}

.slot-85 {
    grid-row-start: 86;
}

.end-85 {
    grid-row-end: 86;
}

.slot-86 {
    grid-row-start: 87;
}

.end-86 {
    grid-row-end: 87;
}

.slot-87 {
    grid-row-start: 88;
}

.end-87 {
    grid-row-end: 88;
}

.slot-88 {
    grid-row-start: 89;
}

.end-88 {
    grid-row-end: 89;
}

.slot-89 {
    grid-row-start: 90;
}

.end-89 {
    grid-row-end: 90;
}

.slot-90 {
    grid-row-start: 91;
}

.end-90 {
    grid-row-end: 91;
}

.slot-91 {
    grid-row-start: 92;
}

.end-91 {
    grid-row-end: 92;
}

.slot-92 {
    grid-row-start: 93;
}

.end-92 {
    grid-row-end: 93;
}

.slot-93 {
    grid-row-start: 94;
}

.end-93 {
    grid-row-end: 94;
}

.slot-94 {
    grid-row-start: 95;
}

.end-94 {
    grid-row-end: 95;
}

.slot-95 {
    grid-row-start: 96;
}

.end-95 {
    grid-row-end: 96;
}

.slot-96 {
    grid-row-start: 97;
}

.end-96 {
    grid-row-end: 97;
}

@media (max-width: 600px) {
    .desktop-timeline {
        display: none;
    }

    .mobile-calendar {
        display: block;
    }
}

/* Galerías manuales: la portada permanece quieta hasta una acción del visitante. */
[hidden] { display: none !important; }
.carousel { position: relative; overflow: hidden; background: #edf0f1; border-radius: 8px; }
.carousel [data-slide] { display: block; width: 100%; height: 100%; }
.carousel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel.card-image { height: 235px; }
.detail-carousel { width: min(100%, 960px); height: min(60svh, 550px); margin: 0 auto; }
.detail-carousel img { object-fit: contain; }
.carousel button { position: absolute; top: 50%; transform: translateY(-50%); border: 0; border-radius: 0; background: transparent; color: white; width: 44px; height: 48px; padding: 0; font-size: 46px; line-height: 1; box-shadow: none; text-shadow: 0 1px 4px #000, 0 0 2px #000; }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-count { position: absolute; bottom: 12px; right: 12px; background: #253847e6; color: white; padding: 4px 10px; border-radius: 20px; font-size: 12px; }
.property-features { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; margin: 20px 0; }
.property-features li { display: flex; gap: 6px; align-items: center; font-size: 12px; line-height: 1.4; }
.property-features svg { flex-shrink: 0; color: #647e8e; }
.property-features strong { display: block; font-size: 15px; color: #253847; }
.card-bottom { display: block; }
.property-video { display: block; max-width: 100%; max-height: 480px; margin: 20px auto; }
.save-status { position: sticky; top: 8px; z-index: 5; padding: 10px 14px; background: #edf4f0; color: #23513e; border-radius: 6px; }
.save-status.error { background: #fff0ed; color: #8b2721; }
.public-footer {
    display: block;
    padding-block: 36px 28px;
}

.footer-services {
    margin: 0 0 28px;
    text-align: center;
    white-space: nowrap;
    font-size: clamp(12px, 2.3vw, 18px);
    font-weight: 600;
}

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px clamp(32px, 5vw, 80px);
    text-align: center;
    line-height: 1.8;
    font-size: 13px;
}

.footer-legal > * { flex: 0 1 520px; }
.footer-captcha { font-size: inherit; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.footer-team {
    font-size: 10.6px;
    padding: 7.2px 12px;
    min-height: 27.6px;
    gap: 6px;
    border-width: 0.6px;
    border-radius: 3.6px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .footer-legal { flex-direction: column; gap: 16px; }
    .footer-legal > * { flex: auto; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0; }
    .footer-team { order: -1; align-self: flex-end; }
    .footer-bottom .footer-developer { margin-top: 64px; font-size: 11px; }
}

.footer-developer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}

.footer-developer img {
    display: block;
    width: 125px;
    max-width: 100%;
    height: auto;
}
.login-photo .brand { background: white; border-radius: 6px; width: fit-content; }
.login-photo .brand-logo { width: 155px; }
@media (max-width: 600px) {
    .public-header { padding: 12px 18px; gap: 10px; }
    .property-features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 6px; }
    .property-features li { flex-direction: column; text-align: center; gap: 5px; }
    .property-features li span { font-size: 11px; }
    .detail-carousel { height: min(45svh, 375px); }
    .g-recaptcha { max-width: 100%; overflow-x: auto; }
}

.sidebar nav { scrollbar-width: thin; scrollbar-color: #91a5b466 transparent; }
.sidebar nav::-webkit-scrollbar { width: 5px; }
.sidebar nav::-webkit-scrollbar-track { background: transparent; }
.sidebar nav::-webkit-scrollbar-thumb { background: #91a5b466; border-radius: 8px; }
.sidebar nav::-webkit-scrollbar-thumb:hover { background: #b8c7d099; }
.carousel button:hover, .carousel button:active { background: transparent; border: 0; box-shadow: none; color: white; }
.carousel button:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.property-cta { width: 100%; margin-top: 8px; justify-content: center; font-weight: 700; }

/* La identificación y los enlaces de reCAPTCHA permanecen visibles en los formularios. */
.grecaptcha-badge { visibility: hidden; }

.property-contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin: 32px 0; }
.property-contact-actions [data-share-result]:empty { display: none; }
.carousel [data-slide] { cursor: zoom-in; }
body.lightbox-open { overflow: hidden; }
.photo-lightbox { box-sizing: border-box; position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: 65px 65px 75px; background: #10171cf5; color: white; }
.photo-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.photo-lightbox::backdrop { background: #10171c; }
.photo-lightbox img { display: block; width: 100%; height: 100%; object-fit: contain; }
.photo-lightbox button, .photo-lightbox button:hover { position: absolute; background: transparent; border: 0; box-shadow: none; color: white; padding: 0; min-width: 48px; height: 48px; font-size: 44px; line-height: 1; }
.photo-lightbox button:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.lightbox-close { top: 10px; right: 14px; }
.lightbox-prev { left: 8px; top: calc(50% - 24px); }
.lightbox-next { right: 8px; top: calc(50% - 24px); }
.lightbox-caption { position: absolute; bottom: 14px; left: 20px; right: 20px; text-align: center; margin: 0; font-size: 14px; }
@media (max-width: 600px) {
    .photo-lightbox { padding: 65px 12px 85px; }
    .photo-lightbox .lightbox-prev, .photo-lightbox .lightbox-next { text-shadow: 0 1px 4px black; }
    .property-contact-actions { margin: 28px 0; }
}
