:root {
  --bg: #f0f2f5;
  --panel: #ffffff;
  --text: #262b31;
  --muted: #667382;
  --line: #d7dee8;
  --blue: #ef6c00;
  --blue-2: #f57c00;
  --orange-700: #d65a00;
  --green: #43a047;
  --amber: #1e88e5;
  --purple: #8e44ad;
  --red: #c0392b;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-soft: 0 10px 24px rgba(23, 35, 48, 0.08);
  --shadow-elevated: 0 14px 34px rgba(23, 35, 48, 0.12);
  /* Jerarquía tipográfica */
  --font-h1: 1.625rem;
  --font-h2: 1.375rem;
  --font-h3: 1.125rem;
  --font-body: 0.875rem;
  --font-small: 0.75rem;
  --font-micro: 0.6875rem;
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

button, input {
  font: inherit;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card, .panel, .header {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.login-card {
  width: min(420px, 100%);
  padding: 28px;
}

.login-logo {
  display: block;
  width: min(320px, 100%);
  margin: 0 auto 14px;
  height: auto;
}

.badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fefefe;
  color: #9a3412;
  border: 1px solid #f8bb88;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.muted { color: var(--muted); }
.hint {
  margin: 10px 0 0;
  font-size: var(--font-small);
  color: #3e556b;
  background: #fff7ed;
  border: 1px dashed #b9cde6;
  border-radius: 8px;
  padding: 8px 10px;
}
label { display: block; margin-top: 14px; margin-bottom: 6px; font-size: var(--font-body); font-weight: 700; }
input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.login-password-input { margin-bottom: 10px; }
.login-help-text {
  margin: 0 0 12px;
  font-size: 12px;
  color: #3e556b;
}
.login-support-text {
  margin: 10px 0 0;
  font-size: 12px;
  color: #3e556b;
}
.login-support-text a {
  color: #c2410c;
  font-weight: 700;
  text-decoration: none;
}
.login-support-text a:hover {
  text-decoration: underline;
}
input[readonly] {
  background: #f8fafc;
  color: #475569;
}
button { border: 0; border-radius: var(--radius-md); padding: 10px 14px; cursor: pointer; font-weight: 700; transition: transform .16s ease, box-shadow .16s ease, filter .16s ease, background-color .16s ease; }
button.primary, #loginBtn { background: linear-gradient(120deg, var(--blue), var(--blue-2)); color: #fff; box-shadow: 0 8px 18px rgba(15, 23, 42, 0.35); }
button.primary:hover, #loginBtn:hover { transform: translateY(-1px); filter: saturate(1.05); box-shadow: 0 12px 24px rgba(214, 90, 0, 0.34); }
button.primary:active, #loginBtn:active { transform: translateY(0); }
button.secondary { background: #fefefe; color: #8b3a05; border: 1px solid #f8bb88; }
button.secondary:hover { background: #ffd9be; border-color: #f39a5a; }
button.danger { background: #ffe3e3; color: #9d2525; }

.app { max-width: 1240px; margin: 0 auto; padding: 80px 16px 40px; }
.header {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr);
  gap: 14px;
  padding: 18px;
  align-items: stretch;
}

.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1200;
  background: #ffffff;
  border-bottom: 2px solid #f0c39f;
  box-shadow: 0 4px 16px rgba(23, 35, 48, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  transition: padding .24s ease, box-shadow .24s ease;
}

.navbar-logo {
  display: block;
  width: clamp(110px, 11vw, 160px);
  height: auto;
  transition: width .24s ease;
}

.navbar-menu-wrap {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 2;
}

.navbar-menu-toggle {
  display: none;
  width: 42px;
  height: 38px;
  padding: 8px;
  border: 1px solid #f8bb88;
  border-radius: 10px;
  background: #fff7ed;
  box-shadow: 0 4px 10px rgba(214, 90, 0, 0.16);
}

.navbar-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  flex: 0 0 3px;
  opacity: 1;
  border-radius: 99px;
  background: #6b2c04;
  margin: 4px 0;
  transform-origin: center;
  transition: transform .22s ease, opacity .18s ease, background-color .18s ease;
}

.navbar-menu-overlay {
  display: none;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-actions button {
  background: linear-gradient(120deg, var(--blue), var(--blue-2));
  color: #ffffff;
  border: 1px solid var(--orange-700);
  font-size: var(--font-small);
  font-weight: 700;
  padding: 8px 14px;
  box-shadow: 0 4px 10px rgba(214, 90, 0, 0.22);
}

.navbar-actions button:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 14px rgba(214, 90, 0, 0.30);
}

.top-navbar.is-menu-open .navbar-menu-toggle {
  background: #ffd9be;
}

.top-navbar.is-menu-open .navbar-menu-toggle span {
  background: #5a2200;
}

.top-navbar.is-menu-open .navbar-menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.top-navbar.is-menu-open .navbar-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.top-navbar.is-menu-open .navbar-menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

body.brand-shrink .top-navbar {
  padding: 6px 24px;
  box-shadow: 0 6px 20px rgba(23, 35, 48, 0.12);
}

body.brand-shrink .navbar-logo {
  width: clamp(88px, 9vw, 128px);
}

@media (max-width: 900px) {
  .navbar-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .navbar-actions {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 1300;
    min-width: 230px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    border: 1px solid #f8bb88;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 14px 26px rgba(23, 35, 48, 0.18);
  }

  .navbar-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(1.5px);
  }

  .top-navbar.is-menu-open .navbar-menu-overlay {
    display: block;
  }

  .top-navbar.is-menu-open .navbar-actions {
    display: flex;
  }

  .navbar-actions button {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }
}

.header-company-block {
  width: 100%;
  min-width: 0;
}

.header-company-block h1 {
  margin: 6px 0 10px;
}

.company-info-card {
  border: 1px solid #ef6c00;
  border-radius: 12px;
  background: #fefefe;
  padding: 10px 12px;
}

.header-conditions-block {
  border: 1px solid #f0c39f;
  border-radius: 16px;
  background: #fefefe;
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
  overflow: hidden;
}

.conditions-title {
  margin: 0 0 10px;
  font-size: var(--font-h3);
  font-weight: 800;
  color: #ef6c00;
  letter-spacing: .02em;
}

.conditions-viewport {
  position: relative;
  overflow: hidden;
  height: 184px;
}

.conditions-viewport--native-scroll {
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

.conditions-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: conditions-scroll 26s linear infinite;
}

.conditions-track--native-scroll {
  animation: none;
  will-change: auto;
}

.condition-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fefefe;
  border: 1px solid #f4d6bf;
}

.condition-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 1rem;
  line-height: 1;
}

.condition-text {
  font-size: var(--font-body);
  line-height: 1.35;
  color: #1e293b;
  font-weight: 600;
  text-transform: uppercase;
}

@keyframes conditions-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.company-info-card p {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.35;
  color: #334155;
}

.company-info-card p:last-child {
  margin-bottom: 0;
}

.company-info-card strong {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #1e293b;
}

#companyName {
  display: none;
}

.header-logo {
  width: clamp(190px, 24vw, 320px);
  height: auto;
  display: block;
  margin-bottom: 8px;
}

.kpis { margin: 16px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpis article { background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 14px; box-shadow: 0 2px 0 rgba(23, 35, 48, 0.04); }
.kpis span { display: block; font-size: 28px; font-weight: 800; }
.kpis p { margin: 4px 0 0; color: var(--muted); }
.kpis article:nth-child(1) { border-color: #f97316; }
.kpis article:nth-child(2) { border-color: #8b5cf6; }
.kpis article:nth-child(3) { border-color: #16a34a; }
.kpis article:nth-child(4) { border-color: #dc2626; }
.kpis article:nth-child(1) span { color: #f97316; }
.kpis article:nth-child(2) span { color: #8b5cf6; }
.kpis article:nth-child(3) span { color: #16a34a; }
.kpis article:nth-child(4) span { color: #dc2626; }

.kpi-filter-card {
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.kpi-filter-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(22, 33, 44, 0.08);
}

.kpi-filter-card:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 1px;
}

.kpi-filter-card.active-filter {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 10px 24px rgba(15, 23, 42, 0.14);
  background: var(--kpi-accent, #ef6c00);
}

.kpi-filter-card.active-filter span,
.kpi-filter-card.active-filter p {
  color: #ffffff !important;
}

.kpis article:nth-child(1) { --kpi-accent: #f97316; }
.kpis article:nth-child(2) { --kpi-accent: #8b5cf6; }
.kpis article:nth-child(3) { --kpi-accent: #16a34a; }
.kpis article:nth-child(4) { --kpi-accent: #dc2626; }

.reservation-overview-block {
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
  background: var(--reservation-theme, #f7932e);
  color: #fff;
}

.reservation-overview-block .panel-head {
  background: var(--reservation-theme, #f7932e);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.reservation-create-block {
  margin-top: 0;
  border-radius: 16px;
  padding: 14px;
  background: #f7932e;
  color: #fff;
}

.reservation-overview-block .separator {
  border-top: 1px solid rgba(255, 241, 230, 0.45);
}

.reservation-create-block .muted,
.reservation-create-block .field-note,
.reservation-create-block .inline-notes p,
.reservation-create-block .inline-note-label,
.reservation-create-block .extras-label,
.reservation-create-block label,
.reservation-create-block h3 {
  color: #fff4ea;
}

.reservation-create-block .new-reservation-form input,
.reservation-create-block .new-reservation-form textarea,
.reservation-create-block .new-reservation-form select {
  background: #ffffff;
  color: var(--text);
}

.reservation-create-block .extras-fieldset,
.reservation-create-block .terms-row {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.36);
}

.reservation-create-block .separator {
  border-top: 1px solid rgba(255, 241, 230, 0.45);
}


.layout { display: grid; grid-template-columns: 1.15fr .95fr; gap: 14px; align-items: start; }

.layout-left-column {
  display: grid;
  gap: 14px;
  align-content: start;
}
.layout,
.layout-left-column,
.calendar-panel,
.all-reservations-panel,
.list-panel,
.panel {
  width: 100%;
  min-width: 0;
}

.all-reservations-panel { margin-top: 0; }
.all-reservations-list { overflow-x: auto; }
.all-res-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.all-res-table thead tr { background: #f1f5f9; }
.all-res-table th { text-align: left; padding: 10px 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #617284; border-bottom: 2px solid #e2e8f0; white-space: nowrap; }
.all-res-table td { padding: 10px 12px; border-bottom: 1px solid #e9eef4; vertical-align: middle; }
.all-res-row { cursor: pointer; transition: background .15s; }
.all-res-row:hover { background: #fff1e5; }
.panel { padding: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-head h2 { margin: 0; font-size: var(--font-h2); font-weight: 700; }
.calendar-panel,
.all-reservations-panel {
  border: 2px solid #ef8b33;
  background: #ffffff;
}

.calendar-panel .panel-head,
.all-reservations-panel .panel-head {
  background: linear-gradient(180deg, #f7932e 0%, #ef6c00 100%);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.calendar-panel .panel-head h2,
.all-reservations-panel .panel-head h2 {
  color: #ffffff;
  font-weight: 800;
}

.all-reservations-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #f97316;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45);
  flex: 0 0 auto;
}

.calendar-panel .panel-head button {
  background: #ffffff;
  color: #8f3d06;
  border: 1px solid #f0c39f;
}

.calendar-panel .panel-head button:hover {
  background: #fff3e8;
}

.all-res-table thead tr {
  background: #ef6c00;
}

.all-res-table th {
  color: #fff4e8;
  border-bottom: 2px solid #d65a00;
}

.weekday-bar div {
  color: #9a3f08;
}

.day {
  border-color: #eb8a37;
}

.day.selected {
  border-color: #d65a00;
}

.list-panel {
  border: 2px solid #d65a00;
  background: #f7932e;
  color: #fff;
}

.list-panel.theme-rechazado {
  --reservation-theme: #dc2626;
}

.list-panel.theme-confirmado {
  --reservation-theme: #16a34a;
}

.list-panel.theme-pendiente {
  --reservation-theme: #8b5cf6;
}

.list-panel.theme-pendiente .reservation-overview-block,
.list-panel.theme-confirmado .reservation-overview-block,
.list-panel.theme-rechazado .reservation-overview-block {
  color: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.24);
}

.list-panel.theme-pendiente .panel-head h2,
.list-panel.theme-pendiente h3,
.list-panel.theme-pendiente label,
.list-panel.theme-pendiente .muted,
.list-panel.theme-pendiente .msg,
.list-panel.theme-pendiente .field-note,
.list-panel.theme-pendiente .inline-notes p,
.list-panel.theme-pendiente .terms-row span,
.list-panel.theme-pendiente .extras-label,
.list-panel.theme-pendiente .inline-note-label,
.list-panel.theme-confirmado .panel-head h2,
.list-panel.theme-confirmado h3,
.list-panel.theme-confirmado label,
.list-panel.theme-confirmado .muted,
.list-panel.theme-confirmado .msg,
.list-panel.theme-confirmado .field-note,
.list-panel.theme-confirmado .inline-notes p,
.list-panel.theme-confirmado .terms-row span,
.list-panel.theme-confirmado .extras-label,
.list-panel.theme-confirmado .inline-note-label,
.list-panel.theme-rechazado .panel-head h2,
.list-panel.theme-rechazado h3,
.list-panel.theme-rechazado label,
.list-panel.theme-rechazado .muted,
.list-panel.theme-rechazado .msg,
.list-panel.theme-rechazado .field-note,
.list-panel.theme-rechazado .inline-notes p,
.list-panel.theme-rechazado .terms-row span,
.list-panel.theme-rechazado .extras-label,
.list-panel.theme-rechazado .inline-note-label {
  color: #fff4ea;
}

.list-panel.theme-pendiente .status-filter-chip {
  color: #fff;
  border-color: #fff;
  background: transparent;
}

.list-panel.theme-confirmado .status-filter-chip,
.list-panel.theme-rechazado .status-filter-chip {
  color: #fff;
  border-color: #fff;
  background: transparent;
}

.list-panel .panel-head h2,
.list-panel h3,
.list-panel label,
.list-panel .muted,
.list-panel .msg,
.list-panel .field-note,
.list-panel .inline-notes p,
.list-panel .terms-row span,
.list-panel .extras-label,
.list-panel .inline-note-label {
  color: #fff4ea;
}

.list-panel .separator {
  border-top: 1px solid rgba(255, 241, 230, 0.45);
}

.list-panel .list-item,
.list-panel .extras-fieldset,
.list-panel .post-reservation-actions {
  background: #ffffff;
  color: var(--text);
}

/* Texto oscuro dentro de sub-bloques blancos del panel naranja */
.list-panel .extras-fieldset label,
.list-panel .list-item strong,
.list-panel .list-item small {
  color: var(--text);
}

.list-panel .inline-notes {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

.list-panel .inline-notes p {
  margin: 0 0 6px;
  font-size: var(--font-small);
  line-height: 1.35;
  color: #fff4ea;
}

.inline-note-label,
.list-panel .inline-note-label,
.extras-label,
.list-panel .extras-label {
  margin: 0 0 8px;
  display: block;
  font-size: var(--font-body);
  font-weight: 700;
  color: #fff4ea;
}

.list-panel input,
.list-panel textarea,
.list-panel select {
  background: #ffffff;
  border-color: #f0b181;
  color: var(--text);
  font-size: var(--font-body);
}

.list-panel input:focus,
.list-panel textarea:focus,
.list-panel select:focus {
  outline: none;
  border-color: #d65a00;
  box-shadow: 0 0 0 3px rgba(214, 90, 0, 0.15);
}

/* navbar-actions styles are defined in .top-navbar section above */
.panel-head-title-wrap { display: grid; gap: 6px; flex: 1; min-width: 0; }
.status-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.panel-head-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.reservation-overview-block .panel-head {
  align-items: flex-start;
}
.reservation-overview-block #clearStatusFilterBtn {
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.1;
  background: #ffffff;
  border: 1px solid #ffffff;
  color: var(--reservation-theme, #f7932e);
  box-shadow: none;
}
.reservation-overview-block #clearStatusFilterBtn:hover {
  background: #fff4ea;
}
.status-filter-chip {
  margin: 0;
  display: inline-block;
  width: fit-content;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #9a3412;
  background: #fefefe;
  border: 1px solid var(--blue-2);
  border-radius: 999px;
  padding: 4px 10px;
}
.weekday-bar, .calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.weekday-bar div { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; }
.day { min-height: 78px; border: 2px solid #e4e9f0; border-radius: 12px; background: #f9fbfe; padding: 8px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; }
.day strong { font-size: 14px; }
.day span { align-self: flex-start; font-size: 11px; padding: 3px 8px; border-radius: 999px; background: #fefefe; color: #8b3a05; }
.day.selected { border-color: var(--blue); background: #f7932e; box-shadow: 0 0 0 2px rgba(239, 108, 0, 0.14); }
.day.today { outline: 2px solid #f97316; }
.day.empty { visibility: hidden; }

.list-item { border: 1px solid #e1e8f0; border-radius: 14px; padding: 12px; margin-bottom: 10px; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.list-item strong { display: block; margin-bottom: 4px; }
.list-item small { color: var(--muted); }
.list-item-focused { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(239, 108, 0, 0.14), 0 12px 22px rgba(239, 108, 0, 0.11); background: #fff4e8; }
.status { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status.pendiente { background: #e7f1fd; color: #1e63a8; }
.status.confirmado { background: #f1e8f8; color: #6d3588; }
.status.rechazado { background: #fde7e6; color: #9f2f24; }

.actions {
  display: grid;
  gap: 6px;
  align-content: start;
}

.actions button {
  min-width: 120px;
}
select { border: 1px solid var(--line); border-radius: 10px; padding: 10px; min-width: 0; }
textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px; resize: vertical; }
.msg { min-height: 22px; margin-bottom: 10px; color: var(--muted); }

.separator {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 16px 0;
}

.new-reservation h3 {
  margin: 0;
  font-size: var(--font-h3);
  font-weight: 800;
}

.new-reservation-form {
  margin-top: 8px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.field-grid > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.new-reservation-form input,
.new-reservation-form select,
.new-reservation-form textarea {
  width: 100%;
  font-size: var(--font-body);
}

.new-reservation-form input[type="date"],
.new-reservation-form input[type="time"],
.new-reservation-form select {
  min-height: 42px;
}

.field-grid label {
  margin-top: 0;
}

.field-grid-single {
  grid-template-columns: 1fr;
}

.field-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--font-small);
}

.field-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);
  background: #fff5f5;
}

.field-error-msg {
  display: block;
  margin-top: 6px;
  color: #b42318;
  font-size: 12px;
  font-weight: 600;
}

.terms-row-invalid {
  border-color: #dc2626;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.18);
}

.inline-notes {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.inline-notes p {
  margin: 0 0 6px;
  font-size: var(--font-small);
  line-height: 1.35;
  color: #fff4ea;
}

.inline-notes p:last-child {
  margin-bottom: 0;
}

.extras-fieldset {
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: start;
}

.extras-fieldset label {
  margin: 0;
  flex: 0 0 calc(50% - 6px);
  font-size: var(--font-small);
  font-weight: 400;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  gap: 6px;
}

.extras-fieldset input[type="checkbox"] {
  width: auto;
  min-width: 14px;
  margin: 2px 0 0;
  flex: 0 0 auto;
}

.terms-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0 0 12px;
  font-size: var(--font-body);
  font-weight: 600;
  text-align: left;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.1);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.terms-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid #fff;
  border-radius: 5px;
  background: #fff;
  margin-top: 1px;
  margin-left: 0;
  flex: 0 0 auto;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
}

.terms-row input[type="checkbox"]::before {
  content: '';
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform .14s ease;
  background: #ef6c00;
  border-radius: 2px;
}

.terms-row input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.terms-row span {
  flex: 1 1 auto;
  text-align: left;
}

.terms-row-invalid span {
  color: #7f1d1d !important;
  font-weight: 700;
}

.terms-row-invalid input[type="checkbox"] {
  border-color: #dc2626;
  background: #fff;
}

.terms-row + .field-error-msg {
  margin: -4px 0 10px 2px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: var(--font-small);
  font-weight: 700;
  line-height: 1.3;
  color: #7f1d1d;
  background: rgba(255, 245, 245, 0.96);
  border: 1px solid #fecaca;
}

.list-panel .terms-row + .field-error-msg {
  color: #7f1d1d;
}

.new-reservation-form button[type="submit"] {
  width: 100%;
}

.post-reservation-actions {
  margin-top: 12px;
  border: 1px solid #cfe2f7;
  border-radius: 12px;
  background: #f4f9ff;
  padding: 12px;
}

.post-reservation-actions p {
  margin: 0 0 8px;
  font-size: 14px;
  color: #1b3d63;
}

.post-reservation-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ticket-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.ticket-modal {
  width: min(680px, 100%);
  max-height: 86vh;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
}

.ticket-modal-head {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #fff8f1;
  border-bottom: 1px solid #e3e8ef;
}

.ticket-modal-head h3 {
  margin: 0;
  font-size: 18px;
}

.ticket-modal-body {
  padding: 16px;
}

.ticket-v2 {
  background: #e7e7ef;
  border: 1px solid #d9dbe4;
  border-radius: 10px;
  padding: 24px;
}

.ticket-v2-brand {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ticket-v2-brand img {
  width: min(280px, 88%);
  height: auto;
}

.ticket-v2-divider {
  height: 10px;
  border-radius: 8px;
  background: #f26404;
  margin: 18px 0 26px;
}

.ticket-v2-body {
  background: #fefefe;
  border-radius: 8px;
  padding: 20px 24px;
  color: #5f6a99;
  font-size: 36px;
  line-height: 1.34;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
}

.ticket-v2-body h4 {
  margin: 0;
  font-size: 44px;
  text-align: center;
  color: #f26404;
  font-weight: 800;
  letter-spacing: .01em;
}

.ticket-v2-ref {
  margin: 8px 0 0;
  text-align: center;
  font-size: 46px;
  font-weight: 800;
  color: #f26404;
}

.ticket-v2-ref span {
  color: #5f6a99;
}

.ticket-v2-credit {
  margin: 4px 0 8px;
  text-align: center;
  font-size: 48px;
  color: #f26404;
  font-weight: 800;
}

.ticket-v2-row {
  margin: 6px 0;
  color: #5f6a99;
  font-size: 40px;
}

.ticket-v2-extra {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #d8dce6;
}

.ticket-v2-row-small {
  font-size: 30px;
  margin: 4px 0;
}

.ticket-v2-row strong {
  color: #5f6a99;
  font-weight: 800;
}

.ticket-v2-icon {
  display: inline-block;
  width: 1.15em;
  text-align: center;
  margin-right: 2px;
}

.ticket-v2-export {
  width: 794px;
  padding: 0;
  margin: 0;
  background: #ffffff;
}

@media (max-width: 640px) {
  .ticket-v2 {
    padding: 14px;
  }

  .ticket-v2-divider {
    height: 8px;
    margin: 12px 0 18px;
  }

  .ticket-v2-body {
    padding: 14px;
    font-size: 16px;
  }

  .ticket-v2-body h4 {
    font-size: 22px;
  }

  .ticket-v2-ref {
    font-size: 24px;
  }

  .ticket-v2-credit {
    font-size: 25px;
  }

  .ticket-v2-row {
    font-size: 18px;
  }

  .ticket-v2-row-small {
    font-size: 16px;
  }
}

.ticket-card {
  border: 1px solid #d8e3ee;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #fefefe 0%, #f5f9fd 100%);
}

.ticket-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 18px 14px;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  color: #fff;
}

.ticket-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: .12em;
  opacity: .85;
}

.ticket-card-top h4 {
  margin: 0;
  font-size: 24px;
}

.ticket-status {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.26);
}

.ticket-status.pendiente { background: rgba(255, 240, 207, 0.18); }
.ticket-status.confirmado { background: rgba(220, 247, 228, 0.18); }
.ticket-status.rechazado { background: rgba(255, 225, 225, 0.18); }

.ticket-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

/* ===== ESTILOS PARA MODAL DE CAMBIO DE CONTRASEÑA ===== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
}

.modal-content {
  width: min(480px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fefefe, #f5f9fc);
  position: sticky;
  top: 0;
}

.modal-header h2 {
  margin: 0;
  font-size: var(--font-h2);
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(96, 112, 128, 0.1);
  color: var(--text);
}

.modal-form {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 700;
  font-size: var(--font-body);
  color: var(--text);
}

.form-group input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: var(--font-body);
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.1);
}

.form-group input:invalid {
  border-color: var(--red);
}

.field-note {
  font-size: var(--font-small);
  color: var(--muted);
}

.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 20px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fefefe, #f5f9fc);
}

.modal-buttons button {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-size: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-buttons .primary {
  background: var(--blue);
  color: #fff;
}

.modal-buttons .primary:hover {
  background: var(--blue-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.3);
}

.modal-buttons .secondary {
  background: var(--line);
  color: var(--text);
}

.modal-buttons .secondary:hover {
  background: #c8d0dd;
}

.ticket-card-grid > div {
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
}

.ticket-card-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ticket-card-grid strong {
  font-size: 15px;
  line-height: 1.35;
}

.ticket-full {
  grid-column: 1 / -1;
}

.ticket-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 18px;
  border-top: 1px dashed #d9e1ea;
  color: var(--muted);
  font-size: 13px;
}

.ticket-modal-body p {
  margin: 8px 0;
  font-size: 14px;
}

.ticket-modal-actions {
  padding: 14px 16px 18px;
  border-top: 1px solid #e3e8ef;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 960px) {
  .kpis, .layout { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header { grid-template-columns: 1fr; align-items: flex-start; }
  .panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-head > * {
    width: 100%;
    min-width: 0;
  }
  .app {
    padding: 76px 10px 28px;
  }

  .layout,
  .layout-left-column,
  .calendar-panel,
  .all-reservations-panel,
  .list-panel,
  .panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .calendar,
  .weekday-bar {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: 4px;
  }

  .weekday-bar div {
    min-width: 0;
    font-size: 11px;
  }

  .day {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 4px 3px;
    border-width: 1px;
    border-radius: 10px;
  }

  .day strong {
    font-size: 13px;
    line-height: 1.1;
  }

  .day span {
    font-size: 9px;
    padding: 2px 5px;
  }

  .panel {
    padding: 12px;
  }

  .top-navbar {
    padding: 8px 14px;
    gap: 8px;
  }

  .navbar-logo {
    width: 108px;
  }

  .navbar-actions {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .header-company-block {
    width: 100%;
  }
  .header-conditions-block {
    width: 100%;
  }
  .panel-head-actions { width: 100%; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .header-actions { flex-wrap: wrap; }
  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .field-grid.field-grid-single { grid-template-columns: 1fr; }
  .field-grid > div,
  .field-grid-single,
  .new-reservation-form input,
  .new-reservation-form select,
  .new-reservation-form textarea,
  .inline-notes,
  .extras-fieldset,
  .post-reservation-actions,
  .new-reservation-form button[type="submit"] {
    width: 100%;
    min-width: 0;
  }

  .list-item,
  .list-panel .list-item {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
  }

  .list-item > div:first-child,
  .list-panel .list-item > div:first-child {
    min-width: 0;
  }

  .actions,
  .list-item .actions,
  .list-panel .actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 6px;
  }

  .actions button { min-width: 0; width: 100%; }
  .extras-fieldset label { flex: 0 0 100%; }
}

@media (max-width: 420px) {
  .calendar,
  .weekday-bar {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
  }

  .weekday-bar div {
    font-size: 10px;
  }

  .day {
    min-height: 52px;
    padding: 2px 1px;
    border-radius: 8px;
  }

  .day strong {
    font-size: 12px;
  }

  .day span {
    font-size: 8px;
    padding: 1px 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .conditions-track {
    animation: none;
  }

  .conditions-track--native-scroll {
    animation: none;
  }
}

