@font-face {
  font-family: "PlusJakartaSans";
  src: url("./assets/fonts/PlusJakartaSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PlusJakartaSans";
  src: url("./assets/fonts/PlusJakartaSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PlusJakartaSans";
  src: url("./assets/fonts/PlusJakartaSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PlusJakartaSans";
  src: url("./assets/fonts/PlusJakartaSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #0545c1;
  --accent: #16b9e4;
  --ink: #102b3b;
  --muted: #53707f;
  --line: #dce6eb;
  --line-strong: #c9d7de;
  --surface: #ffffff;
  --surface-soft: #f3f8ff;
  --mint-soft: #e1f4ff;
  --danger: #b93838;
  --success: #146f61;
  --shadow-soft: 0 22px 52px rgba(6, 52, 74, 0.13);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

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

button,
input,
select,
textarea {
  max-width: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

body {
  min-height: 100vh;
  font-family: "PlusJakartaSans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 14%, rgba(22, 185, 228, 0.11), transparent 30%),
    radial-gradient(circle at 92% 90%, rgba(5, 69, 193, 0.08), transparent 28%),
    linear-gradient(165deg, #f8fbff 0%, #f3f8ff 54%, #edf3ff 100%);
}

body.modal-open {
  overflow: hidden;
}

.page-shell {
  width: min(1180px, 100%);
  min-width: 0;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.topbar {
  border-bottom: 1px solid rgba(5, 69, 193, 0.1);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(8px);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.brand-isotipo {
  width: auto;
  height: 54px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-wordmark {
  display: block;
  width: auto;
  height: 22px;
  max-width: min(54vw, 245px);
  object-fit: contain;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(5, 69, 193, 0.16);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(22, 185, 228, 0.1), rgba(255, 255, 255, 0.92));
}

.security-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  background: linear-gradient(140deg, #0270e5, var(--brand));
}

.security-copy {
  display: grid;
  gap: 2px;
}

.security-copy strong {
  color: var(--brand);
  font-size: 0.92rem;
  line-height: 1.2;
}

.security-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.main-shell {
  width: min(1180px, 100%);
  min-width: 0;
  max-width: 100%;
  margin: 0 auto;
  padding: 30px 16px 24px;
}

.hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 24px;
}

.hero h1 {
  margin: 0;
  color: #092a5e;
  font-size: clamp(2rem, 4.1vw, 3.2rem);
  line-height: 1.1;
  font-weight: 700;
}

.hero p {
  margin: 12px auto 0;
  color: #365363;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.45;
}

.booking-card {
  width: 100%;
  min-width: 0;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(5, 69, 193, 0.11);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 16px;
}

.mode-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.mode-tab {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink);
  text-align: left;
  padding: 14px 16px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.mode-tab:hover {
  border-color: var(--line-strong);
}

.mode-tab.is-active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(140deg, #0270e5, #0545c1);
  box-shadow: 0 10px 24px rgba(5, 69, 193, 0.24);
}

.mode-title {
  font-size: 1.02rem;
  font-weight: 700;
}

.mode-sub {
  font-size: 0.88rem;
  opacity: 0.94;
}

.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.booking-main {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 18px;
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.search-panel {
  display: none;
  min-width: 0;
  max-width: 100%;
}

.booking-grid > *,
.booking-main > *,
.patient-form > *,
.form-grid > * {
  min-width: 0;
  max-width: 100%;
}

.search-panel.is-visible {
  display: block;
}

.step-title {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.25;
}

.step-copy {
  margin: 8px 0 12px;
  color: var(--muted);
  line-height: 1.48;
}

.substep-title {
  margin: 14px 0 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 1.03rem;
  line-height: 1.3;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
}

.field span {
  font-size: 0.94rem;
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
}

.field input[type="file"] {
  padding: 8px;
  background: #f8fbff;
}

.field input[type="file"]::file-selector-button {
  border: 1px solid #c9d7de;
  border-radius: 8px;
  background: #fff;
  color: #0545c1;
  padding: 7px 10px;
  margin-right: 10px;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(5, 69, 193, 0.12);
}

.hint {
  color: var(--muted);
  font-size: 0.82rem;
}

.availability-status {
  min-height: 20px;
  margin: 8px 0 0;
  color: #53707f;
  font-size: 0.92rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-list:empty {
  min-height: 112px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  display: grid;
  place-items: center;
  padding: 12px;
}

.chip-list:empty::before {
  content: attr(data-empty);
  color: #53707f;
  text-align: center;
  line-height: 1.45;
}

.chip-btn {
  border: 1px solid #c9d7de;
  border-radius: 999px;
  background: #f3f8ff;
  color: #0545c1;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.87rem;
  cursor: pointer;
}

.chip-btn.is-selected {
  border-color: #0270e5;
  background: #e1f4ff;
  color: #0545c1;
  font-weight: 600;
}

.fisio-day-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.fisio-day-list {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.fisio-day-list:empty {
  overflow: hidden;
}

.fisio-day-btn {
  /* Cada fecha conserva su ancho natural para no comprimir el carrusel. */
  flex: 0 0 auto;
  width: max-content;
  max-width: none;
  min-height: 44px;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.fisio-day-btn:hover {
  border-color: #c9d7de;
  background: #f1f9ff;
}

.fisio-day-arrow {
  width: 40px;
  height: 44px;
  border: 1px solid #c9d7de;
  border-radius: 50%;
  background: #fff;
  color: #0758ce;
  display: grid;
  place-items: center;
  padding: 0;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.fisio-day-arrow[hidden] {
  display: none;
}

.fisio-day-arrow:hover:not(:disabled) {
  border-color: #c9d7de;
  background: #f1f9ff;
}

.fisio-day-arrow:disabled {
  opacity: 0.38;
  cursor: default;
}

.fisio-day-arrow:focus-visible,
.fisio-day-btn:focus-visible,
.fisio-filter-btn:focus-visible,
.fisio-hour-card:focus-visible {
  outline: 3px solid rgba(5, 69, 193, 0.22);
  outline-offset: 2px;
}

.fisio-subsection[hidden] {
  display: none;
}

.fisio-subsection {
  min-width: 0;
  max-width: 100%;
}

.fisio-time-filter {
  display: inline-flex;
  max-width: 100%;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
}

.fisio-filter-btn {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #365363;
  padding: 7px 12px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.fisio-filter-btn:hover {
  background: #e1f4ff;
}

.fisio-filter-btn.is-selected {
  color: #fff;
  background: linear-gradient(140deg, #0270e5, #0545c1);
  box-shadow: 0 4px 10px rgba(5, 69, 193, 0.18);
}

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

.slot-list:empty {
  min-height: 148px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  display: grid;
  place-items: center;
  padding: 14px;
}

.slot-list:empty::before {
  content: attr(data-empty);
  color: #53707f;
  text-align: center;
  line-height: 1.45;
}

.slot-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.slot-card:hover {
  border-color: #c9d7de;
}

.slot-card.is-selected {
  border-color: #0270e5;
  box-shadow: 0 10px 22px rgba(5, 69, 193, 0.14);
  background: linear-gradient(150deg, #f3f8ff, #f1f9ff);
}

.slot-list.day-hours-grid {
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  min-width: 0;
}

.slot-list.day-hours-grid:empty {
  grid-template-columns: 1fr;
}

.day-hour-card {
  min-width: 0;
  min-height: 48px;
  text-align: center;
  color: #092a5e;
  font: inherit;
  font-weight: 700;
}

.day-hour-card:focus-visible,
#fisiosPorDia .slot-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.day-physios {
  margin-top: 18px;
}

.slot-list.fisio-hours-grid {
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  min-width: 0;
  max-width: 100%;
}

.slot-list.fisio-hours-grid:empty {
  grid-template-columns: 1fr;
}

.fisio-hour-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  text-align: center;
  display: grid;
  place-items: center;
}

.fisio-hour-card .slot-time {
  font-size: 1rem;
}

.slot-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.slot-time {
  color: #092a5e;
  font-weight: 700;
}

.slot-fisio {
  color: #0758ce;
}

.slot-spec {
  margin-top: 3px;
  color: #53707f;
  font-size: 0.86rem;
}

.booking-side {
  border: 1px solid rgba(22, 185, 228, 0.24);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--mint-soft), #f1f9ff);
  padding: 18px 16px;
}

.booking-side h2 {
  margin: 0;
  color: #0758ce;
  font-size: 1.3rem;
}

.how-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.how-list li {
  position: relative;
  padding-left: 38px;
}

.how-list li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #0270e5, #0545c1);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.how-list {
  counter-reset: step;
}

.how-list strong {
  display: block;
  color: #102b3b;
  line-height: 1.35;
}

.how-list span {
  display: block;
  margin-top: 3px;
  color: #53707f;
  line-height: 1.45;
  font-size: 0.93rem;
}

.secure-panel {
  margin-top: 16px;
  border: 1px solid rgba(22, 185, 228, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  padding: 11px 12px;
}

.secure-panel strong {
  color: #0758ce;
  font-size: 0.96rem;
}

.secure-panel p {
  margin: 5px 0 0;
  color: #53707f;
  font-size: 0.89rem;
}

.selected-slot {
  border: 1px solid rgba(22, 185, 228, 0.34);
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, #e1f4ff, #f3f8ff);
  padding: 12px;
}

.selected-slot h2 {
  margin: 0 0 5px;
  color: #0545c1;
  font-size: 1rem;
}

.selected-slot p {
  margin: 0;
  color: #365363;
}

.patient-form {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 11px;
  min-width: 0;
  max-width: 100%;
}

.form-title {
  margin: 0;
  font-size: 1.2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  min-width: 0;
  max-width: 100%;
}

.field-full {
  grid-column: 1 / -1;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #365363;
  font-size: 0.93rem;
}

.checkbox-field input {
  margin-top: 2px;
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.turnstile-box {
  min-height: 65px;
}

.legal-documents {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(5, 69, 193, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(5, 69, 193, 0.08);
}

.legal-documents[hidden] {
  display: none;
}

.legal-documents__header h3 {
  margin: 0 0 6px;
  color: #0545c1;
  font-size: 1.1rem;
}

.legal-documents__header p {
  margin: 0;
  color: #53707f;
  font-size: 0.95rem;
}

.legal-documents__list {
  display: grid;
  gap: 14px;
}

.legal-document {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(5, 69, 193, 0.14);
  border-radius: 16px;
  background: #ffffff;
}

.legal-document__content h4 {
  margin: 0;
  color: #0545c1;
  font-size: 1rem;
}

.legal-document__version {
  margin: 4px 0 12px;
  color: #69818e;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.legal-document__text {
  display: grid;
  gap: 10px;
  max-height: 190px;
  overflow: auto;
  padding: 12px;
  border-radius: 12px;
  background: #f3f8ff;
  color: #365363;
  font-size: 0.92rem;
  line-height: 1.5;
}

.legal-document__text p {
  margin: 0;
}

.legal-document__acceptance {
  align-items: flex-start;
}

.signature-field {
  display: grid;
  gap: 8px;
}

.signature-field__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #0545c1;
  font-weight: 800;
}

.signature-field__top button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(5, 69, 193, 0.1);
  color: #0545c1;
  font-weight: 800;
  cursor: pointer;
}

.signature-canvas {
  width: 100%;
  min-height: 180px;
  border: 2px dashed rgba(5, 69, 193, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 252, 0.96)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 34px,
      rgba(5, 69, 193, 0.08) 35px
    );
  touch-action: none;
}

.error {
  min-height: 16px;
  color: var(--danger);
  font-size: 0.82rem;
}

.submit-btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(140deg, #0270e5, #0545c1);
  box-shadow: 0 8px 18px rgba(5, 69, 193, 0.2);
}

.submit-btn:disabled {
  opacity: 0.66;
  cursor: not-allowed;
}

.form-feedback {
  margin: 0;
  min-height: 20px;
  font-size: 0.92rem;
}

.form-feedback.is-error {
  color: var(--danger);
}

.form-feedback.is-success {
  color: var(--success);
}

.premium-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
}

.premium-modal[hidden] {
  display: none;
}

.premium-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 28, 40, 0.58);
  backdrop-filter: blur(5px);
  animation: booking-modal-fade 180ms ease-out both;
}

.premium-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border: 1px solid rgba(22, 185, 228, 0.28);
  border-radius: 24px;
  background: linear-gradient(165deg, #ffffff 0%, #f3f8ff 100%);
  box-shadow: 0 28px 80px rgba(4, 28, 40, 0.32);
  padding: 28px;
  text-align: center;
  outline: 0;
  animation: booking-modal-enter 220ms ease-out both;
}

.premium-modal__dialog:focus-visible {
  box-shadow:
    0 28px 80px rgba(4, 28, 40, 0.32),
    0 0 0 4px rgba(22, 185, 228, 0.24);
}

.premium-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: #365363;
  display: grid;
  place-items: center;
  padding: 0;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.premium-modal__close:hover {
  border-color: #c9d7de;
  background: #f1f9ff;
}

.premium-modal__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 2px 48px 16px;
}

.modal-isotipo {
  display: block;
  width: auto;
  height: 40px;
}

.modal-wordmark {
  display: block;
  width: auto;
  height: 18px;
  max-width: 190px;
  object-fit: contain;
}

.premium-modal__icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0270e5, var(--brand));
  box-shadow: 0 14px 30px rgba(5, 69, 193, 0.24);
  animation: booking-modal-icon 320ms 80ms ease-out both;
}

.premium-modal__icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.premium-modal__dialog h2 {
  margin: 0;
  color: #092a5e;
  font-size: clamp(1.65rem, 4vw, 2rem);
  line-height: 1.15;
}

.premium-modal__lead {
  margin: 9px 0 0;
  color: #53707f;
  font-size: 1rem;
  line-height: 1.5;
}

.premium-modal__summary {
  margin: 22px 0 18px;
  border: 1px solid rgba(22, 185, 228, 0.24);
  border-radius: 16px;
  background: linear-gradient(155deg, var(--mint-soft), #f8fbff);
  padding: 8px 16px;
  text-align: left;
}

.premium-modal__detail {
  display: grid;
  grid-template-columns: minmax(100px, 0.38fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid rgba(5, 69, 193, 0.1);
}

.premium-modal__detail:last-child {
  border-bottom: 0;
}

.premium-modal__detail[hidden] {
  display: none;
}

.premium-modal__detail dt {
  color: #53707f;
  font-size: 0.85rem;
  font-weight: 600;
}

.premium-modal__detail dd {
  min-width: 0;
  margin: 0;
  color: #092a5e;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.premium-modal__secondary {
  margin: 0;
  color: #53707f;
  font-size: 0.9rem;
  line-height: 1.55;
}

.premium-modal__confirm {
  width: 100%;
  min-height: 48px;
  margin-top: 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(140deg, #0270e5, #0545c1);
  color: #fff;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(5, 69, 193, 0.22);
}

.premium-modal__confirm:hover {
  background: linear-gradient(140deg, #0270e5, #0545c1);
}

.premium-modal__close:focus-visible,
.premium-modal__confirm:focus-visible {
  outline: 3px solid rgba(22, 185, 228, 0.38);
  outline-offset: 3px;
}

@keyframes booking-modal-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes booking-modal-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes booking-modal-icon {
  from {
    opacity: 0;
    transform: scale(0.76);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.site-footer {
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(125deg, #092a5e, #0545c1);
}

.site-footer-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.footer-item {
  display: grid;
  gap: 2px;
  color: rgba(255, 255, 255, 0.95);
  justify-items: center;
}

.footer-item strong {
  font-size: 0.95rem;
}

.footer-item span {
  font-size: 0.84rem;
  line-height: 1.35;
  opacity: 0.94;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
}

.footer-logo {
  width: auto;
  height: 34px;
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
  display: block;
}

.footer-item-right {
  text-align: center;
}

.footer-center-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  margin: 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ffffff;
}

.footer-isotipo {
  display: block;
  width: auto;
  height: 32px;
}

.footer-wordmark {
  display: block;
  width: auto;
  height: 15px;
  max-width: 150px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .main-shell {
    padding-top: 24px;
  }

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

  .mode-selector {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .slot-list.fisio-hours-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    padding-top: 14px;
    padding-bottom: 14px;
    text-align: center;
  }

  .footer-item-right {
    text-align: center;
  }
}

.privacy-notice {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #dce6eb;
  border-radius: 8px;
  background: #f1f9ff;
  color: #53707f;
}

.privacy-notice strong {
  display: block;
  margin-bottom: 5px;
  color: #0545c1;
}

.privacy-notice p {
  margin: 0;
  line-height: 1.55;
}

.privacy-notice a {
  display: inline-block;
  margin-top: 7px;
  color: #0270e5;
  font-weight: 700;
}

.privacy-notice.is-error {
  border-color: #e9b7b2;
  background: #fff4f2;
}

.privacy-notice.is-error strong,
.privacy-notice.is-error p {
  color: #9f2d26;
}

@media (max-width: 680px) {
  .topbar-inner {
    min-height: auto;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    margin: 0 auto;
  }

  .security-badge {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    justify-content: center;
  }

  .booking-card {
    padding: 16px;
  }

  .booking-main {
    padding: 14px;
  }

  .fisio-day-carousel {
    display: block;
  }

  /* Las flechas son solo para escritorio; en móvil se recorre con el dedo. */
  .fisio-day-arrow {
    display: none;
  }

  .fisio-day-list {
    width: 100%;
  }

  .slot-list.fisio-hours-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .slot-list.day-hours-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .premium-modal__dialog {
    padding: 24px 18px 20px;
  }

  .premium-modal__brand {
    margin-right: 40px;
    margin-left: 40px;
  }

  .premium-modal__summary {
    padding-right: 14px;
    padding-left: 14px;
  }

  .premium-modal__detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

@media (max-width: 340px) {
  .slot-list.day-hours-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .slot-list.fisio-hours-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-modal__backdrop,
  .premium-modal__dialog,
  .premium-modal__icon {
    animation: none;
  }
}
