@import url("fonts/fixel.7e7e29ad7422.css");
:root { color-scheme: light; --stack:24px; --ink:#202026; --muted:#6d6a74; --line:#e7e3e7; --soft:#faf7fa; --accent:#a94d75; --accent-dark:#7d3154; }
* { box-sizing:border-box; }
body { margin:0; background:var(--soft); color:var(--ink); font:16px/1.5 "Fixel Text",system-ui,-apple-system,"Segoe UI",sans-serif; }
h1,h2,h3 { font-family:"Fixel Display","Fixel Text",system-ui,sans-serif; }
.topbar { min-height:64px; padding:0 5vw; display:flex; align-items:center; gap:24px; background:#fff; border-bottom:1px solid var(--line); }
.brand { color:var(--accent-dark); font-size:1.3rem; font-weight:800; text-decoration:none; letter-spacing:.02em; }
.business-picker { display:flex; align-items:center; gap:14px; margin-left:auto; font-size:.92rem; }
.business-picker a { color:var(--accent-dark); }
.business-name { font-weight:700; }
.account-menu summary { font-weight:500; } .account-menu .nav-submenu { left:auto; right:0; border-radius:10px 0 10px 10px; }
.main-nav { display:flex; gap:8px; align-items:center; } .main-nav a { color:var(--accent-dark); text-decoration:none; font-weight:650; }
.nav-area { position:relative; } .nav-area summary { display:inline-flex; align-items:center; min-height:40px; padding:7px 10px; color:var(--accent-dark); cursor:pointer; font-weight:700; list-style:none; } .nav-area summary::-webkit-details-marker { display:none; } .nav-area summary::after { content:'⌄'; margin-left:6px; font-size:.85rem; } .nav-area[open] summary { background:#f7e7ef; border-radius:8px 8px 0 0; } .nav-submenu { position:absolute; z-index:10; top:100%; left:0; display:grid; min-width:190px; padding:8px; border:1px solid var(--line); border-radius:0 10px 10px 10px; background:#fff; box-shadow:0 8px 24px #41203622; } .nav-submenu a,.nav-logout { display:flex; align-items:center; min-height:38px; padding:7px 9px; border-radius:7px; color:var(--ink); text-decoration:none; font:inherit; font-weight:600; white-space:nowrap; } .nav-submenu a:hover,.nav-logout:hover { background:#faf0f4; } .nav-submenu form { margin:0; } .nav-logout { width:100%; border:0; background:transparent; cursor:pointer; text-align:left; }
.page { width:min(1040px,90vw); margin:40px auto; }
.page-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:28px; }
h1,h2 { line-height:1.15; margin:.2rem 0 .5rem; } h1 { font-size:clamp(1.8rem,4vw,2.8rem); } h2 { font-size:1.25rem; }
.eyebrow { color:var(--accent); text-transform:uppercase; letter-spacing:.11em; font-size:.75rem; font-weight:800; margin:0; }
.muted { color:var(--muted); }
.primary { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 18px; border:0; border-radius:10px; background:var(--accent); color:var(--on-accent,#fff); font-weight:700; text-decoration:none; cursor:pointer; }
.primary:hover { background:var(--accent-dark); }
.full { width:100%; margin-top:18px; }
.cards { display:grid; grid-template-columns:repeat(3,1fr); gap:var(--stack); margin-bottom:var(--stack); }
.card,.panel,.auth-card { background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:0 4px 18px #4120360b; }
.card { padding:20px; display:flex; flex-direction:column; gap:4px; } .card strong { font-size:1.8rem; }
.panel { padding:22px; margin-bottom:var(--stack); } .panel:last-child { margin-bottom:0; } .panel-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:15px; }
.panel-heading a { color:var(--accent-dark); }
.table-wrap { overflow-x:auto; } table { width:100%; border-collapse:collapse; } th,td { text-align:left; padding:12px 8px; border-top:1px solid var(--line); } th { color:var(--muted); font-size:.85rem; font-weight:600; }
.role { display:inline-block; padding:3px 9px; border-radius:999px; background:#f7e7ef; color:var(--accent-dark); font-size:.85rem; }
/* Etiquetas de estado: mismo formato que el rol, color según el estado. */
.status { display:inline-flex; align-items:center; gap:6px; padding:3px 10px; border-radius:999px; font-size:.82rem; font-weight:600; line-height:1.4; white-space:nowrap; vertical-align:middle; }
.status::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.status-ok { background:#e3f6ea; color:#0f6b36; }
.status-info { background:#e4eefc; color:#1d4f9a; }
.status-warn { background:#fdf1d8; color:#8a5a00; }
.status-danger { background:#fbe4e4; color:#a12a2a; }
.status-neutral { background:#eeefee; color:#4b504c; }
.auth-card { width:min(430px,100%); margin:7vh auto; padding:32px; } label { display:block; margin:18px 0 6px; font-weight:650; } label[hidden],.honeypot { display:none !important; } input { width:100%; padding:12px; border:1px solid #cfc9cf; border-radius:8px; font:inherit; } input:focus { outline:3px solid #eabbd0; border-color:var(--accent); }
.auth-links { margin:18px 0 0; text-align:center; font-size:.92rem; } .auth-links a { color:var(--accent-dark); font-weight:700; }
.quick-actions { display:grid; grid-template-columns:repeat(2,1fr); gap:var(--stack); margin-top:var(--stack); } .action-card { display:flex; flex-direction:column; gap:4px; padding:18px; color:var(--ink); background:#fff; border:1px solid var(--line); border-radius:12px; text-decoration:none; } .action-card strong { color:var(--accent-dark); }
.date-nav { display:flex; justify-content:space-between; align-items:center; margin:-10px 0 20px; } .date-nav a { color:var(--accent-dark); text-decoration:none; } .today-link { padding:7px 12px; border:1px solid var(--line); border-radius:8px; background:#fff; }
.view-switch { display:inline-flex; margin:-12px 0 22px; padding:4px; gap:2px; border:1px solid var(--line); border-radius:10px; background:#fff; } .view-switch a { padding:7px 14px; border-radius:7px; color:var(--accent-dark); text-decoration:none; font-weight:700; } .view-switch a.active { background:var(--accent); color:var(--on-accent,#fff); }
.time-picker { display:grid; grid-template-columns:1fr 1fr; gap:6px; } .time-picker select { min-width:0; }
.agenda-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; align-items:start; } .agenda-column { min-width:0; background:#fff; border:1px solid var(--line); border-radius:14px; overflow:hidden; } .agenda-column header { display:flex; justify-content:space-between; gap:10px; padding:15px; border-bottom:1px solid var(--line); } .agenda-column header span { color:var(--muted); font-size:.8rem; } .agenda-items { min-height:160px; padding:10px; background:#fcfbfc; } .appointment-card { display:flex; flex-direction:column; gap:2px; padding:12px; margin-bottom:9px; color:var(--ink); text-decoration:none; border-left:4px solid var(--accent); border-radius:9px; background:#fff; box-shadow:0 2px 8px #4120360c; } .appointment-card time { color:var(--accent-dark); font-weight:750; font-size:.85rem; } .appointment-card span { color:var(--muted); font-size:.9rem; } .appointment-card small { color:var(--muted); margin-top:4px; } .status-completed { border-left-color:#4a8f63; } .status-cancelled,.status-no_show { opacity:.55; } .empty-slot { padding:20px 8px; color:var(--muted); text-align:center; font-size:.9rem; }
.form-section { margin-bottom:var(--stack); } .form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; } textarea,select { width:100%; padding:12px; border:1px solid #cfc9cf; border-radius:8px; background:#fff; font:inherit; } select:focus,textarea:focus { outline:3px solid #eabbd0; border-color:var(--accent); } .section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; } .secondary { min-height:40px; padding:8px 13px; border:1px solid #d6a4b9; border-radius:8px; background:#fff; color:var(--accent-dark); font:inherit; font-weight:700; cursor:pointer; } .segment-row { position:relative; display:grid; grid-template-columns:1.2fr 1.1fr 1fr 1fr 30px; gap:10px; align-items:end; padding:14px 0; border-top:1px solid var(--line); } .segment-row label { margin-top:0; font-size:.9rem; } .remove-segment { width:30px; height:42px; border:0; background:transparent; color:#a23b4d; font-size:1.5rem; cursor:pointer; } .form-errors { margin-bottom:18px; padding:10px 15px; border-radius:9px; background:#fff0f0; color:#8c2831; } .form-errors p { margin:3px 0; }
.danger-panel { border-color:#edc8cc; } .danger-button { min-height:42px; padding:9px 14px; border:1px solid #c9626c; border-radius:8px; background:#fff; color:#9a2633; font:inherit; font-weight:700; cursor:pointer; }
.two-panels { display:grid; grid-template-columns:1fr 1fr; gap:var(--stack); margin-bottom:var(--stack); } .two-panels > .panel, .cards > .card { margin-bottom:0; } .payment-form { display:flex; gap:10px; align-items:end; flex-wrap:wrap; } .payment-form input,.payment-form select { flex:1; min-width:150px; } .close-visit-form { margin:18px 0 30px; } .totals { display:flex; flex-direction:column; text-align:right; } .discount { display:block; color:var(--accent-dark); } .checkbox-label { display:flex; gap:8px; align-items:center; font-weight:400; } .checkbox-label input { width:auto; }
.messages { width:min(1040px,90vw); margin:20px auto 0; } .message { padding:12px 15px; border-radius:8px; background:#eff9f1; color:#215f31; } .message.error,.error { color:#8c2831; background:#fff0f0; padding:10px; border-radius:8px; }
.amount-negative { color:#a23b4d; font-weight:700; } .amount-positive { color:#2d7a4a; font-weight:700; }
.field-error { color:#8c2831; font-size:.9rem; margin:5px 0; }
.booking-card { width:min(760px,100%); margin:5vh auto; padding:clamp(20px,5vw,38px); background:#fff; border:1px solid var(--line); border-radius:20px; box-shadow:0 10px 32px #41203612; }
.booking-header { text-align:center; margin-bottom:24px; } .booking-header h1 { margin-top:5px; } .booking-logo { display:block; width:76px; height:76px; margin:0 auto 13px; border-radius:18px; object-fit:contain; border:1px solid var(--line); background:#fff; }
.booking-progress { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; padding:0; margin:0 0 24px; list-style:none; } .booking-progress li { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:.78rem; font-weight:700; } .booking-progress span,.booking-step-heading>span { display:inline-grid; width:24px; height:24px; place-items:center; border-radius:50%; background:#efe8ec; color:var(--muted); } .booking-progress .is-current { color:var(--accent-dark); } .booking-progress .is-current span,.booking-step-heading>span { background:var(--accent); color:var(--on-accent,#fff); }
.booking-policy { margin:0 0 22px; padding:10px 12px; border-radius:10px; background:var(--soft); color:var(--muted); font-size:.9rem; }
.booking-step { margin:0 0 26px; } .booking-step-heading { display:flex; gap:10px; align-items:flex-start; margin-bottom:13px; } .booking-step-heading h2 { font-size:1.15rem; margin:0; } .booking-step-heading p { margin:2px 0 0; color:var(--muted); font-size:.9rem; }
.choice-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:11px; } .choice-card { min-height:116px; padding:16px; border:1px solid var(--line); border-radius:13px; background:#fff; color:var(--ink); text-align:left; font:inherit; cursor:pointer; transition:border-color .15s,box-shadow .15s,transform .15s; } .choice-card:hover { transform:translateY(-1px); border-color:var(--accent); } .choice-card.is-selected { border:2px solid var(--accent); background:var(--soft); box-shadow:0 4px 15px #a94d7522; } .choice-card strong { display:block; font-size:1rem; } .choice-category { display:block; margin-top:3px; color:var(--muted); font-size:.83rem; } .service-meta { display:flex; justify-content:space-between; align-items:baseline; gap:8px; margin-top:18px; color:var(--muted); font-size:.88rem; } .service-meta b { color:var(--accent-dark); font-size:1rem; }
.professional-card { position:relative; min-height:132px; padding-left:80px; } .professional-card img,.professional-initials { position:absolute; top:16px; left:16px; width:48px; height:48px; border-radius:50%; object-fit:cover; } .professional-initials { display:grid; place-items:center; background:var(--accent); color:var(--on-accent,#fff); font-size:.85rem; font-weight:800; } .professional-card .muted { display:block; margin-top:6px; font-size:.83rem; }
.slot-area { margin-top:14px; padding:14px; border-radius:12px; background:var(--soft); } .slot-area p { margin:0 0 10px; } .slot-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(76px,1fr)); gap:8px; } .slot-button { min-height:42px; border:1px solid #d6a4b9; border-radius:9px; background:#fff; color:var(--accent-dark); font:inherit; font-weight:700; cursor:pointer; } .slot-button.is-selected { border-color:var(--accent); background:var(--accent); color:var(--on-accent,#fff); }
.booking-summary { display:grid; gap:2px; margin:24px 0 0; padding:15px; border:1px solid #d6a4b9; border-radius:12px; background:#fff8fb; } .booking-summary>span:first-child { color:var(--accent-dark); font-size:.8rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; } .booking-summary strong { font-size:1.05rem; }
.professional-photo-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; } .professional-photo-form { padding:14px; border:1px solid var(--line); border-radius:12px; } .professional-photo-form h3 { margin:0; font-size:1rem; } .professional-photo-form label { margin-top:10px; } .professional-photo-form img { display:block; width:72px; height:72px; margin-top:12px; border-radius:50%; object-fit:cover; border:1px solid var(--line); }
.inline-form { display:contents; } .week-professional { margin-bottom:var(--stack); } .week-professional header { display:flex; justify-content:space-between; align-items:center; } .week-grid { display:grid; grid-template-columns:repeat(7,minmax(160px,1fr)); gap:10px; overflow-x:auto; } .week-day { min-height:180px; padding:12px; border:1px solid var(--line); border-radius:10px; background:#fcfbfc; } .week-day h3 { margin:0; font-size:.9rem; } .week-day .appointment-card { margin-top:10px; font-size:.86rem; }
.month-picker { display:flex; align-items:end; gap:10px; margin:-10px 0 22px; } .month-picker label { margin:0; } .bar-chart { display:grid; gap:12px; } .bar-row { display:grid; grid-template-columns:42px minmax(80px,1fr) auto 58px; gap:8px; align-items:center; font-size:.85rem; } .bar-track { height:12px; overflow:hidden; border-radius:99px; background:#f2e5eb; } .bar-fill { height:100%; min-width:2px; border-radius:99px; background:var(--accent); }
.search-form { display:flex; gap:8px; align-items:center; } .search-form input { min-width:240px; } .form-submit { display:flex; align-items:end; }
.report-actions { margin:-5px 0 20px; }
.status-actions { display:flex; flex-wrap:wrap; gap:10px; }
.service-picker { margin:20px 0; padding:16px; border:1px solid var(--line); border-radius:10px; background:#fcfbfc; } .service-picker h3 { margin:0; } .service-checkboxes { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:10px; }
.catalog-service details { border-top:1px solid var(--line); padding-top:14px; } summary { cursor:pointer; color:var(--accent-dark); font-weight:700; } .catalog-service h3 { margin-top:24px; } .assignment-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:10px; } .assignment-row { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px; border:1px solid var(--line); border-radius:8px; }
.schedule-professional { margin-bottom:var(--stack); } .schedule-edit { display:flex; align-items:center; gap:8px; min-width:680px; } .schedule-edit select,.schedule-edit input { min-width:100px; padding:8px; } .inline-action { margin-top:8px; }
/* Keep every navigation destination reachable at tablet and phone widths. */
.topbar { flex-wrap:wrap; padding-top:10px; padding-bottom:10px; }
.main-nav { flex-wrap:wrap; }
.main-nav a { display:inline-flex; align-items:center; min-height:44px; }
a:focus-visible,button:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.segment-row { grid-template-columns:1.2fr 1.1fr 1fr 1fr 1fr 30px; }
.segment-row > div { min-width:0; }
@media (max-width:700px) { .topbar { padding:0 5vw; gap:12px; } .main-nav { display:none; } .business-picker { max-width:55%; overflow:hidden; } .cards,.quick-actions,.two-panels { grid-template-columns:1fr; } .page-heading { align-items:flex-start; flex-direction:column; } .page-heading .primary { width:100%; } .panel { padding:15px; } .form-grid { grid-template-columns:1fr; gap:0; } .section-heading { align-items:flex-start; flex-direction:column; } .secondary { width:100%; } .segment-row { grid-template-columns:1fr 1fr; } .segment-row .remove-segment { position:absolute; top:11px; right:0; } .payment-form { display:grid; grid-template-columns:1fr; } .payment-form .primary { width:100%; } .booking-card { width:min(100%,94vw); margin:20px auto; } .booking-progress { grid-template-columns:repeat(2,1fr); row-gap:10px; } .choice-grid { grid-template-columns:1fr; } }
@media (max-width:700px) {
  .topbar { padding-top:10px; padding-bottom:10px; }
  .main-nav { display:flex; order:3; flex-basis:100%; gap:2px; padding-top:6px; border-top:1px solid var(--line); }
  .business-picker { flex-wrap:wrap; overflow-wrap:anywhere; }
  .week-grid { grid-template-columns:repeat(7,minmax(180px,1fr)); }
  .search-form { width:100%; flex-wrap:wrap; } .search-form input { min-width:0; flex:1; }
  .nav-area { position:relative; } .nav-area summary { min-height:42px; padding:6px 10px; } .nav-area[open] { flex-basis:100%; } .nav-area[open] .nav-submenu { position:static; width:100%; margin-top:2px; padding:5px; grid-template-columns:1fr; border-radius:8px; box-shadow:none; } .nav-submenu a,.nav-logout { min-height:36px; padding:6px 8px; }
}
.landing-hero { display:grid; grid-template-columns:1.25fr .75fr; gap:40px; align-items:center; min-height:560px; } .landing-hero h1 { max-width:680px; font-size:clamp(2.5rem,6vw,4.6rem); } .landing-hero > div > p:not(.eyebrow):not(.muted) { max-width:620px; color:#514d56; font-size:1.15rem; } .hero-actions { display:flex; gap:12px; flex-wrap:wrap; margin:26px 0 12px; } .hero-preview { padding:28px; border-radius:22px; background:linear-gradient(145deg,#7d3154,#b95d86); color:#fff; box-shadow:0 20px 50px #7d315444; } .hero-preview .eyebrow { color:#f9dce8; } .hero-preview h2 { margin-bottom:24px; font-size:1.75rem; } .preview-item { display:flex; flex-direction:column; gap:2px; padding:14px 0; border-top:1px solid #ffffff44; } .preview-item strong { font-size:1.1rem; } .preview-item span { color:#fff2f7; } .landing-section { margin:72px 0; } .landing-section > h2 { font-size:clamp(1.8rem,4vw,2.6rem); } .landing-section > .muted { max-width:680px; } .industry-grid,.feature-grid,.plan-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:26px; } .industry-card,.feature-grid article,.plan-card { padding:22px; border:1px solid var(--line); border-radius:16px; background:#fff; box-shadow:0 4px 18px #4120360b; } .industry-card h3,.feature-grid h3,.plan-card h3 { margin:0 0 8px; color:var(--accent-dark); } .industry-card p,.feature-grid p { margin:0; color:var(--muted); } .industry-card small { display:block; margin-top:12px; color:var(--muted); } .feature-grid { grid-template-columns:repeat(4,1fr); } .psychology-section { display:flex; align-items:center; justify-content:space-between; gap:28px; padding:32px; border-radius:18px; background:#eee7f3; } .psychology-section > div { max-width:700px; } .psychology-section h2 { font-size:clamp(1.7rem,4vw,2.4rem); } .plan-card { display:flex; flex-direction:column; } .plan-card strong { margin:8px 0 14px; color:var(--accent-dark); font-size:1.35rem; } .plan-card ul { margin:0 0 20px; padding-left:20px; color:var(--muted); } .plan-card li { margin:7px 0; } .plan-card.featured { border:2px solid var(--accent); box-shadow:0 12px 30px #a94d7522; } .plan-card .full { margin-top:auto; } .landing-cta { margin:72px 0 15px; padding:38px; border-radius:20px; background:#202026; color:#fff; text-align:center; } .landing-cta h2 { font-size:clamp(1.8rem,4vw,2.7rem); } .landing-cta p { color:#f1eaf0; }.onboarding-banner,.onboarding-step { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:var(--stack); } .onboarding-steps { margin-bottom:var(--stack); } .onboarding-step { justify-content:flex-start; } .onboarding-step > div:nth-child(2) { flex:1; } .onboarding-step h2 { margin:0 0 5px; } .onboarding-step p { margin:0; } .step-status { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:50%; background:#f4e2ea; color:var(--accent-dark); font-weight:800; } .onboarding-step.is-ready .step-status { background:#e2f4e7; color:#216238; }
@media (max-width:700px) { .landing-hero { grid-template-columns:1fr; min-height:0; margin-top:20px; gap:24px; } .landing-section { margin:48px 0; } .industry-grid,.feature-grid,.plan-grid { grid-template-columns:1fr; } .psychology-section,.onboarding-banner { align-items:flex-start; flex-direction:column; } .psychology-section .secondary,.onboarding-banner .secondary { width:100%; } }

.onboarding-industry { margin-bottom:var(--stack); } .onboarding-industry .inline-form { display:flex; flex-wrap:wrap; align-items:end; gap:.8rem; } .onboarding-industry label { min-width:min(100%,18rem); }

/* Tenant palette: the same variables style the authenticated area and public booking. */
body[data-theme] { --accent-soft:#f7e7ef; --accent-line:#d6a4b9; --focus:#eabbd0; --accent-hover:#faf0f4; --accent-shadow:#41203622; --on-accent:#fff; }
body[data-theme] .nav-area[open] summary, body[data-theme] .role { background:var(--accent-soft); color:var(--accent-dark); }
/* Inventory actions stay on clean, wrapped rows without changing shared buttons. */
.inventory-page-heading { align-items:flex-start; }
.inventory-page-heading .heading-actions { display:flex; flex:0 1 560px; flex-wrap:wrap; justify-content:flex-end; align-content:flex-start; gap:8px; min-width:0; }
.inventory-page-heading .heading-actions > a.secondary { display:inline-flex; flex:0 0 auto; width:auto; min-height:44px; align-items:center; justify-content:center; line-height:1.2; text-decoration:none; white-space:nowrap; }
@media (max-width:700px) {
  .inventory-page-heading .heading-actions { width:100%; max-width:100%; flex:1 1 auto; justify-content:flex-start; }
  .inventory-page-heading .heading-actions > a.secondary { width:auto; }
}
body[data-theme] .nav-submenu { box-shadow:0 8px 24px var(--accent-shadow); }
body[data-theme] .nav-submenu a:hover, body[data-theme] .nav-logout:hover { background:var(--accent-hover); }
body[data-theme] input:focus, body[data-theme] select:focus, body[data-theme] textarea:focus { outline-color:var(--focus); }
body[data-theme] .secondary { border-color:var(--accent-line); }
body[data-theme] .bar-track { background:var(--accent-soft); }
body[data-theme] .hero-preview { background:linear-gradient(145deg,var(--accent-dark),var(--accent)); box-shadow:0 20px 50px var(--accent-shadow); }

/* Pricing proposal: readable cards at desktop and mobile widths. */
.plan-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); }
.plan-card strong small { font-size:.85rem; font-weight:400; }

/* Styles change shapes only (corners, borders, shadows, contrast); colors come from the brand variables and the font never changes. */
[data-appearance] { --appearance-radius:14px; --button-radius:10px; --appearance-shadow:0 6px 20px #0000000f; --appearance-border:1px solid var(--line); }
[data-appearance="minimal"] { --appearance-radius:6px; --button-radius:6px; --appearance-shadow:none; --appearance-border:1px solid var(--line); }
[data-appearance="modern"] { --appearance-radius:14px; --button-radius:10px; --appearance-shadow:0 6px 20px #0000000f; --appearance-border:1px solid var(--line); }
[data-appearance="classic"] { --appearance-radius:4px; --button-radius:4px; --appearance-shadow:0 1px 2px #0000001a; --appearance-border:1px solid color-mix(in srgb,var(--ink) 22%,transparent); }
[data-appearance="whimsical"] { --appearance-radius:24px; --button-radius:999px; --appearance-shadow:0 6px 0 var(--accent-soft); --appearance-border:2px solid var(--accent-line); }
[data-appearance="bold"] { --appearance-radius:10px; --button-radius:10px; --appearance-shadow:4px 4px 0 var(--ink); --appearance-border:2px solid var(--ink); }
[data-appearance="soft"] { --appearance-radius:22px; --button-radius:999px; --appearance-shadow:0 16px 40px var(--accent-shadow); --appearance-border:1px solid transparent; }
body[data-appearance] { font-family:"Fixel Text",system-ui,-apple-system,"Segoe UI",sans-serif; }
body[data-appearance] h1, body[data-appearance] h2, body[data-appearance] h3 { font-family:"Fixel Display","Fixel Text",system-ui,sans-serif; }
body[data-appearance] .card, body[data-appearance] .panel, body[data-appearance] .auth-card, body[data-appearance] .action-card, body[data-appearance] .agenda-column, body[data-appearance] .industry-card, body[data-appearance] .feature-grid article, body[data-appearance] .plan-card { border:var(--appearance-border); border-radius:var(--appearance-radius); box-shadow:var(--appearance-shadow); }
body[data-appearance] .primary, body[data-appearance] .secondary, body[data-appearance] .danger-button { border-radius:var(--button-radius); }
body[data-appearance="bold"] .primary, body[data-appearance="bold"] .secondary { border:2px solid var(--ink); box-shadow:3px 3px 0 var(--ink); }
body[data-appearance="bold"] .primary:active, body[data-appearance="bold"] .secondary:active { transform:translate(2px,2px); box-shadow:1px 1px 0 var(--ink); }
body[data-appearance="whimsical"] .primary { box-shadow:0 4px 0 var(--accent-dark); }

/* Appearance settings: style cards and three color pickers with a live preview. */
.appearance-panel { margin-bottom:var(--stack); }
.appearance-panel h3 { margin:22px 0 4px; font-size:1rem; }
.style-choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:14px 0; }
.style-choice { position:relative; display:grid; gap:8px; margin:0; padding:10px; border:1px solid var(--line); border-radius:12px; background:#fff; cursor:pointer; font-size:.88rem; }
.style-choice:has(input:checked) { border:2px solid var(--accent); padding:9px; }
.style-choice:has(input:focus-visible) { outline:3px solid var(--focus); outline-offset:2px; }
.style-choice input { position:absolute; opacity:0; pointer-events:none; }
.style-choice strong, .style-choice small { display:block; } .style-choice small { margin-top:2px; color:var(--muted); font-weight:400; line-height:1.3; }
.style-preview { display:grid; gap:6px; padding:10px; border-radius:8px; background:var(--soft); }
.style-preview .sp-card { height:26px; background:#fff; border:var(--appearance-border); border-radius:calc(var(--appearance-radius) * .6); box-shadow:var(--appearance-shadow); }
.style-preview .sp-button { width:60%; height:14px; background:var(--accent); border-radius:var(--button-radius); }
.style-preview[data-appearance="bold"] .sp-button { border:2px solid var(--ink); box-shadow:2px 2px 0 var(--ink); }
.color-slots { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:14px 0 8px; }
.color-slot { position:relative; display:grid; grid-template-columns:48px 1fr; align-items:center; gap:6px 12px; margin:0; padding:10px; border:1px solid var(--line); border-radius:12px; background:#fff; cursor:pointer; }
.color-slot:has(.slot-radio:checked) { border:2px solid var(--accent); padding:9px; }
.color-slot:has(.slot-radio:focus-visible) { outline:3px solid var(--focus); outline-offset:2px; }
.slot-radio { position:absolute; opacity:0; pointer-events:none; }
.slot-swatch { grid-row:span 2; width:48px; height:48px; padding:0; border:1px solid var(--line); border-radius:10px; background:none; cursor:pointer; }
.slot-text strong { display:block; font-size:.92rem; } .slot-text small { display:block; color:var(--muted); font-size:.8rem; font-weight:400; line-height:1.3; }
.color-code { width:100%; min-width:0; padding:6px 8px; font:500 .85rem ui-monospace,SFMono-Regular,Menlo,monospace; }
.image-picker { display:grid; gap:10px; margin:12px 0; }
.image-picker [hidden] { display:none !important; }
.image-drop { position:relative; display:grid; gap:2px; padding:16px; border:2px dashed var(--accent-line); border-radius:12px; background:var(--accent-hover); cursor:pointer; text-align:center; }
.image-drop.is-dragging { border-color:var(--accent); background:var(--accent-soft); }
.image-drop input[type=file] { position:absolute; width:1px; height:1px; opacity:0; }
.image-drop:has(input:focus-visible) { outline:3px solid var(--focus); outline-offset:2px; }
.image-drop small { color:var(--muted); font-weight:400; }
.image-stage { position:relative; justify-self:center; max-width:100%; }
.image-stage canvas#image-canvas { display:block; max-width:100%; max-height:340px; border-radius:10px; cursor:crosshair; touch-action:manipulation; }
.image-loupe { position:absolute; width:120px; height:120px; border:3px solid #fff; border-radius:50%; box-shadow:0 4px 16px #0005; pointer-events:none; image-rendering:pixelated; }
.image-palette { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.palette-chips { display:flex; flex-wrap:wrap; gap:6px; }
.palette-chip { width:34px; height:34px; padding:0; border:1px solid #0002; border-radius:8px; cursor:pointer; }
.palette-chip:hover { transform:translateY(-1px); box-shadow:0 3px 8px #0003; }
@media (max-width:700px) { .color-slots, .style-choices { grid-template-columns:1fr; } }
.brand-preview { display:grid; gap:10px; margin:14px 0; padding:18px; border:1px solid var(--line); border-radius:var(--appearance-radius); background:var(--pv-background); }
.brand-preview .bp-card { display:grid; gap:10px; padding:14px; background:#fff; border:var(--appearance-border); border-radius:var(--appearance-radius); box-shadow:var(--appearance-shadow); }
.brand-preview .bp-tag { justify-self:start; padding:3px 10px; border-radius:999px; background:var(--pv-secondary); color:var(--pv-on-secondary); font-size:.8rem; }
.brand-preview .bp-button { justify-self:start; padding:8px 16px; border:0; border-radius:var(--button-radius); background:var(--pv-primary); color:var(--pv-on-primary); font-weight:700; }
.brand-preview[data-appearance="bold"] .bp-button { border:2px solid var(--ink); box-shadow:3px 3px 0 var(--ink); }
.brand-warning { color:#9a3412; font-size:.88rem; }
.appearance-locked { opacity:.55; pointer-events:none; }

/* Keep public sign-in visible beside the brand on desktop and mobile. */
.topbar .public-login { width:auto; margin-left:auto; flex-shrink:0; }


/* Marca Gestia: logo y tema por defecto (negro y verde) para pantallas sin negocio activo. */
.brand-logo { display:block; height:26px; width:auto; }
.brand { display:inline-flex; align-items:center; }
body[data-theme="gestia"] { --ink:#0A0A0A; --muted:#5E625F; --line:#E3E5E3; --soft:#F4F5F4; --accent:#0F7A3C; --accent-dark:#0A0A0A; --accent-soft:#DDF7E6; --accent-line:#9FE5B9; --focus:#8BE5AD; --accent-hover:#EEFBF3; --accent-shadow:#0A0A0A22; font-family:"Fixel Text",system-ui,-apple-system,"Segoe UI",sans-serif; }
body[data-theme="gestia"] .brand { color:#0A0A0A; }

/* Botones: un solo tamaño y una sola regla de alineación en todo el sistema. */
.primary,.secondary,.danger-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 18px; border-radius:10px; font-size:.95rem; line-height:1.2; text-decoration:none; white-space:nowrap; }
.page-heading { justify-content:flex-start; flex-wrap:wrap; }
.page-heading > :first-child { margin-right:auto; } .page-heading > :last-child:not(:first-child) { margin-left:auto; }
.form-grid > button, .form-grid > .form-submit { grid-column:1 / -1; justify-self:end; }
.form-submit { justify-content:flex-end; }
.panel form:has(input:not([type=hidden]), select, textarea):not(.search-form):not(.payment-form):not(.inline-form):not(.form-grid) > button:last-child { display:flex; width:fit-content; margin-left:auto; }
.page > form:has(.panel) > button:last-child { display:flex; width:fit-content; margin-left:auto; }
@media (max-width:700px) { .form-grid > button, .form-grid > .form-submit { justify-self:stretch; } }
/* Campos de una línea a la misma altura que los botones, y filas de filtros alineadas por abajo. */
input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=range]):not([type=color]), select { height:44px; padding-top:0; padding-bottom:0; }
:is(.payment-form,.inline-form,.search-form) label { margin-bottom:0; }
.panel > .inline-form { display:flex; flex-wrap:wrap; align-items:end; gap:10px; }
/* Notificación: cantidad de solicitudes online sin revisar. */
.badge { display:inline-grid; place-items:center; min-width:20px; height:20px; margin-left:6px; padding:0 6px; border-radius:999px; background:#e5484d; color:#fff; font-size:.72rem; font-weight:700; line-height:1; font-variant-numeric:tabular-nums; }
.badge[hidden] { display:none; }

/* Platform operations: keep overview and contract actions easy to scan. */
.stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr)); gap:22px; margin:22px 0; }
.stats-grid strong { display:block; font-size:1.25rem; line-height:1.35; font-variant-numeric:tabular-nums; }
.stats-grid span { display:block; margin-top:6px; color:var(--muted); font-size:.9rem; line-height:1.5; }
.page-platform-overview { width:min(1480px,94vw); }
.page-platform-overview table { min-width:1100px; }
.platform-cards { grid-template-columns:repeat(3,minmax(0,1fr)); }
.platform-filter { display:flex; flex-wrap:wrap; align-items:end; gap:14px; }
.platform-filter label { flex:1 1 220px; margin:0; }
.platform-filter button { flex:0 0 auto; }
.platform-nav { display:flex; flex-wrap:wrap; gap:12px; margin-top:12px; }
.platform-nav a { font-weight:700; }
.platform-alert { color:#a32439; }
.platform-inline-form { display:flex; align-items:center; gap:6px; }
.platform-inline-form input { min-width:130px; }
.platform-check { display:flex; align-items:center; gap:10px; }
.platform-check input { width:auto; flex:0 0 auto; }
.platform-pagination { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:16px; margin:24px 0; }
.platform-readiness { list-style:none; padding:0; }
.platform-readiness li { padding:14px 0; border-bottom:1px solid var(--line); }
.platform-readiness li > div { display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.platform-readiness-state { color:var(--muted); font-size:.85rem; }
.page-platform-subscription details { margin:12px 0; }
.page-platform-subscription summary { cursor:pointer; font-weight:600; }
.page-platform-subscription table details { min-width:180px; }
.platform-monthly-form { margin-bottom:24px; }
@media (max-width:900px) { .platform-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px) { .platform-cards { grid-template-columns:1fr; } .platform-filter button { width:100%; } }
/* Booking link readiness and copy control */
.copy-link { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:14px 0; }
.copy-link input { flex:1 1 260px; min-width:0; }
.booking-link-status ul { margin:8px 0 0; padding-left:20px; }
/* Home "Hoy": daily operation summary */
.today-cards { grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); }
a.card { color:inherit; text-decoration:none; transition:border-color .15s,box-shadow .15s; }
a.card:hover,a.card:focus-visible { border-color:var(--accent); box-shadow:0 6px 22px #41203614; }
.card-alert { border-color:var(--accent); border-width:2px; }
.card-alert strong { color:var(--accent-dark); }
.setup-steps { list-style:none; margin:12px 0 0; padding:0; display:grid; gap:8px; }
.setup-steps li { display:grid; grid-template-columns:32px 1fr auto; gap:12px; align-items:center; padding:10px 12px; border:1px solid var(--line); border-radius:12px; }
.setup-steps li div { display:flex; flex-direction:column; }
.setup-steps li.is-done { opacity:.7; }
.setup-steps .step-status { display:inline-grid; place-items:center; width:28px; height:28px; border-radius:50%; background:var(--soft); font-weight:700; }
.setup-steps li.is-done .step-status { background:#e3f4ea; color:#1d6b3f; }
@media (max-width:700px) { .setup-steps li { grid-template-columns:28px 1fr; } .setup-steps li a { grid-column:2; } }
/* Mi plan: plan comparison */
.plan-compare { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:12px; margin-top:12px; }
.plan-option { display:flex; flex-direction:column; gap:6px; padding:16px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.plan-option.is-current { border:2px solid var(--accent); background:var(--soft); }
.plan-option header { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.plan-option h3 { margin:0; font-size:1.05rem; }
.plan-option .plan-price { margin:0; font-size:1.4rem; font-weight:700; }
.plan-option .plan-price small { font-size:.85rem; font-weight:400; color:var(--muted); }
.plan-option ul { margin:4px 0 8px; padding-left:18px; font-size:.92rem; flex:1; }
.plan-option .secondary { align-self:flex-start; }


/* Reportes: month KPIs, trend bars and breakdown donuts.
   Chart colors follow the business brand and add soft companions. */
:root { --chart-1:var(--accent); --chart-2:var(--secondary, #d9a7bd); --chart-3:#b7a3dc; --chart-4:#8fcdbd; --chart-5:#f2b79a; }
.chart-1 { --chart:var(--chart-1); } .chart-2 { --chart:var(--chart-2); } .chart-3 { --chart:var(--chart-3); } .chart-4 { --chart:var(--chart-4); } .chart-5 { --chart:var(--chart-5); }
.dash-kpis { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:14px; margin-bottom:var(--stack); }
.dash-kpi { position:relative; overflow:hidden; gap:6px; } .dash-kpi::before { content:""; position:absolute; inset:0 0 auto; height:5px; background:var(--tone); }
.dash-kpi strong { font-size:1.55rem; line-height:1.15; }
.dash-kpi.tone-1 { --tone:var(--chart-1); } .dash-kpi.tone-2 { --tone:var(--chart-3); } .dash-kpi.tone-3 { --tone:var(--chart-5); } .dash-kpi.tone-4 { --tone:var(--chart-4); }
.dash-change { font-weight:700; } .dash-change.is-up { color:#2f7d5b; } .dash-change.is-down { color:#a23b4d; }
.dash-grid { display:grid; grid-template-columns:minmax(0, 1.4fr) minmax(0, 1fr); gap:var(--stack); margin-bottom:var(--stack); }
.dash-grid > .panel { margin-bottom:0; } .dash-grid-single { grid-template-columns:minmax(0, 1fr); } .dash-grid-even { grid-template-columns:repeat(2, minmax(0, 1fr)); }
.swatch { display:inline-block; width:10px; height:10px; border-radius:3px; background:var(--chart); flex:none; }
.dash-legend { display:flex; gap:14px; font-size:.85rem; color:var(--muted); } .dash-legend span { display:inline-flex; align-items:center; gap:6px; }
.dash-bars { display:flex; align-items:stretch; gap:10px; height:190px; padding-top:8px; border-bottom:1px solid var(--line); }
.dash-bar-group { flex:1; display:flex; flex-direction:column; align-items:center; gap:6px; } .dash-bar-group small { color:var(--muted); font-size:.8rem; padding-bottom:4px; }
.dash-bar-group.is-current small { color:var(--accent-dark); font-weight:700; }
.dash-bar-pair { flex:1; width:100%; display:flex; align-items:flex-end; justify-content:center; gap:4px; }
.dash-bar { width:min(22px, 40%); min-height:2px; border-radius:6px 6px 2px 2px; background:var(--chart); }
.dash-donut-wrap { display:flex; align-items:center; gap:22px; } .dash-donut-wrap > * { min-width:0; }
.dash-donut { position:relative; width:150px; aspect-ratio:1; border-radius:50%; flex:none; }
.dash-donut span { position:absolute; inset:24%; display:grid; place-items:center; border-radius:50%; background:#fff; font-size:.78rem; font-weight:700; text-align:center; padding:4px; line-height:1.2; }
.dash-breakdown { flex:1; min-width:0; margin:0; padding:0; list-style:none; display:grid; grid-template-columns:minmax(0, 1fr); gap:8px; }
.dash-breakdown li { display:flex; align-items:center; gap:8px; font-size:.92rem; } .dash-breakdown li span { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width:900px) { .dash-kpis { grid-template-columns:repeat(2, minmax(0, 1fr)); } .dash-grid { grid-template-columns:minmax(0, 1fr); } }
@media (max-width:600px) { .dash-kpi strong { font-size:1.25rem; } .dash-donut { width:120px; } .dash-donut-wrap { flex-wrap:wrap; } .dash-breakdown { flex-basis:100%; } }
