:root {
    color-scheme: light;
    --font-ui: "Source Sans 3", "Segoe UI", sans-serif;
    --font-display: "Work Sans", "Segoe UI", sans-serif;
    --color-marfil: #f7f3ec;
    --color-piedra: #e7e1d8;
    --color-piedra-fuerte: #d7cdc0;
    --color-petroleo: #2f5d62;
    --color-petroleo-profundo: #24484c;
    --color-petroleo-suave: #7fa7a3;
    --color-carbon: #2e2b28;
    --color-gris-piedra: #6e6a64;
    --color-crema: #fffdf8;
    --color-oliva-niebla: #c9d9cc;
    --color-arenisca: #bfad98;
    --color-oro-suave: #d8b36a;
    --color-terracota: #b86a5b;
    --app-header-height: 76px;
    --shadow-soft: 0 18px 40px rgb(36 72 76 / 10%);
    --shadow-card: 0 10px 24px rgb(36 72 76 / 8%);
    background:
        radial-gradient(circle at top left, rgb(255 255 255 / 0.85), transparent 28%),
        radial-gradient(circle at bottom right, rgb(191 173 152 / 0.25), transparent 24%),
        linear-gradient(180deg, #f8f4ee 0%, #efe9df 100%);
    color: var(--color-carbon);
    font-family: var(--font-ui);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background: transparent;
    color: var(--color-carbon);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

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

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

.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--app-header-height);
    padding: 0 28px;
    border-bottom: 1px solid rgb(47 93 98 / 0.1);
    background: rgb(255 253 248 / 0.94);
    box-shadow: 0 8px 24px rgb(36 72 76 / 0.06);
    backdrop-filter: blur(14px);
}

.app-header-brand {
    display: inline-flex;
    align-items: center;
}

.app-header-brand-lockup {
    gap: 10px;
    margin: 0;
}

.app-header .brand-key {
    min-width: 58px;
    height: 42px;
    padding: 0 12px;
    border-color: rgb(36 72 76 / 0.14);
    border-radius: 12px;
    background: linear-gradient(180deg, var(--color-petroleo) 0%, var(--color-petroleo-profundo) 100%);
    color: #fff8ef;
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 0.16),
        0 8px 16px rgb(36 72 76 / 0.16);
}

.app-header .brand-key::after {
    inset: 5px;
    border-color: rgb(255 255 255 / 0.1);
    border-radius: 8px;
}

.app-header .brand-plus {
    color: var(--color-gris-piedra);
    font-size: 1.25rem;
}

.app-header .brand-wordmark h1 {
    margin: 0;
    color: var(--color-petroleo-profundo);
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.app-header-session {
    display: flex;
    align-items: center;
    gap: 14px;
}

.app-header-user {
    display: grid;
    justify-items: end;
    line-height: 1.2;
}

.app-header-user strong {
    color: var(--color-petroleo-profundo);
    font-size: 0.95rem;
}

.app-header-user span {
    margin-top: 3px;
    color: var(--color-gris-piedra);
    font-size: 0.8rem;
}

.app-header-logout {
    display: flex;
    margin: 0;
}

.app-header-logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgb(47 93 98 / 0.14);
    border-radius: 999px;
    background: transparent;
    color: var(--color-petroleo-profundo);
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.app-header-logout-button svg {
    width: 21px;
    height: 21px;
}

.app-header-logout-button:hover,
.app-header-logout-button:focus-visible {
    background: rgb(47 93 98 / 0.08);
    color: var(--color-petroleo);
    outline: none;
    transform: translateY(-1px);
}

.shell {
    display: grid;
    grid-template-columns: 278px minmax(0, 1fr);
    min-height: calc(100vh - var(--app-header-height));
}

.sidebar {
    position: sticky;
    top: var(--app-header-height);
    height: calc(100vh - var(--app-header-height));
    overflow-y: auto;
    padding: 28px 24px;
    background:
        linear-gradient(180deg, rgb(255 255 255 / 0.04), transparent 28%),
        linear-gradient(180deg, var(--color-petroleo-profundo) 0%, #1e3d40 100%);
    color: #f5efe6;
    box-shadow: inset -1px 0 0 rgb(255 255 255 / 0.06);
}

.brand {
    margin-bottom: 34px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.brand-key {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    height: 54px;
    padding: 0 16px;
    border: 1px solid rgb(255 255 255 / 0.15);
    border-radius: 15px;
    background: linear-gradient(180deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.06));
    color: #fff8ef;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 0.18),
        0 12px 20px rgb(0 0 0 / 0.15);
    transform: rotate(-8deg);
    transform-origin: center;
}

.brand-key::after {
    position: absolute;
    inset: 6px;
    border: 1px solid rgb(255 255 255 / 0.08);
    border-radius: 11px;
    content: "";
}

.brand-key span {
    position: relative;
    z-index: 1;
}

.brand-wordmark {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.brand-plus {
    color: rgb(245 239 230 / 0.76);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
}

.brand h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}

.brand p {
    margin: 8px 0 0;
    color: rgb(245 239 230 / 0.68);
    line-height: 1.5;
}

.nav {
    display: grid;
    gap: 8px;
}

.nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid transparent;
    border-radius: 16px;
    color: rgb(245 239 230 / 0.85);
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.nav-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-nav-more {
    display: contents;
}

.mobile-nav-more-button {
    display: none;
}

.mobile-nav-popover {
    display: contents;
}

.mobile-only-nav-item {
    display: none !important;
}

.nav a:hover,
.nav a:focus-visible {
    transform: translateX(4px);
    border-color: rgb(255 255 255 / 0.08);
    background: rgb(255 255 255 / 0.08);
    outline: none;
}

.nav a.active {
    border-color: rgb(255 255 255 / 0.1);
    background: linear-gradient(180deg, rgb(255 255 255 / 0.14), rgb(255 255 255 / 0.08));
    color: #fff8ef;
}

.nav-bullet {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.75;
}

.sidebar-footer {
    position: absolute;
    right: 24px;
    bottom: 24px;
    left: 24px;
    padding: 16px;
    border: 1px solid rgb(255 255 255 / 0.1);
    border-radius: 18px;
    background: rgb(255 255 255 / 0.07);
}

.sidebar-footer strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.98rem;
}

.sidebar-footer span {
    color: rgb(245 239 230 / 0.7);
    font-size: 0.95rem;
    line-height: 1.45;
}

.sidebar-logout {
    margin-top: 14px;
}

.sidebar-logout-button {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.08);
    color: #f7f3ec;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.flash {
    position: relative;
    margin-bottom: 18px;
    padding: 14px 48px 14px 16px;
    border: 1px solid transparent;
    border-radius: 18px;
    font-weight: 600;
    line-height: 1.5;
}

.flash-dismiss {
    position: absolute;
    top: 8px;
    right: 10px;
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: currentColor;
    font: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.72;
}

.flash-dismiss:hover,
.flash-dismiss:focus-visible {
    background: rgb(255 255 255 / 0.42);
    outline: none;
    opacity: 1;
}

.flash.is-dismissing {
    animation: flash-dismiss-out 180ms ease forwards;
}

@keyframes flash-dismiss-out {
    to {
        opacity: 0;
        transform: translateY(-6px);
    }
}

.flash-success {
    border-color: rgb(93 138 103 / 0.18);
    background: rgb(201 217 204 / 0.36);
    color: #35573d;
}

.flash-warning {
    border-color: rgb(216 179 106 / 0.22);
    background: rgb(216 179 106 / 0.18);
    color: #7c5a1b;
}

.flash-error {
    border-color: rgb(184 106 91 / 0.18);
    background: rgb(184 106 91 / 0.14);
    color: #8f4639;
}

.guest-body {
    display: grid;
    place-items: center;
    padding: 28px;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(300px, 420px) minmax(0, 560px);
    width: min(100%, 1120px);
    min-height: calc(100vh - 56px);
    overflow: hidden;
    border: 1px solid rgb(47 93 98 / 0.08);
    border-radius: 32px;
    background: rgb(255 253 248 / 0.84);
    box-shadow: var(--shadow-soft);
}

.auth-aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: 34px 30px;
    background:
        radial-gradient(circle at top left, rgb(255 255 255 / 0.08), transparent 30%),
        linear-gradient(180deg, var(--color-petroleo-profundo) 0%, #1e3d40 100%);
    color: #f5efe6;
}

.brand-auth {
    margin-bottom: 0;
}

.auth-note {
    padding: 22px;
    border: 1px solid rgb(255 255 255 / 0.1);
    border-radius: 22px;
    background: rgb(255 255 255 / 0.06);
}

.auth-note small {
    display: inline-block;
    margin-bottom: 8px;
    color: rgb(245 239 230 / 0.68);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-note h2 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.auth-note p {
    margin: 0;
    color: rgb(245 239 230 / 0.74);
    line-height: 1.6;
}

.auth-note-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.auth-note-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: rgb(245 239 230 / 0.85);
    line-height: 1.45;
}

.auth-note-item svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--color-oliva-niebla);
}

.auth-stage {
    padding: 34px;
}

.auth-card {
    padding: 32px;
    border: 1px solid rgb(47 93 98 / 0.08);
    border-radius: 28px;
    background: linear-gradient(180deg, rgb(255 253 248 / 0.96), rgb(252 248 242 / 0.94));
    box-shadow: var(--shadow-card);
}

.auth-card-wide {
    max-width: 100%;
}

.auth-card-header small {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--color-gris-piedra);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-card-header h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.auth-card-header p {
    margin: 12px 0 0;
    color: var(--color-gris-piedra);
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.auth-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
    align-items: start;
}

.field {
    display: grid;
    gap: 8px;
    min-width: 0;
    width: 100%;
}

.field-control-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 10px;
    align-items: center;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.field-control-row > * {
    min-width: 0;
}

.date-picker-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.date-picker-wrap input[type="text"] {
    flex: 1;
    min-width: 0;
    padding-right: 38px;
}

.date-picker-hidden {
    position: absolute;
    top: 50%;
    right: 6px;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
    opacity: 0;
    margin: 0;
    padding: 0;
    border: 0;
    pointer-events: none;
}

.date-picker-trigger {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--color-gris-piedra);
    cursor: pointer;
    z-index: 2;
    padding: 0;
    border-radius: 8px;
    flex-shrink: 0;
    transition: color 150ms ease, background-color 150ms ease;
}

.date-picker-wrap:hover .date-picker-trigger,
.date-picker-wrap:focus-within .date-picker-trigger {
    color: var(--color-petroleo);
    background: rgb(47 93 98 / 0.07);
}

.date-picker-trigger svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.field-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.field-password-wrap input {
    flex: 1;
    min-width: 0;
    padding-right: 44px;
}

.field-password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--color-gris-piedra);
    cursor: pointer;
    z-index: 2;
    padding: 0;
    border-radius: 8px;
    flex-shrink: 0;
    transition: color 150ms ease, background-color 150ms ease;
}

.field-password-wrap:hover .field-password-toggle,
.field-password-wrap:focus-within .field-password-toggle {
    color: var(--color-petroleo);
    background: rgb(47 93 98 / 0.07);
}

.field-password-toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.field-control-row input[data-date-display] {
    min-width: 0;
}

.field-control-row input[type="time"] {
    min-width: 0;
    padding-left: 12px;
    padding-right: 12px;
}

.field-full {
    grid-column: 1 / -1;
}

.field span {
    font-weight: 700;
    color: var(--color-petroleo-profundo);
}

.field:has([required]) > span::after {
    content: ' *';
    color: var(--color-petroleo);
    opacity: 0.55;
}

.field input,
.field select,
.field textarea {
    min-height: 48px;
    width: 100%;
    padding: 0 15px;
    border: 1px solid rgb(47 93 98 / 0.12);
    border-radius: 16px;
    background: #fff;
    color: var(--color-carbon);
    font: inherit;
    box-sizing: border-box;
}

.field select {
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    background-image: 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='%232f5d62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.field-control-row input[type="time"] {
    min-width: 0;
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    width: 100%;
}

.calendar-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
}

.calendar-filter span {
    color: var(--color-gris-piedra);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.calendar-filter select {
    min-width: 290px;
    max-width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid rgb(47 93 98 / 0.12);
    border-radius: 14px;
    background: #fffdfa;
    box-shadow: none;
    color: var(--color-petroleo-profundo);
    font-weight: 600;
}

.calendar-filter-inline {
    display: grid;
    justify-content: flex-start;
    gap: 4px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.calendar-filter-inline span {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    line-height: 1;
}

.calendar-filter-inline select {
    min-width: 260px;
    width: auto;
    padding: 0 42px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.calendar-filter-inline select:focus {
    border: 0;
    outline: none;
}

.calendar-section-header h3 {
    margin-bottom: 10px;
}

.field textarea {
    width: 100%;
    min-height: 132px;
    padding: 14px 15px;
    border: 1px solid rgb(47 93 98 / 0.12);
    border-radius: 16px;
    background: #fff;
    color: var(--color-carbon);
    font: inherit;
    resize: vertical;
}

.field input:focus,
.field select:focus {
    border-color: rgb(47 93 98 / 0.32);
    outline: 2px solid rgb(47 93 98 / 0.1);
    outline-offset: 0;
}

.field textarea:focus {
    border-color: rgb(47 93 98 / 0.32);
    outline: 2px solid rgb(47 93 98 / 0.1);
    outline-offset: 0;
}

.field-error,
.inline-error {
    color: #8f4639;
    font-size: 0.92rem;
    font-weight: 600;
}

.inline-error {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid rgb(184 106 91 / 0.16);
    border-radius: 18px;
    background: rgb(184 106 91 / 0.08);
}

.auth-submit {
    justify-content: center;
    width: 100%;
}

.auth-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 22px;
    color: var(--color-gris-piedra);
}

.auth-footer-links a {
    color: var(--color-petroleo-profundo);
    font-weight: 700;
}

.auth-panel {
    margin-top: 22px;
    padding: 18px;
    border-radius: 20px;
    background: rgb(231 225 216 / 0.4);
    color: var(--color-carbon);
}

.auth-panel p {
    margin: 0 0 12px;
    line-height: 1.6;
}

.auth-panel p:last-child {
    margin-bottom: 0;
}

.field-help {
    color: var(--color-gris-piedra);
    font-size: 0.9rem;
}

.field-help a {
    color: var(--color-petroleo-profundo);
    font-weight: 700;
}

.property-form-card {
    margin-top: 4px;
}

.content {
    padding: 32px;
}

.content-calendar {
    height: calc(100vh - var(--app-header-height));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}

.content-calendar > section.card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.content-calendar .calendar-wrap-page {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}

.content-calendar .calendar-grid {
    flex: 1;
    min-height: 0;
    grid-template-rows: 28px;
    grid-auto-rows: minmax(0, 1fr);
}

.content-calendar .day {
    min-height: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.page-intro small,
.section-header small {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--color-gris-piedra);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-intro h2,
.section-header h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.04;
}

.page-intro p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--color-gris-piedra);
    font-size: 1.02rem;
    line-height: 1.65;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    align-items: flex-end;
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    padding: 26px 28px 30px;
}

.channel-card {
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid rgb(47 93 98 / 0.08);
    border-radius: 24px;
    background: rgb(255 253 248 / 0.72);
}

.channel-card-header h4 {
    margin: 0;
    font-size: 1.12rem;
}

.channel-card-status {
    margin: 6px 0 0;
    color: var(--color-gris-piedra);
    font-size: 0.95rem;
}

.channel-form,
.channel-sync-form {
    display: grid;
    gap: 14px;
}

.inline-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-carbon);
    font-size: 0.96rem;
}

.inline-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--color-petroleo);
}

.channel-meta {
    display: grid;
    gap: 6px;
    color: var(--color-gris-piedra);
    font-size: 0.92rem;
}

.channel-error {
    color: #8b4a3e;
}

.channel-actions {
    display: flex;
    justify-content: flex-start;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid rgb(47 93 98 / 0.12);
    border-radius: 999px;
    background: rgb(255 253 248 / 0.72);
    box-shadow: var(--shadow-card);
    color: var(--color-carbon);
    font-size: 0.95rem;
}

.pill strong {
    color: var(--color-petroleo-profundo);
    font-weight: 700;
}

.layout-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.dashboard-start-card {
    grid-column: 1 / -1;
    overflow: visible;
}

.card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgb(47 93 98 / 0.08);
    border-radius: 28px;
    background: linear-gradient(180deg, rgb(255 253 248 / 0.96), rgb(252 248 242 / 0.94));
    box-shadow: var(--shadow-soft);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 26px 28px 20px;
    border-bottom: 1px solid rgb(47 93 98 / 0.08);
}

.section-header p {
    margin: 8px 0 0;
    color: var(--color-gris-piedra);
    line-height: 1.55;
}

.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease;
}

.button-primary {
    background: var(--color-petroleo);
    color: #f9f5ee;
    box-shadow: none;
}

.button-secondary {
    border: 1px solid rgb(47 93 98 / 0.16);
    background: rgb(255 253 248 / 0.72);
    color: var(--color-petroleo-profundo);
}

.button-small {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.92rem;
}

.button-primary:hover,
.button-primary:focus-visible,
.button-secondary:hover,
.button-secondary:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 26px 28px 30px;
}

.dashboard-property-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-property-grid .empty-state-inline {
    grid-column: 2 / -1;
}

.dashboard-property-grid .property-address {
    font-size: 0.84rem;
    margin-top: 4px;
}

.dashboard-property-grid .property-topline p {
    font-size: 0.84rem;
}

.dashboard-property-grid .mini-stats {
    flex-wrap: nowrap;
    gap: 10px;
}

.dashboard-property-grid .property-actions {
    min-width: 0;
    gap: 6px;
}

.dashboard-property-grid .property-action-reserve {
    flex: 1 1 0;
    display: grid;
    grid-template-columns: 3px minmax(0, 1fr);
    justify-content: unset;
    justify-items: start;
    align-items: center;
    min-width: 0;
    padding: 0 0 0 1px;
    font-size: 0.8rem;
    gap: 3px;
}

.dashboard-property-grid .property-action-reserve span {
    justify-self: center;
    overflow: visible;
    text-overflow: clip;
}

.dashboard-property-grid .property-action-reserve-booking span {
    transform: translateX(3px);
}

.dashboard-property-grid .actions-menu {
    flex: 0 0 auto;
}

.dashboard-property-grid .icon-action-button {
    width: 38px;
    height: 38px;
}

.dashboard-topbar {
    align-items: flex-end;
}

.dashboard-filter-card {
    margin-bottom: 18px;
}

.dashboard-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 16px;
    padding: 24px 28px 28px;
}

.dashboard-filters label {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.dashboard-filters label > span {
    color: var(--color-gris-piedra);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-filters input,
.dashboard-filters select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgb(47 93 98 / 0.12);
    border-radius: 14px;
    background: #fffdfa;
    color: var(--color-petroleo-profundo);
}

.dashboard-filter-actions {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 12px;
}

.dashboard-filter-actions > a {
    color: var(--color-gris-piedra);
    font-size: 0.9rem;
}

.dashboard-kpi-grid,
.dashboard-metric-grid,
.dashboard-panel-grid {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}

.dashboard-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-metric-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.dashboard-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-kpi-card,
.dashboard-metric-card {
    padding: 22px 24px;
    display: grid;
    gap: 10px;
}

.dashboard-kpi-card small,
.dashboard-metric-card small {
    color: var(--color-gris-piedra);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-kpi-card strong,
.dashboard-metric-card strong {
    color: var(--color-petroleo-profundo);
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
}

.dashboard-metric-card strong {
    font-size: 1.45rem;
}

.dashboard-kpi-card strong.negative {
    color: #9f443e;
}

.dashboard-panel-card {
    overflow: hidden;
}

.dashboard-series-list,
.dashboard-category-list,
.dashboard-channel-list,
.dashboard-property-summary-list {
    display: grid;
    gap: 14px;
    padding: 0 28px 28px;
}

.dashboard-series-row,
.dashboard-category-row,
.dashboard-channel-row,
.dashboard-property-summary {
    display: grid;
    gap: 10px;
    padding-top: 2px;
}

.dashboard-series-meta,
.dashboard-category-meta,
.dashboard-channel-row,
.dashboard-property-summary-head,
.dashboard-property-summary-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.dashboard-series-meta strong,
.dashboard-category-meta strong,
.dashboard-channel-meta strong,
.dashboard-property-summary-head strong {
    color: var(--color-petroleo-profundo);
    font-size: 0.98rem;
}

.dashboard-series-meta span,
.dashboard-category-meta span,
.dashboard-channel-meta span,
.dashboard-channel-values span,
.dashboard-property-summary-grid small {
    color: var(--color-gris-piedra);
    font-size: 0.88rem;
}

.dashboard-series-bars {
    display: grid;
    gap: 7px;
}

.dashboard-series-track {
    overflow: hidden;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgb(47 93 98 / 0.08);
}

.dashboard-series-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.dashboard-series-fill.income {
    background: linear-gradient(90deg, rgb(47 93 98 / 0.92), rgb(127 167 163 / 0.8));
}

.dashboard-series-fill.expense {
    background: linear-gradient(90deg, rgb(184 106 91 / 0.88), rgb(221 170 159 / 0.88));
}

.dashboard-channel-meta {
    display: grid;
    gap: 4px;
}

.dashboard-channel-values {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 0 24px;
    justify-items: end;
    text-align: right;
    align-items: end;
}

.dashboard-channel-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: flex-end;
}

.dashboard-channel-col small {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--color-gris-piedra);
    opacity: 0.7;
}

.dashboard-channel-values strong,
.dashboard-property-summary-grid strong {
    color: var(--color-petroleo-profundo);
    font-size: 0.96rem;
}

.dashboard-property-summary {
    padding: 18px 18px 16px;
    border: 1px solid rgb(47 93 98 / 0.08);
    border-radius: 18px;
    background: rgb(255 253 248 / 0.74);
}

.dashboard-property-summary-head a {
    color: var(--color-petroleo);
    font-size: 0.9rem;
    font-weight: 700;
}

.dashboard-property-summary-grid {
    flex-wrap: wrap;
}

.dashboard-property-summary-grid span {
    display: grid;
    gap: 4px;
    min-width: 92px;
}

.dashboard-empty-state {
    padding: 0 0 4px;
    color: var(--color-gris-piedra);
}

.property-card,
.property-card-add {
    min-height: 218px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--color-crema);
    box-shadow: var(--shadow-card);
}

.property-card {
    display: grid;
    grid-template-rows: 122px 1fr;
    position: relative;
    overflow: visible;
}

.property-card.menu-open {
    z-index: 20;
}

.property-card-add {
    display: grid;
    place-items: center;
    border: 1.5px dashed rgb(47 93 98 / 0.24);
    background:
        radial-gradient(circle at top right, rgb(47 93 98 / 0.08), transparent 38%),
        linear-gradient(180deg, rgb(255 253 248 / 0.92), rgb(245 239 230 / 0.95));
    color: var(--color-petroleo-profundo);
    text-align: center;
}

.property-card-add:hover,
.property-card-add:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.property-card-add div {
    max-width: 180px;
}

.property-card-add strong {
    display: block;
    margin-top: 14px;
    font-size: 1.08rem;
}

.property-card-add span {
    display: block;
    margin-top: 8px;
    color: var(--color-gris-piedra);
    line-height: 1.45;
}

.add-icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto;
    border-radius: 18px;
    background: rgb(47 93 98 / 0.1);
    font-family: var(--font-display);
    font-size: 2rem;
}

.property-image {
    background:
        linear-gradient(180deg, rgb(47 93 98 / 0.14), rgb(36 72 76 / 0.3)),
        linear-gradient(140deg, #b8c7bf, #8ea7a4 52%, #597b80);
}

.property-image-real {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.property-content {
    display: grid;
    gap: 10px;
    padding: 18px 18px 20px;
}

.property-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.property-topline > div {
    flex: 1 1 auto;
    min-width: 0;
}

.property-card h4,
.checklist-card h4,
.agenda-card h4 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.property-card p,
.mini-stats p,
.agenda-card p {
    margin: 0;
    color: var(--color-gris-piedra);
    line-height: 1.45;
}

.property-status {
    width: fit-content;
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
}

.property-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 4px;
    min-width: 0;
}

.icon-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgb(47 93 98 / 0.14);
    border-radius: 999px;
    background: rgb(255 253 248 / 0.72);
    color: var(--color-petroleo-profundo);
    cursor: pointer;
}

.icon-action-button:hover,
.icon-action-button:focus-visible {
    background: rgb(47 93 98 / 0.08);
    outline: none;
}

.icon-action-button svg {
    width: 18px;
    height: 18px;
}

.property-action-reserve {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgb(47 93 98 / 0.14);
    border-radius: 12px;
    background: rgb(255 253 248 / 0.72);
    color: var(--color-petroleo-profundo);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.property-action-reserve svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.property-action-reserve:hover,
.property-action-reserve:focus-visible {
    background: rgb(47 93 98 / 0.08);
    outline: none;
}

.actions-menu {
    position: relative;
    margin-left: auto;
}

.actions-dropdown {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    display: none;
    min-width: 210px;
    padding: 8px;
    border: 1px solid rgb(47 93 98 / 0.12);
    border-radius: 16px;
    background: #fffdfa;
    box-shadow: var(--shadow-soft);
    z-index: 5;
}

.actions-dropdown form {
    margin: 0;
}

.actions-menu.open .actions-dropdown {
    display: grid;
    gap: 4px;
}

.actions-dropdown a,
.actions-dropdown form button,
.actions-dropdown > button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--color-carbon);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.actions-dropdown a:hover,
.actions-dropdown form button:hover,
.actions-dropdown > button:hover,
.actions-dropdown a:focus-visible,
.actions-dropdown form button:focus-visible,
.actions-dropdown > button:focus-visible {
    background: rgb(47 93 98 / 0.08);
    outline: none;
}

.property-grid-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.empty-state,
.empty-state-inline {
    display: grid;
    place-items: center;
    gap: 10px;
    padding: 40px 28px;
    text-align: center;
}

.empty-state strong,
.empty-state-inline strong {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.empty-state p,
.empty-state-inline p {
    max-width: 520px;
    margin: 0;
    color: var(--color-gris-piedra);
    line-height: 1.6;
}

.empty-state {
    padding-bottom: 46px;
}

.empty-state-inline {
    min-height: 218px;
    border: 1.5px dashed rgb(47 93 98 / 0.14);
    border-radius: 24px;
    background: rgb(255 253 248 / 0.68);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.badge::before {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    content: "";
}

.badge-ocupado {
    background: rgb(127 167 163 / 0.18);
    color: var(--color-petroleo-profundo);
}

.badge-ocupado::before {
    background: var(--color-petroleo);
}

.badge-disponible {
    background: rgb(201 217 204 / 0.36);
    color: #416148;
}

.badge-disponible::before {
    background: #5d8a67;
}

.badge-alerta {
    background: rgb(216 179 106 / 0.24);
    color: #87611e;
}

.badge-alerta::before {
    background: var(--color-oro-suave);
}

.mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: center;
}

.mini-stat {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--color-gris-piedra);
    font-size: 0.92rem;
    line-height: 1.4;
}

.mini-stat svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    opacity: 1;
}

.mini-stat-icon-guests {
    width: 21px;
}

.mini-stat-icon-beds {
    width: 22px;
}

.mini-stat strong {
    color: var(--color-carbon);
    font-size: 0.96rem;
    margin-right: 1px;
}

.mini-stat-separator {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: rgb(110 106 100 / 0.35);
}

.calendar-wrap {
    padding: 24px 28px 30px;
}

.calendar-wrap-page {
    padding-top: 0;
}

.calendar-property-bar h4 {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 600;
}

.calendar-property-bar p,
.calendar-head p {
    margin: 0;
    color: var(--color-gris-piedra);
    line-height: 1.45;
}

.calendar-head p {
    margin-top: 6px;
}

.calendar-property-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.calendar-header-controls {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    width: 100%;
}

.calendar-header-controls .calendar-nav {
    position: absolute;
    left: 50%;
    transform: translateX(calc(-50% - 48px));
    z-index: 1;
}

@media (min-width: 761px) {
    .calendar-header-controls .calendar-nav {
        top: 18px;
    }
}

.calendar-card-header {
    position: relative;
    align-items: flex-start;
    padding-top: 16px;
    padding-bottom: 12px;
}

.calendar-sync-all-form {
    position: absolute;
    top: 14px;
    right: 18px;
    z-index: 4;
}

.calendar-sync-button {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgb(47 93 98 / 0.18);
    border-radius: 12px;
    background: rgb(255 253 248 / 0.9);
    color: var(--color-petroleo-profundo);
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.calendar-sync-button:hover,
.calendar-sync-button:focus-visible {
    border-color: rgb(47 93 98 / 0.34);
    background: rgb(47 93 98 / 0.08);
    outline: none;
    transform: translateY(-1px);
}

.calendar-sync-button svg {
    width: 20px;
    height: 20px;
}

.calendar-sync-button.is-syncing svg {
    animation: calendar-sync-spin 850ms linear infinite;
}

@keyframes calendar-sync-spin {
    to { transform: rotate(360deg); }
}

.calendar-section-header {
    position: relative;
    min-height: 38px;
    padding-bottom: 0;
}

.calendar-section-header small {
    display: block;
    margin-top: -1px;
}

.calendar-toolbar-inline {
    position: absolute;
    left: 0;
    bottom: -28px;
    justify-content: flex-start;
    z-index: 3;
}

.day {
    cursor: pointer;
}

.day-task-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    border: 2px solid rgb(255 253 248 / 0.95);
    border-radius: 999px;
    background: var(--color-petroleo);
    box-shadow: 0 2px 6px rgb(36 72 76 / 0.18);
}

.calendar-day-modal-panel {
    width: min(720px, calc(100vw - 24px));
}

.calendar-day-modal-body {
    display: grid;
    gap: 12px;
    max-height: min(68vh, 620px);
    padding-right: 4px;
    overflow-y: auto;
}

.calendar-day-empty-state {
    padding: 12px 2px 6px;
}

.calendar-day-empty-state strong,
.calendar-day-empty-state p {
    display: block;
}

.calendar-day-empty-state p {
    margin: 8px 0 0;
    color: var(--color-gris-piedra);
}

.calendar-day-task-row {
    padding: 10px 14px;
    border: 1px solid rgb(47 93 98 / 0.1);
    border-radius: 14px;
    background: rgb(255 253 248 / 0.78);
}

.calendar-day-task-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.calendar-day-task-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 600;
}

.calendar-day-task-sub {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    padding-left: 2px;
    color: var(--color-gris-piedra);
    font-size: 0.78rem;
}

.calendar-nav {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.calendar-nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--color-petroleo-profundo);
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    border-radius: 999px;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.calendar-nav-arrow:hover {
    color: var(--color-carbon);
    background: rgb(47 93 98 / 0.08);
    transform: translateY(-1px);
}

.calendar-nav-month {
    color: var(--color-petroleo-profundo);
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.calendar-head h4 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.calendar-actions {
    display: flex;
    gap: 10px;
}

.calendar-actions span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgb(47 93 98 / 0.12);
    border-radius: 999px;
    background: rgb(255 253 248 / 0.72);
    color: var(--color-petroleo-profundo);
}

.calendar-grid {
    --reservation-band-overlap: 18px;
    --reservation-checkout-overlap: 32px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.calendar-grid strong {
    color: var(--color-gris-piedra);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.day {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 104px;
    padding: 14px 12px 12px;
    border: 1px solid rgb(47 93 98 / 0.1);
    border-radius: 16px;
    background: #fffdf9;
    box-shadow: none;
}

.day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0 auto;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
}

.day-tag {
    position: absolute;
    left: 50%;
    top: 2px;
    transform: translateX(-50%);
    color: var(--color-gris-piedra);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    pointer-events: none;
}

.day.muted {
    opacity: 0.26;
    background: transparent;
    box-shadow: none;
}

.day.available {
    background: #e8f5e9;
    border-color: rgb(76 140 83 / 0.32);
    box-shadow: inset 0 0 0 1px rgb(76 140 83 / 0.06);
    cursor: pointer;
}

.day.available.selected {
    border-color: var(--color-petroleo);
    background: #cfe8d2;
    box-shadow: 0 0 0 3px rgb(47 93 98 / 0.2), inset 0 0 0 1px rgb(47 93 98 / 0.16);
    transform: translateY(-2px);
}

.calendar-selection-bar {
    position: fixed;
    z-index: 80;
    left: 50%;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    width: max-content;
    max-width: calc(100vw - 32px);
    padding: 12px 14px 12px 18px;
    border: 1px solid rgb(47 93 98 / 0.18);
    border-radius: 18px;
    background: rgb(255 253 248 / 0.97);
    box-shadow: 0 18px 48px rgb(36 72 76 / 0.24);
    transform: translateX(-50%);
    backdrop-filter: blur(14px);
}

.calendar-selection-bar[hidden] {
    display: none;
}

.calendar-selection-bar > strong {
    color: var(--color-petroleo-profundo);
    white-space: nowrap;
}

.calendar-selection-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-selection-actions button {
    white-space: nowrap;
}

.calendar-selection-cancel {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgb(47 93 98 / 0.08);
    color: var(--color-petroleo-profundo);
    font-size: 1.3rem;
    cursor: pointer;
}

.day.occupied {
    background: #fffdfa;
}

.day.blocked {
    background: #f5f1ea;
    border-color: rgb(191 173 152 / 0.28);
}

.day.past:not(.muted):not(.blocked):not(.available) {
    background: #f4f2ee;
    border-color: rgb(47 93 98 / 0.06);
}

.day.past:not(.muted):not(.blocked):not(.available) .day-number,
.day.past:not(.muted):not(.blocked):not(.available) .day-tag {
    color: var(--color-gris-piedra);
}

.day.blocked .day-number {
    position: relative;
    color: var(--color-gris-piedra);
}

.day.blocked .day-number::after {
    position: absolute;
    left: -2px;
    right: -2px;
    top: 50%;
    height: 1.5px;
    background: currentColor;
    content: "";
    transform: rotate(-10deg);
}

.day.today {
    border-color: var(--color-petroleo);
    box-shadow: 0 0 0 3px rgb(47 93 98 / 0.22), 0 8px 20px rgb(36 72 76 / 0.14);
    z-index: 2;
}

.day.today .day-number {
    background: var(--color-petroleo);
    color: #fffdfa;
    box-shadow: 0 2px 8px rgb(36 72 76 / 0.28);
}

.day.today .day-tag {
    top: 5px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--color-petroleo);
    color: #fffdfa;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.day-reservation-block {
    position: relative;
    display: grid;
    margin-top: auto;
}


.reservation-band {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 20px;
    padding: 0 12px;
    background: var(--color-petroleo);
    color: #fffdfa;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
}

.reservation-band-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: none;
    box-sizing: border-box;
    margin: 0;
    max-width: none;
    width: 100%;
    border: 0;
    padding: 0 12px;
    font: inherit;
    text-align: left;
    background: var(--color-petroleo);
    color: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.reservation-band-button[data-record-origin="imported"][data-source-channel="airbnb"] {
    background: #ff5a5f;
    color: #fffdfa;
}

.reservation-band-button[data-record-origin="imported"][data-source-channel="booking"] {
    background: #8cb7e2;
    color: #173b63;
}

.reservation-band-button[data-source-channel="other"] {
    background: #92979b;
    color: #fffdfa;
}

.reservation-band span {
    color: inherit;
}

.reservation-amount-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: #ffc94d;
}

.reservation-amount-warning[hidden] {
    display: none;
}

.reservation-amount-warning svg {
    width: 16px;
    height: 16px;
    overflow: visible;
}

.reservation-amount-warning svg path:first-child {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linejoin: round;
}

.reservation-amount-warning svg path:last-child {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.reservation-amount-warning-field {
    color: #a56b00;
}

.reservation-amount-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.reservation-amount-warning-field,
.reservation-amount-warning-field svg {
    width: 18px;
    height: 18px;
}



.reservation-band-start {
    width: calc(100% + var(--reservation-band-overlap));
    margin-right: calc(var(--reservation-band-overlap) * -1);
    border-radius: 6px 0 0 6px;
}

.reservation-band-middle {
    width: calc(100% + (var(--reservation-band-overlap) * 2));
    margin-left: calc(var(--reservation-band-overlap) * -1);
    margin-right: calc(var(--reservation-band-overlap) * -1);
    border-radius: 0;
}

.reservation-band-end {
    width: calc(100% + var(--reservation-band-overlap));
    margin-left: calc(var(--reservation-band-overlap) * -1);
    border-radius: 0 6px 6px 0;
}

.reservation-band-end[data-record-type="reservation"] {
    position: relative;
    z-index: 2;
    width: calc(100% + var(--reservation-band-overlap) + var(--reservation-checkout-overlap));
    margin-right: calc(var(--reservation-checkout-overlap) * -1);
}

.reservation-band-end-bridge {
    width: calc(100% + (var(--reservation-band-overlap) * 2));
    margin-left: calc(var(--reservation-band-overlap) * -1);
    margin-right: calc(var(--reservation-band-overlap) * -1);
    border-radius: 0;
}

.reservation-band-single {
    border-radius: 6px;
}

.reservation-band-single[data-record-type="reservation"] {
    position: relative;
    z-index: 2;
    width: calc(100% + var(--reservation-checkout-overlap));
    margin-right: calc(var(--reservation-checkout-overlap) * -1);
}

.reservation-band-single-bridge {
    width: calc(100% + var(--reservation-band-overlap));
    margin-right: calc(var(--reservation-band-overlap) * -1);
    border-radius: 6px 0 0 6px;
}

.reservation-turnover {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    align-items: center;
    min-height: 20px;
    overflow: visible;
}

.reservation-turnover-band {
    min-height: 20px;
    width: calc(100% - 3px);
    background: var(--color-petroleo);
    border-radius: 0;
}

.reservation-turnover-band[data-record-origin="imported"][data-source-channel="airbnb"] {
    background: #ff5a5f;
}

.reservation-turnover-band[data-record-origin="imported"][data-source-channel="booking"] {
    background: #8cb7e2;
    color: #173b63;
}

.reservation-turnover-band[data-source-channel="other"] {
    background: #92979b;
}

.reservation-band-button[data-record-origin][data-record-type="block"],
.reservation-turnover-band[data-record-origin][data-record-type="block"] {
    background: #92979b;
    color: #fff;
}

.field-control-row.field-control-row-block input[type="time"] {
    display: none;
}

.reservation-modal-block-mode [data-reservation-modal-source-field],
.reservation-modal-block-mode [data-reservation-modal-guests-field],
.reservation-modal-block-mode [data-reservation-modal-amount-field],
.reservation-modal-block-mode [data-reservation-modal-email-field],
.reservation-modal-block-mode [data-reservation-modal-phone-field] {
    display: none;
}

.reservation-turnover-band-out {
    justify-self: start;
    width: calc(100% - 3px + var(--reservation-band-overlap));
    margin-left: calc(var(--reservation-band-overlap) * -1);
    border-radius: 0 6px 6px 0;
}

.day.muted .reservation-band-button[data-record-origin="imported"][data-source-channel="airbnb"],
.day.muted .reservation-turnover-band[data-record-origin="imported"][data-source-channel="airbnb"] {
    background: rgb(255 90 95 / 0.24);
}

.day.muted .reservation-band-button[data-record-origin="imported"][data-source-channel="booking"],
.day.muted .reservation-turnover-band[data-record-origin="imported"][data-source-channel="booking"] {
    background: rgb(140 183 226 / 0.42);
}

.day.muted .reservation-band-button[data-source-channel="other"],
.day.muted .reservation-turnover-band[data-source-channel="other"] {
    background: rgb(146 151 155 / 0.34);
}

.day.muted .reservation-band-button[data-record-origin][data-record-type="block"],
.day.muted .reservation-turnover-band[data-record-origin][data-record-type="block"] {
    background: rgb(146 151 155 / 0.42);
}

.day.muted .reservation-band-button:not([data-record-origin="imported"]):not([data-source-channel="other"]),
.day.muted .reservation-turnover-band:not([data-record-origin="imported"]):not([data-source-channel="other"]) {
    background: rgb(47 93 98 / 0.28);
}

.reservation-turnover-band-in {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 12px;
    justify-self: end;
    width: calc(100% - 3px + var(--reservation-band-overlap));
    margin-right: calc(var(--reservation-band-overlap) * -1);
    border-radius: 6px 0 0 6px;
    color: #fffdfa;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
}

.stack {
    display: grid;
    gap: 24px;
}

.insight-grid {
    display: grid;
    gap: 14px;
    padding: 22px 22px 26px;
}

.insight-card {
    padding: 18px;
    border-radius: 22px;
    background: rgb(255 253 248 / 0.74);
    box-shadow: var(--shadow-card);
}

.insight-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--color-petroleo-profundo);
    font-size: 1.6rem;
}

.insight-card span {
    display: block;
    color: var(--color-gris-piedra);
    line-height: 1.45;
}

.insight-card.accent {
    background:
        radial-gradient(circle at top right, rgb(255 255 255 / 0.18), transparent 38%),
        linear-gradient(180deg, var(--color-petroleo) 0%, var(--color-petroleo-profundo) 100%);
    color: #f7f3ec;
}

.insight-card.accent strong,
.insight-card.accent span {
    color: inherit;
}

.checklist-list,
.agenda-list {
    display: grid;
    gap: 12px;
    padding: 0 22px 22px;
}

.check-item,
.agenda-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgb(255 253 248 / 0.76);
    box-shadow: var(--shadow-card);
}

.check-item.done p {
    text-decoration: line-through;
    opacity: 0.55;
}

.check-mark {
    width: 18px;
    height: 18px;
    border: 1.5px solid rgb(47 93 98 / 0.3);
    border-radius: 999px;
    background: #fff;
}

.check-item.done .check-mark {
    background: var(--color-petroleo);
    border-color: var(--color-petroleo);
    box-shadow: inset 0 0 0 4px #f7f3ec;
}

.agenda-time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgb(231 225 216 / 0.6);
    color: var(--color-petroleo-profundo);
    font-weight: 700;
}

.modal-open {
    overflow: hidden;
}

.modal-shell {
    position: fixed;
    inset: 0;
    z-index: 200;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(24 24 28 / 0.4);
    backdrop-filter: blur(3px);
}

.modal-panel {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    overflow: auto;
    padding: 24px 24px 26px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgb(255 253 248 / 0.98), rgb(252 248 242 / 0.96));
    box-shadow: var(--shadow-soft);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.modal-header small {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--color-gris-piedra);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.modal-header h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.modal-close {
    width: 40px;
    height: 40px;
    border: 1px solid rgb(47 93 98 / 0.12);
    border-radius: 999px;
    background: rgb(255 253 248 / 0.72);
    color: var(--color-petroleo-profundo);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.modal-form {
    margin-top: 0;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.reservation-conflict-warning {
    padding: 12px 14px;
    border: 1px solid rgb(184 106 91 / 0.22);
    border-radius: 14px;
    background: rgb(184 106 91 / 0.1);
}

.reservation-conflict-warning p {
    margin: 0;
    color: #8f4639;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.5;
}

.button-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-right: auto;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: #9f443e;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.button-danger:hover,
.button-danger:focus-visible {
    color: #7f2f2a;
    text-decoration: underline;
    outline: none;
}

.button-danger[hidden] {
    display: none;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 28px 28px;
}

.legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-gris-piedra);
    font-size: 0.92rem;
}

.legend i {
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.legend .occupied {
    background: var(--color-petroleo-suave);
}

.legend .blocked {
    background: var(--color-arenisca);
}

.button-icon {
    width: 18px;
    height: 18px;
    margin-right: 7px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
}

.finance-topbar {
    align-items: flex-end;
}

.finance-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 360px);
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.finance-summary-card {
    position: relative;
    overflow: hidden;
    width: 360px;
    min-height: 112px;
    padding: 16px 18px 14px;
    border: 1px solid rgb(47 93 98 / 0.1);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgb(127 167 163 / 0.18), transparent 36%),
        rgb(255 253 248 / 0.9);
    box-shadow: var(--shadow-card);
}

.finance-summary-currency {
    position: absolute;
    top: 14px;
    right: 16px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgb(47 93 98 / 0.08);
    color: var(--color-petroleo-profundo);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.finance-summary-primary {
    display: grid;
    gap: 3px;
    padding-right: 54px;
}

.finance-summary-primary small,
.finance-summary-detail small,
.finance-entry-date small,
.finance-entry-amount small {
    color: var(--color-gris-piedra);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.finance-summary-primary > strong {
    color: var(--color-petroleo-profundo);
    font-family: var(--font-display);
    font-size: 1.85rem;
    letter-spacing: -0.04em;
    line-height: 1;
}

.finance-summary-primary > strong.negative {
    color: #9f443e;
}

.finance-summary-detail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgb(47 93 98 / 0.09);
}

.finance-summary-detail span {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.finance-summary-detail strong {
    overflow: hidden;
    color: var(--color-carbon);
    font-size: 1.02rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.finance-summary-detail .income,
.finance-entry-amount.income strong {
    color: var(--color-petroleo);
}

.finance-summary-detail .expense,
.finance-entry-amount.expense strong {
    color: #9f443e;
}

.finance-card {
    overflow: hidden;
}

.finance-filters {
    display: grid;
    grid-template-columns: repeat(5, minmax(110px, 1fr)) auto;
    gap: 10px;
    align-items: end;
    padding: 20px 22px;
    border-bottom: 1px solid rgb(47 93 98 / 0.08);
    background: rgb(255 253 248 / 0.34);
}

.finance-filters label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.finance-filters label > span {
    color: var(--color-gris-piedra);
    font-size: 0.76rem;
    font-weight: 700;
}

.finance-filters input,
.finance-filters select {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0 11px;
    border: 1px solid rgb(47 93 98 / 0.13);
    border-radius: 12px;
    background: #fffdfa;
    color: var(--color-carbon);
    font: inherit;
    font-size: 0.88rem;
}

.finance-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.finance-filter-actions > a {
    color: var(--color-gris-piedra);
    font-size: 0.84rem;
    font-weight: 700;
}

.finance-list-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px 16px;
}

.finance-list-header small {
    color: var(--color-gris-piedra);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.finance-list-header h4 {
    margin: 3px 0 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.finance-list-header > span {
    color: var(--color-gris-piedra);
    font-size: 0.84rem;
}

.finance-entry-list {
    display: grid;
    padding: 0 22px 24px;
}

.finance-entry-row {
    display: grid;
    grid-template-columns: 110px minmax(220px, 1fr) minmax(150px, auto) minmax(120px, 170px);
    gap: 18px;
    align-items: center;
    min-width: 0;
    padding: 15px 2px;
    border-top: 1px solid rgb(47 93 98 / 0.08);
}

.finance-entry-date,
.finance-entry-date strong {
    font-size: 0.94rem;
}

.finance-entry-main > div {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.finance-entry-main h4 {
    margin: 0;
    font-size: 1rem;
}

.finance-entry-main p {
    margin: 4px 0 0;
    color: var(--color-gris-piedra);
    font-size: 0.88rem;
}

.finance-type-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 13px;
}

.finance-type-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.finance-type-icon.income {
    background: rgb(127 167 163 / 0.18);
    color: var(--color-petroleo);
}

.finance-type-icon.expense {
    background: rgb(184 106 91 / 0.12);
    color: #9f443e;
}

.finance-entry-amount strong {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
}

.finance-entry-amount {
    display: grid;
    gap: 4px;
    justify-items: end;
    text-align: right;
}

.finance-entry-sign {
    display: inline-block;
    width: 0.72rem;
    text-align: center;
    margin-right: 0.08rem;
}

.finance-entry-side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    text-align: right;
}

.finance-entry-auto-note {
    color: rgb(47 93 98 / 0.62);
    font-size: 0.76rem;
    line-height: 1.35;
    white-space: nowrap;
}

.finance-entry-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.finance-entry-actions form {
    display: flex;
    margin: 0;
}

.finance-entry-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgb(47 93 98 / 0.12);
    border-radius: 12px;
    background: transparent;
    color: var(--color-gris-piedra);
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease;
}

.finance-entry-action svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.finance-entry-action:hover,
.finance-entry-action:focus-visible {
    background: rgb(47 93 98 / 0.08);
    color: var(--color-petroleo-profundo);
    outline: none;
}

.finance-entry-delete:hover,
.finance-entry-delete:focus-visible {
    background: rgb(184 106 91 / 0.1);
    color: #9f443e;
}

.finance-empty-state {
    padding-top: 36px;
}

.finance-modal-panel {
    width: min(760px, calc(100vw - 32px));
}

.field > span small {
    color: var(--color-gris-piedra);
    font-size: 0.78rem;
    font-weight: 400;
}

.tasks-topbar {
    align-items: flex-end;
}

.tasks-card {
    overflow: hidden;
}

.task-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
    gap: 12px;
    align-items: end;
    padding: 18px 22px;
    border-bottom: 1px solid rgb(47 93 98 / 0.08);
}

.task-filters label {
    display: grid;
    gap: 6px;
}

.task-filters label > span {
    color: var(--color-gris-piedra);
    font-size: 0.76rem;
    font-weight: 700;
}

.task-filters select {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgb(47 93 98 / 0.13);
    border-radius: 12px;
    background: #fffdfa;
    color: var(--color-carbon);
    font: inherit;
}

.task-filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.task-filter-actions > a {
    color: var(--color-gris-piedra);
    font-size: 0.84rem;
    font-weight: 700;
}

.task-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 22px;
}

.task-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid rgb(47 93 98 / 0.1);
    border-radius: 22px;
    background: rgb(255 253 248 / 0.78);
    box-shadow: 0 8px 18px rgb(36 72 76 / 0.05);
}

.task-card.overdue {
    border-color: rgb(184 106 91 / 0.22);
}

.task-card.status-completed {
    background: rgb(231 225 216 / 0.34);
}

.task-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.task-card-side {
    display: grid;
    justify-items: end;
    gap: 10px;
}

.task-title-block {
    min-width: 0;
}

.task-title-block h4 {
    margin: 8px 0 0;
    font-family: var(--font-display);
    font-size: 1.12rem;
    line-height: 1.3;
}

.task-card.status-completed .task-title-block h4 {
    color: var(--color-gris-piedra);
    text-decoration: line-through;
}

.task-priority,
.task-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.task-priority.priority-low,
.task-priority.priority-medium {
    background: rgb(127 167 163 / 0.13);
    color: var(--color-petroleo-profundo);
}

.task-priority.priority-high {
    background: rgb(216 179 106 / 0.2);
    color: #7d5d20;
}

.task-priority.priority-urgent {
    background: rgb(184 106 91 / 0.14);
    color: #9f443e;
}

.task-status {
    flex: 0 0 auto;
    background: rgb(110 106 100 / 0.09);
    color: var(--color-gris-piedra);
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 14px;
}

.task-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-gris-piedra);
    font-size: 0.84rem;
}

.task-meta span.overdue {
    color: #9f443e;
    font-weight: 700;
}

.task-meta svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.task-recurring-badge {
    color: var(--color-petroleo);
    opacity: 0.8;
}

.task-recurrence-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-recurrence-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-petroleo-profundo);
}

.task-recurrence-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-height: unset;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    cursor: pointer;
    accent-color: var(--color-petroleo);
    flex-shrink: 0;
}

.task-recurrence-days-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--color-petroleo-profundo);
}

.task-recurrence-days-wrap input[type="number"] {
    width: 72px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    flex-shrink: 0;
}

.task-description {
    margin: 14px 0 0;
    color: var(--color-gris-piedra);
    font-size: 0.92rem;
    line-height: 1.5;
}

.task-progress {
    display: grid;
    gap: 7px;
    margin-top: 18px;
}

.task-progress > span {
    color: var(--color-gris-piedra);
    font-size: 0.78rem;
    font-weight: 700;
}

.task-progress > div {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgb(47 93 98 / 0.09);
}

.task-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--color-petroleo);
    transition: width 180ms ease;
}

.task-checklist {
    display: grid;
    gap: 7px;
    margin-top: 12px;
}

.task-checklist form {
    margin: 0;
}

.task-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 4px 10px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--color-carbon);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.task-check-item:hover,
.task-check-item:focus-visible {
    background: rgb(47 93 98 / 0.06);
    outline: none;
}

.task-check-item.done > span:last-child {
    color: var(--color-gris-piedra);
    text-decoration: line-through;
}

.task-check-mark {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1.5px solid rgb(47 93 98 / 0.24);
    border-radius: 7px;
    color: transparent;
}

.task-check-mark svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.task-check-item.done .task-check-mark {
    border-color: var(--color-petroleo);
    background: var(--color-petroleo);
    color: #fffdfa;
}

.task-complete-form {
    margin-top: 18px;
}

.task-entry-actions {
    gap: 8px;
}

.task-empty-state {
    min-height: 300px;
}

.task-modal-panel {
    width: min(720px, calc(100vw - 32px));
}

/* ── Home cards ─────────────────────────────── */

.home-card-section {
    padding: 14px 22px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gris-piedra);
    border-top: 1px solid rgb(47 93 98 / 0.08);
}

.home-card-empty {
    padding: 6px 22px 18px;
    font-size: 0.87rem;
    color: var(--color-gris-piedra);
}

.home-event-list {
    display: flex;
    flex-direction: column;
    padding-bottom: 6px;
}

.home-event-row {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 22px;
    font-size: 0.87rem;
    min-width: 0;
}

.home-event-row:hover {
    background: rgb(47 93 98 / 0.03);
}

.home-event-tag {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 6px;
}

.home-event-tag.in {
    background: rgb(46 139 87 / 0.12);
    color: #1c6e3d;
}

.home-event-tag.out {
    background: rgb(180 40 40 / 0.1);
    color: #8b2020;
}

.home-event-date {
    flex-shrink: 0;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--color-gris-piedra);
    min-width: 28px;
}

.home-event-property {
    font-weight: 600;
    color: var(--color-petroleo-profundo);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.home-event-sep {
    flex-shrink: 0;
    color: rgb(47 93 98 / 0.3);
}

.home-event-guest {
    color: var(--color-gris-piedra);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.home-task-list {
    display: flex;
    flex-direction: column;
}

.home-task-item {
    padding: 9px 22px;
    border-top: 1px solid rgb(47 93 98 / 0.06);
}

.home-task-item:first-child {
    border-top: none;
}

.home-task-headline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.home-task-title {
    font-weight: 600;
    color: var(--color-petroleo-profundo);
    font-size: 0.88rem;
}

.home-task-priority {
    font-size: 0.68rem !important;
    padding: 2px 7px !important;
}

.home-task-due {
    font-size: 0.76rem;
    color: var(--color-gris-piedra);
    margin-left: auto;
    white-space: nowrap;
}

.home-task-subitems {
    list-style: none;
    padding: 4px 0 0 18px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-task-subitems li {
    font-size: 0.81rem;
    color: var(--color-gris-piedra);
    position: relative;
}

.home-task-subitems li::before {
    content: '—';
    position: absolute;
    left: -14px;
    opacity: 0.45;
    font-size: 0.7rem;
}

.home-task-subitems li.done {
    text-decoration: line-through;
    opacity: 0.45;
}

.home-task-more {
    padding: 10px 22px 18px;
    border-top: 1px solid rgb(47 93 98 / 0.06);
}

.home-task-more a {
    font-size: 0.84rem;
    color: var(--color-petroleo);
    text-decoration: none;
}

@media (max-width: 1120px) {
    .shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        top: auto;
        height: auto;
        overflow-y: visible;
    }

    .sidebar-footer {
        position: static;
        margin-top: 24px;
    }

    .layout-grid {
        grid-template-columns: 1fr;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .finance-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .finance-filter-actions {
        justify-content: flex-end;
    }

    .dashboard-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .task-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    :root {
        --app-header-height: 68px;
    }

    .app-header {
        padding: 0 16px;
    }

    .app-header .brand-key {
        min-width: 52px;
        height: 38px;
        padding: 0 10px;
    }

    .app-header .brand-wordmark h1 {
        font-size: 1.35rem;
    }

    .app-header-user span {
        display: none;
    }

    .app-header-user strong {
        max-width: 86px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-header-logout-button {
        width: 38px;
        height: 38px;
    }

    .guest-body {
        padding: 16px;
    }

    .content {
        padding: 16px 16px 104px;
    }

    .topbar.finance-topbar {
        flex-direction: row;
        align-items: flex-end;
    }

    .topbar.tasks-topbar {
        flex-direction: row;
        align-items: flex-end;
    }

    .task-filters {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .task-filter-actions {
        justify-content: flex-end;
    }

    .task-list {
        gap: 12px;
        padding: 12px;
    }

    .task-card {
        padding: 16px;
        border-radius: 18px;
    }

    .task-card-header {
        gap: 12px;
    }

    .task-card-side {
        gap: 8px;
    }

    .task-modal-panel {
        width: min(calc(100% - 20px), 720px);
    }

    .finance-summary-grid {
        grid-template-columns: 1fr;
    }

    .finance-summary-detail {
        gap: 8px;
    }

    .finance-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 16px;
    }

    .finance-filter-actions {
        grid-column: 1 / -1;
    }

    .finance-list-header {
        align-items: flex-start;
        padding: 18px 16px 12px;
    }

    .finance-list-header > span {
        display: none;
    }

    .finance-entry-list {
        gap: 10px;
        padding: 0 12px 16px;
    }

    .finance-entry-row {
        position: relative;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px 12px;
        padding: 14px;
        border: 1px solid rgb(47 93 98 / 0.08);
        border-radius: 16px;
        background: rgb(255 253 248 / 0.7);
    }

    .finance-entry-date {
        grid-column: 1;
        grid-row: 2;
    }

    .finance-entry-main {
        grid-column: 1 / -1;
        grid-row: 1;
        padding-right: 42px;
    }

    .finance-entry-amount {
        grid-column: 1 / -1;
        grid-row: 4;
        justify-items: start;
        padding-top: 10px;
        border-top: 1px solid rgb(47 93 98 / 0.08);
        text-align: left;
    }

    .finance-entry-auto-note {
        font-size: 0.72rem;
        white-space: normal;
    }

    .finance-entry-side {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-content: flex-start;
        text-align: left;
        padding-top: 2px;
    }

    .task-entry-actions {
        position: static;
    }

    .finance-modal-panel {
        width: min(calc(100% - 20px), 760px);
    }

    .sidebar {
        position: fixed;
        right: 10px;
        bottom: max(8px, env(safe-area-inset-bottom));
        left: 10px;
        z-index: 90;
        height: 70px;
        padding: 6px;
        overflow: visible;
        border: 1px solid rgb(47 93 98 / 0.12);
        border-radius: 20px;
        background: rgb(255 253 248 / 0.97);
        box-shadow: 0 14px 34px rgb(36 72 76 / 0.18);
        color: var(--color-petroleo-profundo);
        backdrop-filter: blur(16px);
    }

    .nav {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
        height: 100%;
        overflow: visible;
    }

    .nav > a,
    .mobile-nav-more-button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-width: 0;
        height: 100%;
        padding: 5px 2px;
        border: 0;
        border-radius: 14px;
        background: transparent;
        color: var(--color-gris-piedra);
        font: inherit;
        font-size: 0.66rem;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
    }

    .nav > a span,
    .mobile-nav-more-button span {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav > a:hover,
    .nav > a:focus-visible,
    .mobile-nav-more-button:hover,
    .mobile-nav-more-button:focus-visible {
        transform: none;
        border-color: transparent;
        background: rgb(47 93 98 / 0.07);
        color: var(--color-petroleo-profundo);
        outline: none;
    }

    .nav > a.active {
        border-color: transparent;
        background: rgb(47 93 98 / 0.1);
        color: var(--color-petroleo-profundo);
    }

    .nav-icon {
        width: 19px;
        height: 19px;
    }

    .mobile-nav-more {
        position: relative;
        display: block;
        min-width: 0;
        height: 100%;
    }

    .mobile-nav-popover {
        position: absolute;
        right: 0;
        bottom: calc(100% + 14px);
        display: none;
        width: 210px;
        padding: 8px;
        border: 1px solid rgb(47 93 98 / 0.12);
        border-radius: 18px;
        background: #fffdf8;
        box-shadow: 0 16px 34px rgb(36 72 76 / 0.2);
    }

    .mobile-nav-more.open .mobile-nav-popover {
        display: grid;
        gap: 3px;
    }

    .mobile-nav-popover a {
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 11px 12px;
        border-radius: 12px;
        color: var(--color-petroleo-profundo);
        font-size: 0.9rem;
        font-weight: 700;
    }

    .mobile-nav-popover a:hover,
    .mobile-nav-popover a:focus-visible {
        background: rgb(47 93 98 / 0.07);
        outline: none;
        transform: none;
    }

    .topbar,
    .card-header,
    .calendar-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .toolbar {
        justify-content: flex-start;
    }

    .calendar-toolbar,
    .calendar-property-bar,
    .calendar-property-meta,
    .calendar-nav {
        width: 100%;
    }

    .calendar-header-controls {
        position: static;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        justify-content: initial;
        flex-wrap: nowrap;
    }

    .calendar-header-controls .calendar-nav {
        grid-column: 1 / -1;
        position: absolute;
        left: 50%;
        bottom: 4px;
        width: max-content;
        margin: 0;
        transform: translateX(-50%);
        justify-content: center;
        gap: 6px;
    }

    .calendar-header-controls .button-primary,
    .calendar-header-controls .button-secondary {
        width: 100%;
        min-width: 0;
        flex: initial;
        min-height: 32px;
        padding: 0 8px;
        border-radius: 8px;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .calendar-card-header {
        padding-bottom: 46px;
    }

    .calendar-section-header {
        width: 100%;
        min-height: 40px;
    }

    .calendar-toolbar-inline {
        left: 0;
        right: 0;
        width: 100%;
        bottom: -22px;
    }

    .calendar-filter {
        width: 100%;
        justify-content: space-between;
    }

    .calendar-filter select {
        min-width: 0;
        width: auto;
        max-width: 74%;
    }

    .calendar-filter-inline {
        width: 100%;
        gap: 4px;
    }

    .calendar-filter-inline select {
        min-width: 0;
        width: 100%;
        max-width: none;
        padding-right: 32px;
        font-size: 1.04rem;
    }

    .calendar-property-bar,
    .calendar-property-meta,
    .calendar-nav {
        justify-content: flex-start;
    }

    .calendar-property-bar {
        padding: 0 18px 6px;
        gap: 14px;
    }

    .calendar-wrap {
        padding: 18px 18px 22px;
    }

    .legend {
        padding: 0 18px 22px;
    }

    .property-grid {
        grid-template-columns: 1fr;
    }

    .property-grid-list {
        grid-template-columns: 1fr;
    }

    .dashboard-property-grid .empty-state-inline {
        grid-column: auto;
    }

    .mini-stats {
        grid-template-columns: 1fr;
    }

    .calendar-grid {
        --reservation-checkout-overlap: 20px;
        gap: 4px;
    }

    .calendar-selection-bar {
        left: 12px;
        right: 12px;
        bottom: calc(82px + env(safe-area-inset-bottom));
        display: grid;
        gap: 10px;
        width: auto;
        max-width: none;
        padding: 12px;
        transform: none;
    }

    .calendar-selection-bar > strong {
        text-align: center;
    }

    .calendar-selection-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    }

    .calendar-selection-actions .button-primary,
    .calendar-selection-actions .button-secondary {
        min-width: 0;
        padding: 0 8px;
        font-size: 0.74rem;
    }

    .day.muted .reservation-band-button[data-record-origin="imported"][data-source-channel="airbnb"],
    .day.muted .reservation-turnover-band[data-record-origin="imported"][data-source-channel="airbnb"] {
        background: rgb(255 90 95 / 0.36);
    }

    .day.muted .reservation-band-button[data-record-origin="imported"][data-source-channel="booking"],
    .day.muted .reservation-turnover-band[data-record-origin="imported"][data-source-channel="booking"] {
        background: rgb(140 183 226 / 0.56);
    }

    .day.muted .reservation-band-button[data-source-channel="other"],
    .day.muted .reservation-turnover-band[data-source-channel="other"] {
        background: rgb(146 151 155 / 0.46);
    }

    .day.muted .reservation-band-button:not([data-record-origin="imported"]):not([data-source-channel="other"]),
    .day.muted .reservation-turnover-band:not([data-record-origin="imported"]):not([data-source-channel="other"]) {
        background: rgb(47 93 98 / 0.4);
    }

    .day.month-next .reservation-band-middle,
    .day.month-next .reservation-band-end-bridge {
        width: calc(100% + var(--reservation-band-overlap) + 6px);
        margin-left: -6px;
    }

    .day.month-next .reservation-band-end,
    .day.month-next .reservation-turnover-band-out {
        width: calc(100% + 6px);
        margin-left: -6px;
    }

    .day.month-next .reservation-band-end[data-record-type="reservation"] {
        width: calc(100% + 6px + var(--reservation-checkout-overlap));
        margin-right: calc(var(--reservation-checkout-overlap) * -1);
    }

    .day {
        min-height: 88px;
        padding: 10px 8px 8px;
    }

    .day-tag {
        top: 3px;
        line-height: 1;
    }

    .agenda-item,
    .check-item {
        grid-template-columns: auto 1fr;
    }

    .agenda-time {
        grid-column: 2;
        justify-self: flex-start;
    }

    .auth-stage,
    .auth-aside,
    .auth-card {
        padding: 22px;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
    }

    .modal-panel {
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
        margin: 10px auto;
        padding: 20px 16px 22px;
    }

    .field-control-row {
        grid-template-columns: minmax(0, 1fr) 104px;
        gap: 8px;
    }

    .field-control-row input[data-date-display],
    .field-control-row input[type="time"] {
        width: 100%;
        max-width: 100%;
        min-height: 44px;
        padding-left: 12px;
        padding-right: 12px;
        font-size: 0.95rem;
    }

    .field-control-row input[type="time"] {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 0.9rem;
    }

    .dashboard-filters {
        grid-template-columns: 1fr;
        padding: 18px 16px 20px;
    }

    .dashboard-filter-actions {
        grid-column: 1 / -1;
        justify-content: space-between;
    }

    .dashboard-kpi-grid,
    .dashboard-metric-grid,
    .dashboard-panel-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-kpi-card strong {
        font-size: 1.6rem;
    }

    .dashboard-metric-card strong {
        font-size: 1.24rem;
    }

    .dashboard-series-list,
    .dashboard-category-list,
    .dashboard-channel-list,
    .dashboard-property-summary-list {
        padding: 0 16px 20px;
    }

    .dashboard-series-meta,
    .dashboard-category-meta,
    .dashboard-channel-row,
    .dashboard-property-summary-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-channel-values {
        justify-items: start;
        text-align: left;
        gap: 0 16px;
    }

    .dashboard-channel-col {
        align-items: flex-start;
    }
}

/* =============================================================
   LANDING PAGE
   ============================================================= */

.landing-body {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    scroll-behavior: smooth;
}

/* ----- Header ----- */

.landing-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgb(255 253 248 / 0.92);
    border-bottom: 1px solid rgb(47 93 98 / 0.08);
    box-shadow: 0 2px 16px rgb(36 72 76 / 0.05);
}

.landing-header-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 28px;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    gap: 0;
}

.landing-brand-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-petroleo-profundo);
    line-height: 1;
}

.landing-header .brand-key {
    min-width: 54px;
    height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 0.82rem;
    background: linear-gradient(180deg, var(--color-petroleo) 0%, var(--color-petroleo-profundo) 100%);
    border-color: rgb(47 93 98 / 0.18);
    color: #fff8ef;
    box-shadow: 0 6px 14px rgb(36 72 76 / 0.2);
    transform: rotate(-8deg);
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.landing-nav-link {
    color: var(--color-gris-piedra);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 180ms ease;
}

.landing-nav-link:hover {
    color: var(--color-petroleo-profundo);
}

/* ----- Shared ----- */

.landing-eyebrow {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-petroleo);
    margin: 0 0 16px;
}

/* ----- Hero ----- */

.landing-hero-wrap {
    max-width: 1120px;
    margin: 0 auto;
    width: 100%;
    padding: 0 28px;
}

.landing-hero {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 64px;
    align-items: center;
    padding: 80px 0 72px;
}

.landing-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
    color: var(--color-carbon);
    margin: 0 0 20px;
}

.landing-hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.72;
    color: var(--color-gris-piedra);
    max-width: 500px;
    margin: 0 0 36px;
}

.landing-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.landing-hero-cta-primary {
    min-height: 52px;
    padding: 0 28px;
    font-size: 1rem;
    border-radius: 14px;
}

.landing-hero-cta-secondary {
    min-height: 52px;
    padding: 0 22px;
    font-size: 1rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.landing-hero-cta-secondary svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* ----- Hero — mock calendar ----- */

.landing-hero-visual {
    position: relative;
}

.landing-mock-calendar {
    background: var(--color-crema);
    border: 1px solid rgb(47 93 98 / 0.12);
    border-radius: 24px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.landing-mock-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.landing-mock-cal-month {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-petroleo-profundo);
    letter-spacing: -0.01em;
}

.landing-mock-cal-nav {
    display: flex;
    gap: 4px;
}

.landing-mock-cal-nav button {
    width: 28px;
    height: 28px;
    border: 1px solid rgb(47 93 98 / 0.12);
    border-radius: 8px;
    background: transparent;
    color: var(--color-gris-piedra);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: default;
}

.landing-mock-cal-nav button svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.landing-mock-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 5px;
}

.landing-mock-cal-days span {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--color-gris-piedra);
    text-align: center;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 0;
}

.landing-mock-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.landing-mock-day {
    aspect-ratio: 1 / 1;
    border-radius: 9px;
    background: rgb(255 253 248 / 0.9);
    border: 1px solid rgb(47 93 98 / 0.07);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-carbon);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px 5px 3px;
    position: relative;
    overflow: hidden;
}

.landing-mock-day--empty {
    background: transparent;
    border-color: transparent;
}

.landing-mock-day--today {
    border-color: var(--color-petroleo);
    box-shadow: 0 0 0 2px rgb(47 93 98 / 0.15);
    color: var(--color-petroleo-profundo);
    font-weight: 800;
}

.landing-mock-day--blocked {
    background: rgb(231 225 216 / 0.6);
    color: var(--color-gris-piedra);
    opacity: 0.75;
}

.landing-mock-band {
    display: block;
    height: 5px;
    border-radius: 3px;
    margin-top: auto;
    align-self: flex-end;
    width: 100%;
}

.landing-mock-band--direct {
    background: var(--color-petroleo);
}

.landing-mock-band--airbnb {
    background: #ff5a5f;
}

.landing-mock-band--booking {
    background: #003580;
}

.landing-mock-cal-legend {
    display: flex;
    gap: 14px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgb(47 93 98 / 0.08);
    flex-wrap: wrap;
}

.landing-mock-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--color-gris-piedra);
}

.landing-mock-legend-dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.landing-mock-legend-dot--direct { background: var(--color-petroleo); }
.landing-mock-legend-dot--airbnb { background: #ff5a5f; }
.landing-mock-legend-dot--booking { background: #003580; }

/* ----- Pillars ----- */

.landing-pillars-section {
    background: rgb(255 253 248 / 0.5);
    border-top: 1px solid rgb(47 93 98 / 0.07);
    border-bottom: 1px solid rgb(47 93 98 / 0.07);
    padding: 60px 28px;
}

.landing-pillars-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.landing-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.landing-pillar-card {
    padding: 28px 26px;
    border: 1px solid rgb(47 93 98 / 0.08);
    border-radius: 28px;
    background: linear-gradient(180deg, rgb(255 253 248 / 0.96), rgb(252 248 242 / 0.94));
    box-shadow: var(--shadow-card);
}

.landing-pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgb(47 93 98 / 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.landing-pillar-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-petroleo);
    fill: none;
}

.landing-pillar-title {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-carbon);
    margin: 0 0 10px;
}

.landing-pillar-text {
    color: var(--color-gris-piedra);
    line-height: 1.65;
    margin: 0;
    font-size: 0.97rem;
}

/* ----- Features ----- */

.landing-features-section {
    padding: 80px 28px;
}

.landing-features-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    gap: 96px;
}

.landing-feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.landing-feature-block--reversed {
    direction: rtl;
}

.landing-feature-block--reversed .landing-feature-text,
.landing-feature-block--reversed .landing-feature-visual {
    direction: ltr;
}

.landing-feature-title {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--color-carbon);
    margin: 8px 0 16px;
}

.landing-feature-body {
    color: var(--color-gris-piedra);
    line-height: 1.72;
    margin: 0 0 28px;
    font-size: 1rem;
}

.landing-feature-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-petroleo);
    font-weight: 700;
    font-size: 0.97rem;
    text-decoration: none;
    transition: gap 180ms ease, color 180ms ease;
}

.landing-feature-cta:hover {
    gap: 12px;
    color: var(--color-petroleo-profundo);
}

.landing-feature-cta svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
}

.landing-feature-visual {
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgb(47 93 98 / 0.1);
    box-shadow: var(--shadow-soft);
    background: var(--color-crema);
    padding: 24px;
}

/* ----- Feature mock: reservations ----- */

.landing-mock-reservations,
.landing-mock-finance,
.landing-mock-tasks {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.landing-mock-res-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid rgb(47 93 98 / 0.08);
    margin-bottom: 12px;
}

.landing-mock-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-petroleo-profundo);
}

.landing-mock-res-count {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-gris-piedra);
}

.landing-mock-res-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.landing-mock-res-item {
    display: grid;
    grid-template-columns: 4px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgb(255 253 248 / 0.9);
    border: 1px solid rgb(47 93 98 / 0.07);
}

.landing-mock-res-item--blocked {
    opacity: 0.65;
}

.landing-mock-res-band {
    width: 4px;
    height: 36px;
    border-radius: 4px;
    align-self: center;
    flex-shrink: 0;
}

.landing-mock-res-band--airbnb { background: #ff5a5f; }
.landing-mock-res-band--booking { background: #003580; }
.landing-mock-res-band--direct { background: var(--color-petroleo); }
.landing-mock-res-band--blocked { background: var(--color-piedra-fuerte); }

.landing-mock-res-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.landing-mock-res-body strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-carbon);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.landing-mock-res-body span {
    font-size: 0.72rem;
    color: var(--color-gris-piedra);
}

.landing-mock-res-amount {
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.landing-mock-res-amount--income { color: #35573d; }
.landing-mock-res-amount--neutral { color: var(--color-gris-piedra); }

/* ----- Feature mock: finance ----- */

.landing-mock-kpi-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.landing-mock-kpi {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgb(255 253 248 / 0.9);
    border: 1px solid rgb(47 93 98 / 0.07);
}

.landing-mock-kpi--result {
    background: rgb(47 93 98 / 0.06);
    border-color: rgb(47 93 98 / 0.14);
}

.landing-mock-kpi-label {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-gris-piedra);
}

.landing-mock-kpi-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.landing-mock-kpi-value--income { color: #35573d; }
.landing-mock-kpi-value--expense { color: #8f4639; }
.landing-mock-kpi-value--net { color: var(--color-petroleo-profundo); }

.landing-mock-finance-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.landing-mock-finance-row {
    display: grid;
    grid-template-columns: 90px 1fr 48px;
    align-items: center;
    gap: 10px;
}

.landing-mock-finance-row-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-gris-piedra);
    white-space: nowrap;
}

.landing-mock-finance-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.landing-mock-finance-dot--income { background: #4caf50; }
.landing-mock-finance-dot--expense { background: #b86a5b; }

.landing-mock-finance-bar-wrap {
    height: 8px;
    border-radius: 6px;
    background: rgb(47 93 98 / 0.08);
    overflow: hidden;
}

.landing-mock-finance-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 600ms ease;
}

.landing-mock-finance-bar--income { background: linear-gradient(90deg, #5a9e60, #4caf50); }
.landing-mock-finance-bar--expense { background: linear-gradient(90deg, #b86a5b, #d07060); }

.landing-mock-finance-amount {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-carbon);
    text-align: right;
}

/* ----- Feature mock: tasks ----- */

.landing-mock-tasks {
    gap: 12px;
}

.landing-mock-task-card {
    background: rgb(255 253 248 / 0.9);
    border: 1px solid rgb(47 93 98 / 0.08);
    border-radius: 18px;
    padding: 16px 18px;
}

.landing-mock-task-card--secondary {
    opacity: 0.75;
}

.landing-mock-task-top {
    margin-bottom: 8px;
}

.landing-mock-task-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing-mock-priority {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.landing-mock-priority--urgent {
    background: rgb(184 106 91 / 0.14);
    color: #8f4639;
}

.landing-mock-priority--medium {
    background: rgb(216 179 106 / 0.2);
    color: #7c5a1b;
}

.landing-mock-task-date {
    font-size: 0.68rem;
    color: var(--color-gris-piedra);
    font-weight: 600;
}

.landing-mock-task-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-carbon);
    margin: 0 0 10px;
    line-height: 1.35;
}

.landing-mock-checklist {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.landing-mock-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--color-gris-piedra);
    cursor: default;
}

.landing-mock-check svg {
    width: 15px;
    height: 15px;
    fill: var(--color-petroleo);
    stroke: var(--color-petroleo);
    flex-shrink: 0;
}

.landing-mock-check--done {
    text-decoration: line-through;
    opacity: 0.7;
}

/* ----- Integrations ----- */

.landing-integrations-section {
    background: rgb(255 253 248 / 0.5);
    border-top: 1px solid rgb(47 93 98 / 0.07);
    border-bottom: 1px solid rgb(47 93 98 / 0.07);
    padding: 80px 28px;
}

.landing-integrations-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.landing-integrations-title {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--color-carbon);
    margin: 8px 0 16px;
}

.landing-integrations-body {
    color: var(--color-gris-piedra);
    line-height: 1.72;
    margin: 0;
    font-size: 1rem;
}

.landing-integrations-channels {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

.landing-channel-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid rgb(47 93 98 / 0.1);
    background: var(--color-crema);
    box-shadow: var(--shadow-card);
    align-self: flex-start;
    min-width: 240px;
}

.landing-channel-badge--airbnb {
    border-color: rgb(255 90 95 / 0.22);
    background: rgb(255 90 95 / 0.04);
}

.landing-channel-badge--booking {
    border-color: rgb(0 53 128 / 0.16);
    background: rgb(0 53 128 / 0.04);
}

.landing-channel-badge--direct {
    border-color: rgb(47 93 98 / 0.18);
    background: rgb(47 93 98 / 0.04);
}

.landing-channel-logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.landing-channel-badge div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.landing-channel-badge strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-carbon);
}

.landing-channel-badge span {
    font-size: 0.75rem;
    color: var(--color-gris-piedra);
    font-weight: 600;
}

/* ----- Integration visual mock ----- */

.landing-integrations-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-mock-sync {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--color-crema);
    border: 1px solid rgb(47 93 98 / 0.1);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow-soft);
    width: 100%;
    max-width: 340px;
}

.landing-mock-sync-row {
    display: grid;
    grid-template-columns: 1fr 52px 1fr;
    align-items: center;
    gap: 8px;
}

.landing-mock-sync-source {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgb(47 93 98 / 0.1);
    background: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-carbon);
}

.landing-mock-sync-source svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.landing-mock-sync-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gris-piedra);
}

.landing-mock-sync-arrow svg {
    width: 40px;
    height: 14px;
}

.landing-mock-sync-dest {
    display: flex;
    justify-content: flex-end;
}

.landing-mock-sync-brand {
    min-width: 48px;
    height: 36px;
    font-size: 0.72rem;
    background: linear-gradient(180deg, var(--color-petroleo) 0%, var(--color-petroleo-profundo) 100%);
    color: #fff8ef;
    border-color: transparent;
    box-shadow: 0 6px 12px rgb(36 72 76 / 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transform: rotate(-8deg);
    font-weight: 700;
    border: none;
}

.landing-mock-sync-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgb(201 217 204 / 0.3);
    border: 1px solid rgb(93 138 103 / 0.2);
    font-size: 0.8rem;
    font-weight: 600;
    color: #35573d;
}

.landing-mock-sync-result svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ----- CTA Final ----- */

.landing-cta-section {
    padding: 80px 28px;
}

.landing-cta-inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 60px 64px;
    border-radius: 32px;
    text-align: center;
    background: linear-gradient(160deg, var(--color-petroleo) 0%, var(--color-petroleo-profundo) 100%);
    box-shadow: var(--shadow-soft);
}

.landing-cta-eyebrow {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgb(245 239 230 / 0.6);
    margin: 0 0 16px;
}

.landing-cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    color: #f7f3ec;
    margin: 0 0 16px;
}

.landing-cta-subtitle {
    color: rgb(245 239 230 / 0.72);
    line-height: 1.65;
    margin: 0 0 40px;
    font-size: 1.05rem;
}

.landing-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.landing-cta-btn-primary {
    min-height: 52px;
    padding: 0 28px;
    font-size: 1rem;
    border-radius: 14px;
    background: #f7f3ec;
    color: var(--color-petroleo-profundo);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.landing-cta-btn-primary:hover,
.landing-cta-btn-primary:focus-visible {
    background: #fffdf8;
    transform: translateY(-1px);
}

.landing-cta-btn-secondary {
    min-height: 52px;
    padding: 0 24px;
    font-size: 1rem;
    border-radius: 14px;
    border-color: rgb(255 255 255 / 0.2);
    background: rgb(255 255 255 / 0.08);
    color: rgb(245 239 230 / 0.9);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.landing-cta-btn-secondary:hover,
.landing-cta-btn-secondary:focus-visible {
    background: rgb(255 255 255 / 0.14);
    transform: translateY(-1px);
}

/* ----- Footer ----- */

.landing-footer {
    border-top: 1px solid rgb(47 93 98 / 0.08);
    padding: 28px 28px;
}

.landing-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.landing-footer-brand {
    gap: 8px;
}

.landing-footer-key {
    min-width: 40px !important;
    height: 30px !important;
    padding: 0 9px !important;
    border-radius: 8px !important;
    font-size: 0.68rem !important;
    background: linear-gradient(180deg, var(--color-petroleo) 0%, var(--color-petroleo-profundo) 100%) !important;
    color: #fff8ef !important;
    border-color: transparent !important;
    box-shadow: none !important;
    transform: rotate(-8deg) !important;
}

.landing-footer-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-petroleo-profundo);
    letter-spacing: -0.02em;
}

.landing-footer-copy {
    color: var(--color-gris-piedra);
    font-size: 0.87rem;
    margin: 0;
}

/* =============================================================
   LANDING RESPONSIVE
   ============================================================= */

@media (max-width: 1024px) {
    .landing-hero {
        grid-template-columns: 1fr;
        padding: 60px 0 56px;
        gap: 48px;
    }

    .landing-hero-visual {
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }

    .landing-pillars-grid {
        grid-template-columns: 1fr;
    }

    .landing-feature-block {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .landing-feature-block--reversed {
        direction: ltr;
    }

    .landing-integrations-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .landing-integrations-visual {
        order: -1;
    }
}

@media (max-width: 760px) {
    .landing-header-inner {
        height: 64px;
        padding: 0 16px;
    }

    .landing-nav-link {
        display: none;
    }

    .landing-nav {
        gap: 8px;
    }

    .landing-hero-wrap {
        padding: 0 16px;
    }

    .landing-hero {
        padding: 48px 0 44px;
    }

    .landing-pillars-section,
    .landing-integrations-section {
        padding: 52px 16px;
    }

    .landing-features-section {
        padding: 60px 16px;
    }

    .landing-features-inner {
        gap: 64px;
    }

    .landing-cta-section {
        padding: 48px 16px;
    }

    .landing-cta-inner {
        padding: 40px 24px;
    }

    .landing-cta-title {
        font-size: clamp(1.75rem, 7vw, 2.4rem);
    }

    .landing-hero-cta-primary,
    .landing-hero-cta-secondary,
    .landing-cta-btn-primary,
    .landing-cta-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .landing-hero-actions,
    .landing-cta-actions {
        flex-direction: column;
    }

    .landing-mock-sync {
        max-width: 100%;
    }

    .landing-footer {
        padding: 24px 16px;
    }

    .landing-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
