@font-face {
  font-family: "Catamaran";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/catamaran-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Catamaran";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/catamaran-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: light;
  --ink: #181511;
  --muted: #6d665d;
  --panel: rgba(250, 247, 240, 0.93);
  --line: rgba(38, 31, 24, 0.16);
  --green: #315846;
  --green-dark: #203d31;
  --clay: #9a563a;
  --cream: #f6efe3;
  --white: #ffffff;
  --blue: #073b7f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --font-display: Constantia, Georgia, "Times New Roman", serif;
  --font-ui: "Catamaran", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
  font-size: 16px;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  overflow: hidden;
  background: #15120f;
  color: var(--ink);
  font-family: var(--font-ui);
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.app {
  position: relative;
  display: grid;
  height: 100svh;
  min-height: 100svh;
  place-items: center;
  padding: 96px 24px 40px;
  overflow: hidden;
}

body[data-current-view="booking"] .app {
  height: 100svh;
  padding: 12px;
  overflow: hidden;
}

body[data-current-view="booking"] .topbar {
  display: none;
}

.backdrop {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 13, 10, 0.38), rgba(16, 13, 10, 0.08) 48%, rgba(16, 13, 10, 0.42)),
    linear-gradient(180deg, rgba(16, 13, 10, 0.04), rgba(16, 13, 10, 0.36)),
    url("assets/showroom-background-sofa-1440-81aea8c1.webp") center / cover no-repeat,
    url("data:image/webp;base64,UklGRqgAAABXRUJQVlA4IJwAAADQBgCdASowACQAPwVuqlCrpqOitUgBcCCJZQDFjCPRLF93RgQ9dGC3eLzc0aH2PSS/aGS8DE48eETsb0Q/TgAA2WWUYHyuj+KWcu7B6kRdCCZocPaRy7fx1/jJJ66Iexjz2JDhVJIrfQ2OId9qBoXLIFw4+dIO4TK1UnO09pumo2c1OmfKln7RnqtIY9MV2VNkHZxB6GgWJVwQAAA=") center / cover no-repeat;
  transform: scale(1.02);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(14, 13, 11, 0.46);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 650;
  backdrop-filter: blur(12px);
}


.language-switcher {
  position: absolute;
  right: 24px;
  top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(14, 13, 11, 0.46);
  color: var(--white);
  padding: 6px 8px 6px 10px;
  font-size: 0.78rem;
  font-weight: 720;
  backdrop-filter: blur(12px);
}

.language-switcher select {
  min-height: 28px;
  width: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 0 26px 0 8px;
  font-size: 0.82rem;
  font-weight: 780;
}
.brand-mark {
  width: 12px;
  height: 12px;
  border: 2px solid var(--cream);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(154, 86, 58, 0.8);
}

.view {
  position: relative;
  z-index: 1;
  display: none;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.view.is-active {
  display: flex;
}

.entry-panel,
.work-panel {
  width: min(100%, 410px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.entry-panel {
  display: grid;
  justify-items: stretch;
  gap: 24px;
  padding: 38px;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: var(--clay);
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.03;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.05rem;
  margin-bottom: 16px;
}

.home-actions {
  display: grid;
  gap: 12px;
  width: 100%;
}

.action-button,
.submit-button,
.back-button {
  min-height: 52px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 720;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.action-button:hover,
.submit-button:hover,
.back-button:hover,
.inline-button:hover,
.calendar-day:not(:disabled):hover,
.calendar-nav:hover {
  background: rgba(7, 59, 127, 0.08);
  color: var(--blue);
}

.action-button:focus-visible,
.submit-button:focus-visible,
.back-button:focus-visible,
.text-link:focus-visible,
.inline-button:focus-visible,
.calendar-nav:focus-visible,
.calendar-day:focus-visible,
.language-switcher select:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(154, 86, 58, 0.32);
  outline-offset: 3px;
}

.action-primary,
.submit-button {
  background: var(--green);
  color: var(--white);
}

.action-primary:hover,
.submit-button:hover {
  background: var(--green-dark);
}

.submit-button:disabled {
  background: rgba(49, 88, 70, 0.36);
  color: rgba(255, 255, 255, 0.76);
}

.action-secondary {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(49, 88, 70, 0.28);
  color: var(--green-dark);
}

.action-secondary:hover {
  background: var(--white);
  border-color: rgba(49, 88, 70, 0.5);
}

.text-link {
  justify-self: center;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.work-panel {
  width: min(100%, 680px);
  padding: 30px;
}

.booking-panel {
  display: flex;
  flex-direction: column;
  width: min(100%, 690px);
  height: min(760px, calc(100svh - 24px));
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 24px 28px 26px;
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.compact-panel {
  width: min(100%, 460px);
}

.back-button {
  min-height: 40px;
  margin-bottom: 22px;
  border-color: rgba(49, 88, 70, 0.22);
  background: rgba(255, 255, 255, 0.55);
  color: var(--green-dark);
}

.booking-panel > .back-button {
  align-self: flex-start;
  margin-bottom: 14px;
  box-shadow: none;
}

.booking-eyebrow,
.booking-panel > h2 {
  display: block;
  text-align: center;
}

.calendar-step {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  margin-top: 8px;
}

.calendar-intro {
  margin: 0;
  border-radius: 0;
  background: transparent;
  color: var(--green-dark);
  padding: 0 26px;
  text-align: center;
  font-size: 1.06rem;
  line-height: 1.25;
  font-weight: 650;
}

.calendar-card {
  flex: 1;
  min-height: 0;
  margin-top: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 4px 24px 0;
  overflow: hidden;
}

.calendar-header {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.calendar-header h3 {
  margin: 0;
  color: var(--ink);
  text-align: center;
  font-size: 1.9rem;
  line-height: 1.1;
  font-weight: 790;
}

.calendar-nav {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--blue);
  font-size: 2rem;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.calendar-nav:hover {
  background: rgba(7, 59, 127, 0.08);
  color: var(--blue);
}

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

.calendar-weekdays {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 1rem;
  font-weight: 760;
  text-align: center;
}

.calendar-day,
.calendar-blank {
  width: min(100%, 62px);
  aspect-ratio: 1;
  justify-self: center;
}

.calendar-day {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(24, 21, 17, 0.54);
  font-size: 1rem;
  font-weight: 760;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.calendar-day.is-available {
  background: rgba(46, 95, 155, 0.92);
  color: var(--white);
}

.calendar-day.is-selected {
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(38, 31, 24, 0.1);
}

.calendar-day.is-today::after {
  content: "";
  position: absolute;
  bottom: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.82;
}

.calendar-day:disabled {
  color: rgba(24, 21, 17, 0.38);
}

.calendar-continue {
  width: 100%;
  margin-top: auto;
}

.time-step {
  display: flex;
  flex: 1;
  min-height: 0;
  margin-top: 16px;
}

.time-card,
.booking-form {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 24px 44px 0;
}

.time-card {
  display: grid;
  width: 100%;
  align-content: center;
  gap: 20px;
}

.time-kicker {
  margin: 0;
  color: var(--clay);
  font-size: 0.74rem;
  font-weight: 750;
  text-align: center;
  text-transform: uppercase;
}

.time-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.05;
  text-align: center;
}

.time-date {
  margin: -6px 0 0;
  color: var(--green-dark);
  font-size: 0.98rem;
  font-weight: 720;
  text-align: center;
}

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

.time-actions {
  display: grid;
  grid-template-columns: minmax(120px, auto) 1fr;
  gap: 12px;
  align-items: center;
}

.form-grid {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-height: 0;
  margin-top: 16px;
  overflow: hidden;
}

.booking-form {
  overflow: hidden;
}

.booking-form[hidden],
.calendar-step[hidden],
.time-step[hidden] {
  display: none;
}

.selected-date-summary {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(49, 88, 70, 0.22);
  border-radius: 8px;
  background: rgba(49, 88, 70, 0.09);
  color: var(--green-dark);
  padding: 12px 14px;
  font-weight: 730;
}

.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.inline-button {
  min-height: 34px;
  border: 1px solid rgba(49, 88, 70, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--green-dark);
  padding: 0 12px;
  font-size: 0.86rem;
  font-weight: 720;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 680;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(38, 31, 24, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  padding: 0 12px;
}

input::placeholder {
  color: #928a80;
}

.submit-button {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.notice {
  margin-top: 14px;
  border: 1px solid rgba(49, 88, 70, 0.24);
  border-radius: 8px;
  background: rgba(49, 88, 70, 0.1);
  color: var(--green-dark);
  padding: 13px 14px;
  font-size: 0.92rem;
  font-weight: 650;
}

.notice.is-error {
  border-color: rgba(158, 53, 43, 0.34);
  background: rgba(158, 53, 43, 0.1);
  color: #8b2c25;
}

.notice[hidden] {
  display: none !important;
}

@media (max-width: 680px) {
  .app {
    padding: 88px 16px 24px;
  }

  body[data-current-view="booking"] .app {
  height: 100svh;
  padding: 12px;
  overflow: hidden;
}

  .topbar {
    padding: 18px 16px;
  }

  .language-switcher {
    right: 16px;
    top: 18px;
    padding: 5px 6px;
  }

  .language-switcher span {
    display: none;
  }

  .entry-panel {
    padding: 30px 22px;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .work-panel {
    padding: 24px 18px;
  }

  .booking-panel {
    width: min(100%, 390px);
    height: calc(100svh - 24px);
    min-height: 0;
    padding: 18px 16px 20px;
  }

  .booking-panel > .back-button {
    margin-bottom: 10px;
  }

  .calendar-step {
    gap: 8px;
    margin-top: 8px;
  }

  .calendar-intro {
    padding: 0 8px;
    font-size: 0.92rem;
  }

  .calendar-card {
    padding: 2px 0 0;
  }

  .calendar-header {
    grid-template-columns: 34px 1fr 34px;
    gap: 6px;
    margin-bottom: 8px;
  }

  .calendar-header h3 {
    font-size: 1.55rem;
  }

  .calendar-nav {
    width: 34px;
    height: 34px;
    font-size: 1.6rem;
  }

  .calendar-weekdays,
  .calendar-days {
    gap: 6px;
  }

  .calendar-weekdays {
    margin-bottom: 8px;
    font-size: 0.92rem;
  }

  .calendar-day,
  .calendar-blank {
    width: min(100%, 48px);
  }

  .calendar-day {
    font-size: 0.92rem;
  }

  .time-card,
  .booking-form {
    padding: 18px 2px 0;
  }

  .time-card h3 {
    font-size: 1.7rem;
  }

  .time-select-grid,
  .time-actions,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .selected-date-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .summary-actions {
    justify-content: stretch;
  }

  .summary-actions .inline-button {
    width: 100%;
  }
  .booking-form {
    gap: 10px;
    margin-top: 10px;
    overflow: hidden;
  }

  .booking-form label {
    gap: 4px;
    font-size: 0.8rem;
  }

  .booking-form input,
  .booking-form select {
    min-height: 40px;
    padding: 0 10px;
  }

  .booking-form .selected-date-summary {
    gap: 8px;
    padding: 10px;
  }

  .booking-form .summary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .booking-form .summary-actions .inline-button {
    width: 100%;
    min-height: 30px;
    padding: 0 8px;
    font-size: 0.78rem;
  }

  .booking-form .submit-button {
    min-height: 46px;
    margin-top: 0;
  }
}
@media (max-width: 680px) and (max-height: 740px) {
  body[data-current-view="booking"] .app {
    padding: 8px 12px;
  }

  .booking-panel {
    height: calc(100svh - 16px);
    padding: 14px 16px;
  }

  .booking-panel > .back-button {
    min-height: 44px;
    margin-bottom: 6px;
  }

  .booking-panel > h2 {
    font-size: 1.55rem;
    margin-bottom: 8px;
  }

  .booking-form {
    gap: 8px;
    margin-top: 6px;
    padding-top: 6px;
  }

  .booking-form .selected-date-summary {
    padding: 8px;
  }

  .booking-form label {
    gap: 3px;
  }

  .booking-form input,
  .booking-form select {
    min-height: 38px;
  }

  .booking-form .submit-button {
    min-height: 44px;
  }
}
/* Refinamiento visual premium */
:root {
  --ink: #1c1813;
  --muted: #7a7369;
  --panel: rgba(249, 247, 241, 0.96);
  --line: rgba(38, 31, 24, 0.12);
  --green: #2f604b;
  --green-dark: #244738;
  --clay: #9b6046;
  --blue: #386aa4;
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.22);
}

.booking-panel {
  border-color: rgba(38, 31, 24, 0.11);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 26px 34px 28px;
}

.eyebrow,
.time-kicker {
  color: rgba(155, 96, 70, 0.92);
  font-size: 0.72rem;
  font-weight: 700;
}

.booking-panel > h2 {
  margin-bottom: 12px;
  color: #1f1a15;
  font-size: 2rem;
  font-weight: 400;
}

.action-button,
.submit-button,
.back-button {
  min-height: 48px;
  border-radius: 7px;
  font-weight: 650;
}

.back-button {
  min-height: 42px;
  border-color: rgba(36, 71, 56, 0.18);
  background: rgba(255, 255, 255, 0.46);
  color: var(--green-dark);
  padding: 0 16px;
  box-shadow: none;
}

.booking-panel > .back-button {
  margin-bottom: 10px;
}

.action-button:focus-visible,
.submit-button:focus-visible,
.back-button:focus-visible,
.text-link:focus-visible,
.inline-button:focus-visible,
.calendar-nav:focus-visible,
.calendar-day:focus-visible,
.language-switcher select:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(155, 96, 70, 0.2);
  outline-offset: 2px;
}

.action-primary,
.submit-button {
  background: var(--green);
  color: var(--white);
}

.action-primary:hover,
.submit-button:hover {
  background: #294f40;
}

.calendar-step {
  gap: 8px;
  margin-top: 4px;
}

.calendar-card {
  padding: 0 28px;
}

.calendar-header {
  grid-template-columns: 36px 1fr 36px;
  gap: 8px;
  margin-bottom: 6px;
}

.calendar-header h3 {
  color: #1f1a15;
  font-size: 1.72rem;
  font-weight: 700;
}

.calendar-nav {
  width: 36px;
  height: 36px;
  color: rgba(7, 59, 127, 0.9);
  font-size: 1.55rem;
}

.calendar-weekdays,
.calendar-days {
  gap: 5px;
}

.calendar-weekdays {
  margin-bottom: 6px;
  color: rgba(36, 71, 56, 0.96);
  font-size: 0.9rem;
  font-weight: 650;
}

.calendar-day,
.calendar-blank {
  width: min(100%, 52px);
}

.calendar-day {
  color: rgba(28, 24, 19, 0.46);
  font-size: 0.94rem;
  font-weight: 650;
}

.calendar-day.is-available {
  background: rgba(56, 106, 164, 0.94);
  color: var(--white);
}

.calendar-day.is-selected {
  background: var(--white);
  color: #17130f;
  box-shadow: 0 8px 22px rgba(38, 31, 24, 0.08), inset 0 0 0 1px rgba(38, 31, 24, 0.07);
}

.calendar-day.is-today::after {
  bottom: 3px;
  width: 5px;
  height: 5px;
  opacity: 0.55;
}

.calendar-day:disabled {
  color: rgba(28, 24, 19, 0.28);
}

.calendar-continue {
  min-height: 48px;
  border-radius: 7px;
}

.time-card,
.booking-form {
  padding: 22px 42px 0;
}

.time-card {
  gap: 18px;
}

.time-card h3 {
  font-size: 1.8rem;
  font-weight: 600;
}

.time-date {
  color: rgba(36, 71, 56, 0.92);
  font-weight: 650;
}

.selected-date-summary {
  border-color: rgba(36, 71, 56, 0.16);
  background: rgba(36, 71, 56, 0.07);
  font-weight: 650;
}

.inline-button {
  border-color: rgba(36, 71, 56, 0.18);
  background: rgba(255, 255, 255, 0.5);
  font-weight: 650;
}

label {
  color: rgba(28, 24, 19, 0.58);
  font-weight: 620;
}

input,
select {
  min-height: 44px;
  border-color: rgba(38, 31, 24, 0.14);
  background: rgba(255, 255, 255, 0.78);
}

@media (max-width: 680px) {
  .booking-panel {
    padding: 18px 16px 20px;
  }

  .booking-panel > h2 {
    font-size: 1.72rem;
  }

  .calendar-card {
    padding: 0;
  }

  .calendar-header {
    grid-template-columns: 32px 1fr 32px;
    margin-bottom: 6px;
  }

  .calendar-header h3 {
    font-size: 1.45rem;
  }

  .calendar-nav {
    width: 32px;
    height: 32px;
    font-size: 1.35rem;
  }

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

  .calendar-day,
  .calendar-blank {
    width: min(100%, 39px);
  }

  .calendar-day {
    font-size: 0.88rem;
  }

  .time-card,
  .booking-form {
    padding: 16px 2px 0;
  }
}

@media (max-width: 680px) and (max-height: 740px) {
  .booking-panel {
    padding: 14px 16px;
  }

  .calendar-header h3 {
    font-size: 1.34rem;
  }

  .calendar-day,
  .calendar-blank {
    width: min(100%, 36px);
  }
}
/* Formulario completo por secciones */
button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(38, 31, 24, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  padding: 8px 10px;
  resize: none;
}

.booking-form {
  display: grid;
  grid-template-columns: 1fr;
  align-content: stretch;
  gap: 10px;
  padding: 14px 34px 0;
}

.booking-form > * {
  grid-column: 1 / -1;
}

.booking-form .selected-date-summary {
  padding: 8px 10px;
  font-size: 0.78rem;
}

.booking-form .summary-actions {
  gap: 6px;
}

.booking-form .summary-actions .inline-button {
  min-height: 28px;
  padding: 0 9px;
  font-size: 0.76rem;
}

.booking-form-header {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  border: 1px solid rgba(38, 31, 24, 0.09);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.32);
  padding: 8px 10px;
}

#bookingStepLabel {
  display: inline-grid;
  min-height: 30px;
  place-items: center;
  border-radius: 999px;
  background: rgba(56, 106, 164, 0.1);
  color: rgba(56, 106, 164, 0.94);
  font-size: 0.72rem;
  font-weight: 700;
}

#bookingStepTitle {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.05;
}

#bookingStepHint {
  margin: 3px 0 0;
  color: rgba(28, 24, 19, 0.5);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.15;
}

.booking-section {
  min-height: 258px;
}

.booking-section[hidden] {
  display: none;
}

.booking-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
  min-height: 0;
}

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

.conditional-fields {
  margin-top: 2px;
}

.section-note {
  margin: 0;
  color: rgba(28, 24, 19, 0.52);
  font-size: 0.8rem;
  line-height: 1.25;
}

.booking-choice-toggle {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid rgba(0, 47, 108, 0.14);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 31, 73, 0.05);
  padding: 10px 12px;
  cursor: pointer;
}

.booking-choice-toggle input,
.vip-acceptance input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--blue);
}

.booking-choice-toggle > span {
  display: grid;
  gap: 2px;
  color: var(--ink);
}

.booking-choice-toggle strong {
  font-size: 0.84rem;
  line-height: 1.15;
}

.booking-choice-toggle small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 550;
  line-height: 1.25;
}

.vip-program-panel {
  display: grid;
  gap: 10px;
}

.vip-program-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.vip-program-heading .time-kicker,
.vip-program-heading h4 {
  margin: 0;
}

.vip-program-heading h4 {
  color: var(--ink);
  font-size: 1rem;
}

.vip-conditions-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0 0 0 20px;
  color: var(--ink);
  font-size: 0.76rem;
  line-height: 1.25;
}

.vip-acceptance {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  border: 1px solid rgba(0, 47, 108, 0.2);
  border-radius: 4px;
  background: rgba(0, 47, 108, 0.05);
  color: var(--blue);
  padding: 9px 10px;
  font-size: 0.78rem;
  font-weight: 750;
}

@media (max-width: 680px) {
  .booking-choice-toggle {
    padding: 8px 9px;
  }

  .vip-program-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .vip-conditions-list {
    gap: 4px;
    font-size: 0.7rem;
    line-height: 1.22;
  }
}

.booking-form label {
  gap: 3px;
  color: rgba(28, 24, 19, 0.56);
  font-size: 0.73rem;
  font-weight: 650;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  min-height: 35px;
  border-radius: 7px;
  padding: 0 10px;
  font-size: 0.86rem;
}

.booking-form textarea {
  min-height: 48px;
  padding-top: 7px;
}

.booking-form input[readonly] {
  background: rgba(36, 71, 56, 0.06);
  color: rgba(28, 24, 19, 0.7);
}

.transfer-detail-fields {
  gap: 8px 10px;
}

.booking-form-nav {
  display: grid;
  grid-template-columns: minmax(108px, 0.42fr) 1fr;
  gap: 10px;
  margin-top: auto;
}

.booking-form-nav .submit-button,
.booking-form-nav .inline-button {
  min-height: 44px;
}

.booking-form-nav .inline-button[hidden] {
  display: none;
}

.booking-form-nav:has(.inline-button[hidden]) {
  grid-template-columns: 1fr;
}

@media (max-width: 680px) {
  .booking-form {
    gap: 8px;
    padding: 10px 2px 0;
  }

  .booking-form-header {
    grid-template-columns: 64px 1fr;
    min-height: 56px;
    gap: 8px;
    padding: 7px 8px;
  }

  #bookingStepLabel {
    min-height: 28px;
    font-size: 0.68rem;
  }

  #bookingStepTitle {
    font-size: 1rem;
  }

  #bookingStepHint {
    font-size: 0.72rem;
  }

  .booking-section {
    min-height: 274px;
  }

  .booking-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .booking-form label {
    font-size: 0.68rem;
  }

  .booking-form input,
  .booking-form select,
  .booking-form textarea {
    min-height: 32px;
    padding: 0 8px;
    font-size: 0.78rem;
  }

  .booking-form textarea {
    min-height: 42px;
    padding-top: 6px;
  }

  .booking-form-nav .submit-button,
  .booking-form-nav .inline-button {
    min-height: 40px;
  }
}

@media (max-width: 680px) and (max-height: 740px) {
  .booking-form {
    gap: 6px;
    padding-top: 6px;
  }

  .booking-form .selected-date-summary {
    padding: 7px 8px;
  }

  .booking-form-header {
    min-height: 50px;
  }

  .booking-section {
    min-height: 246px;
  }

  .booking-section-grid {
    gap: 6px;
  }

  .booking-form input,
  .booking-form select,
  .booking-form textarea {
    min-height: 30px;
  }

  .booking-form-nav .submit-button,
  .booking-form-nav .inline-button {
    min-height: 38px;
  }
}

/* Ajuste anticorte del formulario de reserva */
.booking-form {
  flex: 1;
  min-height: 0;
  margin-top: 6px;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 8px;
  padding: 10px 34px 8px;
}

.booking-section {
  min-height: 0;
  align-self: stretch;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
}

.booking-section-grid {
  align-content: start;
}

.booking-form-nav {
  align-self: end;
  margin-top: 0;
  padding-bottom: 2px;
}

.booking-form-nav .submit-button,
.booking-form-nav .inline-button {
  min-height: 42px;
}

@media (max-width: 680px) {
  .booking-form {
    gap: 6px;
    margin-top: 4px;
    padding: 8px 2px 8px;
  }

  .booking-section {
    min-height: 0;
  }

  .booking-form-nav .submit-button,
  .booking-form-nav .inline-button {
    min-height: 38px;
  }
}

@media (max-width: 680px) and (max-height: 740px) {
  .booking-form {
    gap: 5px;
    padding-top: 4px;
    padding-bottom: 6px;
  }

  .booking-form-header {
    min-height: 46px;
  }

  .booking-section {
    min-height: 0;
  }

  .booking-form-nav .submit-button,
  .booking-form-nav .inline-button {
    min-height: 36px;
  }
}
/* Ajuste restauracion almuerzos */
.catering-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px 10px;
}

.catering-grid label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-reference select {
  min-height: 36px;
  font-size: 0.78rem;
}

.catering-note {
  font-size: 0.72rem;
  line-height: 1.15;
}

@media (max-width: 680px) {
  .catering-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .menu-reference select {
    min-height: 32px;
    font-size: 0.72rem;
  }

  .catering-note {
    font-size: 0.66rem;
  }
}
@media (max-width: 680px) {
  .catering-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .catering-grid .booking-field-wide {
    grid-column: 1 / -1;
  }

  .catering-grid label {
    min-width: 0;
  }

  .catering-grid .booking-field-wide input,
  .catering-grid .booking-field-wide select {
    min-height: 30px;
  }
}

@media (max-width: 680px) and (max-height: 740px) {
  .catering-grid {
    gap: 4px 5px;
  }

  .catering-grid label {
    gap: 2px;
    font-size: 0.62rem;
  }

  .catering-grid input,
  .catering-grid select {
    min-height: 28px;
  }

  .catering-note {
    font-size: 0.6rem;
    line-height: 1.08;
  }
}
/* Memoria acceso empleados */
.remember-access {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(28, 24, 19, 0.62);
  font-size: 0.84rem;
  font-weight: 650;
}

.remember-access input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--green);
}
/* Panel interno empleados */
.employee-work-panel {
  width: min(100%, 760px);
  max-height: calc(100svh - 40px);
  overflow-x: hidden;
  overflow-y: auto;
}

.employee-panel[hidden],
.employee-edit-form[hidden] {
  display: none;
}

.employee-panel {
  display: grid;
  gap: 12px;
  min-height: 0;
}

.employee-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(38, 31, 24, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.32);
  padding: 12px;
}

.employee-panel-kicker {
  margin: 0 0 2px;
  color: var(--clay);
  font-size: 0.72rem;
  font-weight: 760;
  text-transform: uppercase;
}

.employee-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.05;
}

.employee-panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.employee-logout-button,
.employee-new-button {
  min-height: 40px;
  width: auto;
  padding: 0 16px;
}

.employee-reservations {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding-right: 2px;
}

.employee-empty,
.employee-reservation-row {
  border: 1px solid rgba(38, 31, 24, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.36);
  padding: 10px;
}

.employee-reservation-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(120px, 0.55fr) auto;
  align-items: center;
  gap: 10px;
}

.employee-reservation-main,
.employee-reservation-details {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.employee-reservation-main strong,
.employee-reservation-main span,
.employee-reservation-details span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-reservation-main span,
.employee-reservation-details span,
.employee-empty {
  color: rgba(28, 24, 19, 0.58);
  font-size: 0.82rem;
  font-weight: 620;
}

.employee-reservation-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.employee-reservation-actions .inline-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.employee-delete-button {
  color: #7a3029;
}

.employee-edit-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid rgba(38, 31, 24, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.32);
  padding: 10px;
}

.employee-edit-form label {
  gap: 3px;
  font-size: 0.72rem;
}

.employee-edit-form input,
.employee-edit-form select {
  min-height: 34px;
  font-size: 0.82rem;
}

.employee-edit-form .inline-button,
.employee-edit-form .submit-button {
  min-height: 36px;
}

@media (max-width: 680px) {
  .employee-work-panel {
    width: min(100%, 420px);
    max-height: calc(100svh - 24px);
  }

  .employee-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .employee-panel-actions {
    width: 100%;
  }

  .employee-panel-actions .employee-logout-button,
  .employee-panel-actions .employee-new-button {
    flex: 1 1 0;
    width: 100%;
  }

  .employee-reservations {
    max-height: 190px;
  }

  .employee-reservation-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .employee-reservation-actions {
    justify-content: stretch;
  }

  .employee-reservation-actions .inline-button {
    flex: 1;
  }

  .employee-edit-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
}
/* Identidad corporativa azul 294 C */
:root {
  --ink: #111827;
  --muted: #5f6874;
  --panel: #ffffff;
  --line: rgba(0, 47, 108, 0.16);
  --green: #002f6c;
  --green-dark: #001f49;
  --clay: #002f6c;
  --cream: #ffffff;
  --blue: #002f6c;
  --shadow: 0 22px 48px rgba(0, 31, 73, 0.22), 0 2px 8px rgba(0, 31, 73, 0.08);
  --font-display: var(--font-ui);
}

body {
  background: #f5f8fc;
  color: var(--ink);
  font-family: var(--font-ui);
}

.backdrop {
  background:
    linear-gradient(90deg, rgba(0, 31, 73, 0.48), rgba(255, 255, 255, 0.12) 48%, rgba(0, 31, 73, 0.34)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 31, 73, 0.28)),
    url("assets/showroom-background-sofa-1440-81aea8c1.webp") center / cover no-repeat,
    url("data:image/webp;base64,UklGRqgAAABXRUJQVlA4IJwAAADQBgCdASowACQAPwVuqlCrpqOitUgBcCCJZQDFjCPRLF93RgQ9dGC3eLzc0aH2PSS/aGS8DE48eETsb0Q/TgAA2WWUYHyuj+KWcu7B6kRdCCZocPaRy7fx1/jJJ66Iexjz2JDhVJIrfQ2OId9qBoXLIFw4+dIO4TK1UnO09pumo2c1OmfKln7RnqtIY9MV2VNkHZxB6GgWJVwQAAA=") center / cover no-repeat;
}
@media (max-width: 680px) {
  .backdrop {
    background:
      linear-gradient(90deg, rgba(0, 31, 73, 0.48), rgba(255, 255, 255, 0.12) 48%, rgba(0, 31, 73, 0.34)),
      linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 31, 73, 0.28)),
      url("assets/showroom-background-mobile-828-64184a52.webp") center / cover no-repeat,
      url("data:image/webp;base64,UklGRqgAAABXRUJQVlA4IJwAAADQBgCdASowACQAPwVuqlCrpqOitUgBcCCJZQDFjCPRLF93RgQ9dGC3eLzc0aH2PSS/aGS8DE48eETsb0Q/TgAA2WWUYHyuj+KWcu7B6kRdCCZocPaRy7fx1/jJJ66Iexjz2JDhVJIrfQ2OId9qBoXLIFw4+dIO4TK1UnO09pumo2c1OmfKln7RnqtIY9MV2VNkHZxB6GgWJVwQAAA=") center / cover no-repeat;
  }
}

.language-switcher {
  border-color: rgba(0, 47, 108, 0.14);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue);
  box-shadow: 0 14px 34px rgba(0, 31, 73, 0.16);
}

.language-switcher select {
  border-color: rgba(0, 47, 108, 0.16);
  border-radius: 2px;
  background: #ffffff;
  color: var(--blue);
}

.entry-panel,
.work-panel,
.booking-panel {
  border-color: rgba(0, 47, 108, 0.13);
  border-radius: 3px;
  background: #ffffff;
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.entry-panel {
  gap: 22px;
}

h1,
h2,
.time-card h3,
.calendar-header h3 {
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  font-size: 2.72rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
}

.eyebrow,
.time-kicker,
.employee-panel-kicker {
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.action-button,
.submit-button,
.back-button,
.inline-button,
input,
select,
textarea,
.notice,
.selected-date-summary,
.booking-form-header,
.employee-panel-head,
.employee-empty,
.employee-reservation-row,
.employee-edit-form {
  border-radius: 3px;
}

.action-primary,
.submit-button {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 47, 108, 0.2);
}

.action-primary:hover,
.submit-button:hover {
  background: #001f49;
  border-color: #001f49;
  color: #ffffff;
}

.submit-button:disabled {
  background: rgba(0, 47, 108, 0.34);
  border-color: transparent;
  color: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.action-secondary,
.back-button,
.inline-button {
  border-color: rgba(0, 47, 108, 0.22);
  background: #ffffff;
  color: var(--blue);
  box-shadow: 0 8px 18px rgba(0, 31, 73, 0.08);
}

.action-secondary:hover,
.back-button:hover,
.inline-button:hover,
.calendar-nav:hover,
.calendar-day:not(:disabled):hover {
  border-color: rgba(0, 47, 108, 0.38);
  background: rgba(0, 47, 108, 0.07);
  color: var(--blue);
}

.text-link,
.calendar-nav,
.time-date,
.calendar-weekdays,
.selected-date-summary,
.booking-form input[readonly] {
  color: var(--blue);
}

.action-button:focus-visible,
.submit-button:focus-visible,
.back-button:focus-visible,
.text-link:focus-visible,
.inline-button:focus-visible,
.calendar-nav:focus-visible,
.calendar-day:focus-visible,
.language-switcher select:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(0, 47, 108, 0.32);
  outline-offset: 2px;
}

.calendar-card,
.time-card,
.booking-form {
  background: transparent;
}

.calendar-day {
  border-radius: 50%;
  color: rgba(17, 24, 39, 0.42);
}

.calendar-day.is-available {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 47, 108, 0.18);
}

.calendar-day.is-selected {
  background: #ffffff;
  color: var(--blue);
  box-shadow: 0 10px 24px rgba(0, 31, 73, 0.12), inset 0 0 0 2px var(--blue);
}

.calendar-day:disabled {
  color: rgba(17, 24, 39, 0.26);
}

.selected-date-summary,
.booking-form-header,
.employee-panel-head,
.employee-empty,
.employee-reservation-row,
.employee-edit-form {
  border-color: rgba(0, 47, 108, 0.12);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 31, 73, 0.06);
}

#bookingStepLabel {
  border-radius: 3px;
  background: rgba(0, 47, 108, 0.08);
  color: var(--blue);
}

label,
.booking-form label,
.employee-reservation-main span,
.employee-reservation-details span,
.employee-empty,
#bookingStepHint,
.section-note,
.catering-note,
.remember-access {
  color: var(--muted);
}

input,
select,
textarea {
  border-color: rgba(0, 47, 108, 0.16);
  background: #ffffff;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(0, 47, 108, 0.04);
}

input::placeholder,
textarea::placeholder {
  color: rgba(95, 104, 116, 0.72);
}

.notice {
  border-color: rgba(0, 47, 108, 0.2);
  background: rgba(0, 47, 108, 0.07);
  color: var(--blue);
}

.notice.is-error {
  border-color: rgba(184, 52, 52, 0.36);
  background: rgba(184, 52, 52, 0.1);
  color: #9a2929;
}

.employee-delete-button {
  color: #9a2929;
}

.remember-access input {
  accent-color: var(--blue);
}
/* Menús de almuerzo contenidos */
.menu-reference {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.menu-reference-title {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1;
}

.menu-reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.menu-card {
  min-width: 0;
  border: 1px solid rgba(0, 47, 108, 0.14);
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 31, 73, 0.06);
  padding: 6px 7px;
  overflow: hidden;
}

.menu-card strong {
  display: block;
  margin-bottom: 3px;
  color: var(--blue);
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
}

.menu-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.53rem;
  font-weight: 560;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

@media (max-width: 680px) {
  .menu-reference-grid {
    gap: 4px;
  }

  .menu-card {
    padding: 5px;
  }

  .menu-card strong {
    font-size: 0.54rem;
  }

  .menu-card p {
    font-size: 0.43rem;
    line-height: 1.02;
  }
}

@media (max-width: 680px) and (max-height: 740px) {
  .menu-reference-title {
    font-size: 0.62rem;
  }

  .menu-card {
    padding: 4px;
  }

  .menu-card strong {
    margin-bottom: 2px;
    font-size: 0.5rem;
  }

  .menu-card p {
    font-size: 0.39rem;
    line-height: 1;
  }
}
/* Navegación compacta del formulario */
.booking-form-nav .submit-button,
.booking-form-nav .inline-button {
  grid-column: auto;
  margin-top: 0;
}

.booking-form-nav .submit-button {
  width: 100%;
}
.time-approx-note {
  margin: -12px 0 2px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
}

@media (max-width: 680px) {
  .time-approx-note {
    margin-top: -8px;
    font-size: 0.78rem;
  }
}
/* Paso horario mas equilibrado */
.time-step {
  align-items: flex-start;
  margin-top: 6px;
}

.time-card {
  align-content: start;
  gap: 14px;
  padding-top: 10px;
}

.time-card h3 {
  font-size: 1.72rem;
}

.time-date {
  margin-top: -2px;
}

.time-approx-note {
  margin: -8px 0 4px;
}

@media (max-width: 680px) {
  .time-step {
    margin-top: 4px;
  }

  .time-card {
    gap: 11px;
    padding-top: 8px;
  }

  .time-card h3 {
    font-size: 1.52rem;
  }

  .time-approx-note {
    margin-top: -6px;
  }
}
/* Confirmación final de reserva */
.notice.booking-confirmation {
  display: grid;
  gap: 8px;
  text-align: center;
}

.booking-confirmation-title {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.booking-confirmation-code {
  justify-self: center;
  border: 1px solid rgba(0, 47, 108, 0.18);
  border-radius: 3px;
  background: #ffffff;
  color: var(--blue);
  padding: 7px 12px;
  font-size: 1.15rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.booking-confirmation-text,
.booking-confirmation-address {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.18;
}

.booking-confirmation-address {
  color: var(--blue);
}

.booking-confirmation-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.booking-confirmation-link {
  display: inline-grid;
  min-height: 40px;
  place-items: center;
  border: 1px solid var(--blue);
  border-radius: 3px;
  background: #ffffff;
  color: var(--blue);
  padding: 0 10px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
}

.booking-confirmation-link-secondary {
  background: #ffffff;
  color: var(--blue);
}

@media (max-width: 680px) {
  .booking-confirmation-actions {
    grid-template-columns: 1fr;
  }
}
/* Selector de idioma integrado */
.topbar {
  display: none;
}

.entry-panel {
  position: relative;
  padding-top: 56px;
}

.entry-panel .language-switcher {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
}

.language-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.language-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 50px;
  min-height: 32px;
  border: 1px solid rgba(0, 47, 108, 0.18);
  border-radius: 3px;
  background: #ffffff;
  color: var(--blue);
  padding: 0 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(0, 31, 73, 0.1);
  cursor: pointer;
}

.language-trigger-mark {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.language-options {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(3, 38px);
  gap: 4px;
  border: 1px solid rgba(0, 47, 108, 0.16);
  border-radius: 3px;
  background: #ffffff;
  padding: 6px;
  box-shadow: 0 18px 34px rgba(0, 31, 73, 0.18);
}

.language-options[hidden] {
  display: none;
}

.language-options button {
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: #ffffff;
  color: var(--blue);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.language-options button:hover,
.language-options button:focus-visible {
  border-color: rgba(0, 47, 108, 0.22);
  background: rgba(0, 47, 108, 0.07);
  outline: none;
}

.language-options button.is-active {
  background: var(--blue);
  color: #ffffff;
}

.language-trigger:focus-visible {
  outline: 2px solid rgba(0, 47, 108, 0.32);
  outline-offset: 2px;
}

@media (max-width: 680px) {
  .entry-panel {
    padding-top: 52px;
  }

  .entry-panel .language-switcher {
    top: 12px;
    right: 12px;
  }

  .language-trigger {
    min-width: 48px;
    min-height: 30px;
    font-size: 0.74rem;
  }
}/* Logo en pantalla de inicio */
.home-logo {
  display: inline-grid;
  justify-self: center;
  width: 74px;
  height: 74px;
  place-items: center;
  margin: -12px 0 -14px;
}

.home-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 680px) {
  .home-logo {
    width: 64px;
    height: 64px;
    margin: -8px 0 -10px;
  }
}
/* Crédito inferior */
.view-home.is-active {
  flex-direction: column;
  gap: 8px;
}

.app-credit {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.62rem;
  font-weight: 650;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.36);
}

@media (max-width: 680px) {
  .view-home.is-active {
    gap: 6px;
  }

  .app-credit {
    font-size: 0.58rem;
  }
}
/* Acceso empleados compacto */
.entry-panel .text-link {
  min-height: 18px;
  padding: 0 2px;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.05;
  text-underline-offset: 2px;
  opacity: 0.72;
}

.entry-panel .text-link:hover {
  opacity: 1;
}

@media (max-width: 680px) {
  .entry-panel .text-link {
    min-height: 18px;
    font-size: 0.66rem;
  }
}
/* Pantalla interna separada empleados */
.employee-work-panel.is-dashboard {
  width: min(100%, 900px);
}

.employee-work-panel.is-dashboard > .employee-login-title,
.employee-work-panel.is-dashboard > #employeeForm {
  display: none;
}

.employee-work-panel.is-dashboard .employee-panel {
  margin-top: 2px;
}

.employee-work-panel.is-dashboard .employee-panel-head {
  border-radius: 3px;
  background: #ffffff;
}

.employee-work-panel.is-dashboard .employee-reservations {
  max-height: min(44svh, 360px);
}

@media (max-width: 680px) {
  .employee-work-panel.is-dashboard {
    width: min(100%, 430px);
  }

  .employee-work-panel.is-dashboard .employee-reservations {
    max-height: 300px;
  }
}
/* Cancelación en modificar cita */
.modify-cancel-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  border: 1px solid rgba(122, 48, 41, 0.18);
  border-radius: 3px;
  background: rgba(122, 48, 41, 0.04);
  padding: 12px;
}

.modify-cancel-kicker,
.modify-cancel-section p {
  margin: 0;
}

.modify-cancel-kicker {
  color: #7a3029;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.modify-cancel-section p:not(.modify-cancel-kicker) {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 620;
  line-height: 1.18;
}

.cancel-reservation-button {
  border-color: rgba(122, 48, 41, 0.32);
  color: #7a3029;
  background: #ffffff;
}

.cancel-reservation-button.is-confirming {
  border-color: #7a3029;
  background: #7a3029;
  color: #ffffff;
}

.notice.is-warning {
  border-color: rgba(122, 48, 41, 0.28);
  background: rgba(122, 48, 41, 0.08);
  color: #7a3029;
}

@media (max-width: 680px) {
  .modify-cancel-section {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cancel-reservation-button {
    width: 100%;
  }
}
/* Acompañamiento comercial */
.commercial-fields {
  border: 1px solid rgba(0, 47, 108, 0.11);
  border-radius: 3px;
  background: rgba(0, 47, 108, 0.035);
  padding: 8px;
}

.commercial-fields[hidden] {
  display: none;
}

.commercial-fields-grid {
  gap: 8px;
}

@media (max-width: 680px) {
  .commercial-fields {
    padding: 7px;
  }
}

/* Tipo de reserva */
.booking-type-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.booking-type-card {
  position: relative;
  min-height: 54px;
  border: 1px solid rgba(0, 47, 108, 0.14);
  border-radius: 3px;
  background: #ffffff;
  padding: 8px 10px 8px 32px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 31, 73, 0.04);
}

.booking-type-card input {
  position: absolute;
  left: 10px;
  top: 12px;
  width: 14px;
  min-height: 14px;
  accent-color: var(--blue);
}

.booking-type-card span {
  display: grid;
  gap: 1px;
}

.booking-type-card strong {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
}

.booking-type-card small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 620;
  line-height: 1.08;
}

.booking-type-card:has(input:checked) {
  border-color: var(--blue);
  background: rgba(0, 47, 108, 0.06);
  box-shadow: inset 0 0 0 1px rgba(0, 47, 108, 0.1), 0 10px 20px rgba(0, 31, 73, 0.06);
}

@media (max-width: 680px) {
  .booking-type-choice {
    gap: 6px;
  }

  .booking-type-card {
    min-height: 50px;
    padding: 7px 8px 7px 28px;
  }

  .booking-type-card input {
    left: 8px;
  }

  .booking-type-card strong {
    font-size: 0.72rem;
  }

  .booking-type-card small {
    font-size: 0.58rem;
  }
}

/* Calendarios compartidos empleados */
.employee-calendar-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.employee-calendar-copy {
  grid-column: 1 / -1;
}

.employee-calendar-copy,
.employee-calendar-card {
  border: 1px solid rgba(0, 47, 108, 0.12);
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 31, 73, 0.05);
  padding: 10px;
}

.employee-calendar-copy p,
.employee-calendar-card strong {
  display: block;
  margin: 0;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.05;
}

.employee-calendar-copy span,
.employee-calendar-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.12;
}

.employee-calendar-card {
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.employee-calendar-card:hover,
.employee-calendar-card:focus-visible {
  border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 47, 108, 0.12);
  outline: none;
}

.shared-calendar-shell {
  width: min(100%, 1180px);
  height: min(820px, calc(100svh - 24px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(0, 47, 108, 0.13);
  border-radius: 3px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 18px;
  overflow: hidden;
}

.shared-calendar-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.shared-calendar-heading h2,
.shared-calendar-heading p {
  margin: 0;
}

.shared-calendar-heading h2 {
  color: var(--ink);
  font-size: 1.7rem;
  font-weight: 850;
  line-height: 1;
}

#sharedCalendarSubtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.shared-calendar-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.shared-calendar-tabs a {
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(0, 47, 108, 0.16);
  border-radius: 3px;
  padding: 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.shared-calendar-tabs a.is-active {
  background: var(--blue);
  color: #ffffff;
}

.shared-calendar-controls {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
}

.shared-calendar-controls h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 850;
  text-align: center;
}

.shared-calendar-period {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
}

.shared-calendar-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.shared-calendar-stats[hidden] {
  display: none;
}

.shared-calendar-stat {
  min-height: 24px;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  border: 1px solid rgba(0, 47, 108, 0.14);
  border-radius: 3px;
  background: rgba(0, 47, 108, 0.04);
  padding: 3px 8px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 750;
  line-height: 1.1;
}

.shared-calendar-stat strong {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
}

.shared-calendar-grid {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(0, 47, 108, 0.12);
  border-radius: 3px;
  overflow: hidden;
}

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

.shared-calendar-days {
  grid-auto-rows: minmax(0, 1fr);
}

.shared-calendar-weekdays span {
  border-right: 1px solid rgba(0, 47, 108, 0.1);
  background: rgba(0, 47, 108, 0.04);
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
  padding: 9px 8px;
}

.shared-calendar-day {
  min-width: 0;
  min-height: 0;
  border-top: 1px solid rgba(0, 47, 108, 0.1);
  border-right: 1px solid rgba(0, 47, 108, 0.1);
  padding: 7px;
  overflow: hidden;
}

.shared-calendar-day.is-general-summary {
  position: relative;
  display: grid;
  place-items: center;
}

.shared-calendar-day.is-general-summary .shared-calendar-day-number {
  position: absolute;
  top: 7px;
  left: 7px;
}

.shared-calendar-visitor-count {
  max-width: calc(100% - 14px);
  min-height: 28px;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 3px;
  border: 1px solid var(--blue);
  border-radius: 2px;
  background: rgba(176, 216, 243, 0.48);
  color: var(--blue);
  padding: 5px 8px;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.shared-calendar-count-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.shared-calendar-count-line + .shared-calendar-count-line {
  padding-top: 3px;
  border-top: 1px solid rgba(0, 47, 108, 0.2);
}

.shared-calendar-visitor-count strong {
  font-size: 0.78rem;
  font-weight: 900;
}

@media (max-width: 820px) {
  .shared-calendar-day.is-general-summary .shared-calendar-day-number {
    top: 3px;
    left: 3px;
  }

  .shared-calendar-visitor-count {
    max-width: calc(100% - 4px);
    min-height: 20px;
    gap: 2px;
    padding: 2px 3px;
    font-size: 0.48rem;
  }

  .shared-calendar-count-line > span {
    display: none;
  }

  .shared-calendar-visitor-count strong {
    font-size: 0.56rem;
  }
}

.shared-calendar-day:nth-child(7n),
.shared-calendar-weekdays span:nth-child(7n) {
  border-right: 0;
}

.shared-calendar-day-number {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 850;
}

.shared-calendar-day.is-muted .shared-calendar-day-number {
  color: rgba(95, 104, 116, 0.5);
}

.shared-calendar-day.is-today .shared-calendar-day-number {
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
}

.shared-calendar-events {
  height: calc(100% - 24px);
  margin-top: 4px;
  display: grid;
  align-content: start;
  gap: 4px;
  overflow: auto;
  padding-right: 2px;
}

.shared-calendar-event {
  display: grid;
  gap: 2px;
  border-left: 3px solid var(--blue);
  background: rgba(0, 47, 108, 0.06);
  padding: 5px 6px;
}

.shared-calendar-event.is-summary {
  border-left-color: #2f6f54;
  background: rgba(47, 111, 84, 0.08);
}

.shared-calendar-event strong,
.shared-calendar-event em,
.shared-calendar-event-details span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shared-calendar-event strong {
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 850;
}

.shared-calendar-event em {
  color: var(--blue);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 800;
}

.shared-calendar-event-details {
  display: grid;
  gap: 1px;
}

.shared-calendar-event-details span {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 650;
  line-height: 1.1;
}

@media (max-width: 820px) {
  .employee-calendar-links {
    grid-template-columns: 1fr;
  }

  .shared-calendar-shell {
    height: calc(100svh - 16px);
    padding: 12px;
  }

  .shared-calendar-topbar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .shared-calendar-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shared-calendar-heading h2 {
    font-size: 1.25rem;
  }

  .shared-calendar-day {
    padding: 4px;
  }

  .shared-calendar-event-details span {
    display: none;
  }
}

/* Compartir calendarios */
.shared-calendar-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 0;
}

.shared-calendar-utility {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.shared-calendar-utility .shared-calendar-stats {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.shared-calendar-utility .shared-calendar-stat {
  flex: 0 0 auto;
  min-width: 118px;
  justify-content: center;
  white-space: nowrap;
}

.shared-calendar-utility .shared-calendar-share {
  width: auto;
  flex: 0 0 auto;
}

body[data-current-view="calendar"] .shared-calendar-utility .shared-calendar-share {
  width: max-content;
  padding: 0;
}

.shared-calendar-share {
  width: min(100%, 430px);
  display: grid;
  gap: 5px;
  border: 1px solid rgba(0, 47, 108, 0.12);
  border-radius: 3px;
  background: rgba(0, 47, 108, 0.04);
  padding: 8px;
}

.shared-calendar-share[hidden] {
  display: none;
}

.shared-calendar-share > span {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
}

.shared-calendar-share > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.shared-calendar-share input {
  min-height: 34px;
  padding: 0 9px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.shared-calendar-share .inline-button {
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .shared-calendar-actions {
    justify-items: stretch;
  }

  .shared-calendar-share {
    width: 100%;
  }

  .shared-calendar-share > div {
    grid-template-columns: 1fr;
  }
}

/* Calendario centrado */
body[data-current-view="calendar"] .app {
  height: 100svh;
  min-height: 100svh;
  place-items: center;
  padding: 14px;
  overflow: hidden;
}

body[data-current-view="calendar"] .view.is-active {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

body[data-current-view="calendar"] .shared-calendar-shell {
  width: min(100%, 1120px);
  height: min(700px, calc(100svh - 28px));
  gap: 8px;
  padding: 14px;
}

body[data-current-view="calendar"] .shared-calendar-topbar {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

body[data-current-view="calendar"] .shared-calendar-topbar > .back-button {
  display: none;
}

body[data-current-view="calendar"].calendar-from-employee .shared-calendar-topbar {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

body[data-current-view="calendar"].calendar-from-employee .shared-calendar-topbar > .back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

body[data-current-view="calendar"] .shared-calendar-heading h2 {
  font-size: 1.42rem;
}

body[data-current-view="calendar"] #sharedCalendarSubtitle {
  margin-top: 2px;
  font-size: 0.74rem;
}

body[data-current-view="calendar"] .employee-panel-kicker {
  font-size: 0.66rem;
}

body[data-current-view="calendar"] .back-button {
  min-height: 38px;
  padding: 0 14px;
}

body[data-current-view="calendar"] .shared-calendar-tabs a {
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.72rem;
}

body[data-current-view="calendar"] .shared-calendar-share {
  width: min(100%, 390px);
  gap: 4px;
  padding: 6px;
}

body[data-current-view="calendar"] .shared-calendar-share input,
body[data-current-view="calendar"] .shared-calendar-share .inline-button {
  min-height: 30px;
}

body[data-current-view="calendar"] .shared-calendar-controls {
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 8px;
}

body[data-current-view="calendar"] .shared-calendar-controls h3 {
  font-size: 1.16rem;
}

body[data-current-view="calendar"] .shared-calendar-weekdays span {
  padding: 7px 7px;
  font-size: 0.62rem;
}

body[data-current-view="calendar"] .shared-calendar-day {
  padding: 5px;
}

body[data-current-view="calendar"] .shared-calendar-day-number {
  min-width: 18px;
  height: 18px;
  font-size: 0.64rem;
}

body[data-current-view="calendar"] .shared-calendar-events {
  height: calc(100% - 20px);
  margin-top: 2px;
  gap: 3px;
}

body[data-current-view="calendar"] .shared-calendar-event {
  padding: 4px 5px;
}

body[data-current-view="calendar"] .shared-calendar-event strong {
  font-size: 0.62rem;
}

body[data-current-view="calendar"] .shared-calendar-event em,
body[data-current-view="calendar"] .shared-calendar-event-details span {
  font-size: 0.56rem;
}

@media (max-width: 820px) {
  body[data-current-view="calendar"] .app {
    padding: 8px;
  }

  body[data-current-view="calendar"] .shared-calendar-shell {
    width: min(100%, 430px);
    height: calc(100svh - 16px);
    padding: 10px;
  }

  body[data-current-view="calendar"] .shared-calendar-heading h2 {
    font-size: 1.08rem;
  }

  body[data-current-view="calendar"] #sharedCalendarSubtitle {
    font-size: 0.66rem;
  }

  body[data-current-view="calendar"] .shared-calendar-controls h3 {
    font-size: 1rem;
  }
}

/* Paso inicial tipo de reserva */
.booking-type-step {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 16px 42px 8px;
}

.booking-type-step[hidden] {
  display: none;
}

.booking-type-intro {
  display: grid;
  gap: 8px;
  text-align: center;
}

.booking-type-intro h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.05;
}

.booking-type-choice-start .booking-type-card {
  min-height: 68px;
  align-content: center;
}

.booking-type-step .submit-button {
  margin-top: 2px;
}

@media (max-width: 680px) {
  .booking-type-step {
    gap: 12px;
    padding: 10px 2px 6px;
  }

  .booking-type-intro h3 {
    font-size: 1.35rem;
  }

  .booking-type-choice-start {
    grid-template-columns: 1fr;
  }
}

/* Tipo de reserva en columna */
.booking-type-choice-start {
  grid-template-columns: 1fr;
  gap: 12px;
}

.booking-type-choice-start .booking-type-card {
  min-height: 92px;
  align-content: center;
  padding: 18px 20px 18px 48px;
}

.booking-type-choice-start .booking-type-card input {
  left: 18px;
  top: 28px;
}

.booking-type-choice-start .booking-type-card strong {
  font-size: 0.92rem;
}

.booking-type-choice-start .booking-type-card small {
  font-size: 0.74rem;
}

@media (max-width: 680px) {
  .booking-type-choice-start {
    gap: 10px;
  }

  .booking-type-choice-start .booking-type-card {
    min-height: 76px;
    padding: 14px 14px 14px 40px;
  }

  .booking-type-choice-start .booking-type-card input {
    left: 14px;
    top: 22px;
  }
}

/* Selector idioma sin marco exterior */
.language-switcher,
.entry-panel .language-switcher {
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
}

.language-trigger {
  box-shadow: 0 14px 34px rgba(0, 31, 73, 0.16);
}

@media (max-width: 680px) {
  .language-switcher,
  .entry-panel .language-switcher {
    padding: 0;
  }
}


/* Detalle lateral calendario compartido */
.shared-calendar-shell {
  position: relative;
}

.shared-calendar-day.has-events {
  cursor: pointer;
}

.shared-calendar-day.has-events:hover,
.shared-calendar-day.is-selected {
  background: rgba(0, 47, 108, 0.045);
}

.shared-calendar-detail {
  position: absolute;
  z-index: 4;
  top: 118px;
  right: 18px;
  bottom: 18px;
  width: min(360px, calc(100% - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  border: 1px solid rgba(0, 47, 108, 0.14);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 50px rgba(0, 31, 73, 0.24);
  padding: 14px;
}

.shared-calendar-detail[hidden] {
  display: none;
}

.shared-calendar-detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(0, 47, 108, 0.1);
  padding-bottom: 10px;
}

.shared-calendar-detail-head p,
.shared-calendar-detail-head h3 {
  margin: 0;
}

.shared-calendar-detail-head p {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.shared-calendar-detail-head h3 {
  margin-top: 3px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.1;
}

.shared-calendar-detail-list {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.shared-calendar-detail-item,
.shared-calendar-detail-empty {
  border-left: 3px solid var(--blue);
  background: rgba(0, 47, 108, 0.055);
  padding: 9px 10px;
}

.shared-calendar-detail-item.is-summary {
  border-left-color: #2f6f54;
  background: rgba(47, 111, 84, 0.08);
}

.shared-calendar-detail-item strong,
.shared-calendar-detail-item em {
  display: block;
}

.shared-calendar-detail-item strong {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.15;
}

.shared-calendar-detail-item em {
  margin-top: 2px;
  color: var(--blue);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.shared-calendar-detail-lines {
  display: grid;
  gap: 3px;
  margin-top: 6px;
}

.shared-calendar-detail-lines span,
.shared-calendar-detail-empty {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.2;
}

.modify-load-button {
  grid-column: 1 / -1;
}

@media (max-width: 820px) {
  .shared-calendar-detail {
    inset: auto 10px 10px;
    top: 168px;
    width: auto;
  }
}


/* Feedback calendario showroom - refinamientos */
.booking-logo {
  align-self: center;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: -4px auto 8px;
}

.booking-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.is-editing-reservation .booking-panel {
  width: min(100%, 820px);
}

#languageMenuValue {
  display: inline-block;
  min-width: 20px;
  color: var(--blue);
}

.employee-reservation-row.is-new {
  border-color: rgba(0, 47, 108, 0.34);
  background: rgba(0, 47, 108, 0.07);
}

.employee-reservation-main strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.employee-new-badge {
  display: inline-grid;
  place-items: center;
  min-height: 18px;
  border-radius: 2px;
  background: var(--blue);
  color: #ffffff;
  padding: 0 6px;
  font-size: 0.58rem;
  font-weight: 850;
  text-transform: uppercase;
}

.shared-calendar-tabs[hidden] {
  display: none;
}

.shared-calendar-share {
  width: auto;
  justify-items: end;
  border: 0;
  background: transparent;
  padding: 0;
}

.shared-calendar-share input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.shared-calendar-share .inline-button {
  min-width: 118px;
}

.shared-calendar-event.is-new,
.shared-calendar-detail-item.is-new {
  border-left-color: #0b4fa0;
  background: rgba(0, 47, 108, 0.1);
}

.shared-calendar-event.is-new strong::after,
.shared-calendar-detail-item.is-new strong::after {
  content: "Nueva";
  display: inline-grid;
  place-items: center;
  min-height: 14px;
  margin-left: 6px;
  border-radius: 2px;
  background: var(--blue);
  color: #fff;
  padding: 0 4px;
  font-size: 0.5rem;
  font-weight: 850;
  text-transform: uppercase;
  vertical-align: middle;
}

button.booking-confirmation-link {
  font: inherit;
}

.booking-confirmation-home {
  grid-column: 1 / -1;
  background: var(--blue);
  color: #ffffff;
  cursor: pointer;
}

@media (min-width: 821px) {
  body[data-current-view="calendar"] .shared-calendar-shell,
  .shared-calendar-shell {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .shared-calendar-topbar {
    grid-column: 1 / -1;
  }

  .shared-calendar-controls,
  .shared-calendar-grid {
    grid-column: 1;
  }

  .shared-calendar-detail {
    position: static;
    grid-column: 2;
    grid-row: 2 / 4;
    width: auto;
    min-width: 0;
    align-self: stretch;
  }
}

@media (max-width: 820px) {
  .employee-work-panel,
  .employee-work-panel.is-dashboard {
    max-height: calc(100svh - 16px);
    overflow-y: auto;
  }

  body[data-current-view="calendar"] .shared-calendar-shell,
  .shared-calendar-shell {
    overflow-y: auto;
    grid-template-rows: auto auto minmax(360px, 1fr) minmax(190px, auto);
  }

  .shared-calendar-detail {
    position: static;
    width: auto;
    inset: auto;
    max-height: 240px;
  }
}

@media (max-width: 680px) {
  input,
  select,
  textarea,
  .booking-form input,
  .booking-form select,
  .booking-form textarea,
  .employee-edit-form input,
  .employee-edit-form select {
    font-size: 16px !important;
  }

  .booking-logo {
    width: 46px;
    height: 46px;
    margin-bottom: 4px;
  }
}


/* Evitar textos cortados en avisos, botones y pantallas moviles */
button,
a,
label,
span,
small,
strong,
p,
h1,
h2,
h3,
.notice,
.selected-date-summary,
.modify-cancel-section,
.booking-confirmation-code {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.submit-button,
.inline-button,
.back-button,
.action-button,
.booking-confirmation-link {
  height: auto;
  white-space: normal;
  line-height: 1.16;
  padding-top: 10px;
  padding-bottom: 10px;
}

.notice {
  max-width: 100%;
  white-space: normal;
  line-height: 1.25;
}

@media (max-width: 680px) {
  body[data-current-view="modify"] .app {
    height: 100dvh;
    min-height: 100dvh;
    padding: max(12px, env(safe-area-inset-top)) 16px max(88px, env(safe-area-inset-bottom));
  }

  body[data-current-view="modify"] .view.is-active {
    align-items: center;
  }

  body[data-current-view="modify"] .work-panel {
    width: min(100%, 390px);
    max-height: calc(100dvh - 104px);
    overflow-y: auto;
    padding: 24px 18px 18px;
  }

  body[data-current-view="modify"] h2 {
    margin-bottom: 14px;
    font-size: 1.65rem;
  }

  body[data-current-view="modify"] .back-button {
    min-height: 44px;
    margin-bottom: 18px;
  }

  body[data-current-view="modify"] .form-grid {
    gap: 12px;
    margin-top: 8px;
    overflow: visible;
  }

  body[data-current-view="modify"] input,
  body[data-current-view="modify"] .submit-button,
  body[data-current-view="modify"] .inline-button {
    min-height: 46px;
  }

  body[data-current-view="modify"] .modify-cancel-section {
    margin-top: 12px;
    padding: 12px;
  }

  body[data-current-view="modify"] #modifyNotice {
    margin-top: 12px;
    font-size: 0.86rem;
  }
}

/* Ajustes ultimos de formulario y calendarios */
.field-help {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.18;
}

.transport-travel-fields {
  border: 1px solid rgba(0, 47, 108, 0.1);
  background: rgba(0, 47, 108, 0.035);
  padding: 8px;
}

.transport-travel-fields[hidden] {
  display: none;
}

@media (max-width: 820px) {
  .employee-calendar-links {
    grid-template-columns: 1fr;
  }

  .employee-calendar-copy {
    grid-column: auto;
  }
}

/* Prefijo telefonico, representante rapido y panel interno desplazable */
.contact-inline-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.22fr);
  gap: 10px;
  min-width: 0;
}

.contact-inline-row > label {
  min-width: 0;
}

.contact-inline-row .phone-input-group {
  grid-template-columns: 84px minmax(0, 1fr);
}

.phone-input-group {
  display: grid;
  grid-template-columns: minmax(88px, 0.42fr) minmax(0, 1fr);
  gap: 7px;
  min-width: 0;
}

.phone-input-group select,
.phone-input-group input {
  width: 100%;
  min-width: 0;
}

.quick-representative-toggle[hidden],
#quickRepresentativeFields[hidden] {
  display: none;
}

body[data-current-view="employee"] .app {
  height: 100svh;
  min-height: 100svh;
  padding: 12px;
  overflow: hidden;
}

body[data-current-view="employee"] .view.is-active {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

body[data-current-view="employee"] .employee-work-panel,
body[data-current-view="employee"] .employee-work-panel.is-dashboard {
  max-height: calc(100svh - 24px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

@media (max-width: 680px) {
  .contact-inline-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .contact-inline-row .phone-input-group,
  .phone-input-group {
    grid-template-columns: minmax(82px, 0.44fr) minmax(0, 1fr);
    gap: 5px;
  }

  body[data-current-view="employee"] .app {
    padding: 8px;
  }

  body[data-current-view="employee"] .employee-work-panel,
  body[data-current-view="employee"] .employee-work-panel.is-dashboard {
    max-height: calc(100svh - 16px);
  }
}
@media (max-width: 680px) {
  .commercial-fields-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Vista quincenal compacta para calendarios compartidos en móvil */
@media (max-width: 820px) {
  body[data-current-view="calendar"] .shared-calendar-shell,
  .shared-calendar-shell {
    grid-template-rows: auto auto clamp(126px, 20svh, 164px) minmax(0, 1fr);
    overflow: hidden;
  }

  body[data-current-view="calendar"] .shared-calendar-topbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  body[data-current-view="calendar"].calendar-from-employee .shared-calendar-topbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body[data-current-view="calendar"] .shared-calendar-actions {
    grid-column: 1 / -1;
  }

  body[data-current-view="calendar"] #sharedCalendarSubtitle {
    display: none;
  }

  body[data-current-view="calendar"] .shared-calendar-controls {
    min-height: 32px;
  }

  body[data-current-view="calendar"] .shared-calendar-grid {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  body[data-current-view="calendar"] .shared-calendar-days {
    min-height: 0;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    grid-auto-rows: unset;
  }

  body[data-current-view="calendar"] .shared-calendar-day {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    padding: 3px;
  }

  body[data-current-view="calendar"] .shared-calendar-events {
    display: none;
  }

  .shared-calendar-event-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 15px;
    height: 15px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--blue);
    color: #ffffff;
    padding: 0 4px;
    font-size: 0.58rem;
    font-weight: 850;
    line-height: 1;
  }

  body[data-current-view="calendar"] .shared-calendar-detail,
  .shared-calendar-detail {
    position: static;
    inset: auto;
    width: auto;
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    gap: 8px;
    padding: 10px;
  }

  body[data-current-view="calendar"] .shared-calendar-detail-head {
    padding-bottom: 8px;
  }

  body[data-current-view="calendar"] .shared-calendar-detail-head .inline-button {
    display: none;
  }

  body[data-current-view="calendar"] .shared-calendar-detail-list {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-right: 4px;
  }

  body[data-current-view="calendar"] .shared-calendar-detail-item,
  body[data-current-view="calendar"] .shared-calendar-detail-empty {
    min-width: 0;
  }

  body[data-current-view="calendar"] .shared-calendar-detail-lines span,
  body[data-current-view="calendar"] .shared-calendar-detail-item strong,
  body[data-current-view="calendar"] .shared-calendar-detail-item em {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  body[data-current-view="calendar"] .shared-calendar-detail-lines span {
    font-size: 0.76rem;
    line-height: 1.3;
  }
}

/* Conditions modal and fixed employee dashboard */
.conditions-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px 14px;
  border: 1px solid rgba(0, 47, 108, 0.14);
  background: rgba(0, 47, 108, 0.035);
  padding: 12px;
}

.conditions-control p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.25;
}

.conditions-control p.is-accepted {
  color: var(--green-dark);
}

.conditions-open-button {
  width: auto;
  min-height: 40px;
  color: var(--blue);
  padding-inline: 18px;
}

.conditions-dialog {
  width: min(620px, calc(100vw - 32px));
  max-width: 620px;
  max-height: min(720px, calc(100dvh - 32px));
  border: 1px solid rgba(0, 47, 108, 0.2);
  border-radius: 4px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(0, 31, 73, 0.3);
  padding: 0;
  overflow: hidden;
}

.conditions-dialog:not([open]) {
  display: none;
}

.conditions-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.conditions-dialog::backdrop {
  background: rgba(5, 18, 38, 0.6);
  backdrop-filter: blur(3px);
}

.conditions-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(0, 47, 108, 0.12);
  padding: 18px 20px 14px;
}

.conditions-dialog-head .time-kicker,
.conditions-dialog-head h4 {
  margin: 0;
}

.conditions-dialog-head h4 {
  margin-top: 3px;
  color: var(--ink);
  font-size: 1.25rem;
}

.conditions-close-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border: 1px solid rgba(0, 47, 108, 0.14);
  border-radius: 2px;
  background: #ffffff;
  color: var(--blue);
  place-items: center;
  padding: 0;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.conditions-dialog-body {
  min-height: 0;
  overflow-y: auto;
  padding: 16px 22px;
}

.conditions-dialog .vip-conditions-list {
  gap: 8px;
  padding-left: 22px;
  font-size: 0.86rem;
  line-height: 1.35;
}

.conditions-dialog .vip-acceptance {
  margin: 0 20px 12px;
}

.conditions-dialog > .submit-button {
  width: auto;
  min-height: 44px;
  margin: 0 20px 20px;
}

.booking-form[data-current-step="client"] .booking-section {
  overflow-y: hidden;
  padding-right: 0;
}

.booking-form[data-booking-type="quick"].is-quick-representative-expanded[data-current-step="client"] .booking-section {
  overflow-y: auto;
  padding-right: 4px;
}

.booking-form[data-booking-type="complete"][data-current-step="client"] .booking-section-grid {
  gap: 7px 10px;
}

body[data-current-view="employee"] .employee-work-panel,
body[data-current-view="employee"] .employee-work-panel.is-dashboard {
  overflow: hidden;
  scrollbar-gutter: auto;
}

.employee-work-panel.is-dashboard {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(100%, 900px);
  height: min(760px, calc(100svh - 24px));
  padding: 24px;
}

.employee-work-panel.is-dashboard .employee-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.employee-panel-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(0, 47, 108, 0.16);
  background: #f4f7fb;
  padding: 3px;
}

.employee-panel-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

.employee-panel-tabs button[aria-selected="true"] {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(0, 47, 108, 0.16);
}

.employee-panel-view {
  min-height: 0;
  overflow: hidden;
}

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

.employee-calendars-view .employee-calendar-links {
  height: 100%;
  align-content: start;
  overflow: hidden;
}

.employee-reservations-view {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
}

.employee-reservations-view .employee-reservations {
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.employee-reservations-view .employee-edit-form {
  max-height: 46%;
  overflow-y: auto;
}

@media (max-width: 680px) {
  .conditions-control {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 9px;
  }

  .conditions-open-button {
    width: 100%;
  }

  .conditions-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }

  .conditions-dialog-head {
    padding: 14px 14px 11px;
  }

  .conditions-dialog-body {
    padding: 12px 16px;
  }

  .conditions-dialog .vip-conditions-list {
    gap: 6px;
    font-size: 0.78rem;
  }

  .conditions-dialog .vip-acceptance {
    margin: 0 14px 10px;
  }

  .conditions-dialog > .submit-button {
    margin: 0 14px 14px;
  }

  .booking-form[data-booking-type="complete"][data-current-step="client"] .contact-inline-row {
    grid-template-columns: minmax(170px, 0.95fr) minmax(0, 1.05fr);
    gap: 6px;
  }

  .booking-form[data-booking-type="complete"][data-current-step="client"] .contact-inline-row .phone-input-group {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 4px;
  }

  .booking-form[data-booking-type="complete"][data-current-step="client"] .booking-section-grid {
    gap: 5px 6px;
  }

  .employee-work-panel.is-dashboard {
    width: min(100%, 430px);
    height: calc(100svh - 16px);
    padding: 12px;
  }

  .employee-work-panel.is-dashboard .employee-panel {
    gap: 8px;
  }

  .employee-work-panel.is-dashboard .employee-panel-head {
    flex-direction: row;
    align-items: center;
    padding: 8px;
  }

  .employee-work-panel.is-dashboard .employee-panel-head h3 {
    font-size: 1.05rem;
  }

  .employee-work-panel.is-dashboard .employee-panel-actions {
    width: auto;
  }

  .employee-work-panel.is-dashboard .employee-panel-actions .employee-logout-button,
  .employee-work-panel.is-dashboard .employee-panel-actions .employee-new-button {
    width: auto;
    min-height: 36px;
    padding-inline: 10px;
    font-size: 0.78rem;
  }

  .employee-panel-tabs button {
    min-height: 38px;
  }

  .employee-calendars-view .employee-calendar-links {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .employee-calendars-view .employee-calendar-copy,
  .employee-calendars-view .employee-calendar-card {
    padding: 7px 9px;
  }

  .employee-calendars-view .employee-calendar-card small,
  .employee-calendars-view .employee-calendar-copy span {
    font-size: 0.68rem;
    line-height: 1.12;
  }
}

@media (max-width: 360px) {
  .booking-form[data-booking-type="complete"][data-current-step="client"] .contact-inline-row {
    grid-template-columns: minmax(136px, 0.95fr) minmax(0, 1.05fr);
    gap: 4px;
  }

  .booking-form[data-booking-type="complete"][data-current-step="client"] .contact-inline-row .phone-input-group {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 3px;
  }

  .booking-form[data-booking-type="complete"][data-current-step="client"] input,
  .booking-form[data-booking-type="complete"][data-current-step="client"] select {
    min-height: 29px;
    padding-inline: 6px;
  }

  .booking-form[data-booking-type="complete"][data-current-step="client"] label {
    font-size: 0.62rem;
  }
}

@media (max-height: 620px) {
  body[data-current-view="booking"] .booking-panel {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  body[data-current-view="booking"] .booking-panel > .back-button {
    min-height: 36px;
    margin-bottom: 2px;
    padding-block: 7px;
  }

  body[data-current-view="booking"] .booking-logo {
    display: none;
  }

  body[data-current-view="booking"] .booking-eyebrow {
    margin-top: 0;
  }

  body[data-current-view="booking"] .booking-panel > h2 {
    margin-bottom: 4px;
    font-size: 1.35rem;
  }

  body[data-current-view="booking"] .booking-form {
    gap: 4px;
    margin-top: 2px;
    padding-top: 2px;
  }

  body[data-current-view="booking"] .booking-form .selected-date-summary {
    padding: 5px 7px;
  }

  body[data-current-view="booking"] .booking-form-header {
    min-height: 42px;
    padding: 5px 7px;
  }

  body[data-current-view="booking"] .booking-form-nav .submit-button,
  body[data-current-view="booking"] .booking-form-nav .inline-button {
    min-height: 34px;
    padding-block: 7px;
  }
}
/* Cross-device viewport, touch and tablet refinements */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

.app,
body[data-current-view="booking"] .app,
body[data-current-view="employee"] .app,
body[data-current-view="calendar"] .app {
  height: 100dvh;
  min-height: 100dvh;
}

@supports (padding: max(0px)) {
  .app {
    padding-right: max(24px, env(safe-area-inset-right));
    padding-bottom: max(40px, env(safe-area-inset-bottom));
    padding-left: max(24px, env(safe-area-inset-left));
  }

  body[data-current-view="booking"] .app,
  body[data-current-view="employee"] .app,
  body[data-current-view="calendar"] .app {
    padding-top: max(12px, env(safe-area-inset-top));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    padding-left: max(12px, env(safe-area-inset-left));
  }
}

@media (hover: none) and (pointer: coarse) {
  .language-trigger,
  .calendar-nav,
  .shared-calendar-controls .inline-button,
  .shared-calendar-share .inline-button,
  .shared-calendar-tabs a,
  .conditions-close-button {
    min-width: 44px;
    min-height: 44px;
  }

  .booking-form .summary-actions .inline-button,
  .booking-form-nav .submit-button,
  .booking-form-nav .inline-button {
    min-height: 40px;
  }

  .entry-panel .text-link {
    position: relative;
  }

  .entry-panel .text-link::before {
    position: absolute;
    content: "";
    inset: -13px -10px;
  }
}

/* Tablets keep the complete month and use their available width. */
@media (min-width: 681px) and (max-width: 820px) and (min-height: 501px) {
  .employee-calendar-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-calendar-copy {
    grid-column: 1 / -1;
  }

  body[data-current-view="calendar"] .shared-calendar-shell,
  .shared-calendar-shell {
    width: min(calc(100% - 8px), 780px);
    height: calc(100dvh - 24px);
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(360px, 1.25fr) minmax(230px, 0.75fr);
    overflow: hidden;
  }

  body[data-current-view="calendar"] .shared-calendar-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body[data-current-view="calendar"].calendar-from-employee .shared-calendar-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  body[data-current-view="calendar"] .shared-calendar-days {
    grid-template-rows: none;
    grid-auto-rows: minmax(0, 1fr);
  }

  body[data-current-view="calendar"] .shared-calendar-day {
    display: block;
    padding: 5px;
  }

  body[data-current-view="calendar"] .shared-calendar-events {
    display: none;
  }

  body[data-current-view="calendar"] .shared-calendar-detail,
  .shared-calendar-detail {
    position: static;
    width: auto;
    height: 100%;
    max-height: none;
    min-height: 0;
    overflow: hidden;
  }

  body[data-current-view="calendar"] .shared-calendar-detail-list {
    min-height: 0;
    overflow-y: auto;
  }

  .booking-form input,
  .booking-form select {
    min-height: 42px;
  }

  .booking-form .summary-actions .inline-button {
    min-height: 40px;
  }
}

@media (max-width: 680px) {
  @supports (padding: max(0px)) {
    .app {
      padding-right: max(16px, env(safe-area-inset-right));
      padding-left: max(16px, env(safe-area-inset-left));
    }

    body[data-current-view="booking"] .app,
    body[data-current-view="employee"] .app,
    body[data-current-view="calendar"] .app {
      padding-top: max(8px, env(safe-area-inset-top));
      padding-right: max(8px, env(safe-area-inset-right));
      padding-bottom: max(8px, env(safe-area-inset-bottom));
      padding-left: max(8px, env(safe-area-inset-left));
    }
  }

  .language-trigger {
    min-width: 52px;
    min-height: 40px;
  }

  .calendar-nav {
    width: 40px;
    height: 40px;
  }

  .booking-form .summary-actions .inline-button {
    min-height: 36px;
  }
}

@media (max-width: 360px) {
  .booking-form[data-booking-type="complete"][data-current-step="client"] input,
  .booking-form[data-booking-type="complete"][data-current-step="client"] select {
    min-height: 36px;
  }

  .booking-form[data-booking-type="complete"][data-current-step="client"] .contact-inline-row .phone-input-group {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .booking-form-nav .submit-button,
  .booking-form-nav .inline-button {
    min-height: 40px;
  }
}

/* Phone landscape: compact horizontal composition without clipped content. */
@media (orientation: landscape) and (max-height: 500px) {
  .app {
    padding: 8px;
  }

  .view-home.is-active {
    gap: 4px;
  }

  .entry-panel {
    width: min(calc(100vw - 24px), 720px);
    min-height: 0;
    grid-template-columns: minmax(190px, 0.82fr) minmax(260px, 1.18fr);
    grid-template-rows: auto auto auto;
    align-items: center;
    gap: 4px 20px;
    padding: 14px 18px;
    text-align: center;
  }

  .entry-panel > .eyebrow {
    grid-column: 1;
    grid-row: 1;
  }

  .entry-panel > .home-logo {
    grid-column: 1;
    grid-row: 2;
    width: 58px;
    height: 58px;
    margin: 0;
  }

  .entry-panel > h1 {
    grid-column: 1;
    grid-row: 3;
    font-size: 2rem;
  }

  .entry-panel > .home-actions {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: end;
    gap: 8px;
  }

  .entry-panel > .text-link {
    grid-column: 2;
    grid-row: 3;
    align-self: center;
  }

  .entry-panel .action-button {
    min-height: 44px;
  }

  .entry-panel .language-switcher {
    top: 10px;
    right: 10px;
  }

  .app-credit {
    font-size: 0.54rem;
  }

  body[data-current-view="booking"] .app,
  body[data-current-view="employee"] .app,
  body[data-current-view="calendar"] .app {
    padding: 8px;
  }

  .booking-panel {
    position: relative;
    width: min(calc(100vw - 16px), 900px);
    height: calc(100dvh - 16px);
    min-height: 0;
    padding: 8px 16px 10px;
  }

  .booking-panel > .back-button {
    position: absolute;
    z-index: 3;
    top: 8px;
    left: 12px;
    min-height: 38px;
    margin: 0;
    padding-block: 6px;
  }

  .booking-panel > .booking-eyebrow {
    margin-top: 0;
    font-size: 0.62rem;
  }

  .booking-panel > h2 {
    margin-bottom: 2px;
    font-size: 1.25rem;
  }

  .booking-type-step {
    justify-content: flex-start;
    gap: 6px;
    padding: 2px 58px 2px;
  }

  .booking-type-intro {
    gap: 1px;
  }

  .booking-type-intro h3 {
    font-size: 1.1rem;
  }

  .booking-type-choice-start {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .booking-type-choice-start .booking-type-card {
    min-height: 64px;
    padding: 10px 12px 10px 38px;
  }

  .booking-type-choice-start .booking-type-card input {
    left: 12px;
    top: 19px;
  }

  .booking-type-step .submit-button {
    min-height: 40px;
    padding-block: 8px;
  }

  .calendar-step {
    gap: 3px;
    margin-top: 0;
    padding: 0 50px;
  }

  .calendar-card {
    padding: 0;
  }

  .calendar-header {
    margin-bottom: 1px;
  }

  .calendar-header h3 {
    font-size: 1.12rem;
  }

  .calendar-weekdays {
    margin-bottom: 1px;
    font-size: 0.68rem;
  }

  .calendar-weekdays,
  .calendar-days {
    gap: 2px;
  }

  .calendar-day,
  .calendar-blank {
    width: min(100%, 30px);
  }

  .calendar-day {
    font-size: 0.7rem;
  }

  .calendar-continue {
    min-height: 38px;
    padding-block: 7px;
  }

  .time-card {
    gap: 5px;
    padding: 4px 70px 0;
  }

  .time-card h3 {
    font-size: 1.25rem;
  }

  .time-card .time-approx-note {
    margin: -2px 0 0;
    font-size: 0.7rem;
  }

  .time-select-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .time-actions {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
  }

  .time-card select,
  .time-actions button {
    min-height: 38px;
  }

  .booking-form {
    gap: 4px;
    margin-top: 0;
    padding: 2px 54px 2px;
  }

  .booking-form .selected-date-summary {
    min-height: 36px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 3px 6px;
  }

  .booking-form .summary-actions .inline-button {
    min-height: 32px;
  }

  .booking-form-header {
    min-height: 40px;
    grid-template-columns: 62px minmax(0, 1fr);
    padding: 4px 7px;
  }

  #bookingStepLabel {
    min-height: 26px;
  }

  #bookingStepHint {
    margin-top: 1px;
  }

  .booking-section {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .booking-form[data-current-step="client"] .booking-section {
    overflow-y: hidden;
  }

  .booking-section-grid {
    gap: 4px 8px;
  }

  .booking-form label {
    gap: 1px;
    font-size: 0.62rem;
  }

  .booking-form input,
  .booking-form select {
    min-height: 31px;
    padding-inline: 6px;
  }

  .booking-form-nav .submit-button,
  .booking-form-nav .inline-button {
    min-height: 36px;
    padding-block: 6px;
  }

  body[data-current-view="modify"] .view.is-active {
    align-items: center;
  }

  body[data-current-view="modify"] .work-panel {
    width: min(calc(100vw - 16px), 760px);
    max-height: calc(100dvh - 16px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px 22px;
  }

  body[data-current-view="modify"] .back-button {
    min-height: 38px;
    margin-bottom: 8px;
  }

  body[data-current-view="modify"] h2 {
    margin-bottom: 8px;
    font-size: 1.45rem;
  }

  body[data-current-view="modify"] .form-grid {
    gap: 8px 12px;
    margin-top: 4px;
  }

  body[data-current-view="modify"] input,
  body[data-current-view="modify"] .submit-button,
  body[data-current-view="modify"] .inline-button {
    min-height: 40px;
  }

  body[data-current-view="modify"] .modify-cancel-section {
    margin-top: 8px;
    padding: 8px 10px;
  }

  body[data-current-view="employee"] .employee-work-panel,
  body[data-current-view="employee"] .employee-work-panel.is-dashboard {
    width: min(calc(100vw - 16px), 900px);
    height: calc(100dvh - 16px);
    max-height: none;
    padding: 10px 16px;
    overflow: hidden;
  }

  .employee-work-panel > .back-button {
    min-height: 38px;
    margin-bottom: 6px;
  }

  .employee-work-panel.is-dashboard .employee-panel {
    gap: 6px;
  }

  .employee-work-panel.is-dashboard .employee-panel-head {
    padding: 6px 10px;
  }

  .employee-panel-tabs button {
    min-height: 38px;
  }

  .employee-calendars-view {
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .employee-calendars-view .employee-calendar-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .employee-calendars-view .employee-calendar-copy {
    grid-column: 1 / -1;
  }

  body[data-current-view="calendar"] .shared-calendar-shell,
  .shared-calendar-shell {
    width: min(calc(100vw - 16px), 900px);
    height: calc(100dvh - 16px);
    grid-template-columns: 1fr;
    grid-template-rows: auto auto clamp(112px, 34dvh, 140px) minmax(0, 1fr);
    padding: 8px 10px;
    overflow: hidden;
  }

  body[data-current-view="calendar"] .shared-calendar-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }

  body[data-current-view="calendar"].calendar-from-employee .shared-calendar-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  body[data-current-view="calendar"] .shared-calendar-heading h2 {
    font-size: 1rem;
  }

  body[data-current-view="calendar"] .shared-calendar-actions {
    grid-column: auto;
  }

  body[data-current-view="calendar"] .shared-calendar-controls {
    min-height: 30px;
  }

  body[data-current-view="calendar"] .shared-calendar-days {
    grid-template-rows: repeat(2, minmax(0, 1fr));
    grid-auto-rows: unset;
  }

  body[data-current-view="calendar"] .shared-calendar-day {
    display: grid;
    place-items: center;
    align-content: center;
    padding: 2px;
  }

  body[data-current-view="calendar"] .shared-calendar-events {
    display: none;
  }

  body[data-current-view="calendar"] .shared-calendar-detail,
  .shared-calendar-detail {
    position: static;
    width: auto;
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    padding: 8px;
  }

  body[data-current-view="calendar"] .shared-calendar-detail-list {
    min-height: 0;
    overflow-y: auto;
  }
}
/* Final cross-device polish */
.catering-grid label span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.08;
}

@media (max-width: 360px) {
  .booking-form-nav .submit-button,
  .booking-form-nav .inline-button {
    height: 40px;
    min-height: 40px;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .entry-panel > .home-actions {
    align-self: center;
    padding-top: 34px;
  }

  .booking-type-step {
    justify-content: center;
  }

  body[data-current-view="calendar"] .shared-calendar-topbar,
  body[data-current-view="calendar"] .shared-calendar-controls,
  body[data-current-view="calendar"] .shared-calendar-grid,
  body[data-current-view="calendar"] .shared-calendar-detail,
  .shared-calendar-detail {
    grid-column: 1;
  }

  body[data-current-view="calendar"] .shared-calendar-topbar {
    grid-row: 1;
  }

  body[data-current-view="calendar"] .shared-calendar-controls {
    grid-row: 2;
  }

  body[data-current-view="calendar"] .shared-calendar-grid {
    grid-row: 3;
  }

  body[data-current-view="calendar"] .shared-calendar-detail,
  .shared-calendar-detail {
    grid-row: 4;
  }
}
/* Touch-target precedence */
@media (hover: none) and (pointer: coarse) {
  .language-trigger,
  .calendar-nav,
  .shared-calendar-controls .inline-button,
  .shared-calendar-share .inline-button,
  .shared-calendar-tabs a,
  .conditions-close-button {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  body[data-current-view="calendar"] .shared-calendar-detail-head .inline-button {
    display: none;
  }
}
.employee-panel-actions .employee-logout-button,
.employee-panel-actions .employee-new-button {
  white-space: nowrap;
}

/* Muestras y produccion */
body[data-current-view="samples"] .app {
  height: 100svh;
  padding: 12px;
  overflow: hidden;
}

.samples-view {
  height: 100%;
  min-height: 0;
}

.samples-shell {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  width: min(100%, 1380px);
  height: min(850px, calc(100svh - 24px));
  min-height: 0;
  border: 1px solid rgba(0, 47, 108, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.samples-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(0, 47, 108, 0.13);
  padding: 14px 18px;
}

.samples-brand,
.samples-header-actions,
.samples-subhead,
.samples-calendar-toolbar,
.samples-list-head,
.samples-dialog-head,
.samples-dialog-actions {
  display: flex;
  align-items: center;
}

.samples-brand {
  min-width: 0;
  gap: 12px;
}

.samples-brand img {
  width: 48px;
  height: 49px;
  object-fit: contain;
}

.samples-kicker {
  margin: 0 0 2px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.samples-header h2,
.samples-dialog-head h2 {
  margin: 0;
  color: #121b2d;
  font-family: var(--font-ui);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.08;
}

.samples-header-actions {
  flex: 0 0 auto;
  gap: 8px;
}

.samples-header-actions .inline-button,
.samples-header-actions .submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 42px;
  min-height: 42px;
  margin: 0;
  padding: 0 16px;
  box-shadow: none;
  white-space: nowrap;
}

.samples-tabs {
  display: flex;
  gap: 0;
  min-height: 48px;
  border-bottom: 1px solid rgba(0, 47, 108, 0.14);
  background: #f5f8fc;
  padding: 0 18px;
}

.samples-tabs button {
  min-width: 132px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #536071;
  padding: 0 18px;
  font-weight: 750;
}

.samples-tabs button[aria-selected="true"] {
  border-bottom-color: var(--blue);
  color: var(--blue);
}

.samples-tabs button:focus-visible,
.samples-text-button:focus-visible,
.samples-compact-main:focus-visible,
.samples-confirm-arrival:focus-visible,
.samples-product-image-button:focus-visible,
.samples-product-image-zoom:focus-visible,
.samples-product-lightbox-close:focus-visible,
.samples-dialog-close:focus-visible,
.samples-delete-button:focus-visible,
.samples-purchase-open:focus-visible,
.samples-file-open:focus-visible,
.samples-calendar-event:focus-visible {
  outline: 3px solid rgba(7, 59, 127, 0.24);
  outline-offset: 2px;
}

.samples-content {
  min-height: 0;
  overflow: hidden;
}

.samples-panel {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
}

.samples-panel[data-samples-panel="list"] {
  scrollbar-gutter: stable;
}

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

.samples-panel[data-samples-panel="calendar"] {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

.samples-panel[data-samples-panel="calendar"][hidden] {
  display: none;
}

.samples-section-title {
  margin: 0 0 12px;
  color: #152033;
  font-size: 1rem;
  font-weight: 800;
}

.samples-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.samples-stat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 78px;
  border: 1px solid rgba(0, 47, 108, 0.18);
  border-left: 4px solid var(--blue);
  border-radius: 4px;
  background: #f6f9fc;
  padding: 12px 14px;
}

.samples-stat.is-warning {
  border-left-color: #b07122;
  background: #fff9ef;
}

.samples-stat.is-success {
  border-left-color: #2f6f54;
  background: #f3f9f5;
}

.samples-stat span {
  color: #586575;
  font-size: 0.87rem;
  font-weight: 700;
}

.samples-stat strong {
  color: #10192a;
  font-size: 1.9rem;
  line-height: 1;
}

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

.samples-summary-section {
  min-width: 0;
  border-top: 1px solid rgba(0, 47, 108, 0.18);
  padding-top: 14px;
}

.samples-arrivals-section {
  grid-column: 1 / -1;
}

.samples-subhead {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.samples-subhead h3,
.samples-list-head h3,
.samples-upload-section h3,
.samples-form-section h3 {
  margin: 0;
  color: #152033;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.2;
}

.samples-text-button {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.samples-compact-list {
  display: grid;
  gap: 7px;
}

.samples-compact-row,
.samples-compact-empty,
.samples-upcoming-row,
.samples-arrival-row {
  display: grid;
  gap: 4px 12px;
  min-height: 62px;
  border: 1px solid rgba(0, 47, 108, 0.12);
  border-radius: 4px;
  background: #f7f9fc;
  padding: 9px 11px;
}

.samples-compact-row,
.samples-compact-empty,
.samples-upcoming-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.samples-arrival-row {
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.4fr);
  align-items: center;
}

button.samples-compact-row {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.samples-compact-main {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.samples-compact-row strong,
.samples-compact-empty strong,
.samples-compact-main strong {
  overflow: hidden;
  color: #142036;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.samples-compact-row span,
.samples-compact-empty span,
.samples-compact-main span {
  color: #617083;
  font-size: 0.78rem;
  font-weight: 650;
}

.samples-compact-row time {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.samples-upcoming-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.samples-upcoming-actions time {
  min-width: 52px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: right;
}

.samples-confirm-arrival {
  width: auto;
  min-height: 34px;
  padding: 6px 10px;
  box-shadow: none;
  white-space: nowrap;
}

.samples-arrival-dates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.samples-arrival-dates > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.samples-arrival-dates small {
  color: #667386;
  font-size: 0.68rem;
  font-weight: 750;
}

.samples-arrival-dates strong {
  color: #152033;
  font-size: 0.78rem;
  line-height: 1.25;
}

.samples-calendar-toolbar {
  justify-content: center;
  gap: 28px;
  margin-bottom: 8px;
}

.samples-calendar-toolbar h3 {
  min-width: 220px;
  margin: 0;
  color: #152033;
  text-align: center;
  font-size: 1.35rem;
}

.samples-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin: 0 auto 10px;
  color: #536071;
  font-size: 0.74rem;
  font-weight: 700;
}

.samples-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.samples-calendar-legend span::before {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--catalog-color, #748398);
  content: "";
}

[data-catalog="enero"] { --catalog-color: #2f6799; }
[data-catalog="abril"] { --catalog-color: #6f5b96; }
[data-catalog="junio"] { --catalog-color: #2f7a67; }
[data-catalog="julio"] { --catalog-color: #237b8e; }
[data-catalog="navidad"] { --catalog-color: #a64747; }
[data-catalog="marino"] { --catalog-color: #304a73; }
[data-catalog="exterior"] { --catalog-color: #987a32; }
[data-catalog="otros"] { --catalog-color: #6a6471; }

.samples-calendar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  border: 1px solid rgba(0, 47, 108, 0.16);
  border-radius: 4px;
  overflow: hidden;
}

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

.samples-calendar-days {
  grid-template-rows: repeat(6, minmax(0, 1fr));
  min-height: 0;
}

.samples-calendar-weekdays {
  background: #eef3f9;
}

.samples-calendar-weekdays span {
  padding: 7px;
  color: var(--blue);
  text-align: center;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.samples-calendar-day {
  min-height: 0;
  border-top: 1px solid rgba(0, 47, 108, 0.12);
  border-right: 1px solid rgba(0, 47, 108, 0.12);
  background: #ffffff;
  padding: 6px;
}

.samples-calendar-day:nth-of-type(7n) {
  border-right: 0;
}

.samples-calendar-day.is-outside {
  background: #f8fafc;
  color: #a2aab5;
}

.samples-calendar-date {
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem;
  font-weight: 800;
}

.samples-calendar-events {
  display: flex;
  min-width: 0;
  flex-wrap: nowrap;
  gap: 3px;
  overflow: hidden;
}

.samples-calendar-event {
  width: auto;
  max-width: 100%;
  flex: 0 1 auto;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--catalog-color, var(--blue)) 72%, white);
  border-radius: 3px;
  background: color-mix(in srgb, var(--catalog-color, var(--blue)) 12%, white);
  color: #10233f;
  padding: 3px 5px;
  overflow: hidden;
  font-size: 0.68rem;
  font-weight: 750;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.samples-calendar-events:has(.samples-calendar-event:nth-child(2)) .samples-calendar-event {
  flex: 1 1 0;
}

.samples-calendar-event[data-product-type="production"] {
  border-left-width: 4px;
}

.samples-calendar-event[data-product-type="sample"] {
  border-style: dashed;
  background: color-mix(in srgb, var(--catalog-color, var(--blue)) 6%, white);
}

.samples-list-head {
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.samples-filters {
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) repeat(3, minmax(120px, 0.8fr));
  gap: 8px;
  min-width: min(100%, 720px);
}

.samples-filters label,
.samples-form-grid label {
  display: grid;
  gap: 3px;
  color: #536071;
  font-size: 0.72rem;
  font-weight: 750;
}

.samples-filters input,
.samples-filters select,
.samples-form-grid input,
.samples-form-grid select,
.samples-form-grid textarea,
.samples-product input,
.samples-product select,
.samples-product textarea {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid rgba(0, 47, 108, 0.2);
  border-radius: 4px;
  background: #ffffff;
  color: #172236;
  padding: 7px 9px;
}

.samples-form-grid textarea,
.samples-product textarea {
  resize: vertical;
}

.samples-table-wrap {
  min-height: 260px;
  border: 1px solid rgba(0, 47, 108, 0.14);
  border-radius: 4px;
  overflow-x: hidden;
  overflow-y: visible;
}

.samples-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
  color: #243044;
  font-size: 0.82rem;
}

.samples-col-purchase { width: 9%; }
.samples-col-image { width: 6%; }
.samples-col-reference { width: 8%; }
.samples-col-description { width: 18%; }
.samples-col-product-type { width: 7%; }
.samples-col-catalog { width: 7%; }
.samples-col-date { width: 8%; }
.samples-col-destination { width: 7%; }
.samples-col-receipt { width: 8%; }
.samples-col-photo { width: 7%; }
.samples-col-ai { width: 7%; }
.samples-col-showroom { width: 8%; }

.samples-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #edf3f9;
  color: var(--blue);
  padding: 8px 10px;
  overflow-wrap: anywhere;
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.samples-table td {
  border-top: 1px solid rgba(0, 47, 108, 0.1);
  padding: 9px 10px;
  overflow-wrap: anywhere;
  vertical-align: middle;
}

.samples-purchase-group-row td {
  border-top: 1px solid rgba(0, 47, 108, 0.18);
  background: #f5f8fc;
  padding: 0;
}

.samples-purchase-group-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

.samples-purchase-group-toggle {
  display: grid;
  grid-template-columns: 24px minmax(150px, 0.8fr) minmax(0, 2fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #172236;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}

.samples-purchase-group-toggle:hover {
  background: #edf3f9;
}

.samples-purchase-group-chevron {
  color: var(--blue);
  font-size: 1.55rem;
  line-height: 1;
  text-align: center;
  transform: rotate(0deg);
  transition: transform 140ms ease;
}

.samples-purchase-group-toggle[aria-expanded="true"] .samples-purchase-group-chevron {
  transform: rotate(90deg);
}

.samples-purchase-group-identity {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.samples-purchase-group-identity strong {
  color: var(--blue);
  font-size: 0.86rem;
}

.samples-purchase-group-identity small {
  overflow: hidden;
  color: #687588;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.samples-purchase-group-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.samples-purchase-group-meta > span {
  min-width: 0;
  border-left: 1px solid rgba(0, 47, 108, 0.14);
  color: #536071;
  padding-left: 8px;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.samples-purchase-group-edit {
  align-self: center;
  margin-right: 10px;
  white-space: nowrap;
}

.samples-product-sequence {
  color: #7a8796;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.samples-purchase-product-row[hidden] {
  display: none !important;
}

.samples-inline-select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(0, 47, 108, 0.22);
  border-radius: 4px;
  background-color: #ffffff;
  color: var(--blue);
  padding: 6px 22px 6px 7px;
  font: inherit;
  font-weight: 800;
}

.samples-inline-select[data-answer="yes"] {
  border-color: rgba(32, 122, 79, 0.55);
  background-color: #e9f6ee;
  color: #1f6e47;
}

.samples-inline-select:disabled {
  opacity: 0.65;
}

.samples-purchase-cell {
  display: grid;
  gap: 1px;
}

.samples-purchase-open {
  width: fit-content;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #13213a;
  padding: 0;
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.samples-purchase-open:hover {
  color: var(--blue);
  text-decoration-color: currentColor;
}

.samples-purchase-cell span {
  color: #687588;
  font-size: 0.74rem;
}

.samples-product-image-cell {
  width: auto;
}

.samples-product-image-button {
  display: block;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.samples-product-image,
.samples-product-image-placeholder {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(0, 47, 108, 0.14);
  border-radius: 3px;
  background: #f2f5f8;
}

.samples-product-image {
  object-fit: cover;
}

.samples-product-image-zoom {
  cursor: zoom-in;
}

.samples-product-image-placeholder {
  color: #7a8796;
  font-size: 0.66rem;
  font-weight: 800;
}

.samples-product-reference {
  color: #13213a;
  font-weight: 800;
  white-space: nowrap;
}

.samples-product-description {
  min-width: 0;
}

.samples-catalog-badge,
.samples-status-badge,
.samples-review-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  border: 1px solid rgba(0, 47, 108, 0.2);
  border-radius: 3px;
  background: #eef5fb;
  color: var(--blue);
  padding: 2px 7px;
  font-size: 0.72rem;
  font-weight: 800;
}

.samples-catalog-badge {
  border-color: color-mix(in srgb, var(--catalog-color, var(--blue)) 70%, white);
  background: color-mix(in srgb, var(--catalog-color, var(--blue)) 10%, white);
}

button.samples-status-badge {
  cursor: pointer;
  font-family: inherit;
}

button.samples-status-badge:hover {
  border-color: rgba(0, 47, 108, 0.48);
  background: #e2edf7;
}

button.samples-status-badge[data-status="received"]:hover {
  border-color: rgba(47, 111, 84, 0.58);
  background: rgba(47, 111, 84, 0.16);
}

button.samples-status-badge:disabled {
  cursor: wait;
  opacity: 0.65;
}

.samples-status-badge[data-status="received"] {
  border-color: rgba(47, 111, 84, 0.34);
  background: rgba(47, 111, 84, 0.09);
  color: #285b47;
}

.samples-status-badge[data-status="transit"] {
  border-color: rgba(152, 122, 50, 0.4);
  background: rgba(152, 122, 50, 0.1);
  color: #745d1c;
}

.samples-review-badge.is-review {
  border-color: rgba(176, 113, 34, 0.44);
  background: #fff6e8;
  color: #8a5618;
}

.samples-empty {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 40px 16px;
  color: #657284;
  text-align: center;
}

.samples-empty[hidden] {
  display: none;
}

.samples-notice {
  margin: 12px 18px 0;
}

.samples-dialog {
  width: min(1080px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  border: 1px solid rgba(0, 47, 108, 0.24);
  border-radius: 6px;
  background: #ffffff;
  padding: 0;
  box-shadow: 0 28px 80px rgba(5, 18, 38, 0.42);
  overflow: hidden;
}

.samples-dialog::backdrop {
  background: rgba(5, 18, 38, 0.62);
  backdrop-filter: blur(3px);
}

.samples-dialog-frame {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: calc(100dvh - 26px);
}

.samples-dialog-head {
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(0, 47, 108, 0.14);
  padding: 15px 18px;
}

.samples-dialog-close {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(0, 47, 108, 0.2);
  border-radius: 4px;
  background: #ffffff;
  color: var(--blue);
  font-size: 1.45rem;
  line-height: 1;
}

.samples-dialog-body {
  display: grid;
  grid-template-columns: minmax(240px, 0.68fr) minmax(0, 1.32fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 18px;
  min-height: 0;
  overflow: hidden;
  padding: 16px 18px;
}

.samples-upload-section {
  align-self: start;
  border-right: 1px solid rgba(0, 47, 108, 0.12);
  padding-right: 18px;
}

.samples-dialog-fields {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.samples-upload-box {
  display: grid;
  justify-items: center;
  gap: 5px;
  margin-top: 11px;
  border: 1px dashed rgba(0, 47, 108, 0.42);
  border-radius: 4px;
  background: #f4f8fc;
  color: var(--blue);
  padding: 26px 12px;
  text-align: center;
  cursor: copy;
}

.samples-upload-box:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.samples-upload-box.has-files {
  border-style: solid;
  background: #edf6ff;
}

.samples-upload-box strong {
  font-size: 0.92rem;
}

.samples-select-files {
  min-height: 36px;
  margin-top: 4px;
  padding: 7px 13px;
  background: #ffffff;
  box-shadow: none;
  cursor: pointer;
}

.samples-upload-box span,
.samples-muted {
  color: #687587;
  font-size: 0.75rem;
  line-height: 1.35;
}

.samples-upload-box .samples-paste-status {
  min-height: 1em;
  color: var(--blue);
  font-weight: 800;
}

.samples-upload-box .samples-paste-status.is-error {
  color: #9b2f2f;
}

.samples-file-list {
  display: grid;
  gap: 5px;
  margin: 8px 0;
}

.samples-file-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 47, 108, 0.12);
  background: #ffffff;
  padding: 6px 8px;
  color: #445165;
  font-size: 0.74rem;
}

.samples-file-open {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: zoom-in;
}

.samples-file-open:hover {
  color: #00509e;
}

.samples-file-remove {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(122, 48, 41, 0.24);
  border-radius: 4px;
  background: #ffffff;
  color: #7a3029;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.samples-file-remove:hover,
.samples-file-remove:focus-visible {
  border-color: #7a3029;
  background: #fff7f6;
}

.samples-file-preview-dialog {
  width: min(980px, calc(100vw - 32px));
  height: min(820px, calc(100dvh - 32px));
  border: 1px solid rgba(0, 47, 108, 0.24);
  border-radius: 6px;
  background: #ffffff;
  padding: 0;
  box-shadow: 0 28px 80px rgba(5, 18, 38, 0.5);
  overflow: hidden;
}

.samples-file-preview-dialog::backdrop {
  background: rgba(5, 18, 38, 0.72);
}

.samples-file-preview-frame {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
}

.samples-file-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(0, 47, 108, 0.14);
  padding: 12px 16px;
  color: #13213a;
}

.samples-file-preview-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.samples-file-preview-body {
  display: grid;
  min-height: 0;
  place-items: center;
  background: #eef3f8;
  padding: 12px;
}

.samples-file-preview-body img,
.samples-file-preview-body iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #ffffff;
}

.samples-file-preview-body img {
  object-fit: contain;
}

.samples-file-preview-body [hidden] {
  display: none;
}

.samples-product-lightbox {
  width: fit-content;
  max-width: calc(100vw - 32px);
  height: fit-content;
  max-height: calc(100dvh - 32px);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 6px;
  background: rgba(5, 18, 38, 0.94);
  padding: 16px;
  overflow: hidden;
}

.samples-product-lightbox[open] {
  display: grid;
  place-items: center;
}

.samples-product-lightbox::backdrop {
  background: rgba(5, 18, 38, 0.82);
}

.samples-product-lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(72vw, 900px);
  max-height: min(72dvh, 680px);
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

.samples-product-lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(5, 18, 38, 0.62);
  color: #ffffff;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
}

@media (max-width: 620px) {
  .samples-product-lightbox {
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 10px;
  }

  .samples-product-lightbox img {
    max-width: calc(100vw - 40px);
    max-height: calc(100dvh - 40px);
  }
}

.samples-analyze-button {
  width: 100%;
  margin-top: 8px;
}

.samples-muted.is-error {
  color: #9b2f2f;
  font-weight: 750;
}

.samples-muted {
  margin: 7px 0 0;
}

.samples-form-section {
  min-width: 0;
  padding-bottom: 14px;
}

.samples-form-section + .samples-form-section {
  border-top: 1px solid rgba(0, 47, 108, 0.12);
  padding-top: 14px;
}

.samples-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

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

.samples-form-grid .samples-check-field {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 7px;
}

.samples-arrival-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
  border-block: 1px solid rgba(47, 111, 84, 0.24);
  background: #f3f9f5;
  padding: 10px 12px;
}

.samples-arrival-summary[hidden] {
  display: none;
}

.samples-arrival-summary > div {
  display: grid;
  gap: 3px;
}

.samples-arrival-summary span {
  color: #5d6a79;
  font-size: 0.7rem;
  font-weight: 750;
}

.samples-arrival-summary strong {
  color: #204f3c;
  font-size: 0.84rem;
}

.samples-check-field input {
  width: 17px;
  min-height: 17px;
  accent-color: var(--blue);
}

.samples-product-list {
  display: grid;
  gap: 8px;
}

.samples-product {
  display: grid;
  grid-template-columns: 76px minmax(130px, 0.8fr) minmax(220px, 1.5fr) minmax(130px, 0.7fr) auto;
  gap: 7px;
  align-items: end;
  border: 1px solid rgba(0, 47, 108, 0.13);
  border-radius: 4px;
  background: #f7f9fc;
  padding: 8px;
}

.samples-product-comment {
  grid-column: 2 / -1;
}

.samples-product-comment textarea {
  min-height: 54px;
}

.samples-product-preview {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  align-self: end;
  overflow: hidden;
  border: 1px solid rgba(0, 47, 108, 0.14);
  border-radius: 3px;
  background: #ffffff;
}

.samples-product-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.samples-product-preview span {
  color: #7a8796;
  font-size: 0.66rem;
  font-weight: 800;
}

.samples-product label {
  display: grid;
  gap: 2px;
  color: #586678;
  font-size: 0.68rem;
  font-weight: 750;
}

.samples-product-remove {
  width: 36px;
  min-height: 38px;
  border: 1px solid rgba(122, 48, 41, 0.24);
  border-radius: 4px;
  background: #ffffff;
  color: #7a3029;
  font-weight: 800;
}

.samples-dialog-actions {
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid rgba(0, 47, 108, 0.14);
  background: #f6f8fb;
  padding: 11px 18px;
}

.samples-dialog-actions .inline-button,
.samples-dialog-actions .submit-button,
.samples-delete-button {
  width: auto;
  min-height: 42px;
  padding: 0 16px;
}

.samples-save-status {
  margin-right: auto;
  color: #687587;
  font-size: 0.78rem;
  font-weight: 700;
}

.samples-delete-button {
  margin-right: auto;
  border: 1px solid rgba(122, 48, 41, 0.28);
  border-radius: 4px;
  background: #ffffff;
  color: #7a3029;
  font-weight: 800;
}

@media (min-width: 901px) and (max-width: 1300px) {
  .samples-table {
    font-size: 0.74rem;
  }

  .samples-table th {
    padding: 7px 5px;
    font-size: 0.62rem;
  }

  .samples-table td {
    padding: 8px 5px;
  }

  .samples-product-image,
  .samples-product-image-placeholder,
  .samples-product-image-button {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 900px) {
  .samples-shell {
    height: calc(100dvh - 16px);
  }

  .samples-header {
    padding: 10px 12px;
  }

  .samples-brand img {
    width: 40px;
    height: 41px;
  }

  .samples-header h2 {
    font-size: 1.2rem;
  }

  .samples-tabs {
    padding-inline: 8px;
  }

  .samples-tabs button {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 8px;
  }

  .samples-panel {
    padding: 12px;
  }

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

  .samples-list-head {
    align-items: stretch;
    flex-direction: column;
  }

  .samples-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .samples-search-field {
    grid-column: 1 / -1;
  }

  .samples-table-wrap {
    min-height: 0;
  }

  .samples-table,
  .samples-table tbody,
  .samples-table tr,
  .samples-table td {
    display: block;
    width: 100%;
  }

  .samples-table colgroup {
    display: none;
  }

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

  .samples-table tbody {
    display: grid;
    gap: 8px;
    padding: 8px;
  }

  .samples-table-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid rgba(0, 47, 108, 0.14);
    border-radius: 4px;
    background: #ffffff;
  }

  .samples-table td {
    display: grid;
    grid-template-columns: minmax(86px, 0.55fr) minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
    border-top: 0;
    padding: 6px 8px;
  }

  .samples-table td:first-child,
  .samples-table td:nth-child(4) {
    grid-column: 1 / -1;
  }

  .samples-table td::before {
    color: var(--blue);
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .samples-table td:nth-child(1)::before { content: "Producto"; }
  .samples-table td:nth-child(2)::before { content: "Imagen"; }
  .samples-table td:nth-child(3)::before { content: "Referencia"; }
  .samples-table td:nth-child(4)::before { content: "Descripci\00f3n"; }
  .samples-table td:nth-child(5)::before { content: "Tipo"; }
  .samples-table td:nth-child(6)::before { content: "Cat\00e1logo"; }
  .samples-table td:nth-child(7)::before { content: "Fecha prevista"; }
  .samples-table td:nth-child(8)::before { content: "Destino"; }
  .samples-table td:nth-child(9)::before { content: "Recepci\00f3n"; }
  .samples-table td:nth-child(10)::before { content: "Fotograf\00eda"; }
  .samples-table td:nth-child(11)::before { content: "IA"; }
  .samples-table td:nth-child(12)::before { content: "Showroom"; }

  .samples-purchase-group-row {
    display: block;
  }

  .samples-purchase-group-row td {
    display: block;
    padding: 0;
  }

  .samples-purchase-group-row td::before {
    content: none !important;
  }

  .samples-purchase-group-toggle {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 7px;
    padding: 9px 8px;
  }

  .samples-purchase-group-meta {
    grid-column: 2;
    flex-wrap: wrap;
  }

  .samples-purchase-group-edit {
    margin-right: 8px;
  }

  .samples-product-image-cell {
    min-height: 58px;
  }

  .samples-dialog-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .samples-upload-section {
    grid-row: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 47, 108, 0.12);
    padding: 0 0 14px;
  }

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

  .samples-product-comment {
    grid-column: 1 / -1;
  }

  .samples-product-remove {
    width: 100%;
  }
}

@media (max-width: 620px) {
  body[data-current-view="samples"] .app {
    padding: 8px;
  }

  .samples-header {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .samples-header-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .samples-header-actions .inline-button,
  .samples-header-actions .submit-button {
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding-inline: 10px;
    font-size: 0.78rem;
  }

  .samples-stats,
  .samples-summary-grid {
    grid-template-columns: 1fr;
  }

  .samples-upcoming-row,
  .samples-arrival-row {
    grid-template-columns: 1fr;
  }

  .samples-upcoming-actions {
    justify-content: space-between;
  }

  .samples-arrival-dates,
  .samples-arrival-summary {
    grid-template-columns: 1fr;
  }

  .samples-stat {
    min-height: 58px;
  }

  .samples-calendar-day {
    min-height: 62px;
    padding: 3px;
  }

  .samples-calendar-event {
    padding: 2px 3px;
    font-size: 0.62rem;
  }

  .samples-calendar-legend {
    justify-content: flex-start;
  }

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

  .samples-form-grid,
  .samples-product {
    grid-template-columns: 1fr;
  }

  .samples-dialog {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
  }

  .samples-dialog-frame {
    max-height: calc(100dvh - 14px);
  }

  .samples-dialog-head,
  .samples-dialog-body,
  .samples-dialog-actions {
    padding-inline: 12px;
  }

  .samples-dialog-head h2 {
    font-size: 1.18rem;
  }

  .samples-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .samples-delete-button,
  .samples-save-status {
    grid-column: 1 / -1;
    margin-right: 0;
  }
}

@media (max-width: 430px) {
  .employee-work-panel.is-dashboard .employee-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .employee-work-panel.is-dashboard .employee-panel-actions {
    width: 100%;
  }

  .employee-work-panel.is-dashboard .employee-panel-actions .employee-logout-button,
  .employee-work-panel.is-dashboard .employee-panel-actions .employee-new-button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 36px;
    padding-inline: 8px;
    font-size: 0.74rem;
  }
}

.calendar-event-notice {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 8px;
  border: 1px solid rgba(0, 47, 108, 0.38);
  border-radius: 3px;
  background: rgba(222, 239, 252, 0.72);
  color: var(--blue);
  padding: 5px 10px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.calendar-event-notice[hidden] {
  display: none;
}

.calendar-card.has-event-notice .calendar-days {
  row-gap: 3px;
}

.calendar-card[data-calendar-rows="6"] .calendar-days {
  row-gap: 2px;
}

.calendar-card[data-calendar-rows="6"] .calendar-day,
.calendar-card[data-calendar-rows="6"] .calendar-blank {
  width: min(100%, 44px);
}

@media (min-width: 681px) and (min-height: 621px) {
  .calendar-card.has-event-notice .calendar-day,
  .calendar-card.has-event-notice .calendar-blank {
    width: min(100%, 46px);
  }
}

@media (max-width: 680px) {
  .calendar-card.has-event-notice .calendar-day,
  .calendar-card.has-event-notice .calendar-blank {
    width: min(100%, 36px);
  }

  .calendar-card[data-calendar-rows="6"] .calendar-day,
  .calendar-card[data-calendar-rows="6"] .calendar-blank {
    width: min(100%, 32px);
  }
}

@media (max-height: 620px) {
  .calendar-card.has-event-notice .calendar-day,
  .calendar-card.has-event-notice .calendar-blank,
  .calendar-card[data-calendar-rows="6"] .calendar-day,
  .calendar-card[data-calendar-rows="6"] .calendar-blank {
    width: min(100%, 34px);
  }
}

.calendar-day.is-habitat-fair,
.calendar-day.is-habitat-fair:disabled {
  background: rgba(222, 239, 252, 0.82);
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(0, 47, 108, 0.5);
}

@media (max-width: 680px), (max-height: 620px) {
  .calendar-event-notice {
    margin-bottom: 3px;
    padding: 3px 7px;
    font-size: 0.58rem;
  }
}
