:root {
    --bg: #080607;
    --ink: #fff8f0;
    --muted: #bdaea8;
    --rose: #e98aa7;
    --rose-strong: #d9517d;
    --gold: #d9ad57;
    --panel: rgba(15, 12, 14, 0.88);
    --line: rgba(255, 255, 255, 0.14);
    --ok: #3fb978;
    --warn: #d9ad57;
    --error: #e35b68;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg) url("../images/site/background.webp") center top / cover fixed no-repeat;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.44);
    pointer-events: none;
}

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

img {
    height: auto;
    max-width: 100%;
}

main,
.topbar {
    position: relative;
    z-index: 1;
}

.topbar {
    align-items: center;
    backdrop-filter: blur(14px);
    background: rgba(0, 0, 0, 0.72);
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding: 12px clamp(16px, 4vw, 56px);
    position: sticky;
    top: 0;
}

.brand {
    align-items: center;
    display: flex;
    font-family: "Lucida Handwriting", "Brush Script MT", cursive;
    font-size: 1.7rem;
    font-weight: 400;
    gap: 12px;
}

.brand img {
    border-radius: 50%;
    height: 48px;
    object-fit: cover;
    width: 48px;
}

.hero .eyebrow,
.welcome-content .eyebrow,
.welcome-content strong,
.catalog-hero .eyebrow {
    font-family: "Lucida Handwriting", "Brush Script MT", cursive;
    font-weight: 400;
}

.topbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
}

.topbar nav a {
    color: var(--muted);
    font-weight: 700;
}

.topbar nav a:hover {
    color: var(--ink);
}

.topbar nav .logout-button {
    background: rgba(227, 91, 104, 0.18);
    border: 1px solid rgba(227, 91, 104, 0.38);
    border-radius: 8px;
    color: #ffd4d8;
    padding: 8px 12px;
}

.session-name {
    color: var(--gold);
    font-weight: 900;
}

.hero {
    align-items: center;
    background: #090708;
    border-bottom: 1px solid rgba(217, 173, 87, 0.28);
    display: grid;
    isolation: isolate;
    min-height: 72vh;
    overflow: hidden;
    padding: clamp(42px, 8vw, 96px) clamp(18px, 6vw, 86px);
    position: relative;
}

.hero::before {
    background:
        linear-gradient(90deg, rgba(8, 6, 7, 0.98) 0%, rgba(8, 6, 7, 0.84) 34%, rgba(8, 6, 7, 0.2) 70%, rgba(8, 6, 7, 0.06) 100%),
        linear-gradient(180deg, rgba(8, 6, 7, 0.16), rgba(8, 6, 7, 0.58)),
        url("../images/site/salon.jpg") center 54% / cover no-repeat;
    content: "";
    inset: 0;
    position: absolute;
    z-index: -2;
}

.hero::after {
    background:
        radial-gradient(circle at 76% 28%, rgba(233, 138, 167, 0.18), transparent 30%),
        linear-gradient(180deg, transparent 68%, rgba(8, 6, 7, 0.88));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.hero-copy {
    background: linear-gradient(135deg, rgba(9, 7, 8, 0.82), rgba(9, 7, 8, 0.42));
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(5px);
    max-width: 720px;
    padding: clamp(24px, 4vw, 46px);
}

.eyebrow {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 10px;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 7vw, 5.7rem);
    line-height: 0.96;
    margin-bottom: 18px;
}

h2 {
    font-size: 1.55rem;
}

.hero p {
    color: #f2dfd8;
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 610px;
}

.hero-actions,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.inline-actions > * {
    flex: 1 1 220px;
}

.service-picker,
.service-rows {
    display: grid;
    gap: 12px;
}

.service-row {
    align-items: end;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 10px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(260px, 1fr) 110px auto;
    padding: 14px;
}

.service-row .remove-service {
    margin-bottom: 1px;
}

.add-service {
    justify-self: start;
}

.btn {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    text-align: center;
}

.btn.primary {
    background: linear-gradient(135deg, var(--rose-strong), var(--gold));
    border: 0;
    color: #12090c;
}

.btn.ghost,
.btn.small {
    background: rgba(255, 255, 255, 0.08);
}

.btn.small {
    font-size: 0.82rem;
    min-height: 34px;
    padding: 7px 11px;
}

.btn.danger {
    border-color: rgba(227, 91, 104, 0.45);
    color: #ffd4d8;
}

.wide {
    grid-column: 1 / -1;
}

.notice {
    border-radius: 8px;
    margin: 22px auto 0;
    max-width: 1140px;
    padding: 14px 18px;
}

.notice.ok {
    background: rgba(63, 185, 120, 0.18);
    border: 1px solid rgba(63, 185, 120, 0.42);
}

.notice.warn {
    background: rgba(217, 173, 87, 0.18);
    border: 1px solid rgba(217, 173, 87, 0.42);
}

.notice.error {
    background: rgba(227, 91, 104, 0.18);
    border: 1px solid rgba(227, 91, 104, 0.42);
}

.panel-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 1140px;
    padding: 28px 18px;
}

.auth-compact {
    align-items: start;
    padding-top: 88px;
}

.auth-single {
    grid-template-columns: minmax(0, 720px);
    justify-content: center;
}

.admin-login-main {
    display: grid;
    grid-template-columns: minmax(0, 640px);
    justify-content: center;
    min-height: calc(100vh - 74px);
    padding: clamp(30px, 7vh, 76px) clamp(14px, 4vw, 40px);
    align-content: center;
}

.admin-login-main .notice {
    margin: 0 auto 18px;
    width: min(100%, 640px);
}

.admin-auth-shell {
    max-width: 640px;
    min-width: 0;
    margin: 0 auto;
    width: 100%;
}

.admin-auth-card {
    background: rgba(15, 12, 14, 0.94);
    border-color: rgba(217, 173, 87, 0.3);
    border-radius: 18px;
    min-width: 0;
    padding: clamp(24px, 5vw, 48px);
    width: 100%;
}

.admin-auth-intro {
    margin: 0 auto clamp(24px, 4vw, 34px);
    max-width: 540px;
    text-align: center;
}

.admin-auth-intro .eyebrow {
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.admin-auth-intro h1 {
    font-size: clamp(2.25rem, 6vw, 4rem);
    line-height: 1.02;
    margin-bottom: 16px;
    overflow-wrap: normal;
    text-wrap: balance;
}

.admin-auth-intro p:last-child {
    color: #e6d8d2;
    font-size: clamp(0.98rem, 2vw, 1.08rem);
    line-height: 1.55;
    margin: 0 auto;
    max-width: 470px;
}

.admin-auth-form {
    gap: 18px;
    margin: 0 auto;
    max-width: 500px;
    width: 100%;
}

.admin-auth-form label {
    text-align: left;
}

.admin-auth-form input {
    font-size: 1rem;
    min-height: 52px;
}

.admin-auth-form .btn {
    min-height: 52px;
    width: 100%;
}

.panel,
.mini-card,
.stats {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.34);
}

.panel {
    padding: 24px;
}

.muted {
    color: var(--muted);
    line-height: 1.6;
}

.form {
    display: grid;
    gap: 14px;
}

.form.two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.whatsapp-fieldset {
    border: 0;
    grid-column: 1 / -1;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.whatsapp-fieldset legend {
    color: #eadbd6;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.whatsapp-fields {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(170px, 1.2fr) 92px minmax(150px, 1fr);
}

.whatsapp-fields label {
    gap: 6px;
}

.whatsapp-fields label > span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.whatsapp-prefix input {
    background: rgba(217, 173, 87, 0.16);
    border-color: rgba(217, 173, 87, 0.38);
    color: #f5dfb4;
    font-weight: 900;
    text-align: center;
}

.whatsapp-fieldset .field-help {
    margin-top: 7px;
}

.legal-contract {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(217, 173, 87, 0.32);
    border-radius: 10px;
    display: grid;
    gap: 14px;
    grid-column: 1 / -1;
    padding: clamp(16px, 3vw, 22px);
}

.legal-contract-heading {
    align-items: start;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
}

.legal-contract-heading .eyebrow,
.legal-contract-heading h2 {
    margin: 0;
}

.legal-contract-heading h2 {
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    margin-top: 4px;
}

.legal-contract-heading small {
    color: var(--gold);
    font-weight: 800;
}

.legal-contract-copy {
    color: #ddcfca;
    display: grid;
    font-size: 0.84rem;
    gap: 9px;
    line-height: 1.55;
}

.legal-contract-copy p {
    margin: 0;
}

.legal-contract-copy strong {
    color: #fff8f0;
}

.legal-contract a {
    color: #f5d488;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-acceptance {
    align-items: start;
    background: rgba(217, 173, 87, 0.11);
    border: 1px solid rgba(217, 173, 87, 0.3);
    border-radius: 8px;
    display: grid;
    font-size: 0.86rem;
    gap: 10px;
    grid-template-columns: 20px 1fr;
    line-height: 1.5;
    padding: 12px;
}

.legal-acceptance input {
    accent-color: var(--rose-strong);
    height: 20px;
    margin: 2px 0 0;
    min-height: 20px;
    padding: 0;
    width: 20px;
}

.legal-page {
    grid-template-columns: minmax(0, 900px);
    justify-content: center;
}

label {
    color: #eadbd6;
    display: grid;
    font-size: 0.9rem;
    font-weight: 800;
    gap: 8px;
}

input,
select,
textarea {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid transparent;
    border-radius: 8px;
    color: #171012;
    font: inherit;
    min-height: 44px;
    padding: 11px 12px;
    width: 100%;
}

textarea {
    resize: vertical;
}

.reservation-summary {
    align-items: center;
    background: rgba(217, 173, 87, 0.14);
    border: 1px solid rgba(217, 173, 87, 0.32);
    border-radius: 8px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 14px 16px;
}

.reservation-summary > div {
    display: grid;
    gap: 4px;
}

.reservation-summary > div:last-child {
    text-align: right;
}

.reservation-summary span {
    color: var(--muted);
    font-weight: 800;
}

.reservation-summary strong {
    color: var(--gold);
    font-size: 1.35rem;
}

.booking-step {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 14px;
    padding: 14px;
}

.booking-top {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 38px 1fr 38px;
    text-align: center;
}

.calendar-nav,
.calendar-day,
.time-option {
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
}

.calendar-nav {
    background: rgba(255, 255, 255, 0.08);
    color: var(--ink);
    font-weight: 900;
    height: 38px;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays span {
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.calendar-day,
.calendar-blank {
    aspect-ratio: 1;
    min-width: 0;
}

.calendar-day {
    background: rgba(255, 255, 255, 0.92);
    color: #171012;
    font-weight: 800;
    padding: 0;
}

.calendar-day:hover:not(:disabled),
.time-option:hover:not(:disabled) {
    border-color: var(--gold);
}

.calendar-day.selected,
.time-option.selected {
    background: linear-gradient(135deg, var(--rose-strong), var(--gold));
    border-color: transparent;
    color: #12090c;
}

.calendar-day:disabled,
.time-option:disabled {
    cursor: not-allowed;
    opacity: 0.36;
}

.time-panel {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 12px;
    padding-top: 14px;
}

.time-panel p,
.selected-slot {
    color: var(--muted);
    margin: 0;
}

.time-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
}

.time-option {
    background: rgba(255, 255, 255, 0.95);
    color: #171012;
    font-weight: 800;
    min-height: 38px;
    padding: 8px;
}

.selected-slot {
    background: rgba(217, 173, 87, 0.14);
    border: 1px solid rgba(217, 173, 87, 0.28);
    border-radius: 8px;
    padding: 10px 12px;
}

.selected-slot.error-text {
    background: rgba(227, 91, 104, 0.16);
    border-color: rgba(227, 91, 104, 0.34);
    color: #ffd4d8;
}

.section {
    margin: 0 auto;
    max-width: 1180px;
    padding: 34px 18px;
}

.section-heading {
    max-width: 760px;
}

.section-heading p {
    color: #e8d3cb;
    line-height: 1.7;
}

.info-strip {
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 18px 0;
}

.info-strip span {
    color: #f7e7df;
    font-weight: 700;
}

.welcome-section {
    padding-top: 46px;
}

.welcome-content {
    background: rgba(9, 7, 8, 0.78);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 34px;
}

.welcome-content article + article {
    border-top: 1px solid rgba(217, 173, 87, 0.18);
    margin-top: 26px;
    padding-top: 26px;
}

.welcome-content h2 {
    color: var(--ink);
    margin-bottom: 12px;
}

.welcome-content p {
    color: #f0dfd8;
    font-size: 1.02rem;
    line-height: 1.75;
    margin: 0 0 16px;
    max-width: 980px;
}

.welcome-content p:last-child {
    margin-bottom: 0;
}

.welcome-content strong {
    color: #ffe0a1;
}

.local-showcase {
    border: 1px solid rgba(217, 173, 87, 0.34);
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
    margin: 30px 0 0;
    min-height: 440px;
    overflow: hidden;
    position: relative;
}

.local-showcase::after {
    background: linear-gradient(180deg, transparent 42%, rgba(7, 5, 6, 0.92));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.local-showcase img {
    display: block;
    height: 440px;
    object-fit: cover;
    object-position: center 43%;
    transition: transform 500ms ease;
    width: 100%;
}

.local-showcase:hover img {
    transform: scale(1.025);
}

.local-showcase figcaption {
    bottom: 0;
    display: grid;
    gap: 5px;
    left: 0;
    padding: 28px;
    position: absolute;
    right: 0;
    z-index: 1;
}

.local-showcase figcaption .eyebrow {
    margin-bottom: 0;
}

.local-showcase figcaption strong {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.4rem, 3vw, 2.15rem);
}

.local-showcase figcaption > span:last-child {
    color: #f0dfd8;
    font-weight: 700;
}

.catalog-hero.catalog-hero-centered {
    align-items: center;
    display: grid;
    justify-items: center;
    margin: 0 auto;
    max-width: 820px;
    padding: 46px 0 34px;
    text-align: center;
}

.catalog-hero-centered .eyebrow,
.catalog-hero-centered h1,
.catalog-hero-centered p {
    margin-left: auto;
    margin-right: auto;
}

.catalog-hero-centered p:last-child {
    color: #f0dfd8;
    line-height: 1.65;
    max-width: 650px;
}

.catalog-section-heading {
    margin: 0 auto 28px;
    text-align: center;
}

.treatment-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
    justify-content: center;
    margin: 0 auto;
    max-width: 1120px;
}

.treatment-card {
    background: linear-gradient(180deg, rgba(19, 14, 16, 0.98), rgba(9, 7, 8, 0.96));
    border: 1px solid rgba(217, 173, 87, 0.3);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    text-align: center;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
    width: 100%;
}

.treatment-card:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 340px;
}

.treatment-card:hover,
.treatment-card:focus-within {
    border-color: rgba(217, 173, 87, 0.68);
    box-shadow: 0 26px 72px rgba(0, 0, 0, 0.46);
    transform: translateY(-4px);
}

.treatment-card-image {
    aspect-ratio: 4 / 3;
    background: #080607;
    overflow: hidden;
    position: relative;
}

.treatment-card-image::after {
    background: linear-gradient(180deg, transparent 54%, rgba(9, 7, 8, 0.78));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.treatment-card-image img {
    height: 100%;
    object-fit: cover;
    transition: filter 300ms ease, transform 420ms ease;
    width: 100%;
}

.treatment-card:hover .treatment-card-image img,
.treatment-card:focus-within .treatment-card-image img {
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.045);
}

.treatment-card-content {
    align-items: stretch;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
}

.treatment-card-content .eyebrow {
    color: var(--rose);
    font-size: 0.72rem;
    margin: 0;
}

.treatment-card-content h2,
.treatment-card-content h3 {
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.42rem;
    margin: 0;
    min-height: 2.8rem;
}

.service-select-label {
    gap: 9px;
    text-align: left;
}

.service-select-label > span {
    text-align: center;
}

.service-dropdown {
    border-color: rgba(217, 173, 87, 0.42);
    cursor: pointer;
    min-height: 50px;
    text-align: left;
}

.service-dropdown:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(217, 173, 87, 0.2);
    outline: 0;
}

.treatment-card-action {
    margin-top: auto;
    width: 100%;
}

.treatment-card-action.is-disabled,
.treatment-card-action[aria-disabled="true"] {
    cursor: not-allowed;
    filter: grayscale(0.55);
    opacity: 0.48;
    pointer-events: none;
}

.catalog-page {
    margin: 0 auto;
    max-width: 1180px;
    padding: 28px 18px 44px;
}

.catalog-hero {
    align-items: end;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 28px 0 18px;
}

.catalog-hero h1 {
    font-size: clamp(2.1rem, 5vw, 4.1rem);
    margin-bottom: 0;
}

.dashboard {
    margin: 0 auto;
    max-width: 1180px;
    padding: 34px 18px 60px;
}

.dashboard-head {
    align-items: end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding: 38px 0 12px;
}

.dashboard-head h1 {
    font-size: clamp(2rem, 5vw, 4rem);
}

.dashboard-head p {
    color: #e6d3cc;
}

.mini-card,
.stats {
    display: grid;
    gap: 8px;
    min-width: 250px;
    padding: 18px;
}

.stats {
    grid-template-columns: repeat(3, 1fr);
    min-width: 420px;
}

.stats span,
.mini-card span {
    color: var(--muted);
}

.stats strong {
    color: var(--ink);
    display: block;
    font-size: 1.7rem;
}

.appointment-list {
    display: grid;
    gap: 12px;
}

.reservation-policy {
    background: rgba(217, 173, 87, 0.1);
    border-left: 3px solid var(--gold);
    color: #eadbd6;
    line-height: 1.5;
    margin: 0 0 16px;
    padding: 10px 12px;
}

.appointment {
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 14px;
}

.appointment span {
    color: var(--muted);
    display: block;
    margin-top: 4px;
}

.reservation-detail {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    width: 100%;
}

.reservation-detail span {
    margin-top: 0;
}

.reservation-detail strong {
    color: var(--gold);
    display: block;
    font-size: 0.75rem;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.reservation-actions {
    align-items: end;
    display: grid;
    flex: 0 0 min(210px, 100%);
    gap: 8px;
    justify-items: end;
}

.reservation-actions form {
    margin: 0;
    width: 100%;
}

.reservation-actions .btn {
    width: 100%;
}

.reservation-actions small {
    color: var(--muted);
    line-height: 1.4;
    max-width: 210px;
    text-align: right;
}

.status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 900;
    padding: 6px 10px;
    text-transform: uppercase;
}

.status.pendiente {
    background: rgba(217, 173, 87, 0.22);
    color: #ffe0a1;
}

.status.confirmada {
    background: rgba(63, 185, 120, 0.2);
    color: #aef0cb;
}

.status.cancelada {
    background: rgba(227, 91, 104, 0.22);
    color: #ffc6cc;
}

.table-panel {
    margin-top: 22px;
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    border-collapse: collapse;
    min-width: 1040px;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 13px 10px;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--gold);
    font-size: 0.82rem;
    text-transform: uppercase;
}

td {
    color: #f0dfd8;
}

.field-help {
    color: #cdbdb6;
    display: block;
    font-size: 0.78rem;
    line-height: 1.4;
    margin-top: 8px;
    max-width: 230px;
}

.site-footer {
    background: rgba(0, 0, 0, 0.82);
    border-top: 1px solid rgba(217, 173, 87, 0.24);
    margin-top: 14px;
    overflow: hidden;
    padding: 14px 18px 12px;
    position: relative;
    z-index: 1;
}

.site-footer::before,
.site-footer::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.site-footer::before {
    background: radial-gradient(circle at left, rgba(233, 138, 167, 0.26), transparent 34%),
        url("../images/site/background.webp") left center / cover no-repeat;
    inset: 0 auto 0 0;
    opacity: 0.55;
    width: 34%;
}

.site-footer::after {
    background: radial-gradient(circle at right, rgba(217, 173, 87, 0.28), transparent 35%);
    inset: 0 0 0 auto;
    width: 26%;
}

.footer-inner {
    align-items: center;
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1px 1fr;
    margin: 0 auto;
    max-width: 1180px;
    position: relative;
    z-index: 2;
}

.footer-identity {
    align-items: center;
    display: grid;
    justify-items: center;
    text-align: center;
}

.footer-logo {
    border-radius: 50%;
    color: var(--ink);
    display: inline-block;
    line-height: 0;
    overflow: hidden;
}

.footer-logo img {
    border-radius: 50%;
    height: 48px;
    object-fit: cover;
    width: 48px;
}

.footer-identity h2 {
    color: var(--ink);
    font-family: "Lucida Handwriting", "Brush Script MT", cursive;
    font-size: clamp(1.35rem, 2.3vw, 2rem);
    font-weight: 400;
    letter-spacing: 1px;
    margin: 2px 0 3px;
    text-transform: uppercase;
}

.footer-identity h2::first-letter {
    color: #d7839b;
}

.footer-identity p {
    color: #f2e4dd;
    font-size: 0.76rem;
    line-height: 1.28;
    margin: 0;
}

.footer-divider {
    background: linear-gradient(180deg, transparent, #c4748b, var(--gold), #c4748b, transparent);
    height: 126px;
    width: 1px;
}

.footer-contact {
    display: grid;
    gap: 5px;
    justify-self: start;
    min-width: 280px;
}

.footer-contact h2 {
    color: var(--gold);
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
}

.footer-accent {
    background: linear-gradient(90deg, #d7839b, var(--gold));
    display: block;
    height: 2px;
    width: 46px;
}

.footer-contact-row {
    align-items: center;
    border-bottom: 1px solid rgba(217, 173, 87, 0.16);
    color: #f2e4dd;
    display: grid;
    gap: 8px;
    grid-template-columns: 26px 1fr;
    font-size: 0.78rem;
    line-height: 1.22;
    padding: 0 0 5px;
}

.footer-contact-row:hover {
    color: var(--ink);
}

.footer-icon {
    align-items: center;
    background: rgba(199, 116, 139, 0.18);
    border: 1px solid rgba(199, 116, 139, 0.38);
    border-radius: 50%;
    color: #f0a8bb;
    display: inline-flex;
    font-size: 0.48rem;
    font-weight: 900;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.footer-bottom {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-column: 1 / -1;
    justify-items: center;
    margin-top: 4px;
}

.footer-line {
    background: linear-gradient(90deg, transparent, #c4748b, var(--gold), #c4748b, transparent);
    display: block;
    height: 1px;
    width: min(760px, 100%);
}

.footer-social {
    display: flex;
    gap: 9px;
}

.footer-social a {
    align-items: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: #f5d079;
    display: inline-flex;
    font-size: 0.52rem;
    font-weight: 900;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.footer-social a:hover {
    background: rgba(217, 173, 87, 0.13);
}

.sr-only {
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.chat-assistant {
    position: relative;
    z-index: 70;
}

.chat-launcher {
    align-items: center;
    background: linear-gradient(135deg, var(--rose-strong), var(--gold));
    border: 0;
    border-radius: 999px;
    bottom: 22px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.48);
    color: #12090c;
    cursor: pointer;
    display: flex;
    gap: 9px;
    min-height: 62px;
    padding: 8px 17px 8px 8px;
    position: fixed;
    right: 22px;
    z-index: 72;
}

.chat-launcher > img {
    background: rgba(18, 9, 12, 0.88);
    border: 2px solid rgba(255, 248, 240, 0.7);
    border-radius: 50%;
    box-sizing: border-box;
    height: 48px;
    object-fit: contain;
    padding: 1px;
    width: 48px;
}

.chat-launcher strong {
    font-size: 0.88rem;
}

.chat-panel {
    background: rgba(13, 10, 12, 0.98);
    border: 1px solid rgba(217, 173, 87, 0.48);
    border-radius: 16px;
    bottom: 88px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.62);
    display: flex;
    flex-direction: column;
    max-height: min(620px, calc(100vh - 120px));
    overflow: hidden;
    position: fixed;
    right: 22px;
    width: min(390px, calc(100vw - 32px));
    z-index: 71;
}

.chat-panel[hidden] {
    display: none;
}

.chat-header {
    align-items: center;
    background: linear-gradient(135deg, rgba(217, 81, 125, 0.25), rgba(217, 173, 87, 0.18));
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
}

.chat-header > div {
    align-items: center;
    display: flex;
    gap: 11px;
}

.chat-avatar {
    background: linear-gradient(135deg, var(--rose-strong), var(--gold));
    border: 1px solid rgba(255, 248, 240, 0.68);
    border-radius: 50%;
    box-sizing: border-box;
    height: 40px;
    object-fit: contain;
    padding: 1px;
    width: 40px;
}

.chat-header strong,
.chat-header small {
    display: block;
}

.chat-header small {
    color: var(--muted);
    margin-top: 2px;
}

.chat-header > button {
    background: transparent;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.7rem;
    line-height: 1;
    padding: 5px;
}

.chat-messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    min-height: 230px;
    overflow-y: auto;
    padding: 16px;
}

.chat-message {
    border-radius: 14px;
    display: grid;
    font-size: 0.9rem;
    gap: 10px;
    line-height: 1.5;
    max-width: 88%;
    padding: 10px 12px;
    white-space: pre-line;
}

.chat-message.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    color: #f5e6df;
}

.chat-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(217, 81, 125, 0.88), rgba(217, 173, 87, 0.88));
    color: #160b0e;
    font-weight: 700;
}

.chat-message.loading {
    color: var(--muted);
    font-style: italic;
}

.chat-message-action {
    background: rgba(217, 173, 87, 0.16);
    border: 1px solid rgba(217, 173, 87, 0.42);
    border-radius: 8px;
    color: #ffe0a1;
    font-weight: 800;
    padding: 8px 10px;
    text-align: center;
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0 16px 12px;
}

.chat-suggestions button {
    background: rgba(217, 173, 87, 0.1);
    border: 1px solid rgba(217, 173, 87, 0.34);
    border-radius: 999px;
    color: #f5dfb4;
    cursor: pointer;
    font-size: 0.76rem;
    padding: 7px 10px;
}

.chat-form {
    background: rgba(0, 0, 0, 0.24);
    border-top: 1px solid var(--line);
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px;
}

.chat-form input {
    min-height: 44px;
}

.chat-form button {
    background: linear-gradient(135deg, var(--rose-strong), var(--gold));
    border: 0;
    border-radius: 8px;
    color: #12090c;
    cursor: pointer;
    font-weight: 900;
    padding: 0 14px;
}

@media (max-width: 1100px) {
    .catalog-page,
    .dashboard,
    .section,
    .panel-grid {
        max-width: 960px;
    }

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

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

@media (max-width: 860px) {
    body {
        background-attachment: scroll;
        background-position: center top;
    }

    .topbar,
    .dashboard-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar {
        gap: 12px;
        padding: 12px 18px;
    }

    .admin-login-page .topbar {
        align-items: center;
        flex-direction: row;
    }

    .admin-login-page .topbar nav {
        justify-content: flex-end;
        width: auto;
    }

    .admin-login-main {
        min-height: calc(100vh - 67px);
        padding-bottom: 44px;
        padding-top: 44px;
    }

    .brand {
        font-size: clamp(1.15rem, 6vw, 1.55rem);
    }

    .brand img {
        height: 42px;
        width: 42px;
    }

    .topbar nav {
        gap: 10px;
        justify-content: flex-start;
        width: 100%;
    }

    .topbar nav a,
    .session-name {
        font-size: 0.92rem;
    }

    .hero {
        min-height: auto;
        padding: 78px 18px 52px;
    }

    .hero::before {
        background:
            linear-gradient(180deg, rgba(8, 6, 7, 0.3) 0%, rgba(8, 6, 7, 0.72) 52%, rgba(8, 6, 7, 0.96) 100%),
            url("../images/site/salon.jpg") center 42% / cover no-repeat;
    }

    .hero-copy {
        backdrop-filter: blur(3px);
        background: rgba(9, 7, 8, 0.72);
        border-radius: 14px;
        padding: 24px;
    }

    h1 {
        font-size: clamp(2.3rem, 13vw, 4rem);
        line-height: 1;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
    }

    .footer-inner {
        gap: 30px;
        grid-template-columns: 1fr;
    }

    .footer-divider {
        height: 1px;
        width: 100%;
    }

    .footer-contact {
        justify-self: stretch;
        min-width: 0;
    }

    .panel-grid,
    .info-strip,
    .form.two-cols {
        grid-template-columns: 1fr;
    }

    .service-row {
        grid-template-columns: minmax(0, 1fr) 100px;
    }

    .service-row .remove-service {
        grid-column: 1 / -1;
        width: auto;
    }

    .whatsapp-fields {
        grid-template-columns: minmax(0, 1fr) 86px minmax(130px, 1.35fr);
    }

    .panel-grid,
    .dashboard,
    .catalog-page,
    .section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .panel {
        padding: 18px;
    }

    .catalog-hero {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 22px;
    }

    .catalog-hero h1 {
        font-size: clamp(2.15rem, 13vw, 3.45rem);
    }

    .welcome-content {
        padding: 22px;
    }

    .local-showcase,
    .local-showcase img {
        height: 360px;
        min-height: 360px;
    }

    .local-showcase img {
        object-position: center 38%;
    }

    .local-showcase figcaption {
        padding: 20px;
    }

    .stats {
        grid-template-columns: 1fr;
        min-width: 100%;
        width: 100%;
    }

    .appointment {
        align-items: flex-start;
        flex-direction: column;
    }

    .reservation-actions {
        align-items: start;
        justify-items: start;
        width: 100%;
    }

    .reservation-actions small {
        max-width: none;
        text-align: left;
    }

    .reservation-detail {
        grid-template-columns: 1fr;
    }

    table {
        min-width: 760px;
    }
}

@media (max-width: 560px) {
    .chat-launcher {
        bottom: 14px;
        right: 14px;
    }

    .chat-launcher strong {
        display: none;
    }

    .chat-launcher {
        padding: 8px;
    }

    .chat-panel {
        bottom: 76px;
        max-height: calc(100vh - 94px);
        right: 12px;
        width: calc(100vw - 24px);
    }

    .treatment-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .treatment-card:last-child:nth-child(3n + 1) {
        grid-column: auto;
        max-width: none;
    }

    .treatment-card-content {
        padding: 18px;
    }

    .whatsapp-fields {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .whatsapp-country {
        grid-column: 1 / -1;
    }

    .topbar {
        position: relative;
    }

    .admin-login-page .topbar {
        gap: 8px;
        padding: 10px 12px;
    }

    .admin-login-page .brand {
        font-size: 1.08rem;
        gap: 7px;
        white-space: nowrap;
    }

    .admin-login-page .brand img {
        height: 38px;
        width: 38px;
    }

    .admin-login-page .topbar nav {
        flex-wrap: nowrap;
        gap: 5px;
    }

    .admin-login-page .topbar nav a {
        font-size: 0.78rem;
        padding: 7px 8px;
    }

    .admin-login-main {
        min-height: 0;
        padding: 26px 12px 42px;
        align-content: start;
    }

    .admin-auth-card {
        border-radius: 14px;
        padding: 24px 17px;
    }

    .admin-auth-intro {
        margin-bottom: 24px;
    }

    .admin-auth-intro h1 {
        font-size: clamp(1.95rem, 9vw, 2.45rem);
        line-height: 1.04;
    }

    .topbar nav a,
    .topbar nav .logout-button {
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 8px 10px;
    }

    .hero-actions,
    .inline-actions,
    .reservation-summary,
    .appointment {
        flex-direction: column;
    }

    .service-row {
        grid-template-columns: 1fr;
    }

    .service-row .remove-service {
        grid-column: auto;
        width: 100%;
    }

    .calendar-weekdays,
    .calendar-grid {
        gap: 4px;
    }

    .calendar-weekdays span {
        font-size: 0.62rem;
    }

    .footer-identity h2 {
        font-size: 1.18rem;
    }

    .local-showcase,
    .local-showcase img {
        height: 300px;
        min-height: 300px;
    }
}
