/*
 * Mejoras responsive compartidas de Turnos by Geros.
 * Se carga después de las hojas originales y conserva la identidad de cada tema.
 */
:root {
  --mobile-tap-size: 44px;
  --mobile-gutter: clamp(14px, 4vw, 22px);
}

img,
video,
iframe {
  max-width: 100%;
}

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

/* Panel de gestión: una acción de instalación clara en el inicio móvil. */
.mobile-install-card {
  display: none;
}

.mobile-install-help {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 25, 43, .52);
  backdrop-filter: blur(5px);
}

.mobile-install-help[hidden] {
  display: none !important;
}

.mobile-install-help__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.mobile-install-help__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  max-height: min(88dvh, 720px);
  overflow: auto;
  padding: 26px;
  border: 1px solid #d9e8eb;
  border-radius: 22px;
  background: #fff;
  color: #12334e;
  box-shadow: 0 24px 70px rgba(7, 30, 46, .24);
}

.mobile-install-help__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 1px solid #d8e8ea;
  border-radius: 12px;
  background: #fff;
  color: #173d69;
  font-size: 24px;
}

.mobile-install-help__eyebrow {
  margin: 0 52px 8px 0;
  color: #078e86;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mobile-install-help__dialog h2 {
  margin: 0 44px 10px 0;
  color: #0d2740;
  font-size: clamp(22px, 6vw, 28px);
  line-height: 1.15;
}

.mobile-install-help__dialog p,
.mobile-install-help__dialog li {
  color: #587086;
  font-size: 15px;
  line-height: 1.55;
}

.mobile-install-help__dialog ol {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.mobile-install-help__done {
  width: 100%;
  min-height: var(--mobile-tap-size);
  margin-top: 6px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #0bb3a6, #13a7c7);
  color: #fff;
  font-weight: 800;
}

@media (max-width: 900px) {
  html,
  body.ge-public-body,
  body.bk2 {
    max-width: 100%;
    overflow-x: clip;
  }

  /* Todas las plantillas públicas clásicas: fluye una columna y mantiene su tema. */
  .ge-public-shell {
    width: 100%;
    overflow-x: clip;
  }

  .ge-public-shell .ge-page[data-template] {
    width: 100%;
    min-width: 0;
    min-height: 100svh;
  }

  .ge-public-shell .ge-site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    height: auto;
    min-height: 60px;
    padding: 10px var(--mobile-gutter);
    padding-top: max(10px, env(safe-area-inset-top));
    background: var(--tpl-header, #fff);
    box-shadow: 0 1px 0 var(--tpl-line, rgba(16, 39, 56, .08));
  }

  .ge-public-shell .ge-brand {
    flex: 1 1 150px;
    min-width: 0;
    max-width: calc(100% - 126px);
    overflow: hidden;
  }

  .ge-public-shell .ge-brand > :last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ge-public-shell .ge-site-cta {
    flex: 0 0 auto;
    max-width: 132px;
    min-width: var(--mobile-tap-size);
    min-height: var(--mobile-tap-size);
    padding: 9px 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ge-public-shell .ge-site-nav {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    min-width: 0;
    display: flex;
    gap: 2px;
    overflow-x: auto;
    padding: 2px 0 4px;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .ge-public-shell .ge-site-nav::-webkit-scrollbar {
    display: none;
  }

  .ge-public-shell .ge-site-nav a {
    flex: 0 0 auto;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
    border-radius: 999px;
    font-size: 12px;
    white-space: nowrap;
  }

  .ge-public-shell .ge-page[data-template] .ge-hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: clamp(28px, 7vw, 56px) var(--mobile-gutter);
  }

  .ge-public-shell .ge-page[data-template] .ge-hero-copy,
  .ge-public-shell .ge-page[data-template] .ge-hero-media,
  .ge-public-shell .ge-page[data-template] .ge-hero-actions {
    min-width: 0;
    max-width: 100%;
  }

  .ge-public-shell .ge-page[data-template] .ge-hero h1 {
    max-width: 18ch;
    font-size: clamp(2.2rem, 9vw, 3.5rem);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .ge-public-shell .ge-page[data-template] .ge-hero p {
    max-width: 58ch;
    font-size: 16px;
    line-height: 1.55;
  }

  .ge-public-shell .ge-page[data-template] .ge-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: min(100%, 420px);
  }

  .ge-public-shell .ge-page[data-template] .ge-main-btn,
  .ge-public-shell .ge-page[data-template] .ge-ghost-btn,
  .ge-public-shell .ge-page[data-template] .ge-card-btn,
  .ge-public-shell .ge-page[data-template] [data-reserve] {
    min-height: var(--mobile-tap-size);
    max-width: 100%;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
    touch-action: manipulation;
  }

  .ge-public-shell .ge-page[data-template] .ge-section {
    min-width: 0;
    padding: clamp(32px, 7vw, 54px) var(--mobile-gutter);
    scroll-margin-top: 118px;
  }

  .ge-public-shell .ge-page[data-template] .ge-section-head,
  .ge-public-shell .ge-page[data-template] .ge-team-wrap,
  .ge-public-shell .ge-page[data-template] .ge-location,
  .ge-public-shell .ge-page[data-template] .ge-faq {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .ge-public-shell .ge-page[data-template] .ge-section h2,
  .ge-public-shell .ge-page[data-template] .ge-faq-intro h2 {
    font-size: clamp(1.9rem, 7vw, 2.7rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .ge-public-shell .ge-page[data-template] .ge-service-grid,
  .ge-public-shell .ge-page[data-template] .ge-team-grid,
  .ge-public-shell .ge-page[data-template] .ge-results-grid,
  .ge-public-shell .ge-page[data-template] .ge-location,
  .ge-public-shell .ge-page[data-template] .ge-faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .ge-public-shell .ge-page[data-template] .ge-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px var(--mobile-gutter);
  }

  .ge-public-shell .ge-page[data-template] .ge-metric,
  .ge-public-shell .ge-page[data-template] .ge-service-card,
  .ge-public-shell .ge-page[data-template] .ge-pro-card,
  .ge-public-shell .ge-page[data-template] .ge-location-card,
  .ge-public-shell .ge-page[data-template] .ge-map-card {
    min-width: 0;
  }

  .ge-public-shell .ge-page[data-template] .ge-service-card {
    overflow: hidden;
  }

  .ge-public-shell .ge-page[data-template] .ge-service-img,
  .ge-public-shell .ge-page[data-template] .ge-pro-photo {
    max-width: 100%;
  }

  .ge-public-shell .ge-page[data-template] .ge-service-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .ge-public-shell .ge-page[data-template] .ge-service-meta > div {
    min-width: 0;
  }

  .ge-public-shell .ge-page[data-template] .ge-card-btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .ge-public-shell .ge-page[data-template] .ge-gallery-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ge-public-shell .ge-page[data-template] .ge-booking-integrated {
    padding: 34px var(--mobile-gutter) !important;
    scroll-margin-top: 118px;
  }

  .ge-public-shell .ge-page[data-template] .ge-booking-frame-shell {
    min-width: 0;
    margin-top: 14px;
    padding: 8px;
    border-radius: 16px;
  }

  .ge-public-shell .ge-page[data-template] .ge-booking-frame {
    width: 100%;
    min-height: 780px;
    height: min(940px, 112svh);
  }

  .ge-public-shell .ge-page[data-template] .ge-faq-item summary {
    min-height: var(--mobile-tap-size);
    gap: 12px;
    line-height: 1.4;
  }

  .ge-public-shell .ge-page[data-template] .ge-promo-card {
    width: min(100%, 480px);
    max-height: calc(100dvh - 28px);
    overflow: auto;
    overscroll-behavior: contain;
  }

  /* Variantes editoriales y de agenda: se apilan sin perder su carácter. */
  .ge-public-shell .ge-vx {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .ge-public-shell .split-booking-vx,
  .ge-public-shell .agenda-direct-vx,
  .ge-public-shell .showcase-vx,
  .ge-public-shell .marketplace-vx,
  .ge-public-shell .team-first-vx,
  .ge-public-shell .minimal-one-vx,
  .ge-public-shell .studio-cards-vx,
  .ge-public-shell .booking-wizard-vx,
  .ge-public-shell .hair-atelier-vx,
  .ge-public-shell .aura-estetica-vx,
  .ge-public-shell .barber-club-vx,
  .ge-public-shell .modal-booking-vx {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: clamp(22px, 5vw, 38px) var(--mobile-gutter);
  }

  .ge-public-shell .vx-split-photo,
  .ge-public-shell .vx-app-head,
  .ge-public-shell .vx-app-body,
  .ge-public-shell .vx-show-copy,
  .ge-public-shell .vx-wizard-stage,
  .ge-public-shell .vx-team-head,
  .ge-public-shell .vx-pro-services,
  .ge-public-shell .ha-hero,
  .ge-public-shell .ae-hero,
  .ge-public-shell .bc-hero-grid,
  .ge-public-shell .mb-hero,
  .ge-public-shell .mb-how {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  .ge-public-shell .vx-split-photo {
    min-height: clamp(420px, 72svh, 560px);
    padding: 22px;
  }

  .ge-public-shell .vx-booking-card,
  .ge-public-shell .vx-app-body,
  .ge-public-shell .vx-wizard-stage,
  .ge-public-shell .vx-studio-hero,
  .ge-public-shell .ha-menu,
  .ge-public-shell .ha-crew,
  .ge-public-shell .ae-rituals,
  .ge-public-shell .bc-menu,
  .ge-public-shell .bc-crew,
  .ge-public-shell .mb-services,
  .ge-public-shell .mb-how {
    padding: 22px var(--mobile-gutter);
  }

  .ge-public-shell .vx-five-steps {
    display: flex;
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
    padding: 4px 0 8px;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .ge-public-shell .vx-five-steps > div {
    flex: 0 0 72px;
    min-width: 0;
  }

  .ge-public-shell .vx-five-steps b {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
  }

  .ge-public-shell .vx-five-steps small {
    display: block;
    max-width: 72px;
    font-size: 11px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .ge-public-shell .vx-app-head h1,
  .ge-public-shell .vx-show-copy h1,
  .ge-public-shell .vx-team-head h1,
  .ge-public-shell .vx-studio-hero h1,
  .ge-public-shell .ha-copy h1,
  .ge-public-shell .ae-intro h1,
  .ge-public-shell .bc-hero h1,
  .ge-public-shell .mb-hero h1,
  .ge-public-shell .minimal-one-vx h1 {
    font-size: clamp(2.2rem, 9vw, 3.5rem);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .ge-public-shell .vx-split-photo .vx-split-copy,
  .ge-public-shell .vx-app-head > div,
  .ge-public-shell .vx-show-copy,
  .ge-public-shell .vx-studio-hero > div,
  .ge-public-shell .ha-copy,
  .ge-public-shell .ae-intro,
  .ge-public-shell .bc-hero-grid > div {
    width: 100%;
    min-width: 0;
  }

  .ge-public-shell .vx-service-list,
  .ge-public-shell .vx-market-grid,
  .ge-public-shell .vx-team-cards,
  .ge-public-shell .vx-pro-services,
  .ge-public-shell .vx-wizard-cards,
  .ge-public-shell .vx-studio-services,
  .ge-public-shell .vx-studio-team,
  .ge-public-shell .ha-services,
  .ge-public-shell .ha-crew-grid,
  .ge-public-shell .ae-ritual-list,
  .ge-public-shell .ae-experts,
  .ge-public-shell .bc-menu,
  .ge-public-shell .bc-crew-grid,
  .ge-public-shell .mb-service-grid {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  .ge-public-shell .vx-service-list > *,
  .ge-public-shell .vx-market-grid > *,
  .ge-public-shell .vx-team-cards > *,
  .ge-public-shell .vx-wizard-cards > *,
  .ge-public-shell .ha-services > *,
  .ge-public-shell .ha-crew-grid > *,
  .ge-public-shell .mb-service-grid > *,
  .ge-public-shell .bc-menu > div > button,
  .ge-public-shell .vx-studio-services > button {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .ge-public-shell .vx-service-list > button,
  .ge-public-shell .vx-market-grid article,
  .ge-public-shell .ha-services article,
  .ge-public-shell .bc-menu > div > button,
  .ge-public-shell .ae-ritual-list > button,
  .ge-public-shell .mb-service-grid article {
    min-height: var(--mobile-tap-size);
  }

  .ge-public-shell .vx-service-list > button,
  .ge-public-shell .vx-market-body,
  .ge-public-shell .vx-studio-services > button,
  .ge-public-shell .ha-services article,
  .ge-public-shell .ae-ritual-list > button,
  .ge-public-shell .bc-menu > div > button,
  .ge-public-shell .mb-service-grid article {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 10px;
  }

  .ge-public-shell .vx-service-list img,
  .ge-public-shell .vx-market-img,
  .ge-public-shell .vx-wizard-cards img,
  .ge-public-shell .vx-studio-services img {
    width: 100%;
    max-width: 100%;
    object-fit: cover;
  }

  .ge-public-shell .ha-image,
  .ge-public-shell .ae-orbit,
  .ge-public-shell .mb-hero-image,
  .ge-public-shell .bc-hero-grid figure {
    width: min(100%, 360px);
    min-height: 240px;
    max-height: 420px;
    margin-inline: auto;
  }

  .ge-public-shell .ge-main-btn,
  .ge-public-shell .ge-ghost-btn,
  .ge-public-shell .vx-booking-card [data-reserve],
  .ge-public-shell .vx-service-list [data-reserve],
  .ge-public-shell .vx-market-grid [data-reserve],
  .ge-public-shell .vx-team-cards [data-reserve],
  .ge-public-shell .vx-pro-services [data-reserve],
  .ge-public-shell .vx-wizard-footer button,
  .ge-public-shell .ha-services [data-reserve],
  .ge-public-shell .ha-crew-grid [data-reserve],
  .ge-public-shell .bc-menu [data-reserve],
  .ge-public-shell .bc-crew-grid [data-reserve],
  .ge-public-shell .mb-service-grid [data-reserve] {
    min-height: var(--mobile-tap-size);
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .ge-public-shell .vx-wizard-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .ge-public-shell .vx-chips {
    display: flex;
    max-width: 100%;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 8px;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .ge-public-shell .vx-chips > * {
    flex: 0 0 auto;
    min-height: 38px;
  }

  .ge-public-shell .modal-booking-vx .mb-hero {
    gap: 20px;
    padding: 30px var(--mobile-gutter);
  }

  .ge-public-shell .mb-booking-modal {
    padding: 0;
    padding-top: env(safe-area-inset-top);
  }

  .ge-public-shell .mb-modal-dialog {
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    border-radius: 0;
  }

  .ge-public-shell .mb-modal-head {
    padding: 22px 58px 16px var(--mobile-gutter);
  }

  .ge-public-shell .mb-modal-close {
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    width: var(--mobile-tap-size);
    height: var(--mobile-tap-size);
  }

  .ge-public-shell .ge-public-footer {
    padding: 18px var(--mobile-gutter) calc(18px + env(safe-area-inset-bottom));
    line-height: 1.45;
  }

  /* Flujo de reserva compartido por belleza, barbería, salud, automotor y serenidad. */
  html body.bk2.public-page .public-shell {
    min-height: 100svh;
    padding: 12px 12px calc(118px + env(safe-area-inset-bottom));
  }

  html body.bk2.public-page .public-wrap {
    width: 100%;
    max-width: 100%;
  }

  html body.bk2.public-page .public-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px 12px;
    padding: 0 0 12px;
  }

  body.bk2 .public-brand {
    flex: 1 1 180px;
    min-width: 0;
    gap: 10px;
  }

  body.bk2 .public-brand-copy {
    min-width: 0;
  }

  body.bk2 .public-brand-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 19px;
  }

  body.bk2 .public-secure-badge {
    display: none;
  }

  body.bk2 .completion-top-nav {
    flex: 1 0 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body.bk2 .completion-top-nav button {
    min-height: 40px;
    white-space: nowrap;
  }

  html body.bk2.public-page .public-hero {
    padding: 4px 0 16px !important;
  }

  body.bk2 .public-hero h1 {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  body.bk2 .public-hero p {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.5;
  }

  html body.bk2.public-page .steps,
  html body.bk2.public-page .steps.steps-four {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0;
    margin: 0 0 14px;
  }

  body.bk2 .steps .step {
    min-width: 0;
    gap: 7px;
  }

  body.bk2 .steps .step span {
    display: none;
  }

  body.bk2 .steps .step.active span {
    display: inline;
    max-width: 12ch;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
  }

  body.bk2 .steps .step::after {
    min-width: 8px;
    margin: 0 5px;
  }

  body.bk2 .steps .step .num {
    width: 28px;
    height: 28px;
  }

  html body.bk2.public-page .bk-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  body.bk2 .bk-main {
    min-width: 0;
    padding: 20px 14px 18px;
    border-radius: 18px;
  }

  body.bk2 .bk-head h2 {
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  body.bk2 .bk-head p {
    font-size: 14.5px;
    line-height: 1.5;
  }

  body.bk2 .bk-block {
    margin-top: 24px;
  }

  body.bk2 .bk-block-title {
    gap: 9px;
    margin-bottom: 11px;
  }

  body.bk2 .bk-block-title h3 {
    min-width: 0;
    font-size: 16px;
  }

  body.bk2 .bk-service-list,
  body.bk2 .bk-addon-list,
  body.bk2 .bk-pro-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body.bk2 .bk-service {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border-radius: 14px;
  }

  body.bk2 .bk-service-thumb {
    width: 56px;
    height: 56px;
  }

  body.bk2 .bk-service-name {
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  body.bk2 .bk-service-desc {
    font-size: 13px;
  }

  body.bk2 .bk-service-meta {
    gap: 5px 8px;
    font-size: 12px;
  }

  body.bk2 .bk-service-side {
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-top: 9px;
    border-top: 1px dashed var(--bk-line-strong);
  }

  body.bk2 .bk-addon,
  body.bk2 .bk-pro-main {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 13px;
  }

  body.bk2 .bk-pro-main {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  body.bk2 .bk-avatar {
    width: 48px;
    height: 48px;
  }

  body.bk2 .bk-link {
    margin: 0 12px 13px 72px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  body.bk2 .bk-schedule {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 18px;
  }

  body.bk2 .bk-cal,
  body.bk2 .bk-times {
    min-width: 0;
    padding: 13px;
  }

  body.bk2 .bk-cal-grid {
    gap: 3px;
  }

  body.bk2 .bk-cal-day,
  body.bk2 .bk-time-btn,
  body.bk2 .bk-icon-btn {
    min-width: 0;
    min-height: var(--mobile-tap-size);
  }

  body.bk2 .bk-time-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  body.bk2 .bk-time-btn {
    padding-inline: 5px;
    font-size: 13px;
  }

  body.bk2 .bk-form,
  body.bk2 .customer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  body.bk2 .bk-field-full {
    grid-column: auto;
  }

  body.bk2 .bk-field input,
  body.bk2 .bk-field select,
  body.bk2 .bk-field textarea,
  body.bk2 .bk-phone input,
  body.bk2 .bk-phone select {
    width: 100%;
    min-width: 0;
    min-height: var(--mobile-tap-size);
    font-size: 16px;
  }

  body.bk2 .bk-phone {
    display: grid;
    grid-template-columns: minmax(92px, .38fr) minmax(0, 1fr);
    gap: 8px;
  }

  body.bk2 .bk-phone input[type="hidden"] {
    display: none;
  }

  body.bk2 .bk-actions {
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    gap: 7px 8px;
  }

  body.bk2 .bk-actions-main .bk-btn,
  body.bk2 #bkBack {
    min-height: 48px;
  }

  body.bk2 .bk-actions-main .bk-btn {
    padding: 8px 10px;
    font-size: 14px;
  }

  body.bk2 .bk-summary {
    max-height: 78dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: calc(110px + env(safe-area-inset-bottom));
  }

  body.bk2 .bk-summary .sum-row {
    gap: 10px;
    overflow-wrap: anywhere;
  }

  body.bk2 .copy-row {
    align-items: stretch;
    flex-wrap: wrap;
  }

  body.bk2 .copy-value {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body.bk2 .completion-grid,
  body.bk2 .completion-action-row {
    grid-template-columns: minmax(0, 1fr);
  }

  body.bk2 .completion-actions button,
  body.bk2 .completion-action-row button {
    width: 100%;
    min-height: var(--mobile-tap-size);
  }

  /* Panel de gestión: mejoras compartidas para formularios, tablas y diálogos. */
  body.geros-app-theme .content {
    max-width: 100%;
    overflow-x: clip;
  }

  body.geros-app-theme .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  body.geros-app-theme .toolbar,
  body.geros-app-theme .detail-actions {
    gap: 8px;
  }

  body.geros-app-theme .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.geros-app-theme input,
  body.geros-app-theme select,
  body.geros-app-theme textarea {
    max-width: 100%;
    min-height: var(--mobile-tap-size);
    font-size: 16px;
  }

  body.geros-app-theme .modal {
    align-items: end;
    padding: 12px 12px max(12px, env(safe-area-inset-bottom));
  }

  body.geros-app-theme .modal-box {
    width: 100%;
    max-width: 760px;
    max-height: min(90dvh, 920px);
    overflow: auto;
    overscroll-behavior: contain;
    border-radius: 20px 20px 16px 16px;
    padding: 18px;
  }

  body.geros-app-theme .modal-head {
    position: sticky;
    top: -18px;
    z-index: 2;
    padding: 4px 0 12px;
    background: #fff;
  }

  body.geros-app-theme table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.geros-app-theme th,
  body.geros-app-theme td {
    min-width: 92px;
  }

  body.geros-app-theme button,
  body.geros-app-theme a.primary,
  body.geros-app-theme a.secondary {
    touch-action: manipulation;
  }
}

@media (max-width: 760px) {
  .login-form-card .mobile-install-card {
    margin: 14px 0 0;
  }

  .mobile-install-card {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 14px 14px 0;
    padding: 14px;
    border: 1px solid #cae9e6;
    border-radius: 18px;
    background: linear-gradient(120deg, #f2fbfa, #fff 78%);
    box-shadow: 0 8px 22px rgba(12, 96, 100, .06);
  }

  .mobile-install-card__icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #dff7f4;
    color: #078e86;
  }

  .mobile-install-card__icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-install-card__copy {
    flex: 1 1 auto;
    min-width: 0;
  }

  .mobile-install-card__copy strong {
    display: block;
    color: #123d58;
    font-size: 14px;
    line-height: 1.25;
  }

  .mobile-install-card__copy span {
    display: block;
    margin-top: 3px;
    color: #648090;
    font-size: 12px;
    line-height: 1.35;
  }

  .mobile-install-card__button {
    flex: 0 0 auto;
    min-height: var(--mobile-tap-size);
    padding: 0 13px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #0bb3a6, #13a7c7);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(11, 179, 166, .18);
  }

  .mobile-install-help {
    align-items: end;
    padding: 12px 12px max(12px, env(safe-area-inset-bottom));
  }

  .mobile-install-help__dialog {
    width: 100%;
    max-height: min(86dvh, 680px);
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 16px 16px;
  }

  body.geros-app-theme .topbar {
    padding-top: max(6px, env(safe-area-inset-top));
  }

  body.bk2 .public-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .ge-public-shell .ge-page[data-template] .ge-hero-media {
    min-height: 220px;
  }

  .ge-public-shell .ge-page[data-template="barber"] .ge-hero {
    min-height: clamp(420px, 72svh, 540px);
  }

  .ge-public-shell .ge-page[data-template] .ge-hero h1 {
    font-size: clamp(2.05rem, 9.2vw, 3.2rem);
  }
}

@media (max-width: 420px) {
  .ge-public-shell .ge-page[data-template] .ge-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .ge-public-shell .ge-site-cta {
    max-width: 112px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .ge-public-shell .ge-site-header {
    column-gap: 8px;
  }

  .ge-public-shell .ge-site-nav {
    margin-inline: -2px;
  }

  body.bk2 .bk-time-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.bk2 .bk-service {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }

  body.bk2 .bk-service-thumb {
    width: 48px;
    height: 48px;
  }

  .mobile-install-card {
    gap: 9px;
    margin-inline: 10px;
    padding: 11px;
  }

  .mobile-install-card__icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .mobile-install-card__copy strong {
    font-size: 12.5px;
  }

  .mobile-install-card__copy span {
    font-size: 11px;
  }

  .mobile-install-card__button {
    padding-inline: 10px;
    font-size: 12px;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .ge-public-shell .ge-page[data-template] .ge-hero {
    min-height: 0;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .ge-public-shell .ge-page[data-template="barber"] .ge-hero {
    min-height: min(100svh, 500px);
  }

  .ge-public-shell .ge-page[data-template] .ge-hero-media {
    max-height: 72svh;
  }

  .ge-public-shell .mb-modal-dialog {
    height: 100dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ge-public-shell *,
  body.bk2 *,
  body.geros-app-theme .mobile-install-card * {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}


/* Ajuste integral móvil de las plantillas públicas.
   Restablece grids que la hoja histórica convertía en carruseles horizontales y
   da proporciones/tamaños táctiles consistentes a fotos, servicios y equipo. */
@media (max-width: 900px) {
  .ge-public-shell,
  .ge-public-shell .ge-page[data-template] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  .ge-public-shell .ge-page[data-template] .ge-site-header {
    height: auto;
    min-height: 60px;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px var(--mobile-gutter, 16px);
  }

  .ge-public-shell .ge-page[data-template] .ge-brand {
    flex: 1 1 140px;
    min-width: 0;
    overflow: hidden;
  }

  .ge-public-shell .ge-page[data-template] .ge-site-nav {
    order: 3;
    flex: 1 0 100%;
    min-width: 0;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .ge-public-shell .ge-page[data-template] .ge-site-nav::-webkit-scrollbar { display: none; }
  .ge-public-shell .ge-page[data-template] .ge-site-nav a { flex: 0 0 auto; min-height: 38px; display: inline-flex; align-items: center; }
  .ge-public-shell .ge-page[data-template] .ge-site-cta { min-height: 44px; max-width: 44%; white-space: normal; line-height: 1.2; }

  .ge-public-shell .ge-page[data-template] .ge-hero {
    width: 100%;
    min-width: 0;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 30px var(--mobile-gutter, 16px);
  }

  .ge-public-shell .ge-page[data-template] .ge-hero-copy,
  .ge-public-shell .ge-page[data-template] .ge-hero-media,
  .ge-public-shell .ge-page[data-template] .ge-hero-actions { min-width: 0; max-width: 100%; }

  .ge-public-shell .ge-page[data-template] .ge-hero h1 {
    max-width: 100%;
    font-size: clamp(30px, 9vw, 46px);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .ge-public-shell .ge-page[data-template] .ge-hero p { font-size: 15px; line-height: 1.55; }
  .ge-public-shell .ge-page[data-template] .ge-hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; gap: 10px; }
  .ge-public-shell .ge-page[data-template] .ge-main-btn,
  .ge-public-shell .ge-page[data-template] .ge-ghost-btn,
  .ge-public-shell .ge-page[data-template] .ge-card-btn,
  .ge-public-shell .ge-page[data-template] [data-reserve] { min-height: 44px; max-width: 100%; white-space: normal; overflow-wrap: anywhere; touch-action: manipulation; }

  .ge-public-shell .ge-page[data-template]:not([data-template="barber"]) .ge-hero-media {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 420px;
    aspect-ratio: .94 / 1;
    border-radius: min(24px, var(--card-radius, 24px));
  }

  /* La barbería conserva su portada editorial con foto a sangre, pero se limita
     la altura y se protege el texto para pantallas de 320–430 px. */
  .ge-public-shell .ge-page[data-template="barber"] .ge-hero {
    display: flex;
    align-items: flex-end;
    min-height: clamp(360px, 88svh, 500px);
    padding: 28px var(--mobile-gutter, 16px);
    position: relative;
    isolation: isolate;
  }
  .ge-public-shell .ge-page[data-template="barber"] .ge-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; border-radius: 0; z-index: -2; }
  .ge-public-shell .ge-page[data-template="barber"] .ge-hero-copy { width: 100%; padding: 0; }
  .ge-public-shell .ge-page[data-template="barber"] .ge-hero h1 { font-size: clamp(32px, 10vw, 48px); line-height: 1.02; }

  .ge-public-shell .ge-page[data-template] .ge-section {
    min-width: 0;
    padding: 34px var(--mobile-gutter, 16px);
    scroll-margin-top: 112px;
  }
  .ge-public-shell .ge-page[data-template] .ge-section h2,
  .ge-public-shell .ge-page[data-template] .ge-faq-intro h2 { font-size: clamp(26px, 7.5vw, 38px); line-height: 1.08; overflow-wrap: anywhere; }

  /* Antes existía un display:flex horizontal heredado en la grilla de servicios;
     fijamos una tarjeta completa por fila y eliminamos el desbordamiento lateral. */
  .ge-public-shell .ge-page[data-template] .ge-service-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-columns: auto;
    gap: 12px;
    width: 100%;
    min-width: 0;
    overflow: visible !important;
    padding: 0;
    scroll-snap-type: none;
  }
  .ge-public-shell .ge-page[data-template] .ge-service-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto 1fr;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    scroll-snap-align: none;
  }
  .ge-public-shell .ge-page[data-template] .ge-service-img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
  }
  .ge-public-shell .ge-page[data-template] .ge-service-img img,
  .ge-public-shell .ge-page[data-template] .ge-pro-photo img,
  .ge-public-shell .ge-page[data-template] .ge-before-after img,
  .ge-public-shell .ge-page[data-template] .ge-gallery-tile img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
  }
  .ge-public-shell .ge-page[data-template] .ge-service-body { min-width: 0; padding: 16px; }
  .ge-public-shell .ge-page[data-template] .ge-service-card h3 { font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
  .ge-public-shell .ge-page[data-template] .ge-service-card p { min-height: 0; overflow-wrap: anywhere; }
  .ge-public-shell .ge-page[data-template] .ge-service-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    min-width: 0;
  }
  .ge-public-shell .ge-page[data-template] .ge-service-meta > div { min-width: 0; overflow-wrap: anywhere; }
  .ge-public-shell .ge-page[data-template] .ge-service-meta .ge-card-btn { width: 100%; min-height: 44px; }

  .ge-public-shell .ge-page[data-template] .ge-team-wrap,
  .ge-public-shell .ge-page[data-template] .ge-location,
  .ge-public-shell .ge-page[data-template] .ge-results-grid,
  .ge-public-shell .ge-page[data-template] .ge-faq {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    min-width: 0;
  }
  .ge-public-shell .ge-page[data-template] .ge-team-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px;
    width: 100%;
    min-width: 0;
    overflow: visible !important;
  }
  .ge-public-shell .ge-page[data-template] .ge-pro-card { width: 100%; min-width: 0; }
  .ge-public-shell .ge-page[data-template] .ge-pro-photo { width: min(100%, 220px); height: auto; aspect-ratio: 1 / 1; margin-inline: auto; }
  .ge-public-shell .ge-page[data-template][data-team-layout="compact"] .ge-pro-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 10px; }
  .ge-public-shell .ge-page[data-template][data-team-layout="compact"] .ge-pro-photo { width: 64px; height: 64px; aspect-ratio: 1; }
  .ge-public-shell .ge-page[data-template][data-team-layout="compact"] .ge-pro-card > .ge-card-btn { grid-column: 1 / -1; width: 100%; }
  .ge-public-shell .ge-page[data-template] .ge-before-after { width: 100%; min-height: 0; aspect-ratio: 4 / 3; }
  .ge-public-shell .ge-page[data-template] .ge-gallery-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 10px; }
  .ge-public-shell .ge-page[data-template] .ge-gallery-tile { min-width: 0; min-height: 0; aspect-ratio: 1 / 1; }
  .ge-public-shell .ge-page[data-template] .ge-location-card,
  .ge-public-shell .ge-page[data-template] .ge-map-card { width: 100%; min-width: 0; padding: 18px; }
  .ge-public-shell .ge-page[data-template] .ge-map-iframe { width: 100%; min-height: 250px; }
  .ge-public-shell .ge-page[data-template] .ge-booking-frame-shell { width: 100%; max-width: 100%; min-width: 0; padding: 8px; }
  .ge-public-shell .ge-page[data-template] .ge-booking-frame { width: 100%; min-width: 0; }
  .ge-public-shell .ge-page[data-template] .ge-section-head { align-items: flex-start; flex-direction: column; gap: 12px; }

  /* Tarjetas de servicio con foto en layouts editoriales alternativos. */
  .ge-public-shell .ge-page[data-template="studiocards"] .vx-studio-services > button {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    padding: 10px;
    text-align: left;
  }
  .ge-public-shell .ge-page[data-template="studiocards"] .vx-studio-services > button img {
    width: 52px;
    height: 52px;
    aspect-ratio: 1;
    border-radius: 12px;
    object-fit: cover;
  }
  .ge-public-shell .ge-page[data-template="studiocards"] .vx-studio-services > button span,
  .ge-public-shell .ge-page[data-template="studiocards"] .vx-studio-services > button b { min-width: 0; overflow-wrap: anywhere; }
  .ge-public-shell .ge-page[data-template="studiocards"] .vx-studio-services > button strong { white-space: normal; text-align: right; }
  .ge-public-shell .ge-page[data-template="marketplace"] .vx-market-grid,
  .ge-public-shell .ge-page[data-template="teamfirst"] .vx-team-cards,
  .ge-public-shell .ge-page[data-template="teamfirst"] .vx-pro-services { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
  .ge-public-shell .ge-page[data-template="marketplace"] .vx-market-grid > article,
  .ge-public-shell .ge-page[data-template="teamfirst"] .vx-team-cards > article { width: 100%; min-width: 0; }
  .ge-public-shell .ge-page[data-template="marketplace"] .vx-market-img { width: 100%; aspect-ratio: 16 / 10; min-height: 0; overflow: hidden; }
  .ge-public-shell .ge-page[data-template="marketplace"] .vx-market-img img,
  .ge-public-shell .ge-page[data-template="teamfirst"] .vx-team-photo img,
  .ge-public-shell .ge-page[data-template="teamfirst"] .vx-pro-services img { width: 100%; height: 100%; object-fit: cover; }
  .ge-public-shell .ge-page[data-template="teamfirst"] .vx-pro-services > div { grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-width: 0; }
  .ge-public-shell .ge-page[data-template="teamfirst"] .vx-pro-services > div img { width: 52px; height: 52px; border-radius: 12px; }

  /* Rituales y cartas sin imágenes: conservar la jerarquía sin columnas estrechas. */
  .ge-public-shell .ge-page[data-template="hairatelier"] .ha-services > article { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: start; gap: 9px; min-width: 0; }
  .ge-public-shell .ge-page[data-template="hairatelier"] .ha-services > article > div { min-width: 0; }
  .ge-public-shell .ge-page[data-template="hairatelier"] .ha-services > article > button { grid-column: 2 / -1; width: 100%; min-height: 44px; }
  .ge-public-shell .ge-page[data-template="auraestetica"] .ae-ritual-list > button { grid-template-columns: 32px minmax(0, 1fr) 18px; gap: 9px; min-width: 0; }
  .ge-public-shell .ge-page[data-template="auraestetica"] .ae-ritual-list > button span { min-width: 0; overflow-wrap: anywhere; }
  .ge-public-shell .ge-page[data-template="barberclub"] .bc-menu-list > button { grid-template-columns: 24px minmax(0, 1fr) auto 12px; gap: 7px; min-width: 0; }
  .ge-public-shell .ge-page[data-template="barberclub"] .bc-menu-list > button b,
  .ge-public-shell .ge-page[data-template="barberclub"] .bc-menu-list > button small { min-width: 0; overflow-wrap: anywhere; }
  .ge-public-shell .ge-page[data-template="barberclub"] .bc-menu-list > button small { font-size: 10px; }
  .ge-public-shell .ge-page[data-template="hairatelier"] .ha-copy h1,
  .ge-public-shell .ge-page[data-template="auraestetica"] .ae-intro h1,
  .ge-public-shell .ge-page[data-template="barberclub"] .bc-hero h1,
  .ge-public-shell .ge-page[data-template="modalbeauty"] .mb-hero h1,
  .ge-public-shell .ge-page[data-template="modalstudio"] .mb-hero h1 { font-size: clamp(30px, 10vw, 46px); line-height: 1.02; overflow-wrap: anywhere; }
  .ge-public-shell .ge-page[data-template="hairatelier"] .ha-image,
  .ge-public-shell .ge-page[data-template="barberclub"] .bc-hero figure { width: 100%; max-width: 100%; height: auto; min-height: 220px; aspect-ratio: 4 / 3; overflow: hidden; }
  .ge-public-shell .ge-page[data-template="auraestetica"] .ae-orbit { width: min(82vw, 320px); height: auto; aspect-ratio: 1; }
  .ge-public-shell .ge-page[data-template="auraestetica"] .ae-orbit img { width: 100%; height: 100%; object-fit: cover; }
  .ge-public-shell .ge-page[data-template="modalbeauty"] .mb-service-grid > article,
  .ge-public-shell .ge-page[data-template="modalstudio"] .mb-service-grid > article { grid-template-columns: 26px minmax(0, 1fr); gap: 8px; min-width: 0; }
  .ge-public-shell .ge-page[data-template="modalbeauty"] .mb-service-grid > article > div,
  .ge-public-shell .ge-page[data-template="modalstudio"] .mb-service-grid > article > div { min-width: 0; overflow-wrap: anywhere; }
  .ge-public-shell .ge-page[data-template="modalbeauty"] .mb-service-grid > article > button,
  .ge-public-shell .ge-page[data-template="modalstudio"] .mb-service-grid > article > button { grid-column: 2; width: 100%; min-height: 44px; }
  .ge-public-shell .ge-page[data-template="modalbeauty"] .mb-inline-booking-shell,
  .ge-public-shell .ge-page[data-template="modalstudio"] .mb-inline-booking-shell { width: 100%; min-width: 0; }
  .ge-public-shell .ge-page[data-template="modalbeauty"] .mb-booking-frame-inline,
  .ge-public-shell .ge-page[data-template="modalstudio"] .mb-booking-frame-inline { width: 100%; min-width: 0; }
}

@media (max-width: 420px) {
  .ge-public-shell .ge-page[data-template] .ge-site-cta { max-width: 42%; padding-inline: 10px; font-size: 11px; }
  .ge-public-shell .ge-page[data-template] .ge-service-body { padding: 14px; }
  .ge-public-shell .ge-page[data-template] .ge-service-meta { gap: 8px; }
  .ge-public-shell .ge-page[data-template] .ge-gallery-side { gap: 8px; }
  .ge-public-shell .ge-page[data-template="studiocards"] .vx-studio-services > button { grid-template-columns: 46px minmax(0, 1fr); }
  .ge-public-shell .ge-page[data-template="studiocards"] .vx-studio-services > button img { width: 46px; height: 46px; }
  .ge-public-shell .ge-page[data-template="studiocards"] .vx-studio-services > button strong { grid-column: 2; text-align: left; }
}
