/* Recorrido interactivo de la agenda (index y /tu-agenda/). */
.ra-abrir { all: unset; position: relative; z-index: 1; display: block; width: 100%; cursor: zoom-in; border-radius: 18px; }
.ra-abrir:focus-visible { outline: 3px solid var(--cian, #40BAD5); outline-offset: 4px; }
.ra-chip { position: absolute; z-index: 2; right: 4%; bottom: 8%; display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: .4rem .9rem; border-radius: 999px; background: var(--cian, #40BAD5); color: var(--noche, #120136); font: 700 .85rem/1 Montserrat, system-ui, sans-serif; box-shadow: 0 10px 24px -8px rgba(0,0,0,.7); }
.ra-chip::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--noche, #120136); }
.ra-abrir:hover .ra-chip { filter: brightness(1.08); }

html.ra-bloqueo, html.ra-bloqueo body { overflow: hidden; }

.ra-dialogo { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(1100px, calc(100vw - 2rem)); max-width: none; max-height: calc(100svh - 2rem); padding: clamp(1rem, 2.5vw, 1.75rem); border: 1px solid rgba(64,186,213,.3); border-radius: 22px; background: var(--superficie, #1c0a4a); color: #fff; font-family: Montserrat, system-ui, sans-serif; overflow: auto; box-shadow: 0 40px 100px -30px rgba(0,0,0,.9); }
.ra-dialogo::backdrop { background: rgba(10, 0, 30, .78); backdrop-filter: blur(4px); }
.ra-cabecera { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ra-cabecera h2 { margin: 0; font-size: clamp(1.15rem, 2.4vw, 1.5rem); letter-spacing: -.01em; }
.ra-cerrar { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.ra-cerrar:hover { background: rgba(255,255,255,.16); }
.ra-ayuda { margin: .35rem 0 1rem; color: var(--lavanda, #c4bee3); font-size: .95rem; }

.ra-visor { position: relative; margin-bottom: 1rem; }
.ra-marco { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; border-radius: 14px; }
.ra-escena { position: relative; }
.ra-escena > img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }

.ra-punto { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; z-index: 1; }
.ra-punto span { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--cian, #40BAD5); color: var(--noche, #120136); font: 700 .85rem/1 Montserrat, system-ui, sans-serif; box-shadow: 0 0 0 3px rgba(18,1,54,.85), 0 6px 16px -4px rgba(0,0,0,.6); }
.ra-punto span::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--cian, #40BAD5); animation: ra-latido 2s ease-out infinite; }
.ra-punto.activo span { background: #fff; }
.ra-punto:focus-visible { outline: none; }
.ra-punto:focus-visible span { outline: 3px solid #fff; outline-offset: 3px; }
@keyframes ra-latido { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }

.ra-burbuja { position: absolute; z-index: 3; width: min(300px, calc(100% - 16px)); padding: 1rem 1.1rem; border-radius: 14px; background: var(--noche, #120136); color: #fff; border: 1px solid rgba(64,186,213,.45); box-shadow: 0 24px 50px -16px rgba(0,0,0,.9); }
.ra-burbuja::before { content: ""; position: absolute; left: var(--flecha, 50%); top: -7px; width: 12px; height: 12px; margin-left: -6px; transform: rotate(45deg); background: inherit; border-left: inherit; border-top: inherit; }
.ra-burbuja.arriba::before { top: auto; bottom: -7px; border: 0; border-right: inherit; border-bottom: inherit; }
.ra-burbuja h3 { margin: 0 0 .35rem; font-size: 1rem; color: var(--cian, #40BAD5); outline: none; }
.ra-burbuja p { margin: 0; font-size: .92rem; line-height: 1.45; color: var(--lavanda, #c4bee3); }
.ra-acciones { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; margin-top: .85rem; }
.ra-progreso { margin-right: auto; font-size: .8rem; color: var(--lavanda, #c4bee3); }
.ra-mini { min-height: 44px; padding: .5rem .95rem; border: 0; border-radius: 14px; background: var(--cian, #40BAD5); color: var(--noche, #120136); font: 700 .85rem Montserrat, system-ui, sans-serif; cursor: pointer; }
.ra-mini.secundario { background: rgba(255,255,255,.1); color: #fff; }

.ra-pie { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
.ra-boton { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .7rem 1.25rem; border: 0; border-radius: 999px; background: var(--cian, #40BAD5); color: var(--noche, #120136); font: 700 .95rem Montserrat, system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.ra-boton.secundario { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.ra-pie .ra-boton:first-child { margin-right: auto; }
.ra-dialogo :focus-visible { outline: 3px solid var(--cian, #40BAD5); outline-offset: 3px; }

@media (max-width: 600px) {
  .ra-dialogo { width: calc(100% - 1rem); max-height: calc(100svh - 1rem); padding: 1rem .75rem; border-radius: 18px; }
  .ra-pie .ra-boton { flex: 1 1 100%; }
  .ra-pie .ra-boton:first-child { margin-right: 0; }
  .ra-chip { font-size: .78rem; min-height: 32px; padding: .35rem .75rem; }
}
@media (max-width: 640px) {
  .ra-escena { width: 720px; }
  .ra-punto span { width: 28px; height: 28px; font-size: .78rem; }
  .ra-visor { padding-bottom: .25rem; }
}
@media (prefers-reduced-motion: reduce) { .ra-punto span::after { animation: none; opacity: .5; } }
