/* UN TOQUE Tarifa: tarjetas 3D coherentes y textos legibles. */
.app-shell .service-page .action-card.service-card-3d {
  --card-shadow: 30 77 129;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0;
  padding: 0;
  border: 2px solid #4b8cc6;
  border-radius: 22px;
  background: linear-gradient(155deg, #f1f8ff 0%, #dcecff 69%, #cfe4fb 100%);
  color: #092f60;
  box-shadow: inset 0 2px 0 #fff, 0 5px 0 #a6c6e5, 0 10px 18px rgb(13 60 108 / 17%);
}
.app-shell .service-page .action-card.service-card-3d > :is(img, svg, div, .action-symbol, small, strong) { display: none; }
.app-shell .service-page .action-card.service-card-3d::before {
  content: '';
  display: block;
  flex: 1 1 auto;
  width: min(90%, 152px);
  min-height: 0;
  align-self: center;
  background-image: var(--service-icon);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.app-shell .service-page .action-card.service-card-3d > span:not(.action-symbol),
.app-shell .service-page .action-card.service-card-3d[data-display-label]::after {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-height: 49px;
  padding: 5px 4px 7px;
  margin: 0;
  border-top: 1px solid #bdd5ed;
  background: rgb(255 255 255 / 94%);
  color: #092f60;
  font-size: clamp(14px, min(3.5cqh, 4cqi), 21px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}
.app-shell .service-page .action-card.service-card-3d[data-display-label]::after { content: attr(data-display-label); }
.app-shell .service-page .action-card.service-card-3d.red {
  border-color: #c74652;
  background: linear-gradient(155deg, #fff4f4, #ffe0e1);
  box-shadow: inset 0 2px 0 #fff, 0 5px 0 #eab1b5, 0 10px 18px rgb(143 30 41 / 17%);
}
.app-shell .service-page .action-card.service-card-3d.red > span:not(.action-symbol) { border-top-color: #efc6ca; }
.app-shell .service-page .action-card.service-card-3d.coming-soon {
  border-color: #bdc9d6;
  background: #eef3f8;
  opacity: 1;
  box-shadow: inset 0 2px 0 #fff, 0 5px 0 #d2dce5;
}
.app-shell .service-page .action-card.service-card-3d.coming-soon::after { color: #52657a; }
.app-shell .service-page .action-card.service-card-3d:active { transform: translateY(4px); }
.app-shell .service-page .action-card.service-card-3d:focus-visible { outline: 4px solid #092f60; outline-offset: 3px; }
.app-shell .service-page .action-card.service-card-3d.has-custom-photo::before { display: none; }
.app-shell .service-page .action-card.service-card-3d.has-custom-photo > img.family-card-photo {
  display: block;
  flex: 1 1 auto;
  align-self: center;
  width: min(90%, 145px);
  height: min(65%, 145px);
  object-fit: cover;
  border-radius: 15px;
  padding: 4px;
  margin: 0;
}
body:has(.modal-backdrop) .local-assistant-launch { visibility: hidden; }
.detail-panel :is(.detail-actions button, .detail-actions a, .primary-detail-action, .speak-wide, .emergency-options button, .emergency-options a, .confirm-view a, .cancel-call) {
  min-height: 66px;
  border-radius: 18px;
  font-size: clamp(17px, 4.3vw, 21px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}
.detail-panel :is(.detail-actions button, .detail-actions a, .primary-detail-action, .speak-wide):not(.urgent-detail-action):not(.call-112):not(.whatsapp-action):not(.pharmacy-call):not(.appointment-call) {
  border: 2px solid #3a76b5;
  background: linear-gradient(180deg, #fff, #e9f4ff);
  color: #0b3769;
  box-shadow: inset 0 2px 0 #fff, 0 4px 0 #b4d0eb, 0 8px 15px rgb(17 65 108 / 15%);
}
.detail-panel :is(.detail-actions button, .detail-actions a, .primary-detail-action, .speak-wide, .emergency-options button, .emergency-options a, .confirm-view a, .cancel-call):focus-visible { outline: 4px solid #092f60; outline-offset: 3px; }
.detail-panel [data-action3d] { display: flex; align-items: center; justify-content: center; gap: 8px; }
.detail-panel [data-action3d]::before {
  content: '';
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.detail-panel [data-action3d='appointment']::before { background-image: url('/iconos-3d-acciones/accion-pedir-cita.webp'); }
.detail-panel [data-action3d='call']::before { background-image: url('/iconos-3d-acciones/accion-llamar.webp'); }
.detail-panel [data-action3d='listen']::before { background-image: url('/iconos-3d-acciones/accion-escuchar.webp'); }
.detail-panel [data-action3d='back']::before { background-image: url('/iconos-3d-acciones/accion-volver.webp'); }
.detail-panel [data-action3d='emergency']::before { background-image: url('/iconos-3d/03-emergencias.webp'); }
@media (orientation: landscape) and (max-height: 520px) {
  .app-shell .service-page .action-card.service-card-3d { flex-direction: column; flex-wrap: nowrap; }
  .app-shell .service-page .action-card.service-card-3d::before { width: min(84%, 116px); }
  .app-shell .service-page .action-card.service-card-3d > span:not(.action-symbol) { min-height: 37px; font-size: 13px; }
}

.app-shell .service-page .action-card.service-card-3d[data-display-label] > span:not(.action-symbol) { display: none; }

/* Reserve a clear space for chat and hide it while a service dialog is open. */
body:has(.modal-backdrop) #utc-btn,
body:has(.modal-backdrop) #utc-box { display: none !important; }
@media (max-width: 520px) {
  html body .app-shell { padding-bottom: max(92px, env(safe-area-inset-bottom)) !important; }
}

/* The standalone service pages share the same large, legible controls. */
.detail-panel :is(.dt-help-voice, .dt-primary, .dt-secondary, .dt-microphone, .employment-secondary, .employment-listen, .football-back, .cook-wide, .cook-pantry, .cook-community-entry),
.daily-tools :is(.dt-help-voice, .dt-primary, .dt-secondary, .dt-microphone) {
  min-height: 62px;
  border: 2px solid #3a76b5;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #e9f4ff);
  color: #0b3769;
  font-size: clamp(17px, 4.3vw, 21px);
  font-weight: 900;
  line-height: 1.15;
  text-wrap: balance;
  box-shadow: inset 0 2px 0 #fff, 0 4px 0 #b4d0eb, 0 8px 15px rgb(17 65 108 / 15%);
}
.detail-panel :is(.dt-help-voice, .dt-primary, .dt-secondary, .dt-microphone, .employment-secondary, .employment-listen, .football-back, .cook-wide, .cook-pantry, .cook-community-entry):focus-visible,
.daily-tools :is(.dt-help-voice, .dt-primary, .dt-secondary, .dt-microphone):focus-visible {
  outline: 4px solid #092f60;
  outline-offset: 3px;
}
.detail-panel :is(.cook-choice, .cook-recipe-list button) {
  border: 2px solid #4b8cc6;
  border-radius: 18px;
  background: linear-gradient(155deg, #f1f8ff, #dcecff);
  color: #092f60;
  box-shadow: inset 0 2px 0 #fff, 0 4px 0 #a6c6e5, 0 8px 15px rgb(13 60 108 / 15%);
}
.detail-panel .cook-choice {
  min-height: 126px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  text-align: center;
  font-weight: 900;
}
.detail-panel .cook-choice .cook-category-icon { width: 72px; height: 72px; object-fit: contain; }
.detail-panel .cook-choice .cook-choice-label { font-size: clamp(15px, 4vw, 20px); line-height: 1.1; }
.detail-panel [data-action3d]:not(.urgent-detail-action):not(.call-112):not(.whatsapp-action) { min-height: 62px; }
.detail-panel [data-action3d]:focus-visible { outline: 4px solid #092f60; outline-offset: 3px; }
.dt-cards .dt-card-open.tool-card-3d {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  border: 2px solid #4b8cc6;
  border-radius: 20px;
  background: linear-gradient(155deg, #f1f8ff, #dcecff);
  color: #092f60;
  text-align: center;
  box-shadow: inset 0 2px 0 #fff, 0 5px 0 #a6c6e5, 0 10px 18px rgb(13 60 108 / 17%);
}
.dt-cards .dt-card-open.tool-card-3d::before {
  content: '';
  width: 100px;
  height: 100px;
  background: var(--service-icon) center / contain no-repeat;
}
.dt-cards .dt-card-open.tool-card-3d .dt-icon { display: none; }
.dt-cards .dt-card-open.tool-card-3d h2 { color: #092f60; font-weight: 950; font-size: clamp(20px, 5vw, 25px); margin: 4px 0; }
.dt-cards .dt-card-open.tool-card-3d:focus-visible { outline: 4px solid #092f60; outline-offset: 3px; }
.bus-feria-app :is(.feria-back-home, .route-overview),
.restaurant-app .header-control {
  min-height: 60px;
  border: 2px solid #3a76b5;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #e9f4ff);
  color: #0b3769;
  font-size: 17px;
  font-weight: 900;
  box-shadow: inset 0 2px 0 #fff, 0 4px 0 #b4d0eb;
}
.bus-feria-app :is(.feria-back-home, .route-overview):focus-visible,
.restaurant-app .header-control:focus-visible { outline: 4px solid #092f60; outline-offset: 3px; }
.detail-panel .calendar-home-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 62px;
  border: 2px solid #3a76b5;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #e9f4ff);
  color: #0b3769;
  font-size: clamp(17px, 4.3vw, 21px);
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
  box-shadow: inset 0 2px 0 #fff, 0 4px 0 #b4d0eb;
}
.detail-panel .calendar-home-link:focus-visible { outline: 4px solid #092f60; outline-offset: 3px; }
.detail-panel .dt-accessibility button { font-size: 16px; }

/* Match the visible size of the gift icon to the neighbouring service icons. */
.app-shell .service-page .action-card.service-card-3d.gift-entry::before { background-size: 108% 100%; }
/* Proposal: restrained, consistent header and installation control. */
.app-shell .brand-wordmark { filter: none; }
.app-shell .topbar { gap: 8px; margin-bottom: 14px; }
.app-shell .header-actions { gap: 7px; }
.app-shell .header-actions :is(.settings-button, .listen-button, .header-facebook-link) {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  padding: 0;
  border: 1.5px solid #7192b6;
  border-radius: 16px;
  background: #fff;
  color: #123c70;
  box-shadow: 0 1px 3px rgb(22 54 91 / 10%);
  transform: none;
}
.app-shell .header-actions :is(.settings-button, .listen-button, .header-facebook-link):is(:hover, :active) {
  background: #edf5fd;
  box-shadow: 0 1px 3px rgb(22 54 91 / 10%);
  transform: none;
}
.app-shell .header-actions :is(.settings-button, .listen-button, .header-facebook-link):focus-visible {
  outline: 4px solid #123c70;
  outline-offset: 3px;
}
.app-shell .header-actions .listen-button.is-muted {
  border-color: #7192b6;
  background: #fff;
  color: #123c70;
  box-shadow: 0 1px 3px rgb(22 54 91 / 10%);
}
.app-shell .header-actions :is(.settings-button, .listen-button) { font-size: 0; }
.app-shell .header-actions .header-action-label { display: none; }
.app-shell .header-actions .header-icon,
.app-shell .header-actions .listen-button.is-muted .header-icon-sound {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  filter: none;
}
.app-shell .header-actions .header-icon svg {
  width: 29px;
  height: 29px;
  filter: none;
}
.app-shell .header-actions .sound-status-dot { display: none; }
.app-shell .header-actions .header-facebook-link { color: #1769c9; }
.app-shell .header-actions .header-facebook-link svg { width: 29px; height: 29px; }

.app-shell .top-install-row { margin: -2px 0 14px; }
.app-shell .top-install-button {
  min-height: 68px;
  padding: 10px 16px;
  justify-content: flex-start;
  gap: 13px;
  border: 2px solid #2673c3;
  border-radius: 17px;
  background: #f3f9ff;
  color: #0b3769;
  box-shadow: 0 2px 6px rgb(17 65 108 / 9%);
  animation: none;
}
.app-shell .top-install-button::after { display: none; }
.app-shell .top-install-button:is(:hover, :active) {
  background: #e9f4ff;
  transform: none;
  box-shadow: 0 2px 6px rgb(17 65 108 / 9%);
}
.app-shell .top-install-icon {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #1769c9;
  color: #fff;
  font-size: 27px;
  animation: none;
}
.app-shell .top-install-copy { gap: 2px; }
.app-shell .top-install-copy strong {
  color: #0b3769;
  font-size: clamp(15px, 3.9vw, 18px);
  font-weight: 850;
  letter-spacing: 0;
}
.app-shell .top-install-copy small {
  color: #1762ad;
  font-size: clamp(11px, 3.1vw, 14px);
  font-weight: 750;
  letter-spacing: 0;
}
.app-shell .top-install-button:not([disabled])::before {
  content: '›';
  order: 3;
  margin-left: auto;
  color: #1769c9;
  font-size: 34px;
  line-height: 1;
}
.app-shell .top-install-button:is(.is-installing, .is-installed, .is-cancelled, .is-error) {
  border-color: #7192b6;
  background: #f3f9ff;
  box-shadow: 0 2px 6px rgb(17 65 108 / 9%);
}
.app-shell .top-install-button.is-installed { border-color: #25845d; background: #edf9f2; }
.app-shell .top-install-button:is(.is-cancelled, .is-error) { border-color: #b45435; background: #fff3ef; }
.app-shell .top-install-button:is(.is-installing, .is-installed, .is-cancelled, .is-error)::before { content: none; }
.app-shell .top-install-button:is(.is-installed, .is-cancelled, .is-error) .top-install-copy small { color: #394d63; }
.app-shell .top-install-status-icon { border-color: #1769c9; background: #1769c9; }
.app-shell .top-install-button.is-installed .top-install-status-icon { border-color: #25845d; background: #25845d; }
.app-shell .top-install-button:is(.is-cancelled, .is-error) .top-install-status-icon { border-color: #b45435; background: #b45435; }

.app-shell .service-page.action-grid::before {
  justify-content: flex-start !important;
  min-height: 32px !important;
  padding: 0 0 0 12px !important;
  border: 0;
  border-left: 5px solid currentColor;
  border-radius: 0 !important;
  background: transparent !important;
  font-size: clamp(17px, 4.2vw, 21px) !important;
  font-weight: 850;
  letter-spacing: .025em;
  text-align: left !important;
}

@media (max-width: 520px) {
  .app-shell .topbar { margin-bottom: 13px; }
  .app-shell .brand-wordmark { width: min(48vw, 190px); }
  .app-shell .header-actions { gap: 6px; }
  .app-shell .header-actions :is(.settings-button, .listen-button, .header-facebook-link) {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
  }
  .app-shell .top-install-row { margin: 0 0 13px; }
  .app-shell .top-install-button { min-height: 64px; padding: 9px 13px; }
}
@media (max-width: 360px) {
  .app-shell .brand-wordmark { width: min(44vw, 146px); }
  .app-shell .header-actions { gap: 4px; }
  .app-shell .header-actions :is(.settings-button, .listen-button, .header-facebook-link) {
    flex-basis: 44px;
    width: 44px;
    height: 48px;
    min-width: 44px;
    min-height: 48px;
  }
  .app-shell .top-install-copy strong { font-size: 14px; }
  .app-shell .top-install-copy small { font-size: 11px; }
}
/* Center the sound glyph independently of the hidden text node. */
.app-shell .header-actions .listen-button { position: relative; }
.app-shell .header-actions .listen-button .header-icon-sound {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.utc-dock-copy, .utc-dock-microphone { display: none; }
@media (max-width: 520px) {
  body:not(:has(.modal-backdrop)) #utc-btn[aria-expanded="false"] {
    box-sizing: border-box;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    height: 69px;
    padding: 6px 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    border: 2px solid #3c7cad;
    border-radius: 20px;
    background: linear-gradient(170deg, #fff 0%, #e4f2fd 100%);
    color: #0a315f;
    box-shadow: inset 0 2px 0 #fff, 0 5px 0 #b5cee1, 0 9px 16px rgb(11 64 106 / 17%);
    filter: none;
  }
  body:not(:has(.modal-backdrop)) #utc-btn[aria-expanded="false"] > img {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px #2371ae;
  }
  body:not(:has(.modal-backdrop)) #utc-btn[aria-expanded="false"] .utc-dock-copy {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    text-align: left;
  }
  #utc-btn .utc-dock-copy strong {
    display: block;
    font-size: clamp(16px, 4.4vw, 19px);
    font-weight: 950;
    line-height: 1.05;
  }
  #utc-btn .utc-dock-copy small {
    display: block;
    margin-top: 4px;
    color: #46627f;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
  }
  body:not(:has(.modal-backdrop)) #utc-btn[aria-expanded="false"] .utc-dock-microphone {
    display: block;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    background: url('/assistant-microphone.svg') center / contain no-repeat;
  }
  #utc-btn:focus-visible { outline: 4px solid #092f60; outline-offset: 3px; }
}

:root {
  --ut-bg: #DFE6ED;
  --ut-border: #A9B7C6;
  --ut-blue: #0B4F8A;
  --ut-logo-blue: #103A6C;
  --ut-shadow: #A9B7C6;
  --ut-ink: #15283B;
  --ut-urgent: #B42318;
  --ut-urgent-border: #7A160F;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; }
html body {
  margin: 0;
  background: var(--ut-bg) !important;
  color: var(--ut-ink);
  font-family: 'Atkinson Hyperlegible', Arial, sans-serif !important;
}

html body .app-shell {
  display: grid !important;
  grid-template-rows: auto auto minmax(360px, 1fr) auto !important;
  gap: 0 !important;
  width: 100%;
  min-height: max(100dvh, 660px);
  margin: 0;
  padding: max(14px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-bottom)) !important;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--ut-bg) !important;
}

html body .app-shell .topbar {
  display: flex !important;
  align-items: center;
  justify-content: space-between !important;
  min-height: 58px;
  grid-row: 1;
  margin-bottom: 0 !important;
}
.app-shell .brand-block { display: flex; flex: 1 1 0; flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; width: auto !important; min-width: 0 !important; max-width: none !important; min-height: 48px; margin-left: 0 !important; }
.app-shell .ut-brand { display: flex; flex: 1 1 0; flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; gap: 12px; width: 100% !important; min-width: 0; max-width: none !important; height: auto; margin-left: 0 !important; }
.app-shell .brand-wordmark { display: block; width: 100% !important; max-width: none !important; height: auto !important; object-fit: contain; object-position: left center; }
.app-shell .brand-block:has(.ut-brand-icon) .brand-wordmark { display: none !important; }
.app-shell .ut-brand-icon { display: block; width: 48px; min-width: 48px; height: 48px; object-fit: contain; border-radius: 10px; }
.app-shell .ut-brand-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; margin-left: 0; line-height: 1; }
.app-shell .ut-brand-kicker { color: var(--ut-blue); font: 700 12px/1 'Atkinson Hyperlegible', Arial, sans-serif; letter-spacing: 2px; white-space: nowrap; }
.app-shell .ut-brand-copy strong { color: #101D2C; font: 700 27px/.9 'Atkinson Hyperlegible', Arial, sans-serif; letter-spacing: -1px; white-space: nowrap; }
.app-shell .header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
html body .app-shell .header-actions > button {
  display: grid !important; place-items: center; width: 48px !important; min-width: 48px !important; height: 48px !important;
  padding: 0 !important; border: 1.5px solid var(--ut-logo-blue) !important; border-radius: 15px !important;
  background: #fff !important; color: var(--ut-ink) !important; box-shadow: 0 4px 0 var(--ut-shadow) !important; font-size: 0 !important;
}
.app-shell .header-actions .header-action-label, .app-shell .header-actions .sound-status-dot,
.app-shell .header-facebook-link, .app-shell .top-install-row, .app-shell .arrange-hint { display: none !important; }
.app-shell .header-icon { display: grid; place-items: center; }
.app-shell .header-icon svg { width: 25px; height: 25px; stroke: currentColor; fill: none; stroke-width: 1.8; }

html body .app-shell > .ut-section-title {
  grid-row: 2; margin: 10px 0 10px; color: var(--ut-ink) !important;
  font: 700 clamp(21px, 3vw, 30px)/1.1 'Atkinson Hyperlegible', Arial, sans-serif !important; text-transform: none !important;
}
html body .app-shell > .ut-section-row {
  grid-row: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; margin: 12px 0 16px;
}
html body .app-shell .ut-section-row > .ut-section-title { margin: 0; font-size: 20px !important; font-weight: 700 !important; line-height: 1.1; }
html body .app-shell .ut-more-top { flex: 0 0 auto; color: var(--ut-blue); font: 700 17px/1.1 'Atkinson Hyperlegible', Arial, sans-serif; text-decoration: none; white-space: nowrap; }
html body .app-shell .ut-more-top { min-height: 44px !important; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 10px; border-radius: 8px; }
html body .app-shell .ut-more-top:focus-visible { outline: 3px solid var(--ut-blue); outline-offset: 2px; }
html body .app-shell .service-slider {
  grid-row: 3; display: flex !important; min-width: 0; min-height: 360px; padding: 0 0 4px !important; gap: 0 !important; overflow-x: auto !important; overflow-y: visible !important;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.app-shell .service-slider::-webkit-scrollbar { display: none; }
html body .app-shell .service-slider::after, html body .app-shell.ut-accessible .service-page.action-grid::before { display: none !important; content: none !important; }
html body .app-shell.ut-accessible .service-page.action-grid {
  display: grid !important; grid-template-columns: repeat(2, minmax(120px, 1fr)) !important; grid-template-rows: repeat(3, minmax(126px, 1fr)) !important;
  gap: 10px !important; flex: 0 0 100%; width: 100% !important; height: 100% !important; min-width: 0; min-height: 0 !important; scroll-snap-align: center;
}

html body .app-shell.ut-accessible .service-page.action-grid .action-card.service-card-3d {
  position: relative; display: flex !important; flex-direction: column !important; align-items: stretch !important; justify-content: flex-end !important;
  width: 100% !important; height: 100% !important; min-width: 120px; min-height: 126px !important; padding: 0 !important; overflow: hidden !important;
  border: 1.5px solid var(--ut-logo-blue) !important; border-radius: 20px !important; background: #fff !important; color: var(--ut-ink) !important;
  box-shadow: 0 4px 0 var(--ut-shadow) !important; text-decoration: none; transform: none;
}
html body .app-shell.ut-accessible .service-page.action-grid .action-card.service-card-3d::before {
  content: '' !important; display: block !important; flex: 1 1 auto !important; width: min(84%, 160px) !important; min-height: 72px !important;
  align-self: center !important; margin: 4px auto !important; background-image: var(--service-icon) !important;
  background-position: center !important; background-repeat: no-repeat !important; background-size: contain !important;
}
html body .app-shell.ut-accessible .service-page.action-grid .action-card.service-card-3d > :is(img, svg, div, .action-symbol, small, strong) { display: none !important; }
html body .app-shell.ut-accessible .service-page.action-grid .action-card.service-card-3d > span:not(.action-symbol) {
  display: flex !important; align-items: center !important; justify-content: center !important; width: 100% !important;
  height: 44px !important; min-height: 44px !important; padding: 2px 7px !important; overflow: hidden !important;
  border-top: 1px solid #D1DAE3 !important; background: #fff !important; color: var(--ut-ink) !important;
  font: 700 17px/1.05 'Atkinson Hyperlegible', Arial, sans-serif !important; text-align: center !important; text-wrap: balance; text-transform: none !important;
}
html body .app-shell.ut-accessible .service-page.action-grid .action-card.service-card-3d[data-display-label] > span:not(.action-symbol) { display: none !important; }
html body .app-shell.ut-accessible .service-page.action-grid .action-card.service-card-3d[data-display-label]::after {
  content: attr(data-display-label) !important; display: flex !important; align-items: center !important; justify-content: center !important;
  width: 100% !important; height: 44px !important; min-height: 44px !important; padding: 2px 7px !important; overflow: hidden !important;
  border-top: 1px solid #D1DAE3 !important; background: #fff !important; color: var(--ut-ink) !important;
  font: 700 17px/1.05 'Atkinson Hyperlegible', Arial, sans-serif !important; text-align: center !important; text-wrap: balance; text-transform: none !important;
}
html body .app-shell.ut-accessible .service-page.action-grid .action-card.service-card-3d:not(.red) { background: #fff !important; }
html body .app-shell.ut-accessible .service-page.action-grid .action-card.service-card-3d.red {
  border-color: var(--ut-logo-blue) !important; background: var(--ut-urgent) !important; box-shadow: 0 4px 0 var(--ut-shadow) !important; color: #fff !important;
}
html body .app-shell.ut-accessible .service-page.action-grid .action-card.service-card-3d.red::before { background-color: #F8D7D5 !important; border-radius: 10px; }
html body .app-shell.ut-accessible .service-page.action-grid .action-card.service-card-3d.red[data-display-label]::after {
  border-top-color: var(--ut-urgent-border) !important; background: var(--ut-urgent) !important; color: #fff !important;
}
html body .app-shell.ut-accessible .service-page.action-grid .action-card.service-card-3d.red > span:not(.action-symbol) {
  border-top-color: var(--ut-urgent-border) !important; background: var(--ut-urgent) !important; color: #fff !important;
}
html body .app-shell.ut-accessible .service-page.action-grid .action-card.service-card-3d.has-custom-photo::before { display: none !important; }
html body .app-shell.ut-accessible .service-page.action-grid .action-card.service-card-3d.has-custom-photo > img.family-card-photo {
  display: block !important; flex: 1 1 auto; align-self: center; width: min(90%, 145px); height: min(65%, 145px); object-fit: cover; border-radius: 15px; padding: 4px; margin: 0;
}
html body .app-shell.ut-accessible .service-page.action-grid .action-card.service-card-3d:focus-visible, html body .app-shell .header-actions button:focus-visible,
html body .app-shell #utc-btn:focus-visible { outline: 3px solid var(--ut-blue) !important; outline-offset: 2px; }
html body .app-shell.ut-accessible .service-page.action-grid .action-card.service-card-3d:active { transform: translateY(3px) !important; box-shadow: 0 1px 0 var(--ut-shadow) !important; }

html body .app-shell > .page-dots { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
html body .app-shell .ut-side {
  grid-row: 4; display: grid !important; grid-template-rows: auto auto !important; gap: 4px !important; min-width: 0; padding-top: 4px;
}
html body .app-shell .ut-navigation { display: none !important; }
html body .app-shell .ut-side .ut-navigation { display: none !important; }
html body .app-shell .ut-side #utc-btn, html body .app-shell .ut-side .ut-assistant { grid-row: 1; }
html body .app-shell .ut-side .app-footer { grid-row: 2; }
html body .app-shell .ut-nav-arrow {
  width: 48px !important; height: 48px !important; padding: 0 !important; border: 1.5px solid var(--ut-border) !important;
  border-radius: 14px !important; background: #fff !important; color: var(--ut-blue) !important; box-shadow: 0 4px 0 var(--ut-shadow) !important;
  font: 700 34px/1 'Atkinson Hyperlegible', Arial, sans-serif !important;
}
html body .app-shell .ut-nav-arrow[disabled] { color: #C7D0D9 !important; background: #F0F3F6 !important; box-shadow: none !important; }
html body .app-shell .ut-nav-center { color: var(--ut-ink); font: 700 16px/1.1 'Atkinson Hyperlegible', Arial, sans-serif; text-align: center; }
html body .app-shell .ut-dots { display: flex; justify-content: center; gap: 5px; margin-top: 6px; }
html body .app-shell .ut-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 5px; background: var(--ut-border); }
html body .app-shell .ut-dot.active { width: 18px; background: var(--ut-blue); }
html body .app-shell .ut-assistant, html body .app-shell #utc-btn {
  position: static !important; box-sizing: border-box; display: flex !important; align-items: center; gap: 9px; width: 100% !important;
  height: 52px !important; min-height: 52px !important; padding: 5px 7px 5px 6px !important; border: 1.5px solid var(--ut-logo-blue) !important;
  border-radius: 27px !important; background: #fff !important; color: var(--ut-ink) !important; box-shadow: 0 4px 0 var(--ut-shadow) !important;
}
html body .app-shell #utc-btn > img { width: 40px !important; min-width: 40px !important; max-width: 40px !important; height: 40px !important; min-height: 40px !important; max-height: 40px !important; flex: 0 0 40px !important; border-radius: 50%; object-fit: cover; }
html body .app-shell #utc-btn .utc-dock-copy { display: block !important; flex: 1 1 auto; min-width: 0; color: var(--ut-ink) !important; font: 700 16px/1 'Atkinson Hyperlegible', Arial, sans-serif !important; text-align: left; }
html body .app-shell #utc-btn .utc-dock-copy strong { display: block; font: 700 16px/1.1 'Atkinson Hyperlegible', Arial, sans-serif !important; }
html body .app-shell #utc-btn .utc-dock-copy small { display: none !important; }
html body .app-shell #utc-btn .utc-dock-microphone { display: grid !important; place-items: center; width: 40px !important; min-width: 40px !important; max-width: 40px !important; height: 40px !important; min-height: 40px !important; max-height: 40px !important; flex: 0 0 40px !important; border-radius: 50%; background: #E3EDFA !important; color: var(--ut-blue); }
html body .app-shell #utc-btn .utc-dock-microphone svg { width: 20px !important; height: 20px !important; }
html.ut-service-open body .app-shell .ut-side { grid-template-rows: auto !important; }
html.ut-service-open body .app-shell .ut-side #utc-btn,
html.ut-service-open body .app-shell .ut-side .ut-assistant,
html.ut-service-open body .app-shell .ut-side .ut-assistant-slot,
html.ut-service-open body #utc-btn,
html.ut-service-open body #utc-box,
html.ut-service-open body .ut-assistant-slot { display: none !important; }
html body:has(.detail-panel, .modal-backdrop, dialog[open], [aria-modal="true"]:not(#utc-box)) #utc-btn,
html body:has(.detail-panel, .modal-backdrop, dialog[open], [aria-modal="true"]:not(#utc-box)) #utc-box,
html body:has(.detail-panel, .modal-backdrop, dialog[open], [aria-modal="true"]:not(#utc-box)) .ut-assistant-slot { display: none !important; }
html body .app-shell .header-actions .listen-button { order: 1; }
html body .app-shell .header-actions .settings-button { order: 2; }
html body .app-shell .app-footer { margin: 0 !important; padding: 0 !important; }
html body .app-shell .footer-links { display: flex; justify-content: space-between; gap: 12px; }
html body .app-shell .footer-links a { color: #344B61; font: 400 14px/1.2 'Atkinson Hyperlegible', Arial, sans-serif; text-decoration: underline; }

@media (min-width: 700px), (orientation: landscape) and (min-width: 520px) {
  html body .app-shell {
    grid-template-columns: minmax(0, 1fr) 236px !important; grid-template-rows: auto auto minmax(268px, 1fr) !important; column-gap: 24px !important; min-height: 100dvh !important;
    padding: max(14px, env(safe-area-inset-top)) max(44px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(44px, env(safe-area-inset-left)) !important;
  }
  html body .app-shell .topbar { display: contents !important; }
  html body .app-shell .brand-block { grid-column: 1; grid-row: 1; align-self: start; }
  html body .app-shell .brand-block { flex: 1 1 0; width: 100%; min-width: 0; max-width: 420px !important; }
  html body .app-shell .brand-wordmark { width: 100%; max-width: 420px !important; height: auto; object-fit: contain; }
  html body .app-shell .header-actions { grid-column: 2; grid-row: 1; justify-content: flex-end; align-self: start; }
  html body .app-shell > .ut-section-title { grid-column: 1; grid-row: 2; align-self: center; margin: 10px 0 10px; }
  html body .app-shell > .ut-section-row { grid-column: 1; grid-row: 2; align-self: center; justify-content: flex-start; margin: 8px 0; }
  html body .app-shell .ut-section-row > .ut-section-title { font-size: 20px !important; }
  html body .app-shell.ut-accessible .service-slider { grid-column: 1; grid-row: 3; align-self: stretch !important; align-items: stretch !important; height: 100% !important; min-width: 0; min-height: 268px; padding-bottom: 4px !important; }
  html body .app-shell.ut-accessible .service-page.action-grid { align-self: stretch !important; align-content: stretch !important; grid-template-columns: repeat(3, minmax(120px, 1fr)) !important; grid-template-rows: repeat(2, minmax(126px, 1fr)) !important; min-width: 370px; min-height: 0; height: 100% !important; }
  html body .app-shell .ut-side { grid-column: 2; grid-row: 3; align-self: stretch; min-height: 268px; padding-top: 0; align-content: end !important; justify-content: end; grid-template-rows: auto auto !important; }
  html body .app-shell .ut-side #utc-btn, html body .app-shell .ut-side .ut-assistant { grid-row: 1; }
  html body .app-shell .ut-side .app-footer { grid-row: 2; }
}

@media (max-height: 650px) and (orientation: landscape) {
  html body .app-shell { min-height: 350px !important; }
}
@media (max-height: 650px) and (orientation: landscape) and (min-width: 520px) {
  html body .app-shell .brand-block,
  html body .app-shell .brand-wordmark { max-width: 150px !important; width: 150px !important; height: auto !important; }
}

/* Centrado de la portada en ordenador: todos los bloques comparten un eje. */
@media (min-width: 700px) {
  html body .app-shell {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto !important;
    column-gap: 0 !important;
    overflow-y: auto !important;
  }

  html body .app-shell .topbar { display: contents !important; }

  html body .app-shell .brand-block {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    align-self: start !important;
    width: min(100%, 420px) !important;
    max-width: 420px !important;
  }

  html body .app-shell .brand-wordmark {
    width: 100% !important;
    max-width: 420px !important;
    object-position: center center !important;
  }

  html body .app-shell .header-actions {
    position: static !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    justify-self: center !important;
    width: auto !important;
    justify-content: center !important;
    margin: 8px 0 !important;
  }

  html body .app-shell > .ut-section-row {
    grid-column: 1 !important;
    grid-row: 3 !important;
    justify-self: center !important;
    width: min(100%, 600px) !important;
    height: auto !important;
    min-height: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    margin: 0 !important;
  }

  html body .app-shell > .ut-section-row > .ut-section-title {
    text-align: center !important;
    margin: 0 !important;
  }

  html body .app-shell > .ut-section-row .ut-more-top {
    align-self: center !important;
  }

  html body .app-shell.ut-accessible .service-slider {
    grid-column: 1 !important;
    grid-row: 4 !important;
    justify-self: center !important;
    width: min(100%, 600px) !important;
    height: 100% !important;
    min-height: 268px !important;
  }

  html body .app-shell.ut-accessible .service-page.action-grid {
    width: 100% !important;
    min-width: 0 !important;
  }

  html body .app-shell .ut-side {
    grid-column: 1 !important;
    grid-row: 5 !important;
    justify-self: center !important;
    width: min(100%, 600px) !important;
    min-height: 0 !important;
    padding-top: 4px !important;
    align-content: end !important;
    justify-content: stretch !important;
  }

  html body .app-shell .ut-side .app-footer,
  html body .app-shell .footer-links {
    justify-content: center !important;
    text-align: center !important;
  }
}
