/* Interactive plate examples on the homepage. */
#para-ti {
  --ink: #28211e;
  --chocolate: #473027;
  --line: #dfd9d3;
  --muted: #665e58;
  margin-block: clamp(36px, 5vw, 80px) 0;
  scroll-margin-top: 100px;
  color: var(--ink);
  display: grid;
  gap: clamp(16px, 2vw, 26px);
}
#para-ti [hidden] { display: none; }
#para-ti .plate-intro h2 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.85rem, 3.5vw, 3.1rem);
  letter-spacing: -.05em;
  line-height: 1.04;
  color: var(--ink);
  text-wrap: balance;
}
#para-ti .plate-intro p {
  margin: 10px 0 0;
  max-width: 58ch;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--muted);
}
#para-ti .plate-tabs:not([hidden]) {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
#para-ti .plate-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  min-height: 62px;
  min-width: 0;
  padding: 8px 3px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--ink);
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.015em;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
}
#para-ti .plate-tabs button svg { width: 21px; height: 21px; flex: none; stroke-width: 1.65; }
#para-ti .plate-tabs button[aria-selected=true] {
  color: #fff;
  border-color: #000;
  background: #000;
}
#para-ti .plate-panels { min-width: 0; }
#para-ti .plate-profile {
  max-width: 820px;
  margin-inline: auto;
  background: #fff;
  min-width: 0;
}
#para-ti .plate-profile-frame { display: block; width: 100%; border: 0; background: #fff; }
#para-ti .plate-profile-footer { text-align: center; }
#para-ti .plate-profile-footer .plate-guide { margin: 0; }
/* Demo de servicio. Ambas vistas comparten las solicitudes del establecimiento. */
#para-ti .plate-service-preview {
  max-width: 1020px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}
.plate-service-hero {
  position: relative;
  display: grid;
  align-items: end;
  isolation: isolate;
  min-height: clamp(126px, 16vw, 178px);
  padding: clamp(18px, 3vw, 32px);
  overflow: hidden;
  background: #322921;
  color: white;
}
.plate-service-hero img, .plate-service-hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.plate-service-hero img { z-index: -2; object-fit: cover; object-position: 50% 54%; }
.plate-service-hero::after { content: ''; z-index: -1; background: linear-gradient(88deg, #17140fe8 0%, #17140f7a 56%, #17140f36); }
.plate-service-hero-title span { color: #fff; font-size: .86rem; font-weight: 600; }
#para-ti .plate-service-hero h3 {
  margin: 5px 0 0; color: #fff;
  font: 500 clamp(2rem, 4.6vw, 3.1rem)/1.05 Georgia, serif;
  letter-spacing: -.04em;
}
.plate-service-preview-body { padding: clamp(14px, 2.5vw, 28px); }
#para-ti .plate-service-intro { margin: 0 0 14px; color: #45413d; font-size: 1rem; line-height: 1.4; }
.plate-service-preview button, .plate-service-preview select { font: inherit; touch-action: manipulation; }
.plate-service-preview button { cursor: pointer; }
.plate-service-venues { display: inline-flex; max-width: 100%; gap: 4px; padding: 4px; background: #f2f0ed; border-radius: 12px; }
.plate-service-venues button, .plate-service-choices button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px;
  margin: 0; padding: 9px 14px; border: 1px solid transparent; border-radius: 9px;
  background: transparent; color: #38332e; font-size: .9rem; line-height: 1.25; font-weight: 600;
}
.plate-service-venues button[aria-pressed=true], .plate-service-primary { background: #171715; color: #fff; }
.plate-service-preview svg { width: 19px; height: 19px; flex: none; }
.plate-service-screens { display: grid; gap: 14px; align-items: start; margin-top: 14px; }
.plate-service-screen { min-width: 0; overflow: hidden; border: 1px solid #dedbd6; border-radius: 16px; background: #fff; }
.plate-service-screen-head { display: flex; align-items: center; gap: 10px; padding: 13px 15px; background: #f4f1ec; }
.plate-service-screen-icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #d9d4cc; border-radius: 9px; background: white; }
#para-ti .plate-service-screen-head h4 { margin: 0; font-size: 1.08rem; line-height: 1.2; font-weight: 650; letter-spacing: -.025em; color: inherit; }
.plate-service-team-head { background: #252520; color: #fff; }
.plate-service-team-head .plate-service-screen-icon { color: #fff; background: #ffffff12; border-color: #ffffff47; }
.plate-service-guest-body { padding: 15px; }
.plate-service-guest-body label, #para-ti .plate-service-guest-body h5 { display: block; margin: 0 0 7px; color: #383631; font-size: .9rem; line-height: 1.35; font-weight: 650; }
.plate-service-guest-body select {
  box-sizing: border-box; max-width: 100%; width: 100%; min-height: 44px; margin: 0; padding: 7px 37px 7px 10px;
  border: 1px solid #cecac3; border-radius: 8px; color: #24231f; font-size: 1rem; line-height: 1.3; appearance: none;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%2338332e' stroke-width='1.6' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E") right 12px center/16px no-repeat;
}
#para-ti #service-location + h5 { margin-top: 16px; }
.plate-service-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.plate-service-choices button { padding: 9px 6px; border-color: #d8d5cf; background: #fff; font-size: .875rem; }
.plate-service-choices button[aria-disabled=true] { color: #5a5752; background: #f2f1ef; }
.plate-service-choices button[aria-expanded=true] { border-color: #33322d; background: #f5f3ef; }
#service-menu { display: grid; grid-template-columns: minmax(0, 1fr) 74px; gap: 6px 8px; margin-top: 12px; padding: 10px; border-radius: 10px; background: #f5f3ef; }
#service-menu label { grid-row: 1; margin: 0; }
#service-menu select { grid-row: 2; }
.plate-service-primary { min-height: 44px; padding: 8px 12px; border: none; border-radius: 8px; font-size: .875rem; line-height: 1.25; font-weight: 600; }
#service-menu .plate-service-primary { grid-column: 1 / -1; }
.plate-service-preview .plate-service-tracking { margin-top: 15px; border-top: 1px solid #e8e5e0; padding-top: 12px; }
.plate-service-preview ul { list-style: none; padding: 0; margin: 0; }
.plate-service-tracking li, .plate-service-ticket-heading, .plate-service-ticket-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 8px; }
.plate-service-tracking li { font-size: .9rem; line-height: 1.4; padding-block: 5px; }
.plate-service-counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid #e3e1dd; background: #fbfaf8; padding: 12px 0; }
.plate-service-counters span { display: grid; justify-items: center; gap: 3px; color: #55514a; font-size: .8125rem; line-height: 1.2; text-align: center; }
.plate-service-counters span + span { border-left: 1px solid #e3e1dd; }
.plate-service-counters b { color: #23231f; font-size: 1.26rem; font-weight: 650; line-height: 1.1; }
.plate-service-queue li { padding: 13px 15px; }
.plate-service-queue li + li { border-top: 1px solid #e4e1dc; }
.plate-service-ticket-heading strong { font-size: 1rem; font-weight: 650; line-height: 1.35; }
.plate-service-state { display: inline-block; border-radius: 100px; padding: 4px 9px; font-size: .8125rem; font-weight: 650; line-height: 1.28; white-space: nowrap; }
.plate-service-state-pending { background: #f8ebca; color: #674615; }
.plate-service-state-working { background: #e4edf5; color: #315570; }
.plate-service-state-done { background: #e3eee4; color: #31553b; }
.plate-service-ticket-location { display: block; margin-top: 4px; font-size: .925rem; line-height: 1.35; color: #4b4842; }
.plate-service-ticket-foot { margin-top: 8px; }
.plate-service-ticket-foot small { color: #5e5a53; font-size: .8125rem; }
.plate-service-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; margin: -1px; }
@media (min-width: 740px) { .plate-service-screens { grid-template-columns: 1fr 1fr; } }
@media (hover:hover) {
  .plate-service-choices button:not([aria-disabled=true]):hover, .plate-service-venues button:not([aria-pressed=true]):hover { border-color: #928b7f; background: #f4f2ee; }
  .plate-service-primary:hover { background: #393932; }
}
#para-ti .plate-guide {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 8px 0 -7px;
  color: var(--chocolate);
  font-size: .91rem;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
}
#para-ti .plate-note:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: -3px 0 0;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.45;
}
#para-ti .plate-note strong { color: var(--ink); font-weight: 600; }
#para-ti .plate-note svg { width: 17px; height: 17px; flex: none; }
#para-ti :is(button,a,select,[role=tabpanel]):focus-visible {
  outline: 2px solid #78512e;
  outline-offset: 2px;
}
@media (min-width: 940px) {
  #para-ti { grid-template-columns: minmax(0,1fr) minmax(350px,.83fr); }
  #para-ti .plate-panels, #para-ti .plate-note { grid-column: 1 / -1; }
  #para-ti .plate-tabs button { flex-direction: row; min-height: 52px; gap: 7px; }
}
@media (max-width: 739px) {
  #para-ti .plate-note { justify-content: flex-start; }
}
@media (max-width: 380px) {
  #para-ti .plate-tabs button { font-size: .82rem; }
}
@media (hover: hover) {
  #para-ti .plate-tabs button:not([aria-selected=true]):hover { background: #f5f5f5; border-color: #999; }

  #para-ti .plate-guide:hover { color: #17100a; }
}
@media (prefers-reduced-motion: no-preference) {
  #para-ti .plate-tabs button, .plate-service-preview button { transition: background-color .15s, border-color .15s, color .15s; }
}

/* A full-width community profile link follows the interactive examples. */
#barbacha-perfil {
  width: 100vw;
  max-width: var(--page-width, 100vw);
  margin: clamp(30px, 4vw, 64px) 0 clamp(32px, 4vw, 64px) calc(50% - var(--page-width, 100vw) / 2);
  background: linear-gradient(108deg, #f4ede3 0%, #faf7f2 54%, #fff 100%);
  border-block: 1px solid #e9e3db;
  color: #241e1b;
}
#barbacha-perfil .barbacha-banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 4vw, 72px);
  max-width: 1120px;
  margin-inline: auto;
  padding: clamp(24px, 3.5vw, 54px) clamp(20px, 5vw, 76px);
}
#barbacha-perfil .barbacha-banner-copy p {
  margin: 0 0 10px;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #645a50;
}
#barbacha-perfil h2 {
  max-width: 17ch;
  margin: 0 0 9px;
  font-size: clamp(1.65rem, 4vw, 3.5rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -.05em;
  text-wrap: balance;
  color: #201b18;
}
#barbacha-perfil .barbacha-banner-copy > span {
  display: block;
  font-size: clamp(.94rem, 1.4vw, 1.18rem);
  line-height: 1.4;
  color: #4c433c;
}
#barbacha-perfil a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  margin-top: 16px;
  border-radius: 999px;
  background: #101010;
  color: #fff;
  font-size: .9rem;
  line-height: 1.3;
  font-weight: 600;
}
#barbacha-perfil a:focus-visible { outline: 2px solid #333; outline-offset: 3px; }
#barbacha-perfil .barbacha-banner-logo {
  display: block;
  width: clamp(100px, 24vw, 252px);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  justify-self: center;
  object-fit: contain;
  mix-blend-mode: multiply;
}
@media (max-width: 510px) {
  #barbacha-perfil .barbacha-banner-inner { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
  #barbacha-perfil .barbacha-banner-copy p { font-size: .72rem; }
}
