:root{--jade:#008d68;--deep:#082e24;--gold:#b99b58;--paper:#f4f6f5;--ink:#172c24;--muted:#748078}body{background:var(--paper);color:var(--ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}.client-layout{display:flex;min-height:100dvh}.client-sidebar{width:224px;flex-shrink:0;background:#fff;border-right:1px solid #e4e9e6;padding:30px 20px;position:fixed;height:100dvh;overflow-y:auto}.client-brand img{width:114px;object-fit:contain}.city-label{font-size:9px;letter-spacing:1.8px;color:#87958b;display:block;margin:13px 0 27px}.client-sidebar nav{display:grid;gap:5px}.client-sidebar nav a{display:flex;align-items:center;gap:12px;padding:12px;font-size:12px;color:#6a776f;border-radius:10px;text-decoration:none}.client-sidebar nav a.selected{background:#e7f4ee;color:var(--jade);font-weight:650}.client-sidebar svg,.client-main svg,.client-bottom svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;flex-shrink:0}.client-side-foot{margin-top:36px;border-top:1px solid #eef1ef;padding-top:18px;font-size:12px}.client-side-foot p{font-weight:600}.client-main{margin-left:224px;flex:1;min-width:0}.client-top{height:68px;position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid #e7ede9;display:flex;align-items:center;justify-content:space-between;padding:0 32px;gap:15px}.client-top .client-brand{display:none}.client-city{display:flex;gap:6px;align-items:center;color:#617268;font-size:11px}.client-top-actions{display:flex;gap:10px}.client-top-actions button{width:38px;height:38px;border:1px solid #e7eee9;border-radius:50%;display:grid;place-items:center;background:white;color:#385748;position:relative;padding:0}.notification-dot{position:absolute;right:8px;top:8px;width:5px;height:5px;border-radius:50%;background:var(--gold)}.mini-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover}.client-content{padding:28px 32px;max-width:1260px;margin:0 auto}.market-welcome{background:linear-gradient(120deg,#073c2c,#007458);padding:28px 32px;border-radius:17px;color:#fff;display:flex;justify-content:space-between;align-items:center;position:relative;overflow:hidden}.market-welcome .eyebrow{color:#d0b67a;font-size:9px;letter-spacing:1.4px}.market-welcome h1{font-size:27px;letter-spacing:-.8px;margin:9px 0}.market-welcome p{font-size:12px;color:#c1dacf;margin:0}.welcome-symbol{padding:17px;border-radius:50%;background:#ffffff09;color:#d7b773;transform:rotate(-12deg)}.welcome-symbol svg{width:55px;height:55px}.market-search{margin:18px 0 16px;height:46px;display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #e5ebe7;border-radius:10px;padding:0 13px;box-shadow:0 3px 13px #123c2b04;color:#90a094}.market-search input{border:0;background:transparent;padding:0;font-size:12px;min-width:0;flex:1;outline:none}.market-search button{background:var(--jade);border:0;color:#fff;padding:7px;border-radius:8px;display:grid;place-items:center}.market-categories{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;padding-bottom:8px}.market-categories button{white-space:nowrap;display:flex;gap:6px;align-items:center;border-radius:9px;border:1px solid #e2e9e4;background:white;padding:9px 12px;font-size:11px;color:#64756a}.market-categories button.selected{background:#102f25;color:#fff;border-color:#102f25}.market-categories svg{width:15px;height:15px}.market-filter-top{display:flex;gap:8px;align-items:center;margin:9px 0 20px}.filter-toggle{display:flex;gap:6px;align-items:center;background:#fff;border:1px solid #e4eae6;border-radius:7px;padding:8px 10px;font-size:10px;color:#556b5d}.filter-toggle svg{width:14px;height:14px}.market-filter-top select{width:auto;max-width:135px;font-size:10px;margin-left:auto;padding:8px 22px 8px 8px;border:1px solid #e4eae6;border-radius:7px}.advanced-filters{display:none;gap:12px;background:#fff;padding:16px;border:1px solid #e2eae4;border-radius:12px;margin-bottom:20px}.advanced-filters.expanded{display:flex;flex-wrap:wrap;align-items:center}.advanced-filters label{font-size:11px;flex:1;min-width:110px;margin:0}.advanced-filters input{margin-top:6px;font-size:12px}.market-section-head{display:flex;justify-content:space-between;align-items:center;margin:22px 0 14px}.market-section-head h2{font-size:17px;letter-spacing:-.4px;margin:0}.market-section-head span{font-size:10px;color:#7d8d81}.market-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.market-card{background:#fff;border:1px solid #e4ebe6;border-radius:12px;overflow:hidden;transition:box-shadow .2s,transform .2s}.market-card:hover{transform:translateY(-2px);box-shadow:0 8px 22px #102f250c}.market-cover{display:block;height:112px;position:relative;background:var(--deep);text-decoration:none}.market-cover>img{width:100%;height:100%;object-fit:cover}.cover-lines{position:absolute;inset:0;background:linear-gradient(130deg,#ffffff08 35%,transparent 35%,transparent 60%,#ffffff05 60%);overflow:hidden}.cover-lines:after{content:'';border:1px solid #ffffff25;border-radius:50%;position:absolute;width:120px;height:120px;right:-15px;top:-25px}.market-logo{position:absolute;width:43px;height:43px;bottom:-17px;left:50%;transform:translateX(-50%);background:#fff;border:3px solid #fff;box-shadow:0 2px 7px #123c2b12;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:700;color:var(--deep);overflow:hidden}.market-logo img{width:100%;height:100%;object-fit:cover}.market-info{padding:27px 13px 14px}.market-category{font-size:9px;text-transform:uppercase;letter-spacing:.65px;color:#9a8150}.market-name{display:block;font-size:13px;line-height:1.4;letter-spacing:-.2px;color:#1e3327;font-weight:650;text-decoration:none;margin-top:5px}.market-info p{font-size:10px;color:#8a968e;margin:6px 0 10px;line-height:1.5}.market-price{font-size:10px;color:#879187}.market-price strong{font-size:16px;font-weight:550;color:#153e2d}.market-tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:9px}.market-tags span{font-size:8px;padding:3px 5px;border-radius:4px;background:#f5f0e3;color:#957638}.market-tags .open-tag{background:#eaf6ef;color:#009369}.market-guest{font-size:10px;color:var(--jade)}.client-empty{grid-column:1/-1;text-align:center;background:#fff;border:1px solid #e4ebe6;border-radius:15px;padding:45px 20px;color:#6a7c70}.client-empty>svg{width:30px;height:30px;color:#adbcaf}.client-empty h3{font-size:17px;color:#2b4435}.client-empty p{font-size:12px;line-height:1.7}.load-more{grid-column:1/-1;justify-self:center;font-size:12px}.reward-teaser{margin-top:24px;padding:20px;background:#fff;border:1px solid #e8e0cc;border-radius:12px;display:flex;gap:14px;align-items:center}.reward-teaser>svg{color:#b4954f;width:27px;height:27px}.reward-teaser strong{font-size:12px}.reward-teaser p{font-size:11px;color:#7d8c81;margin:5px 0 0}.reward-teaser a{margin-left:auto;color:var(--jade);font-size:10px;white-space:nowrap}.client-footer{border-top:1px solid #e1e9e4;margin:30px 32px 0;padding:24px 0;font-size:10px;color:#829186}.support-links{display:flex;flex-direction:column;gap:10px;margin-top:18px}.support-links a{display:flex;align-items:center;gap:8px;color:#62806d;font-size:11px;text-decoration:none;word-break:break-word}.support-links svg{width:14px;height:14px}.preview-link,.client-footer>a{display:block;color:#879186;font-size:9px;margin-top:22px}.client-bottom{display:none}.client-page-heading{margin-bottom:25px}.client-page-heading .eyebrow{color:#ad9155;font-size:9px}.client-page-heading h1{font-size:25px;margin:9px 0 8px;letter-spacing:-.8px}.client-page-heading p{font-size:12px;color:#74897b;line-height:1.6}.offer-grid,.loyalty-grid,.receipt-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.offer-card,.customer-loyalty,.receipt-card,.account-card{background:#fff;border:1px solid #e3ebe6;border-radius:15px;padding:22px}.offer-card h2,.customer-loyalty h2,.receipt-card h2,.account-card h2{font-size:17px;letter-spacing:-.4px;line-height:1.5;margin:9px 0}.offer-card p,.customer-loyalty p,.receipt-card p,.account-card p{font-size:12px;color:#748378;line-height:1.7}.offer-card .primary{display:flex;margin-top:18px;font-size:11px;justify-content:center}.offer-discount{background:#0b3f2d;color:#e2c688;display:inline-block;border-radius:9px;padding:9px 14px;font-weight:700;margin-bottom:15px}.offer-card .market-category{display:block}.customer-loyalty{background:linear-gradient(130deg,#0b3527,#096044);color:white}.customer-loyalty .eyebrow{font-size:9px;color:#d1b976}.customer-loyalty p{color:#bed7c8}.customer-loyalty a{font-size:11px;color:#e6cc92}.loyalty-stamps{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0}.loyalty-stamps span{width:32px;height:32px;border:1px dashed #759e85;border-radius:50%;display:grid;place-items:center;font-size:11px;color:#a6bda9}.loyalty-stamps span.filled{background:#d4ba80;color:#194632;border:0}.account-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:20px}.profile-identity{display:flex;gap:16px;align-items:center;margin-bottom:25px}.profile-identity h2{margin:0}.profile-identity p{margin:5px 0}.profile-photo{width:70px;height:70px;border-radius:50%;background:#eef5f0;display:grid;place-items:center;color:#5c8d71;flex-shrink:0;overflow:hidden}.profile-photo img{width:100%;height:100%;object-fit:cover}.profile-photo svg{width:30px;height:30px}.photo-label{cursor:pointer;font-size:10px}.photo-label input{display:none}.account-card label,dialog label{font-size:11px;color:#576e5e}.account-card input,.account-card select,.account-card textarea,dialog input,dialog select,dialog textarea{font-size:13px;min-height:42px;background:#fcfdfc;border:1px solid #e3eae6;border-radius:8px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-row label{min-width:0}.inline-check{display:flex;gap:10px;align-items:center;font-weight:400;line-height:1.6}.inline-check input{width:16px!important;min-height:16px;margin:0}.account-card .primary{font-size:12px;margin-top:17px}.account-shortcuts{display:grid;gap:8px}.account-shortcuts a,.account-shortcuts button{display:flex;align-items:center;gap:10px;padding:12px;background:#f5f8f6;border-radius:8px;color:#546e5d;font-size:11px;text-align:left;text-decoration:none;border:0}.account-shortcuts svg{width:16px;height:16px}.account-card .secondary{font-size:11px;margin-top:26px}.receipt-filters{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:12px}.receipt-filters label{font-size:11px}.receipt-filters input{font-size:12px;min-width:0}.receipt-summary{display:flex;justify-content:space-between;font-size:11px;color:#69816f;margin:20px 0}.receipt-card>div:first-child{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.receipt-mark{width:32px;height:32px;background:#ecf7f0;border-radius:50%;display:grid;place-items:center;color:#14805b}.receipt-card h2{font-size:14px}.receipt-total{display:block;font-size:24px;font-weight:550;letter-spacing:-.8px;margin:14px 0}.receipt-breakdown{display:grid;grid-template-columns:1fr auto;gap:9px;font-size:10px;color:#7c8b80;border-top:1px dashed #e0e8e2;padding:13px 0}.receipt-card button{font-size:11px;min-height:40px}.report-item{padding:17px 0;border-bottom:1px solid #e5eae7}.report-item h3{font-size:13px}.report-item p{font-size:11px}.small{font-size:10px;line-height:1.7}.preview-toolbar{background:#f4eddc;border-bottom:1px solid #dfca97;padding:10px 16px;font-size:9px;display:flex;justify-content:space-between;gap:9px;flex-wrap:wrap;color:#856a32}.preview-toolbar>div{display:flex;gap:5px;align-items:center}.preview-toolbar button{font-size:10px;background:white;border:1px solid #d8c494;border-radius:5px;padding:5px 7px}.preview-toolbar a{font-size:10px;margin-left:10px;color:#856a32}.access-state{text-align:center;padding:15px 0}.access-state>svg{width:35px;height:35px;stroke:var(--jade);fill:none;stroke-width:1.5}.access-state h2{font-size:23px}.access-state p{font-size:13px;line-height:1.8;color:#6e8174}.access-state .secondary{margin-top:12px}.detail-report{text-align:right;margin-top:22px}.client-content .primary{background:var(--jade)}.client-content .detail-banner h1{font-size:29px}.client-content .box h2{font-size:18px}.client-content .service h3{font-size:13px}.client-content .service p{font-size:11px}.client-content .service .primary{font-size:11px}.client-content .detail-layout{gap:17px}.client-content .appointment-card{font-size:12px}.client-content .box{border:1px solid #e3ebe6;border-radius:14px}.client-content .info-line{font-size:12px}.client-content .notice{font-size:11px;line-height:1.7}@media(max-width:1150px){.market-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.offer-grid,.receipt-grid,.loyalty-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:800px){.client-sidebar{display:none}.client-main{margin-left:0}.client-top{height:58px;padding:0 16px}.client-top .client-brand{display:block}.client-top .client-brand img{width:88px}.client-city{font-size:10px;margin-left:auto;margin-right:5px}.client-top-actions{gap:6px}.client-top-actions button{width:33px;height:33px}.client-content{padding:16px 14px 20px}.client-footer{margin:20px 15px 0;padding-bottom:100px}.client-bottom{display:flex;justify-content:space-around;position:fixed;bottom:0;left:0;right:0;background:#fff;box-shadow:0 -3px 15px #123c2b06;border-top:1px solid #e4eae6;z-index:25;padding:8px 0 calc(8px + env(safe-area-inset-bottom))}.client-bottom a{display:flex;flex-direction:column;align-items:center;gap:4px;color:#88968c;text-decoration:none;padding:5px 8px;min-width:52px}.client-bottom a.selected{color:var(--jade)}.client-bottom span{font-size:8px}.client-bottom svg{width:19px;height:19px}.market-welcome{border-radius:13px;padding:21px 18px}.market-welcome h1{font-size:23px}.market-welcome p{font-size:10px}.market-welcome .eyebrow{font-size:7px}.welcome-symbol svg{width:33px;height:33px}.market-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.market-cover{height:105px}.market-info{padding:25px 11px 12px}.market-name{font-size:12px}.market-price strong{font-size:15px}.market-categories button{font-size:10px;padding:8px 10px}.market-section-head h2{font-size:15px}.market-section-head span{font-size:9px}.market-search input{font-size:12px}.reward-teaser{padding:15px 12px;gap:10px}.reward-teaser strong{font-size:10px}.reward-teaser p{font-size:9px}.reward-teaser a{font-size:9px}.account-grid{grid-template-columns:1fr;gap:14px}.account-card{padding:19px}.client-page-heading h1{font-size:23px}.client-page-heading p{font-size:11px}.offer-grid,.receipt-grid,.loyalty-grid{gap:10px}.offer-card,.receipt-card,.customer-loyalty{padding:15px}.offer-card h2,.customer-loyalty h2{font-size:14px}.offer-card p,.customer-loyalty p{font-size:10px}.receipt-filters{grid-template-columns:1fr 1fr;gap:10px}.receipt-filters label:last-child{grid-column:1/-1}.receipt-card h2{font-size:12px}.receipt-total{font-size:21px}.receipt-card button{font-size:9px;padding:8px}.receipt-card .small{font-size:9px}.receipt-breakdown{font-size:9px}.client-content .detail-banner h1{font-size:24px}.client-content .content{padding:0}.client-content .detail-layout{grid-template-columns:1fr}.client-content .box{padding:19px}.client-content .summary-row{gap:9px}.client-content .appointment-card{padding:15px}.mini-avatar{width:31px;height:31px}}@media(max-width:360px){.client-city{display:none}.market-cover{height:88px}.offer-grid,.loyalty-grid{grid-template-columns:1fr}.market-info p{font-size:9px}.market-name{font-size:11px}.reward-teaser a{display:none}.form-row{grid-template-columns:1fr}.receipt-card{padding:12px}.receipt-breakdown{font-size:8px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media(max-width:800px){.client-top-actions button{width:40px;height:40px}.account-card input,.account-card select,.account-card textarea,dialog input,dialog select,dialog textarea{font-size:16px}}

/* =====================================================
   JALO · Experiencia del cliente
   ===================================================== */

.client-layout {
  --jade: #087f5b;
  --deep: #123c2c;
  --gold: #b89b60;
  --ink: #20352a;
  --muted: #758177;
  --line: #e2e9e3;
  --paper: #f4f6f2;
  --surface: #fff;

  min-height: 100dvh;
  background:
    radial-gradient(
      ellipse at 85% 0,
      rgba(198, 217, 195, .28),
      transparent 42%
    ),
    var(--paper);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI",
    Inter, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.client-layout *,
.client-layout *::before,
.client-layout *::after {
  box-sizing: border-box;
}

.client-layout button,
.client-layout input,
.client-layout textarea,
.client-layout select {
  font-family: inherit;
}

.client-layout button,
.client-layout a {
  -webkit-tap-highlight-color: transparent;
}

.client-layout a:focus-visible,
.client-layout button:focus-visible,
.client-layout input:focus-visible,
.client-layout select:focus-visible,
.client-layout textarea:focus-visible {
  outline: 3px solid #98d4b5;
  outline-offset: 3px;
}

.client-layout .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--jade);
  border-radius: 12px;
  background: var(--jade);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(8, 127, 91, .1);
}

.client-layout .secondary {
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid #d9e5dc;
  border-radius: 12px;
  background: #fff;
  color: var(--deep);
  font-size: 13px;
  font-weight: 600;
}

.client-layout .small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

/* Navegación en computadora */

.client-layout .client-sidebar {
  width: 224px;
  padding: 28px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
}

.client-layout .client-sidebar nav {
  gap: 6px;
}

.client-layout .client-sidebar nav a {
  min-height: 45px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #68766c;
  font-size: 12px;
}

.client-layout .client-sidebar nav a.selected {
  background: #eaf4ec;
  color: var(--jade);
  font-weight: 700;
}

.client-layout .city-label {
  color: #8b978c;
  font-size: 9px;
  letter-spacing: 1.6px;
}

.client-layout .client-side-foot {
  border-top-color: var(--line);
}

.client-layout .client-main {
  margin-left: 224px;
  min-width: 0;
}

/* Encabezado */

.client-layout .client-top {
  height: 66px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(218, 229, 219, .8);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 30;
}

.client-layout .client-city {
  color: #496652;
  font-size: 11px;
  font-weight: 550;
}

.client-layout .client-top-actions {
  gap: 9px;
}

.client-layout .client-top-actions button {
  width: 42px;
  height: 42px;
  border: 1px solid #e4ece5;
  border-radius: 14px;
  background: #f9fbf8;
  color: var(--deep);
}

.client-layout .mini-avatar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.client-layout .notification-dot {
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  background: var(--gold);
}

.client-layout .client-content {
  width: 100%;
  max-width: 1220px;
  padding: 24px 28px 38px;
}

/* Portada: búsqueda primero, luego descubrimiento */

.client-layout .client-content:has(> .market-search) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "search"
    "welcome"
    "categories"
    "filters"
    "advanced"
    "heading"
    "results"
    "reward";
  gap: 0;
}

.client-layout .market-search { grid-area: search; }
.client-layout .market-welcome { grid-area: welcome; }
.client-layout .market-categories { grid-area: categories; }
.client-layout .market-filter-top { grid-area: filters; }
.client-layout .advanced-filters { grid-area: advanced; }
.client-layout .market-section-head { grid-area: heading; }
.client-layout .market-grid { grid-area: results; }
.client-layout .reward-teaser { grid-area: reward; }

/* Buscador */

.client-layout .market-search {
  height: 54px;
  margin: 0 0 18px;
  padding: 0 8px 0 17px;
  gap: 12px;
  border: 1px solid #dbe5dc;
  border-radius: 16px;
  background: #fff;
  color: #73917e;
  box-shadow: 0 5px 18px rgba(37, 67, 44, .04);
}

.client-layout .market-search:focus-within {
  border-color: #65b792;
  box-shadow: 0 0 0 4px rgba(8, 127, 91, .07);
}

.client-layout .market-search input {
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  box-shadow: none;
}

.client-layout .market-search input::placeholder {
  color: #909b92;
}

.client-layout .market-search button {
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--jade);
  color: #fff;
}

/* Banner editorial */

.client-layout .market-welcome {
  min-height: 160px;
  margin: 0 0 22px;
  padding: 27px 30px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 95% 10%,
      rgba(151, 199, 136, .26),
      transparent 40%
    ),
    linear-gradient(115deg, #16382b 0%, #0b6749 100%);
  box-shadow: 0 10px 24px rgba(22, 68, 43, .1);
  isolation: isolate;
}

.client-layout .market-welcome::before,
.client-layout .market-welcome::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -40px;
  top: -80px;
  border: 1px solid rgba(218, 227, 192, .16);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.client-layout .market-welcome::after {
  width: 310px;
  height: 310px;
  right: -80px;
  top: -120px;
}

.client-layout .market-welcome .eyebrow {
  color: #dccb9a;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.7px;
}

.client-layout .market-welcome h1 {
  margin: 11px 0 9px;
  color: #fff;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 650;
  letter-spacing: -.9px;
  line-height: 1.12;
}

.client-layout .market-welcome p {
  max-width: 300px;
  color: #d2e6d8;
  font-size: 13px;
  line-height: 1.6;
}

.client-layout .welcome-symbol {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding: 0;
  border: 1px solid rgba(221, 210, 167, .22);
  border-radius: 24px;
  background: rgba(255, 255, 255, .07);
  color: #e4d5a7;
  transform: rotate(-8deg);
}

.client-layout .welcome-symbol svg {
  width: 37px;
  height: 37px;
}

/* Categorías */

.client-layout .market-categories {
  gap: 12px;
  margin-bottom: 4px;
  padding: 2px 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.client-layout .market-categories::-webkit-scrollbar {
  display: none;
}

.client-layout .market-categories button {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  flex: 0 0 88px;
  gap: 9px;
  min-height: 96px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #617364;
  font-size: 11px;
  font-weight: 550;
  white-space: normal;
  line-height: 1.35;
  text-align: center;
  scroll-snap-align: start;
}

.client-layout .market-categories button svg {
  width: 59px;
  height: 59px;
  padding: 17px;
  border: 1px solid #e1e8de;
  border-radius: 20px;
  background: #fff;
  color: #52705c;
  box-shadow: 0 3px 9px rgba(48, 72, 44, .025);
  transition:
    background .18s ease,
    color .18s ease,
    transform .18s ease;
}

.client-layout .market-categories button.selected {
  background: transparent;
  color: var(--deep);
  font-weight: 700;
}

.client-layout .market-categories button.selected svg {
  border-color: var(--deep);
  background: var(--deep);
  color: #e4d3a1;
}

/* Filtros */

.client-layout .market-filter-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0 12px;
}

.client-layout .filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #dce6dc;
  border-radius: 11px;
  background: #fff;
  color: #526b58;
  font-size: 11px;
  font-weight: 550;
}

.client-layout .filter-toggle svg {
  width: 15px;
  height: 15px;
}

.client-layout .market-filter-top select {
  width: auto;
  max-width: 150px;
  min-height: 38px;
  margin: 0 0 0 auto;
  padding: 8px 24px 8px 10px;
  border: 1px solid #dce6dc;
  border-radius: 11px;
  background-color: #fff;
  color: #647466;
  font-size: 11px;
}

.client-layout .advanced-filters {
  display: none;
  margin: 0 0 15px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.client-layout .advanced-filters.expanded {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.client-layout .advanced-filters label {
  flex: 1 1 130px;
  margin: 0;
  color: #667868;
  font-size: 11px;
}

/* Encabezado de resultados */

.client-layout .market-section-head {
  margin: 17px 0 15px;
  gap: 12px;
}

.client-layout .market-section-head h2 {
  color: var(--deep);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.5px;
}

.client-layout .market-section-head span {
  flex-shrink: 0;
  padding: 6px 9px;
  border-radius: 8px;
  background: #e9efe5;
  color: #75836f;
  font-size: 10px;
}

/* Catálogo */

.client-layout .market-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  align-items: start;
}

.client-layout .market-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e3e9df;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 4px 13px rgba(36, 62, 35, .035);
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}

.client-layout .market-cover {
  position: relative;
  display: block;
  height: auto;
  aspect-ratio: 1.5;
  overflow: visible;
  isolation: isolate;
}

.client-layout .market-cover > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
}

.client-layout .cover-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, .18),
      transparent 50%
    ),
    repeating-linear-gradient(
      125deg,
      transparent 0 35px,
      rgba(255, 255, 255, .04) 35px 36px
    );
}

.client-layout .market-logo {
  position: absolute;
  left: 50%;
  bottom: -20px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #eef3e9;
  color: var(--deep);
  box-shadow: 0 3px 8px rgba(32, 57, 30, .1);
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
}

.client-layout .market-logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.client-layout .market-info {
  padding: 30px 15px 16px;
}

.client-layout .market-category {
  display: block;
  margin-bottom: 7px;
  color: #87947f;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .5px;
}

.client-layout .market-name {
  display: -webkit-box;
  min-height: 38px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #243d2b;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.client-layout .market-info p {
  display: -webkit-box;
  min-height: 30px;
  margin: 6px 0 11px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #899286;
  font-size: 10px;
  line-height: 1.5;
}

.client-layout .market-price {
  margin-top: 9px;
  color: #8b9789;
  font-size: 10px;
}

.client-layout .market-price strong {
  display: block;
  margin-top: 2px;
  color: #173f2b;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -.7px;
}

.client-layout .market-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 11px;
}

.client-layout .market-tags span {
  padding: 5px 7px;
  border-radius: 7px;
  background: #f7f3e7;
  color: #997d40;
  font-size: 9px;
  font-weight: 550;
}

.client-layout .market-tags .open-tag {
  background: #eaf5ec;
  color: #398451;
}

.client-layout .market-guest {
  display: block;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #edf1e9;
  color: #7a8c74;
  font-size: 10px;
  line-height: 1.5;
}

/* Fidelidad en portada */

.client-layout .reward-teaser {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 25px 0 0;
  padding: 20px;
  border: 1px solid #e6dcc1;
  border-radius: 17px;
  background: linear-gradient(110deg, #fbf8ef, #f3f0df);
}

.client-layout .reward-teaser > svg {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 12px;
  background: #fff9e9;
  color: #a68945;
}

.client-layout .reward-teaser strong {
  color: #6d603c;
  font-size: 13px;
}

.client-layout .reward-teaser p {
  margin: 5px 0 0;
  color: #9b8e6b;
  font-size: 11px;
}

.client-layout .reward-teaser a {
  margin-left: auto;
  color: #8b7135;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}

/* Encabezados de las demás pantallas */

.client-layout .client-page-heading {
  position: relative;
  margin: 0 0 22px;
  padding: 22px 24px;
  overflow: hidden;
  border: 1px solid #dde7da;
  border-radius: 19px;
  background:
    radial-gradient(
      circle at 95% 0,
      rgba(179, 204, 160, .24),
      transparent 50%
    ),
    #edf3e7;
}

.client-layout .client-page-heading .eyebrow {
  color: #9b844b;
  font-size: 9px;
  letter-spacing: 1.6px;
}

.client-layout .client-page-heading h1 {
  margin: 9px 0;
  color: #24432b;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -.7px;
}

.client-layout .client-page-heading p {
  max-width: 540px;
  margin: 0;
  color: #7d8d77;
  font-size: 12px;
  line-height: 1.65;
}

/* Perfil del cliente */

.client-layout .account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.client-layout .account-card {
  min-width: 0;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(40, 66, 35, .025);
}

.client-layout .account-card h2 {
  margin: 0 0 15px;
  color: var(--deep);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.35px;
}

.client-layout .account-card p {
  color: #7c8878;
  font-size: 12px;
  line-height: 1.7;
}

.client-layout .profile-identity {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: -23px -23px 23px;
  padding: 23px;
  border-bottom: 1px solid #e4ebdf;
  border-radius: 19px 19px 0 0;
  background: linear-gradient(120deg, #f0f5e9, #fbfcf8);
}

.client-layout .profile-identity > div:last-child {
  min-width: 0;
}

.client-layout .profile-identity h2 {
  margin: 0 0 5px;
  font-size: 19px;
  overflow-wrap: anywhere;
}

.client-layout .profile-identity p {
  margin: 0 0 8px;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.client-layout .profile-photo {
  display: grid;
  place-items: center;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  padding: 0;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 23px;
  background: #dfead4;
  color: #557d4c;
  box-shadow: 0 4px 10px rgba(72, 102, 51, .08);
}

.client-layout .profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-layout .profile-photo svg {
  width: 29px;
  height: 29px;
}

.client-layout .photo-label {
  display: inline-block;
  margin: 0;
  color: var(--jade);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.client-layout .photo-label input {
  display: none;
}

.client-layout .account-card form label {
  display: block;
  margin-bottom: 14px;
  color: #697763;
  font-size: 11px;
  font-weight: 600;
}

.client-layout .account-card input:not([type="checkbox"]):not([type="file"]),
.client-layout .account-card select,
.client-layout .account-card textarea,
.client-layout .advanced-filters input {
  width: 100%;
  min-height: 45px;
  margin-top: 7px;
  padding: 11px 12px;
  border: 1px solid #e1e8dc;
  border-radius: 11px;
  background: #fafbf7;
  color: #324b31;
  font-size: 13px;
  box-shadow: none;
  transition: border-color .15s ease, background .15s ease;
}

.client-layout .account-card input:focus,
.client-layout .account-card select:focus,
.client-layout .account-card textarea:focus {
  border-color: #8eb88a;
  background: #fff;
}

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

.client-layout .account-card .inline-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 20px;
  padding: 12px;
  border: 1px solid #e9eddf;
  border-radius: 11px;
  background: #f7f9f1;
  color: #77836c;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.65;
}

.client-layout input[type="checkbox"] {
  accent-color: var(--jade);
}

.client-layout .inline-check input {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
}

.client-layout #customerprofile > .primary {
  width: 100%;
}

.client-layout .account-shortcuts {
  display: grid;
  gap: 0;
}

.client-layout .account-shortcuts a,
.client-layout .account-shortcuts button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 13px 4px;
  border: 0;
  border-bottom: 1px solid #eef1e8;
  border-radius: 0;
  background: transparent;
  color: #566b50;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
}

.client-layout .account-shortcuts svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 10px;
  background: #edf4e7;
  color: #678957;
}

/* Ofertas */

.client-layout .offer-grid,
.client-layout .loyalty-grid,
.client-layout .receipt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.client-layout .offer-card {
  position: relative;
  padding: 23px;
  overflow: hidden;
  border: 1px solid #e6e6d5;
  border-radius: 19px;
  background: linear-gradient(145deg, #fffdf5, #fff);
}

.client-layout .offer-discount {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid #e4d6ac;
  border-radius: 10px;
  background: #f7edd0;
  color: #8e7138;
  font-size: 19px;
  font-weight: 700;
}

.client-layout .offer-card h2 {
  margin: 10px 0;
  font-size: 17px;
  color: #34472e;
}

.client-layout .offer-card p {
  color: #87907b;
  font-size: 12px;
  line-height: 1.7;
}

.client-layout .offer-card .primary {
  display: flex;
  margin-top: 18px;
}

/* Tarjetas de fidelidad */

.client-layout .customer-loyalty {
  position: relative;
  padding: 23px;
  overflow: hidden;
  border: 1px solid #cdddca;
  border-radius: 20px;
  background:
    radial-gradient(
      circle at 95% 0,
      rgba(207, 221, 164, .45),
      transparent 55%
    ),
    #eff5e9;
  color: #335830;
}

.client-layout .customer-loyalty .eyebrow {
  color: #8a9b76;
  font-size: 9px;
  letter-spacing: 1px;
}

.client-layout .customer-loyalty h2 {
  margin: 10px 0;
  color: #31532e;
  font-size: 18px;
}

.client-layout .customer-loyalty p {
  color: #7e9072;
  font-size: 12px;
  line-height: 1.6;
}

.client-layout .loyalty-stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.client-layout .loyalty-stamps span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px dashed #b6c9a8;
  border-radius: 11px;
  background: rgba(255, 255, 255, .55);
  color: #a1b28e;
  font-size: 11px;
}

.client-layout .loyalty-stamps span.filled {
  border: 1px solid #608351;
  background: #608351;
  color: #fff;
}

.client-layout .customer-loyalty > a {
  display: inline-block;
  margin-top: 12px;
  color: #527749;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

/* Comprobantes y citas */

.client-layout .receipt-card,
.client-layout .appointment-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(40, 66, 35, .025);
}

.client-layout .receipt-card h2,
.client-layout .appointment-card h2 {
  font-size: 16px;
  color: var(--deep);
}

.client-layout .receipt-total {
  color: var(--deep);
  font-size: 24px;
  font-weight: 650;
}

.client-layout .receipt-breakdown {
  color: #7b8878;
  font-size: 11px;
}

.client-layout .receipt-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding: 15px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.client-layout .receipt-filters > * {
  min-width: 0;
}

.client-layout .report-item {
  margin-top: 12px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fafbf8;
}

/* Soporte: únicamente en su pantalla */

.client-layout .client-footer,
.client-layout .client-side-foot .support-links {
  display: none;
}

.client-layout .support-card {
  max-width: 620px;
  padding: 26px;
}

.client-layout .support-card .support-links {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.client-layout .support-card .support-links a {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 66px;
  padding: 16px;
  border: 1px solid #dce7d8;
  border-radius: 14px;
  background: #f7faf3;
  color: #486b3e;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.client-layout .support-card .support-links svg {
  flex-shrink: 0;
  width: 23px;
  height: 23px;
}

/* Estados vacíos */

.client-layout .client-empty {
  grid-column: 1 / -1;
  padding: 38px 22px;
  border: 1px dashed #d4dfcf;
  border-radius: 19px;
  background: rgba(255, 255, 255, .7);
  text-align: center;
}

.client-layout .client-empty > svg {
  width: 47px;
  height: 47px;
  margin-bottom: 8px;
  padding: 11px;
  border-radius: 15px;
  background: #eaf1e3;
  color: #80a06c;
}

.client-layout .client-empty h3 {
  color: #4a6741;
  font-size: 17px;
}

.client-layout .client-empty p {
  max-width: 340px;
  margin: 10px auto 18px;
  color: #8b9780;
  font-size: 12px;
  line-height: 1.7;
}

.client-layout .load-more {
  grid-column: 1 / -1;
  width: min(100%, 330px);
  margin: 12px auto;
}

/* Interior de un negocio visto por el cliente */

.client-layout .detail-banner {
  overflow: hidden;
  border-radius: 20px;
}

.client-layout .detail-layout .box {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: none;
}

.client-layout .detail-report {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Movimiento discreto */

@media (hover: hover) and (pointer: fine) {
  .client-layout .market-card:hover {
    transform: translateY(-4px);
    border-color: #c5d8bf;
    box-shadow: 0 12px 26px rgba(42, 70, 35, .09);
  }

  .client-layout .market-categories button:hover svg {
    transform: translateY(-3px);
  }

  .client-layout .account-shortcuts a:hover,
  .client-layout .account-shortcuts button:hover {
    color: var(--jade);
    background: #fafcf7;
  }
}

/* Tablet */

@media (max-width: 1100px) {
  .client-layout .market-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .client-layout .offer-grid,
  .client-layout .loyalty-grid,
  .client-layout .receipt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Teléfono */

@media (max-width: 800px) {
  .client-layout .client-sidebar {
    display: none;
  }

  .client-layout .client-main {
    margin-left: 0;
  }

  .client-layout .client-top {
    height: 60px;
    padding: 0 16px;
  }

  .client-layout .client-top .client-brand {
    display: flex;
    align-items: center;
  }

  .client-layout .client-top .client-brand img {
    width: 78px;
    height: 40px;
    object-fit: contain;
  }

  .client-layout .client-city {
    margin-right: auto;
    font-size: 10px;
  }

  .client-layout .client-top-actions button {
    width: 37px;
    height: 37px;
    border-radius: 12px;
  }

  .client-layout .client-top-actions svg {
    width: 18px;
    height: 18px;
  }

  .client-layout .client-content {
    padding: 15px 14px
      calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .client-layout .market-search {
    height: 49px;
    margin-bottom: 14px;
    padding-left: 13px;
    border-radius: 14px;
  }

  .client-layout .market-search input {
    font-size: 16px;
  }

  .client-layout .market-search button {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .client-layout .market-welcome {
    min-height: 145px;
    margin-bottom: 20px;
    padding: 23px 20px;
    border-radius: 19px;
  }

  .client-layout .market-welcome h1 {
    font-size: 27px;
  }

  .client-layout .market-welcome p {
    max-width: 225px;
    font-size: 11px;
  }

  .client-layout .market-welcome .eyebrow {
    font-size: 8px;
    letter-spacing: 1.1px;
  }

  .client-layout .welcome-symbol {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    border-radius: 17px;
  }

  .client-layout .welcome-symbol svg {
    width: 27px;
    height: 27px;
  }

  .client-layout .market-categories {
    gap: 9px;
  }

  .client-layout .market-categories button {
    flex-basis: 73px;
    min-height: 90px;
    gap: 8px;
    font-size: 10px;
  }

  .client-layout .market-categories button svg {
    width: 53px;
    height: 53px;
    padding: 15px;
    border-radius: 17px;
  }

  .client-layout .market-filter-top {
    gap: 6px;
    margin-top: 0;
  }

  .client-layout .filter-toggle {
    min-height: 37px;
    padding: 8px 10px;
    font-size: 10px;
  }

  .client-layout .market-filter-top select {
    max-width: 120px;
    font-size: 10px;
  }

  .client-layout .market-section-head {
    margin: 15px 0 13px;
  }

  .client-layout .market-section-head h2 {
    font-size: 18px;
  }

  .client-layout .market-section-head span {
    font-size: 9px;
  }

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

  .client-layout .market-card {
    border-radius: 16px;
  }

  .client-layout .market-cover {
    aspect-ratio: 1.35;
  }

  .client-layout .market-cover > img {
    border-radius: 15px 15px 0 0;
  }

  .client-layout .market-logo {
    width: 44px;
    height: 44px;
    bottom: -18px;
    border-width: 3px;
  }

  .client-layout .market-info {
    padding: 27px 12px 14px;
  }

  .client-layout .market-category {
    font-size: 8px;
  }

  .client-layout .market-name {
    min-height: 36px;
    font-size: 13px;
    line-height: 1.4;
  }

  .client-layout .market-info p {
    font-size: 10px;
  }

  .client-layout .market-price strong {
    font-size: 21px;
  }

  .client-layout .market-tags span {
    font-size: 8px;
  }

  .client-layout .reward-teaser {
    gap: 11px;
    padding: 16px;
    border-radius: 15px;
  }

  .client-layout .reward-teaser strong {
    font-size: 12px;
  }

  .client-layout .reward-teaser p {
    font-size: 10px;
  }

  .client-layout .reward-teaser a {
    max-width: 65px;
    font-size: 10px;
    line-height: 1.5;
  }

  .client-layout .client-page-heading {
    margin-bottom: 16px;
    padding: 20px;
    border-radius: 17px;
  }

  .client-layout .client-page-heading h1 {
    font-size: 23px;
  }

  .client-layout .account-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .client-layout .account-card {
    padding: 20px;
    border-radius: 17px;
  }

  .client-layout .profile-identity {
    margin: -20px -20px 20px;
    padding: 20px;
    border-radius: 17px 17px 0 0;
  }

  .client-layout .profile-photo {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
    border-radius: 20px;
  }

  .client-layout .profile-identity h2 {
    font-size: 17px;
  }

  .client-layout .account-card input:not([type="checkbox"]):not([type="file"]),
  .client-layout .account-card select,
  .client-layout .account-card textarea,
  .client-layout .advanced-filters input,
  .client-layout .receipt-filters input {
    font-size: 16px;
  }

  .client-layout .offer-card,
  .client-layout .customer-loyalty,
  .client-layout .receipt-card {
    padding: 17px;
    border-radius: 16px;
  }

  .client-layout .client-bottom {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 7px 7px
      calc(7px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e0e8dc;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -5px 20px rgba(39, 65, 31, .04);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .client-layout .client-bottom a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    min-height: 52px;
    padding: 6px 2px;
    border-radius: 12px;
    color: #8b9784;
    text-decoration: none;
  }

  .client-layout .client-bottom a svg {
    width: 20px;
    height: 20px;
  }

  .client-layout .client-bottom a span {
    font-size: 9px;
    font-weight: 550;
  }

  .client-layout .client-bottom a.selected {
    background: #edf5e7;
    color: #47773a;
  }
}

@media (min-width: 801px) {
  .client-layout .client-bottom {
    display: none;
  }
}

@media (max-width: 420px) {
  .client-layout .offer-grid,
  .client-layout .loyalty-grid,
  .client-layout .receipt-grid {
    grid-template-columns: 1fr;
  }

  .client-layout .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .client-layout .client-city {
    font-size: 9px;
  }

  .client-layout .market-welcome h1 {
    font-size: 24px;
  }
}

@media (max-width: 360px) {
  .client-layout .client-city {
    display: none;
  }

  .client-layout .client-content {
    padding-left: 11px;
    padding-right: 11px;
  }

  .client-layout .market-grid {
    gap: 9px;
  }

  .client-layout .market-info {
    padding-left: 10px;
    padding-right: 10px;
  }

  .client-layout .market-price strong {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .client-layout *,
  .client-layout *::before,
  .client-layout *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.wf-heading {
  margin: 10px 0 24px;
}

.wf-heading .eyebrow {
  color: #aa8b4c;
  font-size: 10px;
  letter-spacing: 1.2px;
}

.wf-heading h1 {
  margin: 9px 0;
  color: #173b29;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.7px;
}

.wf-heading p {
  color: #77877d;
  font-size: 13px;
  line-height: 1.7;
}

.wf-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}

.wf-tabs a {
  flex-shrink: 0;
  padding: 11px 15px;
  border: 1px solid #e1e8e2;
  border-radius: 8px;
  background: white;
  color: #667c6b;
  font-size: 12px;
  text-decoration: none;
}

.wf-tabs a.active {
  background: #073e2d;
  border-color: #073e2d;
  color: white;
}

.wf-panel,
.wf-contract {
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid #e1e8e2;
  border-radius: 13px;
  background: white;
}

.wf-panel h2 {
  margin: 0 0 15px;
  font-size: 18px;
  font-weight: 600;
}

.wf-panel p,
.wf-contract p {
  color: #718376;
  font-size: 12px;
  line-height: 1.7;
}

.wf-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.wf-stat {
  padding: 20px;
  background: white;
  border: 1px solid #e0e8e2;
  border-radius: 11px;
}

.wf-stat > span {
  display: block;
  color: #728478;
  font-size: 11px;
}

.wf-stat strong {
  display: block;
  margin: 10px 0 7px;
  color: #154b32;
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.8px;
}

.wf-stat small {
  color: #98a397;
  font-size: 10px;
}

.wf-month {
  margin-bottom: 18px;
}

.wf-month input {
  max-width: 200px;
}

.wf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.wf-actions input {
  width: auto;
  max-width: 170px;
}

.wf-actions button,
.wf-actions a {
  font-size: 12px;
}

.wf-application,
.wf-charge {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #edf0ed;
}

.wf-application h3 {
  font-size: 16px;
  margin: 9px 0;
}

.wf-application a {
  color: #008f68;
  font-size: 12px;
}

.wf-price-lines {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 380px;
  font-size: 13px;
}

.wf-price-lines span {
  color: #738477;
}

.wf-price-lines strong {
  color: #1f4a30;
}

.wf-ad-panel {
  background:
    radial-gradient(
      circle at 100% 0,
      rgb(189 156 79 / 12%),
      transparent 50%
    ),
    white;
}

.wf-ad-price {
  display: block;
  margin: 22px 0;
  color: #078b63;
  font-size: 28px;
  font-weight: 500;
}

.wf-intro {
  text-align: center;
  margin: 16px 0 25px;
}

.wf-intro > svg {
  width: 40px;
  height: 40px;
  stroke: #008f68;
  fill: none;
  stroke-width: 1.5;
}

.wf-intro h2 {
  font-size: 24px;
  line-height: 1.3;
}

.wf-intro p {
  color: #748479;
  font-size: 13px;
  line-height: 1.8;
}

.wf-contract {
  max-width: 820px;
  margin: 20px auto;
}

.wf-contract h1 {
  font-size: 25px;
}

.wf-contract-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0;
}

.wf-contract-prices > div {
  padding: 17px;
  border-radius: 9px;
  background: #edf6ef;
}

.wf-contract-prices span {
  display: block;
  color: #6d8072;
  font-size: 11px;
}

.wf-contract-prices strong {
  display: block;
  margin-top: 8px;
  color: #0d6847;
  font-size: 23px;
}

.wf-contract-text {
  max-height: 480px;
  margin: 20px 0;
  padding: 20px;
  background: #f7f9f6;
  border: 1px solid #e4eae2;
  border-radius: 9px;
  overflow-y: auto;

  font-family: inherit;
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.wf-review {
  padding: 20px 0;
  border-bottom: 1px solid #e8ede7;
}

.wf-review-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.wf-review-head strong {
  font-size: 13px;
}

.wf-review-head small {
  color: #8a988c;
  font-size: 10px;
}

.wf-review-response {
  margin-top: 14px;
  padding: 14px;
  border-left: 3px solid #b49754;
  border-radius: 0 8px 8px 0;
  background: #f8f6ed;
}

.wf-review-response strong {
  color: #84713e;
  font-size: 11px;
}

.wf-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 390px;
  padding: 18px;
  margin: 20px 0;
  background: #f2f5f1;
  border-radius: 11px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.wf-message {
  align-self: flex-start;
  max-width: 82%;
  padding: 13px 15px;
  background: white;
  border: 1px solid #e2e9df;
  border-radius: 12px 12px 12px 3px;
}

.wf-message.mine {
  align-self: flex-end;
  background: #e3f2e8;
  border-color: #d2e8d9;
  border-radius: 12px 12px 3px 12px;
}

.wf-message > span {
  color: #3c7050;
  font-size: 10px;
  font-weight: 600;
}

.wf-message p {
  margin: 8px 0;
  color: #354d3d;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.wf-message small {
  display: block;
  text-align: right;
  color: #8a978c;
  font-size: 9px;
}

.wf-chat-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.wf-chat-form textarea {
  min-height: 48px;
  max-height: 150px;
  resize: vertical;
}

.wf-chat-form button {
  min-height: 48px;
  flex-shrink: 0;
}

.wf-admin-access {
  margin: 0 0 20px;
}

.wf-sponsored {
  position: relative;
  border-color: #d4c28e;
}

.wf-sponsored::before {
  content: "Publicidad";
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 4px 7px;
  border-radius: 4px;
  background: rgb(255 255 255 / 94%);
  color: #806b35;
  font-size: 9px;
}

@media (max-width: 700px) {
  .wf-heading h1 {
    font-size: 24px;
  }

  .wf-panel,
  .wf-contract {
    padding: 18px;
    border-radius: 11px;
  }

  .wf-tabs a {
    padding: 10px 12px;
    font-size: 11px;
  }

  .wf-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .wf-stat {
    padding: 15px;
  }

  .wf-stat strong {
    font-size: 25px;
  }

  .wf-stat > span {
    font-size: 10px;
  }

  .wf-application,
  .wf-charge {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .wf-actions {
    width: 100%;
  }

  .wf-contract-text {
    padding: 15px;
    font-size: 12px;
  }

  .wf-contract-prices strong {
    font-size: 20px;
  }

  .wf-chat {
    height: 350px;
    padding: 12px;
  }

  .wf-message {
    max-width: 90%;
    padding: 11px 13px;
  }

  .wf-chat-form textarea {
    font-size: 16px;
  }

  .wf-review-head {
    flex-direction: column;
    gap: 5px;
  }
}

#jalo-business-access {
  margin-top: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid #dce8e2;
  border-radius: 16px;
}

#jalo-business-access .eyebrow {
  color: #087f5b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

#jalo-business-access h2 {
  margin: 8px 0;
  color: #17251e;
  font-size: 18px;
}

#jalo-business-access .subtitle {
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.6;
}

.jalo-business-access-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.jalo-business-access-buttons button {
  min-height: 44px;
  font-size: 13px;
}

@media (max-width: 600px) {
  #jalo-business-access {
    padding: 16px;
  }

  .jalo-business-access-buttons {
    flex-direction: column;
  }

  .jalo-business-access-buttons button {
    width: 100%;
  }
}

/* Registro de negocios y acceso pendiente */

.wf-password-field {
  position: relative;
  margin-bottom: 14px;
}

.wf-password-field input {
  width: 100%;
  box-sizing: border-box;
  padding-right: 52px;
  margin-bottom: 0;
  min-height: 46px;
}

.wf-password-eye {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #537163;
  cursor: pointer;
}

.wf-password-eye svg {
  width: 21px;
  height: 21px;
}

.wf-password-eye[aria-pressed="true"] {
  color: #087f5b;
  background: #eaf6ef;
}

.wf-password-eye:focus-visible {
  outline: 2px solid #087f5b;
  outline-offset: 2px;
}

.wf-register-heading h2 {
  margin: 8px 0;
  font-size: 21px;
}

#wf-business-register label,
#wf-business-activation label,
#cloudlogin label {
  font-size: 12px;
  font-weight: 600;
}

.wf-pending-page {
  min-height: 100dvh;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(
      circle at 20% 5%,
      rgba(8, 127, 91, 0.1),
      transparent 45%
    ),
    #f4f6f5;
}

.wf-pending-card {
  width: min(100%, 410px);
  box-sizing: border-box;
  padding: 30px 24px;
  border: 1px solid #e0e8e3;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(19, 52, 37, 0.07);
  text-align: center;
}

.wf-pending-logo {
  display: block;
  width: 105px;
  height: 65px;
  object-fit: contain;
  margin: 0 auto 22px;
}

.wf-pending-badge {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid #e6dcc2;
  border-radius: 999px;
  background: #faf6ec;
  color: #80672d;
  font-size: 11px;
  font-weight: 600;
}

.wf-pending-card h1 {
  margin: 18px 0 10px;
  font-size: 23px;
  color: #172b21;
  overflow-wrap: anywhere;
}

.wf-pending-card > p {
  margin: 0;
  color: #68756d;
  font-size: 13px;
  line-height: 1.7;
}

.wf-pending-note {
  margin: 22px 0;
  padding: 14px;
  border-radius: 12px;
  background: #eef7f2;
  color: #35634b;
  font-size: 12px;
  line-height: 1.6;
}

.wf-pending-card .primary {
  min-height: 46px;
  font-size: 13px;
}

.wf-pending-card .text-link {
  margin-top: 13px;
  min-height: 44px;
  font-size: 12px;
}

.wf-pending-support {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #edf0ee;
}

.wf-pending-support a {
  color: #66766c;
  font-size: 11px;
  text-decoration: none;
}

@media (max-width: 480px) {
  .wf-pending-card {
    padding: 26px 20px;
    border-radius: 18px;
  }

  .wf-pending-card h1 {
    font-size: 21px;
  }
}

/* JALO · Centro administrativo */

.ja-admin {
  --admin-green: #087f5b;
  --admin-ink: #13251c;
  max-width: 1260px;
  margin: 0 auto;
}

.ja-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(120deg, #10251b, #174c35);
}

.ja-admin-header .eyebrow {
  color: #d0bd88;
  font-size: 10px;
  letter-spacing: 1.5px;
}

.ja-admin-header h1 {
  margin: 8px 0;
  color: #fff;
  font-size: 25px;
}

.ja-admin-header p {
  margin: 0;
  color: #c0d4c9;
  font-size: 12px;
}

.ja-admin-shortcuts,
.ja-admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
}

.ja-admin-shortcuts a,
.ja-admin-shortcuts button,
.ja-admin-tabs a {
  flex: 0 0 auto;
  border: 1px solid #e0e7e2;
  border-radius: 9px;
  padding: 10px 13px;
  background: #fff;
  color: #40574a;
  font: inherit;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}

.ja-admin-tabs a.selected {
  color: #fff;
  border-color: #087f5b;
  background: #087f5b;
}

.ja-admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ja-admin-metrics article,
.ja-admin-panel,
.ja-admin-record {
  padding: 18px;
  border: 1px solid #e3e9e5;
  border-radius: 14px;
  background: #fff;
}

.ja-admin-metrics span {
  display: block;
  color: #69786f;
  font-size: 11px;
}

.ja-admin-metrics strong {
  display: block;
  margin-top: 10px;
  color: #183b28;
  font-size: 27px;
}

.ja-admin-note {
  margin: 16px 0;
  padding: 14px;
  border-left: 3px solid #b69a59;
  border-radius: 8px;
  background: #faf7ef;
  color: #786a4e;
  font-size: 12px;
  line-height: 1.6;
}

.ja-admin-panel h2 {
  font-size: 16px;
}

.ja-admin-panel p {
  font-size: 12px;
}

.ja-admin-list {
  display: grid;
  gap: 10px;
}

.ja-admin-record-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.ja-admin-record-head strong {
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.ja-admin-record-head small {
  display: block;
  margin-top: 5px;
  color: #78837c;
  font-size: 11px;
}

.ja-admin-record details {
  margin-top: 14px;
}

.ja-admin-record summary {
  color: #087f5b;
  font-size: 12px;
  cursor: pointer;
}

.ja-admin-record pre,
.ja-admin-json {
  max-height: 400px;
  overflow: auto;
  padding: 14px;
  border-radius: 10px;
  background: #f3f6f4;
  color: #304338;
  font-size: 11px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ja-admin-record-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.ja-admin-record-actions button,
.ja-admin-pagination button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #dce6df;
  border-radius: 8px;
  background: #fff;
  color: #315c43;
  font-size: 11px;
  cursor: pointer;
}

.ja-admin-record-actions span {
  color: #8b7845;
  font-size: 11px;
}

.ja-admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 20px 0;
  font-size: 12px;
}

.ja-admin-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

@media (max-width: 650px) {
  .ja-admin-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  .ja-admin-header h1 {
    font-size: 22px;
  }

  .ja-admin-header > button {
    width: 100%;
  }

  .ja-admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .ja-admin-metrics article,
  .ja-admin-record {
    padding: 14px;
  }

  .ja-admin-metrics strong {
    font-size: 23px;
  }
}

/* Imagen de fondo exclusiva de la pantalla del cliente */

.client-layout {
  background-color: #063c2d;

  background-image:
    linear-gradient(
      rgba(5, 40, 29, 0.12),
      rgba(5, 40, 29, 0.22)
    ),
    url("./fondo-cliente.png");

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Permite ver el fondo detrás del contenido */
.client-layout .client-main,
.client-layout .client-content {
  background: transparent;
}

/* Las tarjetas conservan un fondo legible */
.client-layout .market-card,
.client-layout .account-card,
.client-layout .receipt-card,
.client-layout .appointment-card,
.client-layout .support-card {
  background-color: #fff;
}

/* Títulos sobre el fondo */
.client-layout .market-section-head h2 {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.client-layout .market-section-head > span {
  background: #fff;
  color: #45634e;
}

/* Nombres de las categorías sobre el fondo */
.client-layout .market-categories button,
.client-layout .market-categories button.selected {
  color: #fff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* =========================================================
   JALO · Unificación visual
   Cliente: esmeralda, blanco cálido y detalles dorados
   ========================================================= */

.client-layout {
  --jade: #008c68;
  --deep: #082e25;
  --gold: #c2a363;
  --ink: #17352c;
  --muted: #657c71;
  --line: #dfe9e2;
  --surface: #fffefa;

  background-color: #083c2e;
  background-image:
    linear-gradient(
      145deg,
      rgba(3, 31, 23, .48),
      rgba(5, 58, 41, .32)
    ),
    url("./fondo-cliente.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;

  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Arial, sans-serif;
}

.client-layout .client-main,
.client-layout .client-content {
  background: transparent;
}

/* Encabezado y navegación */

.client-layout .client-top {
  border-bottom: 1px solid rgba(194, 163, 99, .22);
  background: rgba(255, 254, 250, .97);
  box-shadow: 0 3px 18px rgba(0, 25, 16, .08);
}

.client-layout .client-sidebar {
  border-right: 1px solid #e5e8db;
  background: #fffefa;
}

.client-layout .client-sidebar nav a.selected {
  background: #e7f3ed;
  color: #007b59;
  box-shadow: inset 3px 0 #008c68;
}

.client-layout .client-top-actions button {
  border-color: #dce8df;
  background: #f0f6f0;
  color: #146047;
}

.client-layout .client-top-actions button:hover {
  background: #e1efe5;
}

.client-layout .notification-dot {
  background: #c2a363;
}

.client-layout .client-city {
  color: #365d4b;
}

/* Botones: una jerarquía consistente */

.client-layout .primary {
  min-height: 44px;
  border: 1px solid #00815f;
  border-radius: 12px;
  background: linear-gradient(135deg, #009773, #007955);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 4px 12px rgba(0, 118, 81, .15);
  transition:
    background .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.client-layout .secondary {
  min-height: 44px;
  border: 1px solid #d3e3d7;
  border-radius: 12px;
  background: #fffefa;
  color: #176044;
  font-size: 13px;
}

.client-layout .text-link {
  color: #00815f;
}

.client-layout button:disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

.client-layout a:focus-visible,
.client-layout button:focus-visible,
.client-layout input:focus-visible,
.client-layout select:focus-visible,
.client-layout textarea:focus-visible {
  outline: 3px solid #bfa264;
  outline-offset: 3px;
}

/* Buscador: el punto de entrada principal */

.client-layout .market-search {
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 16px;
  background: #fffefa;
  box-shadow: 0 7px 22px rgba(0, 25, 15, .14);
  color: #548570;
}

.client-layout .market-search:focus-within {
  border-color: #d6bd83;
  box-shadow:
    0 0 0 3px rgba(214, 189, 131, .25),
    0 7px 22px rgba(0, 25, 15, .14);
}

.client-layout .market-search input {
  color: #173e2e;
}

.client-layout .market-search input::placeholder {
  color: #84938a;
}

.client-layout .market-search button {
  border-radius: 11px;
  background: #008c68;
}

/* Banner: acompaña el fondo sin competir con él */

.client-layout .market-welcome {
  border: 1px solid rgba(211, 184, 124, .34);
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(194, 163, 99, .15),
      transparent 55%
    ),
    linear-gradient(
      115deg,
      rgba(5, 39, 29, .96),
      rgba(9, 92, 64, .93)
    );
  box-shadow: 0 10px 28px rgba(0, 22, 14, .17);
}

.client-layout .market-welcome .eyebrow {
  color: #dcc58e;
  font-size: 9px;
  letter-spacing: 1.5px;
}

.client-layout .market-welcome h1 {
  color: #fffefa;
  font-weight: 650;
  letter-spacing: -.8px;
}

.client-layout .market-welcome p {
  color: #d2e5d7;
}

.client-layout .welcome-symbol {
  border-color: rgba(210, 185, 127, .3);
  background: rgba(255, 255, 255, .06);
  color: #e2c98b;
}

/* Categorías: legibles sobre la imagen */

.client-layout .market-categories {
  padding-top: 5px;
  padding-bottom: 12px;
}

.client-layout .market-categories button {
  color: #f5f4e9;
  font-weight: 550;
  text-shadow: 0 1px 5px rgba(0, 20, 12, .5);
}

.client-layout .market-categories button svg {
  border: 1px solid rgba(235, 237, 213, .7);
  background: #fffefa;
  color: #287755;
  box-shadow: 0 5px 12px rgba(0, 25, 15, .12);
}

.client-layout .market-categories button.selected {
  color: #f4deb0;
}

.client-layout .market-categories button.selected svg {
  border-color: #d2b779;
  background: #093f2e;
  color: #e6cc92;
  box-shadow:
    0 0 0 3px rgba(209, 184, 124, .12),
    0 5px 12px rgba(0, 25, 15, .12);
}

/* Filtros */

.client-layout .filter-toggle,
.client-layout .market-filter-top select {
  border-color: rgba(255, 255, 255, .8);
  background-color: #fffefa;
  color: #38694f;
  box-shadow: 0 2px 7px rgba(0, 25, 15, .06);
}

.client-layout .advanced-filters {
  border-color: #e0e7d9;
  background: #fffefa;
  box-shadow: 0 6px 18px rgba(0, 25, 15, .1);
}

.client-layout .market-section-head h2 {
  color: #fffefa;
  font-size: 20px;
  font-weight: 650;
  text-shadow: 0 2px 8px rgba(0, 20, 12, .35);
}

.client-layout .market-section-head > span {
  border: 1px solid rgba(229, 208, 161, .28);
  border-radius: 9px;
  background: rgba(5, 39, 28, .8);
  color: #e4d4ad;
}

/* Tarjetas de negocios */

.client-layout .market-card {
  border: 1px solid #e8eadf;
  border-radius: 18px;
  background: #fffefa;
  box-shadow: 0 7px 20px rgba(0, 26, 15, .12);
}

.client-layout .market-cover {
  aspect-ratio: 1.4;
}

.client-layout .market-cover > img {
  border-radius: 17px 17px 0 0;
}

.client-layout .market-logo {
  border-color: #fffefa;
  background: #edf4e9;
  color: #245c3e;
  box-shadow: 0 3px 9px rgba(15, 45, 25, .15);
}

.client-layout .market-info {
  padding-top: 30px;
}

.client-layout .market-category {
  color: #8a7952;
  font-size: 9px;
  letter-spacing: .5px;
}

.client-layout .market-name {
  color: #193f2d;
  font-size: 14px;
  font-weight: 650;
}

.client-layout .market-info p {
  color: #718173;
  font-size: 11px;
}

.client-layout .market-price {
  color: #7b8979;
}

.client-layout .market-price strong {
  color: #005d40;
  font-size: 23px;
  font-weight: 700;
}

.client-layout .market-tags span {
  border: 1px solid #eadfbd;
  background: #faf4e2;
  color: #947534;
}

.client-layout .market-tags .open-tag {
  border-color: #d1e9d7;
  background: #eaf7ed;
  color: #277847;
}

.client-layout .market-guest {
  border-top-color: #e7ecdf;
  color: #637c62;
}

/* Fidelidad promocional */

.client-layout .reward-teaser {
  border: 1px solid #d7bf88;
  background: linear-gradient(120deg, #fffbef, #f1e8cf);
  box-shadow: 0 7px 18px rgba(0, 25, 15, .1);
}

.client-layout .reward-teaser strong {
  color: #66502b;
}

.client-layout .reward-teaser p {
  color: #8d7950;
}

.client-layout .reward-teaser > svg {
  background: #fff9e9;
  color: #aa8845;
}

/* Pantallas personales */

.client-layout .client-page-heading {
  border: 1px solid rgba(211, 184, 124, .32);
  background:
    radial-gradient(
      circle at 95% 0,
      rgba(191, 164, 104, .13),
      transparent 50%
    ),
    linear-gradient(120deg, #123e2c, #0a6042);
  box-shadow: 0 7px 20px rgba(0, 25, 15, .12);
}

.client-layout .client-page-heading .eyebrow {
  color: #dfc78f;
}

.client-layout .client-page-heading h1 {
  color: #fffefa;
}

.client-layout .client-page-heading p {
  color: #d0e1d2;
}

.client-layout .account-card,
.client-layout .receipt-card,
.client-layout .appointment-card,
.client-layout .support-card,
.client-layout .detail-layout .box {
  border: 1px solid #e6eadf;
  border-radius: 18px;
  background: #fffefa;
  box-shadow: 0 7px 20px rgba(0, 25, 15, .1);
}

/* Perfil: identidad clara y formularios limpios */

.client-layout .profile-identity {
  border-bottom-color: #dce7d6;
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(195, 171, 110, .12),
      transparent 55%
    ),
    linear-gradient(110deg, #eaf3e4, #fafbf3);
}

.client-layout .profile-identity h2 {
  color: #244c32;
}

.client-layout .profile-identity p {
  color: #6f846c;
}

.client-layout .profile-photo {
  border-color: #fffefa;
  background: #dcecd5;
  color: #398157;
}

.client-layout .account-card h2 {
  color: #214c35;
}

.client-layout .account-card form label {
  color: #58745e;
}

.client-layout .account-card input:not([type="checkbox"]):not([type="file"]),
.client-layout .account-card select,
.client-layout .account-card textarea,
.client-layout .advanced-filters input {
  border-color: #dae6d6;
  background: #f7faf3;
  color: #214d34;
}

.client-layout .account-card input:focus,
.client-layout .account-card select:focus,
.client-layout .account-card textarea:focus {
  border-color: #69aa81;
  background: #fff;
}

.client-layout .account-card .inline-check {
  border-color: #dde7d3;
  background: #f1f6e9;
  color: #637853;
}

.client-layout .account-shortcuts a,
.client-layout .account-shortcuts button {
  border-bottom-color: #e8eee1;
  color: #3e6949;
}

.client-layout .account-shortcuts svg {
  background: #e7f1e1;
  color: #3f8051;
}

/* Ofertas, beneficios y comprobantes */

.client-layout .offer-card {
  border-color: #e5d8b6;
  background: linear-gradient(145deg, #fffbef, #fffefa);
  box-shadow: 0 7px 20px rgba(0, 25, 15, .1);
}

.client-layout .offer-discount {
  border-color: #d9bf83;
  background: #f5e7c5;
  color: #876524;
}

.client-layout .offer-card h2 {
  color: #305237;
}

.client-layout .customer-loyalty {
  border-color: #c7dcb9;
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(195, 174, 100, .16),
      transparent 60%
    ),
    linear-gradient(120deg, #edf5e5, #e0edd3);
  box-shadow: 0 7px 20px rgba(0, 25, 15, .1);
}

.client-layout .loyalty-stamps span.filled {
  border-color: #287b4c;
  background: #287b4c;
}

.client-layout .receipt-total {
  color: #006b47;
}

.client-layout .receipt-filters {
  border-color: #e2e7d8;
  background: #fffefa;
}

.client-layout .report-item {
  border-color: #e1e8d9;
  background: #f7faf2;
}

/* Soporte y estados vacíos */

.client-layout .support-card .support-links a {
  border-color: #dbe7d4;
  background: #f0f6e9;
  color: #356c47;
}

.client-layout .client-empty {
  border: 1px solid rgba(239, 235, 214, .85);
  background: #fffefa;
  box-shadow: 0 7px 20px rgba(0, 25, 15, .1);
}

.client-layout .client-empty h3 {
  color: #305c3e;
}

.client-layout .client-empty p {
  color: #75856e;
}

/* Navegación inferior */

.client-layout .client-bottom {
  border-top-color: #dce6d6;
  background: rgba(255, 254, 250, .98);
  box-shadow: 0 -5px 20px rgba(0, 25, 15, .1);
}

.client-layout .client-bottom a {
  color: #778b71;
}

.client-layout .client-bottom a.selected {
  background: #e4f0dc;
  color: #147849;
}

/* Interacciones: discretas y rápidas */

@media (hover: hover) and (pointer: fine) {
  .client-layout .primary:hover {
    background: linear-gradient(135deg, #00a27b, #00734f);
    box-shadow: 0 6px 16px rgba(0, 118, 81, .22);
  }

  .client-layout .market-card:hover {
    border-color: #d6bf87;
    box-shadow: 0 13px 28px rgba(0, 25, 15, .2);
    transform: translateY(-4px);
  }

  .client-layout .support-card .support-links a:hover {
    border-color: #91b68a;
    background: #e7f1df;
  }
}

.client-layout .primary:active,
.client-layout .secondary:active {
  transform: scale(.98);
}

/* Ajustes para teléfono */

@media (max-width: 800px) {
  .client-layout .market-section-head h2 {
    font-size: 18px;
  }

  .client-layout .market-name {
    font-size: 13px;
  }

  .client-layout .market-price strong {
    font-size: 21px;
  }

  .client-layout .market-info {
    padding: 27px 12px 14px;
  }

  .client-layout .market-info p {
    font-size: 10px;
  }

  .client-layout .market-welcome {
    border-radius: 18px;
  }

  .client-layout .market-card,
  .client-layout .account-card,
  .client-layout .receipt-card,
  .client-layout .appointment-card {
    border-radius: 16px;
  }

  .client-layout .market-cover > img {
    border-radius: 15px 15px 0 0;
  }

  /* Evita el zoom automático al escribir en iPhone. */
  .client-layout .market-search input,
  .client-layout .account-card input:not([type="checkbox"]):not([type="file"]),
  .client-layout .account-card select,
  .client-layout .account-card textarea {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .client-layout *,
  .client-layout *::before,
  .client-layout *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* JALO · Vista del cliente fija y compacta */

.client-layout {
  --header-height: 60px;
  --bottom-height: 66px;
  background-attachment: fixed;
}

/* Encabezado fijo */

.client-layout .client-top {
  position: fixed;
  top: 0;
  left: 224px;
  right: 0;
  height: var(--header-height);
  z-index: 60;
}

.client-layout .client-main {
  padding-top: var(--header-height);
}

.client-layout .client-content {
  padding: 16px 22px 24px;
}

/* Portada compacta */

.client-layout .market-search {
  height: 46px;
  min-height: 46px;
  margin-bottom: 12px;
}

.client-layout .market-welcome {
  min-height: 112px;
  margin-bottom: 13px;
  padding: 18px 22px;
  border-radius: 16px;
}

.client-layout .market-welcome h1 {
  margin: 7px 0;
  font-size: 25px;
}

.client-layout .market-welcome p {
  margin: 0;
  font-size: 11px;
}

.client-layout .welcome-symbol {
  width: 48px;
  height: 48px;
  border-radius: 15px;
}

.client-layout .welcome-symbol svg {
  width: 26px;
  height: 26px;
}

.client-layout .market-categories {
  gap: 8px;
  margin: 0;
  padding: 2px 0 8px;
}

.client-layout .market-categories button {
  flex-basis: 72px;
  min-height: 76px;
  gap: 6px;
  font-size: 10px;
}

.client-layout .market-categories button svg {
  width: 46px;
  height: 46px;
  padding: 12px;
  border-radius: 14px;
}

.client-layout .market-filter-top {
  margin: 0 0 8px;
  gap: 6px;
}

.client-layout .filter-toggle,
.client-layout .market-filter-top select {
  min-height: 36px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.client-layout .market-section-head {
  margin: 10px 0;
}

.client-layout .market-section-head h2 {
  font-size: 17px;
}

/* Más información por tarjeta */

.client-layout .market-grid {
  gap: 11px;
}

.client-layout .market-card {
  border-radius: 14px;
}

.client-layout .market-cover {
  aspect-ratio: 1.65;
}

.client-layout .market-cover > img {
  border-radius: 13px 13px 0 0;
}

.client-layout .market-logo {
  width: 40px;
  height: 40px;
  bottom: -15px;
  border-width: 3px;
}

.client-layout .market-info {
  padding: 23px 11px 11px;
}

.client-layout .market-category {
  margin-bottom: 4px;
  font-size: 8px;
}

.client-layout .market-name {
  min-height: 34px;
  font-size: 13px;
  line-height: 1.3;
}

.client-layout .market-info p {
  min-height: 27px;
  margin: 4px 0 7px;
  font-size: 10px;
  line-height: 1.35;
}

.client-layout .market-price {
  margin-top: 5px;
}

.client-layout .market-price strong {
  margin-top: 1px;
  font-size: 20px;
}

.client-layout .market-tags {
  margin-top: 7px;
  gap: 4px;
}

.client-layout .market-tags span {
  padding: 4px 6px;
}

.client-layout .market-guest {
  margin-top: 7px;
  padding-top: 7px;
}

.client-layout .reward-teaser {
  margin-top: 15px;
  padding: 13px;
  gap: 10px;
}

/* Ofertas, citas, fidelidad y cuenta */

.client-layout .client-page-heading {
  margin-bottom: 12px;
  padding: 15px 17px;
  border-radius: 14px;
}

.client-layout .client-page-heading h1 {
  margin: 6px 0;
  font-size: 21px;
}

.client-layout .client-page-heading p {
  font-size: 11px;
  line-height: 1.45;
}

.client-layout .account-grid,
.client-layout .offer-grid,
.client-layout .loyalty-grid,
.client-layout .receipt-grid {
  gap: 11px;
}

.client-layout .account-card,
.client-layout .offer-card,
.client-layout .customer-loyalty,
.client-layout .receipt-card,
.client-layout .appointment-card {
  padding: 15px;
  border-radius: 14px;
}

.client-layout .account-card h2,
.client-layout .offer-card h2,
.client-layout .customer-loyalty h2,
.client-layout .receipt-card h2,
.client-layout .appointment-card h2 {
  margin: 0 0 9px;
  font-size: 15px;
}

.client-layout .account-card p,
.client-layout .offer-card p,
.client-layout .customer-loyalty p,
.client-layout .appointment-card p {
  margin: 6px 0;
  font-size: 11px;
  line-height: 1.5;
}

.client-layout .offer-discount {
  margin-bottom: 10px;
  padding: 6px 10px;
  font-size: 17px;
}

.client-layout .offer-card .primary {
  margin-top: 12px;
}

.client-layout .loyalty-stamps {
  gap: 6px;
  margin: 13px 0;
}

.client-layout .loyalty-stamps span {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

/* Perfil más compacto */

.client-layout .profile-identity {
  margin: -15px -15px 15px;
  padding: 15px;
  gap: 12px;
  border-radius: 14px 14px 0 0;
}

.client-layout .profile-photo {
  flex-basis: 54px;
  width: 54px;
  height: 54px;
  border-radius: 17px;
}

.client-layout .profile-identity h2 {
  margin-bottom: 4px;
  font-size: 16px;
}

.client-layout .account-card form label {
  margin-bottom: 10px;
}

.client-layout .form-row {
  gap: 10px;
}

.client-layout .account-card input:not([type="checkbox"]):not([type="file"]),
.client-layout .account-card select {
  min-height: 42px;
  margin-top: 5px;
  padding: 9px 11px;
}

.client-layout .account-card .inline-check {
  margin: 5px 0 13px;
  padding: 10px;
}

.client-layout .account-shortcuts a,
.client-layout .account-shortcuts button {
  min-height: 46px;
  padding: 9px 3px;
  gap: 9px;
  font-size: 11px;
}

.client-layout .account-shortcuts svg {
  width: 29px;
  height: 29px;
  padding: 7px;
}

/* Teléfono */

@media (max-width: 800px) {
  .client-layout {
    --header-height: 56px;
  }

  .client-layout .client-top {
    left: 0;
    padding: 0 13px;
  }

  .client-layout .client-top .client-brand img {
    width: 72px;
    height: 36px;
  }

  .client-layout .client-content {
    padding: 11px 11px
      calc(
        var(--bottom-height) +
        env(safe-area-inset-bottom, 0px) +
        15px
      );
  }

  .client-layout .client-bottom {
    position: fixed;
    inset: auto 0 0;
    z-index: 60;
    min-height:
      calc(var(--bottom-height) + env(safe-area-inset-bottom, 0px));
    padding: 5px 5px
      calc(5px + env(safe-area-inset-bottom, 0px));
  }

  .client-layout .client-bottom a {
    min-height: 48px;
    padding: 5px 2px;
    gap: 4px;
  }

  .client-layout .client-bottom a svg {
    width: 19px;
    height: 19px;
  }

  .client-layout .market-welcome {
    min-height: 105px;
    padding: 16px;
    margin-bottom: 12px;
  }

  .client-layout .market-welcome h1 {
    font-size: 23px;
  }

  .client-layout .market-welcome p {
    max-width: 210px;
    font-size: 10px;
  }

  .client-layout .market-search {
    margin-bottom: 10px;
  }

  .client-layout .market-categories button {
    flex-basis: 65px;
    min-height: 73px;
  }

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

  .client-layout .market-section-head h2 {
    font-size: 16px;
  }

  .client-layout .market-price strong {
    font-size: 19px;
  }

  .client-layout .client-page-heading {
    padding: 14px 15px;
  }

  .client-layout .client-page-heading h1 {
    font-size: 20px;
  }

  /* Conserva una entrada cómoda y evita zoom al escribir. */
  .client-layout .market-search input,
  .client-layout .account-card input:not([type="checkbox"]):not([type="file"]),
  .client-layout .account-card select,
  .client-layout .account-card textarea {
    font-size: 16px;
  }
}

/* =====================================================
   JALO · Compactar espacios sin reducir las letras
   ===================================================== */

/* Evita que las filas se estiren para llenar la pantalla */
.client-layout .client-content {
  padding-top: 9px;
  align-content: start;
}

.client-layout .client-content:has(> .market-search) {
  row-gap: 0;
  grid-auto-rows: auto;
  align-content: start;
}

/* Buscador y bienvenida */

.client-layout .market-search {
  margin-top: 0;
  margin-bottom: 8px;
}

.client-layout .market-welcome {
  min-height: 0;
  padding: 13px 16px;
  margin-bottom: 9px;
  gap: 12px;
}

.client-layout .market-welcome h1 {
  margin-top: 5px;
  margin-bottom: 5px;
}

.client-layout .market-welcome p {
  margin: 0;
}

.client-layout .welcome-symbol {
  flex-shrink: 0;
}

/* Categorías: quita la altura sobrante debajo del texto */

.client-layout .market-categories {
  margin: 0;
  padding-top: 0;
  padding-bottom: 7px;
  gap: 7px;
  align-items: flex-start;
}

.client-layout .market-categories button {
  min-height: 0;
  height: auto;
  gap: 5px;
  padding-bottom: 2px;
}

.client-layout .market-filter-top {
  margin: 0 0 5px;
}

.client-layout .advanced-filters {
  margin-bottom: 8px;
  padding: 12px;
}

.client-layout .market-section-head {
  margin: 8px 0;
}

/* Tarjetas: elimina las líneas vacías reservadas */

.client-layout .market-grid {
  gap: 8px;
  align-items: start;
}

.client-layout .market-info {
  padding: 21px 10px 10px;
}

.client-layout .market-category {
  margin: 0 0 3px;
}

.client-layout .market-name {
  min-height: 0;
  margin: 0;
}

.client-layout .market-info p {
  min-height: 0;
  margin: 4px 0 6px;
}

/* Si falta la dirección, no deja un renglón vacío */
.client-layout .market-info p:empty {
  display: none;
}

.client-layout .market-price {
  margin-top: 4px;
}

.client-layout .market-price strong {
  margin-top: 0;
}

.client-layout .market-tags {
  margin-top: 6px;
  gap: 4px;
}

.client-layout .market-tags:empty {
  display: none;
}

.client-layout .market-guest {
  margin-top: 6px;
  padding-top: 6px;
}

/* Banner de fidelidad */

.client-layout .reward-teaser {
  margin-top: 12px;
  padding: 11px 13px;
}

.client-layout .reward-teaser p {
  margin-top: 3px;
}

/* Encabezados de ofertas, citas, fidelidad y cuenta */

.client-layout .client-page-heading {
  margin-bottom: 10px;
  padding: 12px 15px;
}

.client-layout .client-page-heading h1 {
  margin: 5px 0;
}

.client-layout .client-page-heading p {
  margin: 0;
}

/* Tarjetas de las demás pantallas */

.client-layout .account-grid,
.client-layout .offer-grid,
.client-layout .loyalty-grid,
.client-layout .receipt-grid {
  gap: 9px;
  align-items: start;
}

.client-layout .account-card,
.client-layout .offer-card,
.client-layout .customer-loyalty,
.client-layout .receipt-card,
.client-layout .appointment-card {
  padding: 13px;
}

.client-layout .account-card h2,
.client-layout .offer-card h2,
.client-layout .customer-loyalty h2,
.client-layout .receipt-card h2,
.client-layout .appointment-card h2 {
  margin-top: 0;
  margin-bottom: 7px;
}

.client-layout .account-card p,
.client-layout .offer-card p,
.client-layout .customer-loyalty p,
.client-layout .appointment-card p {
  margin-top: 4px;
  margin-bottom: 6px;
}

.client-layout .offer-discount {
  margin-bottom: 8px;
}

.client-layout .offer-card .primary {
  margin-top: 9px;
}

.client-layout .loyalty-stamps {
  margin: 10px 0;
}

.client-layout .customer-loyalty > a {
  margin-top: 7px;
}

/* Perfil: reduce espacios entre identidad y formulario */

.client-layout .profile-identity {
  margin: -13px -13px 12px;
  padding: 13px;
  gap: 10px;
}

.client-layout .profile-identity h2 {
  margin-bottom: 3px;
}

.client-layout .profile-identity p {
  margin: 0 0 5px;
}

.client-layout .account-card form label {
  margin-bottom: 8px;
}

.client-layout .form-row {
  column-gap: 9px;
  row-gap: 0;
}

.client-layout .account-card input:not([type="checkbox"]):not([type="file"]),
.client-layout .account-card select,
.client-layout .account-card textarea {
  margin-top: 4px;
}

.client-layout .account-card .inline-check {
  margin: 4px 0 10px;
  padding: 9px;
}

.client-layout .account-shortcuts a,
.client-layout .account-shortcuts button {
  padding-top: 7px;
  padding-bottom: 7px;
  min-height: 44px;
}

.client-layout .account-shortcuts + .small {
  margin: 7px 0;
}

/* Comprobantes */

.client-layout .receipt-filters {
  margin-bottom: 10px;
  padding: 11px;
  gap: 9px;
}

/* Interior del negocio */

.client-layout .detail-layout {
  gap: 10px;
}

.client-layout .detail-layout .box {
  padding: 13px;
}

.client-layout .detail-layout .box h2,
.client-layout .detail-layout .box h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.client-layout .detail-report {
  margin-top: 12px;
  padding-top: 10px;
}

/* Estados vacíos: evita bloques excesivamente altos */

.client-layout .client-empty {
  padding: 24px 16px;
}

.client-layout .client-empty h3 {
  margin: 8px 0;
}

.client-layout .client-empty p {
  margin: 7px auto 12px;
}

/* Teléfono: conserva la reserva de espacio para la barra fija */

@media (max-width: 800px) {
  .client-layout .client-content {
    padding-top: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .client-layout .market-welcome {
    min-height: 0;
    padding: 12px 14px;
    margin-bottom: 9px;
  }

  .client-layout .market-categories button {
    min-height: 0;
  }

  .client-layout .market-grid {
    gap: 8px;
  }

  .client-layout .market-info {
    padding: 21px 10px 9px;
  }

  .client-layout .market-name,
  .client-layout .market-info p {
    min-height: 0;
  }

  .client-layout .client-page-heading {
    padding: 12px 14px;
    margin-bottom: 9px;
  }
}

/* JALO · Fondo fijo independiente del contenido */

.client-layout {
  position: relative;
  isolation: isolate;
  background: none;
}

.client-layout::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background-color: #083c2e;
  background-image:
    linear-gradient(
      145deg,
      rgba(3, 31, 23, .42),
      rgba(5, 58, 41, .28)
    ),
    url("/fondo-cliente.png?v=2");

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.client-layout .client-main,
.client-layout .client-content {
  background: transparent;
}

/* Evita selección accidental y menús sobre imágenes */
.client-layout {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.client-layout img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.client-layout input,
.client-layout textarea,
.client-layout [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

/* Evita zoom por doble toque; conserva gestos del sistema */
.client-layout button,
.client-layout a {
  touch-action: manipulation;
}

/* Tarjetas uniformes: todos reservan una fila de distintivos */

.client-layout .market-grid {
  align-items: stretch;
}

.client-layout .market-card {
  display: flex;
  flex-direction: column;
}

.client-layout .market-cover {
  flex-shrink: 0;
}

.client-layout .market-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.client-layout .market-tags {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  height: 24px;
  min-height: 24px;
  margin-top: 5px;
  overflow: hidden;
}

.client-layout .market-tags:empty {
  display: flex;
}

.client-layout .market-tags span {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Al buscar, deja solamente buscador y resultados */

.client-layout .client-content.jalo-search-active >
:not(.market-search):not(.market-grid) {
  display: none;
}

.client-layout .jalo-search-active .market-search {
  margin-bottom: 10px;
}

/* Notificaciones arriba a la izquierda */

.client-layout .client-top-actions {
  order: -1;
}

.client-layout .client-top .client-brand {
  margin-left: auto;
}

.client-layout .client-top .client-city {
  display: none;
}

/* Avatar en la navegación inferior */

.client-layout .client-bottom .jalo-nav-avatar {
  width: 23px;
  height: 23px;
  object-fit: cover;
  border: 1px solid #b4cdb8;
  border-radius: 50%;
}

/* JALO · Notificaciones y preferencias */

.client-layout .client-top-actions button {
  position: relative;
}

.jx-badge {
  position: absolute;
  top: -4px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid #fffefa;
  border-radius: 999px;
  background: #b08a43;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.jx-inbox {
  overflow: hidden;
  border: 1px solid #e0e8dd;
  border-radius: 16px;
  background: #fffefa;
  box-shadow: 0 7px 20px rgba(0, 25, 15, .12);
}

.jx-inbox-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e8ede2;
}

.jx-inbox-tools strong {
  color: #254f36;
  font-size: 13px;
}

.jx-inbox-tools button {
  min-height: 44px;
  font-size: 11px;
}

.jx-notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  margin: 0;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid #eef0e8;
  border-radius: 0;
  background: #fffefa;
  color: #244530;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.jx-notice.is-unread {
  background: #edf6e9;
}

.jx-notice-icon {
  display: grid;
  place-items: center;
  flex: 0 0 39px;
  height: 39px;
  border: 1px solid #dce8d4;
  border-radius: 13px;
  background: #e5efdf;
  color: #387751;
}

.jx-notice-icon svg {
  width: 19px;
  height: 19px;
}

.jx-notice-copy {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 4px;
}

.jx-notice-copy strong {
  font-size: 13px;
  font-weight: 650;
}

.jx-notice-copy > span {
  color: #6c8066;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.jx-notice-copy small {
  color: #91a083;
  font-size: 10px;
}

.jx-unread-dot {
  flex: 0 0 7px;
  height: 7px;
  margin-top: 9px;
  border-radius: 50%;
  background: #008c68;
}

.jx-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px;
  color: #718569;
  font-size: 11px;
}

.jx-pagination button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #dce6d5;
  border-radius: 10px;
  background: #f6f9f1;
  color: #3b6b46;
  cursor: pointer;
}

.jx-pagination button:disabled {
  opacity: .4;
  cursor: default;
}

.jx-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 13px 0;
  color: #54724e;
  font-size: 12px;
  line-height: 1.6;
}

.jx-check input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: #008c68;
}

.jx-legal-details {
  margin: 15px 0;
  border: 1px solid #dce7d5;
  border-radius: 11px;
  background: #f7faf2;
}

.jx-legal-details summary {
  padding: 13px;
  color: #397247;
  font-size: 12px;
  cursor: pointer;
}

.jx-legal {
  max-height: 320px;
  overflow-y: auto;
  padding: 0 14px 14px;
  color: #5d7356;
  font-size: 12px;
  line-height: 1.7;
  -webkit-user-select: text;
  user-select: text;
}

.jx-legal h3 {
  font-size: 15px;
}

.jx-legal h4 {
  margin: 16px 0 5px;
  color: #345c3b;
  font-size: 13px;
}

.jx-legal p {
  margin: 5px 0;
}

.jx-permission-heading {
  padding-top: 10px;
  text-align: center;
}

.jx-permission-heading > svg {
  width: 45px;
  height: 45px;
  padding: 10px;
  border-radius: 14px;
  background: #e7f1df;
  color: #3c8154;
}

.jx-permission-heading h2 {
  color: #235337;
  font-size: 23px;
}

.jx-permission-heading p {
  color: #7b8e70;
  font-size: 13px;
  line-height: 1.6;
}

.jx-permission-options {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

/* JALO · Corrección de fondo y navegación */

/* Fondo fijo, visible detrás de todo el contenido */
.client-layout {
  position: relative;
  isolation: isolate;
  background: transparent;
}

.client-layout::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    linear-gradient(
      rgba(3, 31, 23, .25),
      rgba(5, 58, 41, .2)
    ),
    url("/fondo-cliente.png?v=3") center / cover no-repeat,
    #083c2e;
}

.client-layout .client-main,
.client-layout .client-content {
  background: transparent;
}

/* Logo a la izquierda; notificaciones a la derecha */
.client-layout .client-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.client-layout .client-top .client-brand {
  display: flex;
  align-items: center;
  order: 0;
  margin: 0;
}

.client-layout .client-top .client-brand img {
  width: 78px;
  height: 40px;
  object-fit: contain;
}

.client-layout .client-top-actions {
  order: 1;
  margin-left: auto;
}

.client-layout .client-top .client-city {
  display: none;
}

/* Foto circular de Mi cuenta */
.client-layout .client-bottom .jalo-nav-avatar {
  display: block;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #adc9b2;
  border-radius: 50%;
  object-fit: cover;
}
/* Fondo fijo fuera del contenido */

#jalo-fixed-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  pointer-events: none;

  background:
    linear-gradient(
      rgba(3, 31, 23, .25),
      rgba(5, 58, 41, .2)
    ),
    url("/fondo-cliente.png?v=3") center / cover no-repeat,
    #083c2e;
}

#jalo-fixed-background[hidden] {
  display: none;
}

body:has(.client-layout) #app {
  position: relative;
  z-index: 1;
}

.client-layout,
.client-layout .client-main,
.client-layout .client-content {
  background: transparent;
}

.client-layout::before {
  content: none;
}

/* Ventana de notificaciones */

dialog.jalo-notice-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 18px;
  border: 0;
  background: transparent;
  overflow: hidden;
  box-sizing: border-box;
}

dialog.jalo-notice-overlay[open] {
  display: grid;
  place-items: center;
}

dialog.jalo-notice-overlay::backdrop {
  background: rgba(3, 24, 17, .55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.jalo-notice-panel {
  display: flex;
  flex-direction: column;
  width: min(100%, 480px);
  max-height: 80vh;
  max-height: 80dvh;
  overflow: hidden;
  border: 1px solid #dce6d4;
  border-radius: 21px;
  background: #fffefa;
  color: #254d35;
  box-shadow: 0 24px 65px rgba(0, 20, 12, .3);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.jalo-notice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px;
  background: linear-gradient(120deg, #edf5e6, #fafbf3);
}

.jalo-notice-header .eyebrow {
  color: #aa8c47;
  font-size: 9px;
  letter-spacing: 1.5px;
}

.jalo-notice-header h2 {
  margin: 5px 0;
  color: #244f34;
  font-size: 21px;
}

.jalo-notice-count {
  margin: 0;
  color: #829374;
  font-size: 11px;
}

.jalo-notice-close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid #d9e5d1;
  border-radius: 13px;
  background: #fffefa;
  color: #47734a;
  font-size: 25px;
  cursor: pointer;
}

.jalo-notice-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 15px;
  border-bottom: 1px solid #e4ebdb;
  font-size: 11px;
}

.jalo-read-all {
  min-height: 44px;
  padding: 7px;
  border: 0;
  background: transparent;
  color: #087f5b;
  font-size: 11px;
  cursor: pointer;
}

.jalo-notice-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.jalo-notice-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px;
  border-top: 1px solid #e4ebdb;
  color: #849577;
  font-size: 10px;
}

.jalo-notice-pagination button {
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid #dce7d2;
  border-radius: 10px;
  background: #f2f7eb;
  color: #50784a;
  font-size: 11px;
  cursor: pointer;
}

.jalo-notice-panel button:disabled {
  opacity: .4;
  cursor: default;
}

.jalo-notice-status {
  padding: 26px 18px;
  text-align: center;
  color: #7b8e70;
  font-size: 12px;
}

.jalo-notice-status > svg {
  width: 32px;
  height: 32px;
}

.jalo-notice-status h3 {
  color: #3b653f;
  font-size: 16px;
}

@media (max-width: 600px) {
  dialog.jalo-notice-overlay {
    padding: 13px;
  }

  .jalo-notice-panel {
    max-height: 82dvh;
    border-radius: 18px;
  }
}

/* =========================================
   JALO · Anuncios, reservas y valoraciones
   ========================================= */

.client-content .market-welcome.jalo-ad-carousel {
  position: relative;
  grid-area: welcome;
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  margin-block: 8px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(213, 178, 94, .24);
  border-radius: 16px;
  background: #073d30;
  box-shadow: 0 8px 24px rgba(0, 38, 26, .12);
}

.jalo-ad-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
}

.jalo-ad-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .45s ease;
}

.jalo-ad-slide.is-active {
  opacity: 1;
}

.jalo-ad-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 27px;
  background: #073d30;
}

.jalo-ad-dots {
  display: flex;
  align-items: center;
  gap: 3px;
}

.jalo-ad-dots button {
  position: relative;
  width: 28px;
  height: 27px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.jalo-ad-dots button::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 7px;
  height: 7px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .4);
  transition: background .2s;
}

.jalo-ad-dots button.is-active::after {
  background: #e5c477;
}

.jalo-ad-pause {
  min-height: 27px;
  width: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
}

.jalo-reservations-page {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding-block: 4px;
}

.jalo-reservations-page > h1 {
  margin: 0 0 12px;
  color: #123c30;
  font-size: clamp(18px, 4.5vw, 23px);
  font-weight: 750;
  letter-spacing: -.5px;
  line-height: 1.25;
}

.jalo-reservations-list {
  display: grid;
  gap: 8px;
}

.jalo-reservation {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(11, 89, 63, .1);
  border-radius: 15px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 4px 15px rgba(4, 45, 31, .045);
}

.jalo-reservation-logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid #e3ece6;
  border-radius: 13px;
  background: #edf5ef;
  color: #086647;
  font-size: 17px;
  font-weight: 750;
}

.jalo-reservation-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jalo-reservation-body {
  min-width: 0;
}

.jalo-reservation-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.jalo-reservation-top h2 {
  margin: 0;
  color: #172c24;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.jalo-reservation-service {
  margin: 3px 0 6px;
  color: #52635b;
  font-size: 13px;
  line-height: 1.35;
}

.jalo-reservation-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  color: #314f41;
  font-size: 12px;
  line-height: 1.45;
}

.jalo-reservation-meta strong {
  color: #05744e;
  font-weight: 750;
}

.jalo-reservation-staff {
  margin: 4px 0 0;
  color: #6c7c73;
  font-size: 12px;
}

.jalo-reservation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px 10px;
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid #edf1ee;
}

.jalo-reservation-actions a,
.jalo-reservation-actions button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #08734f;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.jalo-reservation-actions button {
  color: #8c6253;
}

.jalo-cancelled {
  flex-shrink: 0;
  padding: 3px 6px;
  border-radius: 6px;
  background: #f7ebe7;
  color: #965545;
  font-size: 10px;
}

.jalo-reservations-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 15px;
  border: 1px dashed #cadcd1;
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
  text-align: center;
}

.jalo-reservations-empty > span {
  color: #ba9346;
  font-size: 32px;
}

.jalo-reservations-empty p {
  margin: 0;
  color: #63736a;
  font-size: 14px;
}

.jalo-reservations-empty a {
  padding: 9px 16px;
  border-radius: 10px;
  background: #08794f;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.market-cover {
  position: relative;
}

.jalo-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border: 1px solid rgba(224, 197, 127, .5);
  border-radius: 9px;
  background: #fffdf5;
  color: #293b30;
  font-size: 12px;
  line-height: 1;
}

.market-cover > .jalo-rating {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.jalo-rating > span {
  color: #b88522;
  font-size: 13px;
}

.jalo-rating small {
  color: #758176;
  font-size: 10px;
}

.jalo-rating-empty {
  color: #677568;
  font-size: 10px;
}

.jalo-detail-rating {
  margin: 5px 0 10px;
}

.jalo-experience {
  margin-block: 10px;
  padding: 13px;
  border: 1px solid #dce9df;
  border-radius: 14px;
  background: #f5faf6;
}

.jalo-experience h2 {
  margin: 0;
  color: #173c2d;
  font-size: 16px;
}

.jalo-experience > p {
  margin: 4px 0 9px;
  color: #68796e;
  font-size: 12px;
}

.jalo-experience > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  margin-top: 5px;
  padding: 8px 10px;
  border: 1px solid #e2eae3;
  border-radius: 9px;
  background: #fff;
  color: #365344;
  font-size: 12px;
  text-align: left;
}

.jalo-experience > button strong {
  flex-shrink: 0;
  color: #078057;
}

.jalo-review-form h2 {
  margin-bottom: 5px;
}

.jalo-review-form > p {
  color: #69766e;
  font-size: 13px;
}

.jalo-stars {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin: 15px 0;
  padding: 10px 0;
  border: 0;
}

.jalo-stars legend {
  color: #506459;
  font-size: 13px;
}

.jalo-stars label {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1;
  gap: 3px;
  min-height: 58px;
  margin: 0;
  padding: 5px;
  border: 1px solid #e4e9e4;
  border-radius: 11px;
  background: #f8faf8;
  cursor: pointer;
}

.jalo-stars input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.jalo-stars label > span[aria-hidden] {
  color: #a8b3aa;
  font-size: 28px;
  line-height: 1;
}

.jalo-stars label small {
  color: #768176;
  font-size: 11px;
}

.jalo-stars label:has(input:checked) {
  border-color: #d3af57;
  background: #fff8e4;
  box-shadow: 0 0 0 2px rgba(211, 175, 87, .12);
}

.jalo-stars label:has(input:checked) > span[aria-hidden] {
  color: #ba8926;
}

.jalo-stars label:has(input:focus-visible) {
  outline: 2px solid #078057;
  outline-offset: 2px;
}

.jalo-comment-stars {
  display: flex;
  gap: 0;
  margin: 5px 0;
  color: #b98b2f;
  font-size: 15px;
  letter-spacing: 1px;
}

.jalo-comment-stars .empty {
  color: #d4dcd5;
}

.jalo-review-help {
  font-size: 11px !important;
  line-height: 1.45;
}

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

@media (min-width: 760px) {
  .client-content .market-welcome.jalo-ad-carousel {
    max-width: 1050px;
    margin-inline: auto;
  }

  .jalo-reservation {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jalo-ad-slide {
    transition: none;
  }
}