:root { --rdt-fs-xs: 0.657rem; --rdt-fs-s: 0.835rem; --rdt-fs-0: 1.0625rem; --rdt-fs-1: 1.351rem; --rdt-fs-2: 1.719rem; --rdt-fs-3: 2.186rem; --rdt-fs-4: 2.781rem; --rdt-fs-5: 4.5rem; }
:root { --rdt-btn-r: 12px; }
/* Ruta de Tapas · mapa de la ruta */
.rdt-route {
  --rdt-ink: #1f2430;
  --rdt-muted: #6b7280;
  --rdt-surface: #ffffff;
  --rdt-radius: 22px;
  position: relative;
  margin: 0 auto;
  font-family: inherit;
}

.rdt-map {
  height: min(78vh, 720px);
  min-height: 420px;
  border-radius: var(--rdt-radius);
  overflow: hidden;
  background: #eef0ee;
  isolation: isolate;
}

/* A todo el ancho (también la cabecera de la ruta en móvil). */
.rdt-route.is-fullbleed {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: none !important;
  margin-left: -50vw !important;
  margin-right: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}
html:has(.rdt-route.is-fullbleed) { overflow-x: clip; }
@media (max-width: 720px) {
  .rdt-route.is-fullbleed .rdt-map { border-radius: 0; height: calc(100svh - var(--rdt-bar-h, 0px) - 150px); }
  .rdt-route.is-fullbleed .rdt-cards { padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; }
}
@media (min-width: 721px) {
  .rdt-route.is-fullbleed .rdt-map {
    height: calc(100svh - var(--rdt-bar-h, 0px) - var(--rdt-admin, 0px));
    min-height: 540px;
    max-height: none;
    border-radius: 0;
  }
}

.rdt-map .maplibregl-ctrl-group { border-radius: 12px; box-shadow: 0 6px 18px rgba(20, 24, 36, 0.12); }
.rdt-map .maplibregl-ctrl-attrib { font-size: 10px; }

/* Puntos de color que caen */
.rdt-pin-wrap { display: block; padding: 0; background: none; border: 0; cursor: pointer; }
/* El punto abierto (o con el ratón encima) se pone por delante del resto; la tarjeta, por encima de todo. */
.rdt-pin-wrap.is-active, .rdt-pin-wrap:hover, .rdt-pin-wrap:focus-visible { z-index: 5; }

.rdt-pin-wrap:focus-visible { outline: 3px solid #1f2430; outline-offset: 3px; border-radius: 50%; }
.rdt-pin {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--rdt-color);
  box-shadow: 0 0 0 2px #fff, 0 3px 10px rgba(20, 24, 36, 0.25);
  opacity: 0;
  transform: translateY(-46px) scale(0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rdt-route.is-dropping .rdt-pin { animation: rdt-drop 0.6s cubic-bezier(0.22, 1.2, 0.36, 1) var(--rdt-delay) forwards; }
.rdt-pin-wrap.is-active .rdt-pin, .rdt-pin-wrap:hover .rdt-pin { transform: scale(1.2); box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.85), 0 4px 14px rgba(20, 24, 36, 0.3); }
@keyframes rdt-drop {
  0% { opacity: 0; transform: translateY(-46px) scale(0.6); }
  60% { opacity: 1; transform: translateY(3px) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Fichas: minimalistas y muy coloridas */
.rdt-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 16px;
  background: var(--rdt-color);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px -8px var(--rdt-color), 0 2px 6px rgba(20, 24, 36, 0.12);
  line-height: 1.2;
}
.rdt-route a.rdt-card, .rdt-route a.rdt-card:hover, .rdt-route a.rdt-card:focus-visible { color: #fff; text-decoration: none; }
.rdt-card { transition: transform 0.2s ease; }
.rdt-card:hover, .rdt-card:focus-visible { transform: translateY(-2px); }

.rdt-card:focus-visible { outline: 3px solid var(--rdt-ink); outline-offset: 2px; }
.rdt-card-img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; background: rgba(255, 255, 255, 0.25); }
.rdt-card-body { display: grid; gap: 2px; min-width: 0; }
.rdt-card-title { font-size: var(--rdt-fs-s); font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rdt-card-place { font-size: var(--rdt-fs-xs); opacity: 0.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rdt-card-allergens { font-size: var(--rdt-fs-xs); opacity: 0.85; }

.rdt-card.is-compact { width: max-content; padding: 5px 12px 5px 5px; border-radius: 14px; max-width: 210px; }
.rdt-card.is-compact .rdt-card-img { width: 32px; height: 32px; border-radius: 10px; }
.rdt-card.is-compact .rdt-card-title { font-size: var(--rdt-fs-s); }
.rdt-card.is-compact .rdt-card-place { font-size: var(--rdt-fs-xs); }

/* Tarjeta del mapa con foto (se abren una tras otra). Se anima el interior porque MapLibre usa transform en el contenedor. */
.rdt-tour { z-index: 10; }
.rdt-tour-card {
  display: block;
  width: clamp(240px, 19vw, 340px);
  border-radius: 14px;
  overflow: hidden;
  background: var(--rdt-color);
  color: var(--rdt-on, #fff);
  text-decoration: none;
  box-shadow: 0 24px 50px -24px rgba(20, 24, 36, 0.55), 0 2px 8px rgba(20, 24, 36, 0.12);
  animation: rdt-open 0.45s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}
.rdt-route a.rdt-tour-card, .rdt-route a.rdt-tour-card:hover { color: var(--rdt-on, #fff); text-decoration: none; }
.rdt-tour-card:focus-visible { outline: 3px solid var(--rdt-ink); outline-offset: 3px; }
.rdt-tour-img { display: block; width: 100%; aspect-ratio: 5 / 3; object-fit: cover; background: rgba(255, 255, 255, 0.2); }
.rdt-tour-body { display: grid; gap: 2px; padding: clamp(14px, 1.2vw, 20px) clamp(18px, 1.7vw, 32px) clamp(18px, 1.6vw, 30px); }
.rdt-tour-title { font-family: var(--wp--preset--font-family--display, inherit); font-size: clamp(var(--rdt-fs-1), 1.6vw, var(--rdt-fs-2)); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 6px; }
.rdt-tour-place { font-size: var(--rdt-fs-0); line-height: 1.2; }
.rdt-tour-address { font-size: var(--rdt-fs-s); opacity: 0.9; }
@keyframes rdt-open {
  from { opacity: 0; transform: translateY(8px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Cabecera de la ruta */
.rdt-route { --rdt-bar-h: 56px; }
.admin-bar .rdt-route { --rdt-admin: var(--wp-admin--admin-bar--height, 32px); }
.rdt-route-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: var(--rdt-bar-h);
  padding: 0 clamp(16px, 2.6vw, 50px);
  background: var(--rdt-bar);
  color: var(--rdt-bar-on);
  box-sizing: border-box;
}
.rdt-route-bar a { color: inherit !important; text-decoration: none !important; }
.rdt-route-brand { display: flex; align-items: baseline; gap: 0.45em; min-width: 0; font-family: var(--wp--preset--font-family--display, inherit); font-size: clamp(var(--rdt-fs-1), 1.7vw, var(--rdt-fs-2)); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; white-space: nowrap; }
.rdt-route-brand strong { font-weight: inherit; }
.rdt-route-sep { opacity: 0.85; }
.rdt-route-dates { margin: 0; font-size: clamp(var(--rdt-fs-s), 0.9vw, var(--rdt-fs-0)); font-weight: 300; letter-spacing: 0.02em; opacity: 0.92; white-space: nowrap; }
.rdt-route-actions { display: flex; justify-content: flex-end; align-items: center; gap: clamp(14px, 1.6vw, 28px); }
.rdt-route-icon { display: grid; place-items: center; width: clamp(28px, 2vw, 38px); height: clamp(28px, 2vw, 38px); border-radius: 50%; color: inherit; cursor: pointer; list-style: none; }
.rdt-route-icon::-webkit-details-marker { display: none; }
.rdt-route-icon svg { width: 100%; height: 100%; }
.rdt-route-icon:hover { opacity: 0.85; }
.rdt-route-menu { position: relative; }
.rdt-route-menu-panel {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 20;
  min-width: 240px; padding: 10px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  color: var(--rdt-ink); box-shadow: 0 24px 50px -20px rgba(20, 24, 36, 0.45);
}
.rdt-route-menu-panel ul { list-style: none; margin: 0 0 8px; padding: 0; }
.rdt-route-menu-panel li a { display: block; padding: 10px 14px; border-radius: var(--rdt-btn-r); color: var(--rdt-ink) !important; font-weight: 600; }
.rdt-route-menu-panel li a:hover { background: rgba(31, 36, 48, 0.06); }
.rdt-route-menu-panel .rdt-lang { margin: 0 6px 4px; }

@media (min-width: 721px) {
  .rdt-route { --rdt-bar-h: clamp(60px, 4.6vw, 84px); }
}
@media (max-width: 720px) {
  .rdt-route-bar { grid-template-columns: 1fr auto; row-gap: 0; padding-top: 10px; padding-bottom: 10px; }
  .rdt-route-dates { grid-column: 1; grid-row: 2; font-size: var(--rdt-fs-s); opacity: 0.9; }
  .rdt-route-actions { grid-column: 2; grid-row: 1 / 3; }
  .rdt-route .rdt-tour { display: none; }
}

/* Lista de fichas: tira horizontal en móvil, oculta en escritorio (allí están en el mapa) */
.rdt-cards {
  list-style: none;
  margin: 14px 0 0;
  padding: 0 0 6px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.rdt-cards-item { flex: 0 0 auto; max-width: 78vw; scroll-snap-align: start; opacity: 0; transform: translateY(10px); }
.rdt-route.is-open .rdt-cards-item { animation: rdt-open 0.45s cubic-bezier(0.22, 1.2, 0.36, 1) var(--rdt-delay) forwards; }

@media (max-width: 720px) {
  .rdt-map { height: 64vh; min-height: 360px; border-radius: 18px; }
}
@media (min-width: 721px) {
  .rdt-cards { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .rdt-pin, .rdt-cards-item { opacity: 1; transform: none; }
  .rdt-route.is-dropping .rdt-pin, .rdt-route.is-open .rdt-cards-item, .rdt-tour-card { animation: none; }
}

.rdt-empty { margin: 12px 0 0; color: var(--rdt-muted); text-align: center; }
.rdt-notice { padding: 12px 16px; border-radius: 12px; background: #fff4e5; color: #7a4b00; }

/* Banderas del menú: separador y las tres repartidas a todo el ancho */
.rdt-flags { display: flex; justify-content: space-between; gap: 12px; margin: 6px 4px 4px; padding: 14px 10px 6px; border-top: 1px solid rgba(31, 36, 48, 0.1); }
.rdt-flag { position: relative; display: block; width: 48px; height: 32px; border-radius: 7px; overflow: hidden; box-shadow: 0 0 0 1px rgba(31, 36, 48, 0.12); opacity: 0.7; transition: transform 0.15s ease, opacity 0.15s ease; }
.rdt-flag svg { display: block; width: 100%; height: 100%; }
a.rdt-flag:hover { opacity: 1; transform: translateY(-2px); }
.rdt-flag.is-current { opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--rdt-bar, #1f2430); }
.rdt-flag.is-soon { filter: grayscale(1); opacity: 0.35; cursor: default; }
.rdt-route .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Pantallas de la ruta (carta, cómo funciona, acceso) */
.rdt-route.is-view .rdt-view { min-height: calc(100svh - var(--rdt-bar-h, 0px) - var(--rdt-admin, 0px)); box-sizing: border-box; padding: clamp(28px, 4vw, 64px) clamp(16px, 2.6vw, 50px) 64px; background: #f6f2ed; }
.rdt-view-head { margin: 0 0 clamp(20px, 2.4vw, 36px); }
.rdt-view-head h1, .rdt-login h1 { margin: 0; font-family: var(--wp--preset--font-family--display, inherit); font-size: clamp(var(--rdt-fs-3), 3.6vw, var(--rdt-fs-5)); font-weight: 700; line-height: 1.02; letter-spacing: -0.015em; color: var(--rdt-ink); }
.rdt-view-head p { margin: 8px 0 0; font-size: var(--rdt-fs-0); color: var(--rdt-muted); }

.rdt-menu-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 1.4vw, 24px); grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rdt-menu-grid li { display: flex; }
.rdt-menu-grid .rdt-tour-card { display: flex; flex-direction: column; width: 100%; animation: rdt-open 0.45s cubic-bezier(0.22, 1.2, 0.36, 1) var(--rdt-delay, 0ms) both; transition: transform 0.2s ease; }
.rdt-menu-grid .rdt-tour-card:hover { transform: translateY(-4px); }
.rdt-menu-grid .rdt-tour-body { flex: 1; align-content: start; }
.rdt-menu-grid .rdt-tour-title { font-size: clamp(var(--rdt-fs-1), 1.4vw, var(--rdt-fs-2)); }
.rdt-route a.rdt-tour-card { color: var(--rdt-on, #fff); text-decoration: none; }
@media (max-width: 1200px) { .rdt-menu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 960px) { .rdt-menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rdt-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rdt-menu-grid .rdt-tour-body { padding: 12px 14px 16px; } }

.rdt-steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 900px; counter-reset: none; }
.rdt-steps-list li { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px -22px rgba(20, 24, 36, 0.35); }
.rdt-steps-list b { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--rdt-color); color: #fff; font-family: var(--wp--preset--font-family--display, inherit); font-size: var(--rdt-fs-1); }
.rdt-steps-list p { margin: 0; font-size: var(--rdt-fs-0); line-height: 1.4; color: var(--rdt-ink); }
.rdt-view-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.rdt-view-button { padding: 12px 20px; border-radius: var(--rdt-btn-r); background: rgba(31, 36, 48, 0.07); color: var(--rdt-ink) !important; font-weight: 600; text-decoration: none !important; }
.rdt-view-button.is-primary { background: var(--rdt-ink); color: #fff !important; }

/* Inicio de sesión: a pantalla completa sobre el color de la ruta, sin corte con la barra */
.rdt-route:is(.rdt-view-cuenta, .rdt-view-mis-tapas, .rdt-view-pasaporte) .rdt-view, .rdt-route.rdt-view-pasaporte .rdt-view, .rdt-route.rdt-view-mis-tapas .rdt-view { display: flex; background: var(--rdt-bar); color: var(--rdt-bar-on); }
.rdt-login { display: flex; flex-direction: column; width: 100%; max-width: 1640px; margin: 0 auto; text-align: center; }
.rdt-login h1 { margin: clamp(16px, 6vh, 110px) 0 clamp(32px, 6vh, 80px); font-size: clamp(var(--rdt-fs-3), 3.6vw, var(--rdt-fs-5)); font-weight: 600; color: inherit; }
.rdt-login-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 120px); align-items: start; }
.rdt-login-col { display: grid; gap: 22px; justify-items: center; }
.rdt-login-accounts { justify-items: start; }
.rdt-login-col h2 { margin: 0; font-family: var(--wp--preset--font-family--display, inherit); font-size: clamp(var(--rdt-fs-1), 1.6vw, var(--rdt-fs-2)); font-weight: 500; letter-spacing: -0.01em; color: inherit; }
.rdt-login-col h2 label { cursor: pointer; }
.rdt-login { --rdt-login-h: clamp(60px, 4.2vw, 76px); }
.rdt-login-field { display: flex; align-items: center; width: min(560px, 100%); height: var(--rdt-login-h); border-radius: var(--rdt-btn-r); background: #fff; color: var(--rdt-ink); overflow: hidden; }
.rdt-login-field span { padding: 0 4px 0 20px; font-size: var(--rdt-fs-0); font-weight: 500; color: var(--rdt-muted); }
.rdt-login-field input { flex: 1; min-width: 0; height: 100%; padding: 0 12px; border: 0; background: none; font: inherit; font-size: var(--rdt-fs-0); font-weight: 400; color: var(--rdt-ink); outline: none; }
.rdt-login-field button { display: grid; place-items: center; width: calc(var(--rdt-login-h) - 20px); height: calc(var(--rdt-login-h) - 20px); margin-right: 10px; border: 0; border-radius: var(--rdt-btn-r); background: var(--rdt-bar); color: var(--rdt-bar-on); cursor: pointer; }
.rdt-login-field button:disabled { opacity: 0.35; cursor: default; }
.rdt-login-provider { display: grid; place-items: center; width: var(--rdt-login-h); height: var(--rdt-login-h); padding: 0; border: 0; border-radius: var(--rdt-btn-r); background: #fff; cursor: pointer; }
.rdt-login-provider svg { width: 44%; height: auto; }
.rdt-login-provider:disabled { cursor: default; }
.rdt-login-col small { font-size: var(--rdt-fs-s); opacity: 0.75; }
.rdt-login-accounts small { justify-self: start; }
.rdt-login-legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 44px; margin-top: auto; padding-top: 48px; font-size: var(--rdt-fs-0); opacity: 0.9; }
.rdt-login-legal a { color: inherit !important; text-decoration: none !important; }
.rdt-login-legal a:hover { text-decoration: underline !important; }
@media (max-width: 720px) {
  .rdt-login-cols { grid-template-columns: 1fr; }
  .rdt-login-accounts { justify-items: center; }
  .rdt-login-accounts small { justify-self: center; }
}

/* «Mi cuenta»: el color de la barra se despliega hacia abajo y luego aparecen los elementos */
.rdt-route-bar { position: relative; z-index: 10; }
.rdt-login-sheet {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 9;
  overflow-y: auto; background: var(--rdt-bar); color: var(--rdt-bar-on);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.65s cubic-bezier(0.7, 0, 0.2, 1), background-color 0.4s ease;
}
.rdt-login-sheet.is-open { clip-path: inset(0 0 0 0); }
.rdt-login-sheet.is-closing { transition-duration: 0.45s; transition-delay: 0.1s; }
.rdt-login-sheet .rdt-view { display: flex; min-height: 100%; box-sizing: border-box; padding: clamp(28px, 4vw, 64px) clamp(16px, 2.6vw, 50px) 40px; }
.rdt-route-bar, .rdt-route.is-view .rdt-view { transition: background-color 0.4s ease, color 0.4s ease; }
.rdt-auth-step { display: flex; flex-direction: column; }
.rdt-login-sheet .rdt-auth-step > *, .rdt-login-sheet .rdt-login-legal, .rdt-login-sheet .rdt-login-col {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.rdt-login-sheet.is-open .rdt-auth-step > *, .rdt-login-sheet.is-open .rdt-login-legal, .rdt-login-sheet.is-open .rdt-login-col {
  opacity: 1; transform: none;
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rdt-login-sheet.is-open .rdt-auth-step > :first-child { transition-delay: 0.35s; }
.rdt-login-sheet.is-open .rdt-auth-step > :nth-child(2) { transition-delay: 0.45s; }
.rdt-login-sheet.is-open .rdt-login-col:first-child { transition-delay: 0.5s; }
.rdt-login-sheet.is-open .rdt-login-col:last-child { transition-delay: 0.62s; }
.rdt-login-sheet.is-open .rdt-login-legal { transition-delay: 0.75s; }
.rdt-route-bar.is-sheet-open .rdt-route-account { background: rgba(255, 255, 255, 0.16); }
html.rdt-sheet-lock { overflow: hidden; }

/* Entrada directa a /raval/cuenta y cambio de pantalla (código, nombre, correo, cuenta) */
.rdt-route:is(.rdt-view-cuenta, .rdt-view-mis-tapas, .rdt-view-pasaporte) .rdt-auth-step > *, .rdt-route:is(.rdt-view-cuenta, .rdt-view-mis-tapas, .rdt-view-pasaporte) .rdt-login-col, .rdt-route:is(.rdt-view-cuenta, .rdt-view-mis-tapas, .rdt-view-pasaporte) .rdt-login-legal,
.rdt-auth-step.is-entering > *, .rdt-auth-step.is-entering .rdt-auth-q > *, .rdt-auth-step.is-entering .rdt-account > * { animation: rdt-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.rdt-route:is(.rdt-view-cuenta, .rdt-view-mis-tapas, .rdt-view-pasaporte) .rdt-auth-step > :first-child { animation-delay: 0.1s; }
.rdt-route:is(.rdt-view-cuenta, .rdt-view-mis-tapas, .rdt-view-pasaporte) .rdt-login-col:first-child { animation-delay: 0.22s; }
.rdt-route:is(.rdt-view-cuenta, .rdt-view-mis-tapas, .rdt-view-pasaporte) .rdt-login-col:last-child { animation-delay: 0.34s; }
.rdt-route:is(.rdt-view-cuenta, .rdt-view-mis-tapas, .rdt-view-pasaporte) .rdt-login-legal { animation-delay: 0.46s; }
.rdt-auth-step.is-entering .rdt-auth-q > :nth-child(2), .rdt-auth-step.is-entering .rdt-account > :nth-child(2) { animation-delay: 0.08s; }
.rdt-auth-step.is-entering .rdt-auth-q > :nth-child(n+3), .rdt-auth-step.is-entering .rdt-account > :nth-child(3) { animation-delay: 0.16s; }
.rdt-auth-step.is-entering .rdt-account > :nth-child(n+4) { animation-delay: 0.24s; }
@keyframes rdt-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Menú con la sesión abierta */
.rdt-if-in { display: none !important; }
html.rdt-signed-in .rdt-if-in { display: list-item !important; }
.rdt-route-menu-panel .rdt-menu-sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(31, 36, 48, 0.1); }
.rdt-route-menu-panel li button { display: block; width: 100%; padding: 10px 14px; border: 0; border-radius: var(--rdt-btn-r); background: none; color: var(--rdt-ink); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.rdt-route-menu-panel li button:hover { background: rgba(31, 36, 48, 0.06); }
.rdt-route-account .rdt-route-avatar { width: 100%; height: 100%; border-radius: 50%; background: #fff; object-fit: cover; box-shadow: 0 0 0 1.5px currentColor; }

/* Preguntas de bienvenida (una por pantalla) */
.rdt-auth-q { display: flex; flex-direction: column; align-items: center; gap: 22px; width: 100%; max-width: 640px; margin: 0 auto; text-align: center; }
.rdt-auth-q h1 { margin: clamp(16px, 8vh, 140px) 0 clamp(8px, 2vh, 24px); }
.rdt-auth-q .rdt-login-field { width: 100%; }
.rdt-auth-q small, .rdt-login-col small { font-size: var(--rdt-fs-s); line-height: 1.45; opacity: 0.8; }
[data-rdt-msg].is-error { opacity: 1 !important; font-weight: 600; }
.rdt-auth-q.is-busy, .rdt-account-data.is-busy { opacity: 0.7; }
.rdt-auth-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: 0; }
.rdt-auth-link { padding: 4px 0; border: 0; background: none; color: inherit; font: inherit; font-size: var(--rdt-fs-s); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; opacity: 0.85; cursor: pointer; }
.rdt-auth-link:hover { opacity: 1; }
.rdt-auth-link.is-danger.is-armed { opacity: 1; font-weight: 600; }
.rdt-auth-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 1px solid currentColor; border-radius: var(--rdt-btn-r); background: none; color: inherit !important; font: inherit; font-size: var(--rdt-fs-s); font-weight: 500; text-decoration: none !important; cursor: pointer; }
.rdt-auth-pill.is-solid { border-color: transparent; background: #fff; color: var(--rdt-ink) !important; }
.rdt-auth-pill:disabled { opacity: 0.5; }

/* Mi cuenta */
.rdt-account { display: grid; gap: clamp(26px, 3vw, 44px); width: 100%; max-width: 1180px; margin: 0 auto; text-align: left; }
.rdt-account-head { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.rdt-account-avatar { flex: none; width: clamp(84px, 7vw, 128px); aspect-ratio: 1; border-radius: 50%; background: #fff; overflow: hidden; }
.rdt-account-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rdt-account-eyebrow { margin: 0 0 4px; font-size: var(--rdt-fs-s); letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.75; }
.rdt-login .rdt-account-head h1 { margin: 0; text-align: left; }
.rdt-account-block h2 { margin: 0 0 14px; font-family: var(--wp--preset--font-family--display, inherit); font-size: var(--rdt-fs-1); font-weight: 500; color: inherit; }
.rdt-avatar-grid, .rdt-color-grid { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rdt-avatar-grid { grid-template-columns: repeat(10, minmax(0, 76px)); }
.rdt-avatar-grid button { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: #fff; overflow: hidden; cursor: pointer; box-shadow: 0 0 0 0 transparent; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.rdt-avatar-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rdt-avatar-grid button:hover { transform: translateY(-2px); }
.rdt-avatar-grid button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--rdt-bar), 0 0 0 5px currentColor; }
.rdt-color-grid { grid-template-columns: repeat(auto-fill, 42px); }
.rdt-color-grid button { display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 0; border: 2px solid rgba(255, 255, 255, 0.85); border-radius: 50%; background: var(--c); color: #fff; font: inherit; font-size: var(--rdt-fs-xs); font-weight: 600; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.rdt-color-grid button:hover { transform: scale(1.06); }
.rdt-color-grid button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--rdt-bar), 0 0 0 5px currentColor; }
.rdt-account-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; align-items: end; max-width: 820px; }
.rdt-account-data label { display: grid; gap: 6px; font-size: var(--rdt-fs-s); }
.rdt-account-data label > span:first-child { opacity: 0.8; }
.rdt-account-data input { height: 46px; padding: 0 14px; border: 0; border-radius: var(--rdt-btn-r); background: #fff; color: var(--rdt-ink); font: inherit; font-size: var(--rdt-fs-0); }
.rdt-account-data input[readonly] { background: rgba(255, 255, 255, 0.75); }
.rdt-account-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 8px; }
@media (max-width: 900px) {
  .rdt-avatar-grid { grid-template-columns: repeat(5, minmax(0, 76px)); }
  .rdt-color-grid { grid-template-columns: repeat(auto-fill, 38px); }
  .rdt-account-data { grid-template-columns: 1fr; }
}

/* Área de usuario: submenú, datos plegados, avatares por familias, mis tapas y pasaporte */
.rdt-auth-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 1px solid currentColor; border-radius: var(--rdt-btn-r); background: none; color: inherit !important; font: inherit; font-size: var(--rdt-fs-s); font-weight: 600; text-decoration: none !important; white-space: nowrap; cursor: pointer; transition: transform 0.15s ease, opacity 0.15s ease; }
.rdt-auth-btn:hover { transform: translateY(-1px); }
.rdt-auth-btn:disabled { opacity: 0.5; transform: none; }
.rdt-auth-btn.is-solid { border-color: transparent; background: #fff; color: var(--rdt-ink) !important; }
.rdt-auth-btn.is-small { min-height: 34px; padding: 0 14px; font-size: var(--rdt-fs-s); }
.rdt-auth-btn.is-danger { border-color: transparent; background: #D7362B; color: #fff !important; box-shadow: 0 10px 24px -14px rgba(120, 20, 10, 0.8); }
.rdt-auth-btn.is-danger.is-armed { background: #A8221A; }
.rdt-account-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(20px, 3vw, 48px); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.rdt-account-tabs::-webkit-scrollbar { display: none; }
.rdt-account-tabs a, .rdt-account-tabs button { position: relative; flex: none; padding: 6px 0 14px; white-space: nowrap; border: 0; background: none; color: inherit !important; font: inherit; font-size: var(--rdt-fs-0); font-weight: 500; text-decoration: none !important; opacity: 0.72; cursor: pointer; transition: opacity 0.15s ease; }
.rdt-account-tabs a:hover, .rdt-account-tabs button:hover { opacity: 1; }
.rdt-account-tabs a[aria-current] { opacity: 1; font-weight: 700; }
.rdt-account-tabs a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: currentColor; }
.rdt-account-panel { display: grid; gap: clamp(26px, 3vw, 44px); }
.rdt-account-panel.is-entering > *, .rdt-account-details.is-entering, .rdt-avatar-pick.is-entering { animation: rdt-rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.rdt-account-panel.is-entering > :nth-child(2) { animation-delay: 0.06s; }
.rdt-account-panel.is-entering > :nth-child(n+3) { animation-delay: 0.12s; }
.rdt-account-hello { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.rdt-login .rdt-account-hello h1 { margin: 0; text-align: left; }
.rdt-account-details[hidden], .rdt-avatar-pick[hidden], .rdt-user-menu[hidden] { display: none !important; }
.rdt-account-data label.rdt-account-phone { grid-column: span 1; }
.rdt-account-inline { display: flex; gap: 10px; }
.rdt-account-inline input { flex: 1; min-width: 0; }
.rdt-account-save { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 4px 0 0; }
.rdt-account-note:empty { display: none; }
.rdt-avatar-groups { display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 44px); margin: 0; padding: 0; list-style: none; }
.rdt-avatar-group { display: grid; justify-items: center; gap: 10px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: var(--rdt-fs-s); font-weight: 600; cursor: pointer; }
.rdt-avatar-bubble { display: block; width: clamp(84px, 7vw, 110px); aspect-ratio: 1; border-radius: 50%; background: #fff; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.rdt-avatar-bubble img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rdt-avatar-group:hover .rdt-avatar-bubble { transform: translateY(-3px); }
.rdt-avatar-group[aria-expanded="true"] .rdt-avatar-bubble { box-shadow: 0 0 0 3px var(--rdt-bar), 0 0 0 5px currentColor; }
.rdt-avatar-group[data-current] span:last-child::after { content: " ✓"; }
.rdt-avatar-pick { margin-top: 22px; }
.rdt-account-foot { padding-top: 22px; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.rdt-account-title h1 { margin: 0 0 6px !important; text-align: left; }
.rdt-account-title p { margin: 0; font-size: var(--rdt-fs-0); opacity: 0.85; }
.rdt-account-empty { display: grid; justify-items: start; gap: 18px; padding: clamp(24px, 3vw, 40px); border-radius: 18px; background: color-mix(in srgb, currentColor 9%, transparent); }
.rdt-account-empty p { margin: 0; max-width: 46ch; font-family: var(--wp--preset--font-family--display, inherit); font-size: clamp(var(--rdt-fs-1), 1.5vw, var(--rdt-fs-2)); line-height: 1.3; }
.rdt-menu-grid li { position: relative; }
.rdt-mytapas li { transition: opacity 0.25s ease, transform 0.25s ease; }
.rdt-mytapas li.is-leaving { opacity: 0; transform: scale(0.94); }
.rdt-fav { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 2px solid #fff; border-radius: var(--rdt-btn-r); background: none; color: #fff; cursor: pointer; filter: drop-shadow(0 1px 3px rgba(20, 24, 36, 0.45)); transition: transform 0.15s ease; }
.rdt-fav:hover { transform: scale(1.08); }
.rdt-fav[aria-pressed="true"] { --rdt-heart-fill: #fff; }
.rdt-fav[aria-pressed="true"] svg { animation: rdt-heart 0.35s ease; }
@keyframes rdt-heart { 50% { transform: scale(1.3); } }
.rdt-polaroids { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 44vw), 1fr)); gap: clamp(20px, 3vw, 40px); margin: 0; padding: 8px 0 0; list-style: none; }
.rdt-polaroids a { display: block; color: var(--rdt-ink) !important; text-decoration: none !important; }
.rdt-polaroids figure { margin: 0; padding: 14px 14px 0; background: #fff; transform: rotate(var(--tilt, 0deg)); box-shadow: 0 18px 34px -18px rgba(20, 24, 36, 0.6); transition: transform 0.25s ease; }
.rdt-polaroids a:hover figure { transform: rotate(0deg) scale(1.03); }
.rdt-polaroids img, .rdt-polaroid-blank { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.rdt-polaroids figcaption { padding: 16px 4px 22px; font-family: var(--wp--preset--font-family--display, inherit); font-size: var(--rdt-fs-0); font-weight: 600; line-height: 1.2; text-align: center; }
.rdt-route-user { position: relative; }
.rdt-route-bar.is-user-open .rdt-route-account { background: rgba(255, 255, 255, 0.16); }
@media (max-width: 720px) {
  .rdt-account-data { grid-template-columns: 1fr; }
  .rdt-account-tabs { gap: 0 20px; margin: 0 -16px; padding: 0 16px; }
  .rdt-account-tabs a, .rdt-account-tabs button { font-size: var(--rdt-fs-s); }
  .rdt-avatar-groups { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .rdt-account-panel.is-entering > *, .rdt-account-details.is-entering, .rdt-avatar-pick.is-entering { animation: none !important; }
  .rdt-login-sheet, .rdt-login-sheet .rdt-auth-step > *, .rdt-login-sheet .rdt-login-col, .rdt-login-sheet .rdt-login-legal { transition: none !important; }
  .rdt-route:is(.rdt-view-cuenta, .rdt-view-mis-tapas, .rdt-view-pasaporte) .rdt-auth-step > *, .rdt-route:is(.rdt-view-cuenta, .rdt-view-mis-tapas, .rdt-view-pasaporte) .rdt-login-col, .rdt-auth-step.is-entering * { animation: none !important; }
}

/* Elms Sans tiene el espacio entre palabras muy ancho: se ajusta en todos los textos que la usan. */
.rdt-route-brand, .rdt-tour-title, .rdt-view-head h1, .rdt-login h1, .rdt-login-col h2, .rdt-account-block h2, .rdt-account-empty p, .rdt-polaroids figcaption, .rdt-steps-list p, .rdt-route h1, .rdt-route h2 { word-spacing: -0.14em; }

/* Corazón en las tarjetas del recorrido */

.rdt-tour > .rdt-fav { top: 8px; right: 8px; border: 0; width: 44px; height: 44px; }
.rdt-tour > .rdt-fav svg { width: 28px; height: 28px; }
