/* ==========================================================================
   Recorrido Virtual 360° · Colegio Latino
   La foto 360° es el fondo; la interfaz vive en capas de "vidrio" azul.
   Colores tomados de los botones y del logotipo: azul Latino (#0063db)
   y menta (#22d8c1). El nombre del ambiente imita la miniatura del coliseo:
   franja azul, texto blanco en Montserrat y círculo menta con ícono azul.
   ========================================================================== */

:root {
  --azul: #0063db;          /* azul de los botones y del logotipo */
  --azul-claro: #1a7ff0;
  --azul-prof: #063c8f;     /* azul profundo (fondos) */
  --azul-tinta: #06224f;    /* texto sobre fondos claros */
  --celeste: #1bbed0;
  --menta: #22d8c1;         /* borde menta de los botones */
  --blanco: #ffffff;
  --nube: #e3eefc;          /* blanco azulado: texto secundario sobre oscuro */
  --vidrio: rgba(5, 28, 66, 0.74);
  --vidrio-borde: rgba(255, 255, 255, 0.18);
  --degradado: linear-gradient(135deg, var(--azul) 0%, var(--celeste) 70%, var(--menta) 100%);
  --sombra: 0 18px 48px rgba(3, 20, 56, 0.38);
  --sombra-suave: 0 6px 18px rgba(3, 20, 56, 0.3);
  --f-display: "Montserrat", "Segoe UI", Arial, sans-serif;
  --f-texto: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  --radio: 18px;
  --escala-boton: 1;        /* tamaño de los botones dentro de la foto */
  --seguro-sup: env(safe-area-inset-top, 0px);
  --seguro-inf: env(safe-area-inset-bottom, 0px);
  --seguro-izq: env(safe-area-inset-left, 0px);
  --seguro-der: env(safe-area-inset-right, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--azul-prof);
  color: var(--blanco);
  font-family: var(--f-texto);
  font-size: 15px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--menta);
  outline-offset: 2px;
}
[hidden] { display: none !important; }
.rv-solo-lector {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.rv { position: fixed; inset: 0; overflow: hidden; }
.rv__panorama { position: absolute; inset: 0; background: var(--azul-prof); }

/* Pannellum: ocultamos su interfaz propia; usamos la nuestra */
.pnlm-load-box, .pnlm-controls-container, .pnlm-about-msg, .pnlm-error-msg { display: none !important; }
.pnlm-container { background: var(--azul-prof) !important; font-family: var(--f-texto) !important; }
.pnlm-render-container { cursor: grab; }
.pnlm-grabbing .pnlm-render-container, .pnlm-grabbing { cursor: grabbing; }

/* --------------------------------------------------------------------------
   Botones dentro de la foto (diseño del colegio)
   La caja del punto mide lo mismo que el círculo, así el círculo queda
   exactamente sobre la puerta y el rótulo se dibuja encima.
   -------------------------------------------------------------------------- */
.pnlm-hotspot-base.rv-pin {
  /* --k: tamaño del botón (pantalla × tamaño elegido en el editor de botones) */
  --k: calc(var(--escala-boton) * var(--tam-pin, 1));
  /* Colores del botón dibujado (los cambia el editor de botones) */
  --pin-fondo: var(--azul);
  --pin-borde: var(--menta);
  --pin-texto: var(--blanco);
  --pin-centro: var(--blanco);
  --pin-icono: var(--azul);
  --pin-brillo: rgba(34, 216, 193, 0.55);
  position: absolute; top: 0; left: 0;
  width: calc(45px * var(--k));
  height: calc(45px * var(--k));
  cursor: pointer;
  z-index: 3;
}
.rv-pin.rv-pin--menta { --pin-fondo: #22d8c1; --pin-borde: #0063db; --pin-texto: #06224f; --pin-centro: #ffffff; --pin-icono: #0063db; --pin-brillo: rgba(0, 99, 219, 0.45); }
.rv-pin.rv-pin--blanco { --pin-fondo: #ffffff; --pin-borde: #0063db; --pin-texto: #0063db; --pin-centro: #0063db; --pin-icono: #ffffff; --pin-brillo: rgba(255, 255, 255, 0.6); }
.rv-pin.rv-pin--amarillo { --pin-fondo: #ffc531; --pin-borde: #06224f; --pin-texto: #06224f; --pin-centro: #ffffff; --pin-icono: #06224f; --pin-brillo: rgba(255, 197, 49, 0.6); }
.rv-pin.rv-pin--naranja { --pin-fondo: #b35400; --pin-borde: #ffffff; --pin-texto: #ffffff; --pin-centro: #ffffff; --pin-icono: #b35400; --pin-brillo: rgba(242, 120, 12, 0.55); }
.rv-pin.rv-pin--rojo { --pin-fondo: #d62839; --pin-borde: #ffffff; --pin-texto: #ffffff; --pin-centro: #ffffff; --pin-icono: #d62839; --pin-brillo: rgba(214, 40, 57, 0.55); }
.rv-pin.rv-pin--verde { --pin-fondo: #157a41; --pin-borde: #ffffff; --pin-texto: #ffffff; --pin-centro: #ffffff; --pin-icono: #157a41; --pin-brillo: rgba(31, 157, 85, 0.55); }
.rv-pin.rv-pin--morado { --pin-fondo: #7340d8; --pin-borde: #ffffff; --pin-texto: #ffffff; --pin-centro: #ffffff; --pin-icono: #7340d8; --pin-brillo: rgba(115, 64, 216, 0.55); }
.rv-pin__img {
  position: absolute;
  display: block;
  max-width: none;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(3, 20, 56, 0.45));
  transition: transform 0.18s ease;
}
.rv-pin__pulso {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 3px solid var(--pin-borde);
  animation: rv-pulso 2.2s ease-out infinite;
  pointer-events: none;
}
.rv-pin:hover .rv-pin__img, .rv-pin:focus-visible .rv-pin__img { transform: scale(1.08); }

/* Réplica en CSS del mismo botón, para rótulos sin imagen (p. ej. "OTRA VISTA") */
.rv-pin__rotulo {
  position: absolute;
  left: 50%; bottom: calc(100% + 12px * var(--k));
  transform: translateX(-50%);
  min-width: calc(92px * var(--k));
  max-width: calc(150px * var(--k));
  padding: calc(6px * var(--k)) calc(12px * var(--k));
  border-radius: calc(9px * var(--k));
  background: var(--pin-fondo);
  border: 2px solid var(--pin-borde);
  box-shadow: 0 0 10px var(--pin-brillo), 0 4px 10px rgba(3, 20, 56, 0.45);
  color: var(--pin-texto);
  font: 800 calc(13px * var(--k))/1.08 var(--f-display);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  pointer-events: none;
  transition: transform 0.18s ease;
}
.rv-pin__rotulo::after {
  content: "";
  position: absolute; left: 50%; top: 100%;
  width: 12px; height: 12px;
  background: var(--pin-fondo);
  border-right: 2px solid var(--pin-borde);
  border-bottom: 2px solid var(--pin-borde);
  transform: translate(-50%, -6px) rotate(45deg);
}
.rv-pin__circulo {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--pin-fondo);
  border: calc(4px * var(--k)) solid var(--pin-borde);
  box-shadow: 0 0 10px var(--pin-brillo), 0 4px 10px rgba(3, 20, 56, 0.45);
  pointer-events: none;
}
.rv-pin__circulo::before {
  content: "";
  width: 56%; height: 56%;
  border-radius: 50%;
  background: var(--pin-centro);
}
.rv-pin__circulo svg {
  position: absolute;
  width: 34%; height: 34%;
  fill: none; stroke: var(--pin-icono); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
}
.rv-pin:hover .rv-pin__rotulo { transform: translateX(-50%) scale(1.06); }

/* Forma «píldora»: ícono y texto en una sola pieza, centrada en el punto */
.rv-pin--pildora .rv-pin__pulso { display: none; }
.rv-pin__pildora {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: calc(6px * var(--k));
  padding: calc(6px * var(--k)) calc(14px * var(--k)) calc(6px * var(--k)) calc(7px * var(--k));
  border-radius: 999px;
  background: var(--pin-fondo);
  border: 2px solid var(--pin-borde);
  box-shadow: 0 0 10px var(--pin-brillo), 0 4px 10px rgba(3, 20, 56, 0.45);
  color: var(--pin-texto);
  font: 800 calc(13px * var(--k))/1.1 var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: auto;              /* toda la píldora se puede tocar (el clic sube al punto) */
  transition: transform 0.18s ease;
}
.rv-pin__pildora svg {
  flex: 0 0 auto;
  width: calc(22px * var(--k)); height: calc(22px * var(--k));
  padding: calc(4px * var(--k));
  border-radius: 50%;
  background: var(--pin-centro);
  fill: none; stroke: var(--pin-icono); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  box-sizing: border-box;
}
.rv-pin:hover .rv-pin__pildora { transform: translate(-50%, -50%) scale(1.06); }

@keyframes rv-pulso {
  0%   { transform: scale(0.95); opacity: 0.9; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* Decoraciones (mascota y apuntes) ancladas en la foto */
.pnlm-hotspot-base.rv-decor {
  position: absolute; top: 0; left: 0;
  pointer-events: none;
  z-index: 1;
}
.rv-decor img, .rv-afiche img { -webkit-user-drag: none; user-select: none; }
.rv-decor img {
  display: block; width: 100%; height: 100%;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(3, 20, 56, 0.35));
  transform-origin: 50% 100%;
}
.rv-decor--flota img { animation: rv-flotar 4.5s ease-in-out infinite; }
.rv-decor--saluda img { animation: rv-saludar 5s ease-in-out infinite; }
@keyframes rv-flotar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3%); }
}
@keyframes rv-saludar {
  0%, 100% { transform: rotate(0deg); }
  45% { transform: rotate(0deg); }
  55% { transform: rotate(-2deg); }
  65% { transform: rotate(1.5deg); }
  75% { transform: rotate(0deg); }
}

/* Tarjeta informativa colgada en la pared de la foto */
.pnlm-hotspot-base.rv-afiche {
  position: absolute; top: 0; left: 0;
  cursor: pointer;
  z-index: 2;
}
.rv-afiche img {
  display: block; width: 100%; height: 100%; max-width: none;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(3, 20, 56, 0.45);
  outline: 3px solid rgba(34, 216, 193, 0.0);
  transition: outline-color 0.2s ease, transform 0.2s ease;
}
.rv-afiche:hover img, .rv-afiche:focus-visible img { outline-color: var(--menta); transform: scale(1.03); }
.rv-afiche__ver {
  position: absolute; left: 50%; top: calc(100% + 8px);
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--azul);
  border: 2px solid var(--menta);
  font: 800 12px/1.1 var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Barra superior: marca, nombre del ambiente, narración y controles
   -------------------------------------------------------------------------- */
.rv-superior {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex; align-items: flex-start; gap: 12px;
  padding: calc(12px + var(--seguro-sup)) calc(16px + var(--seguro-der)) 40px calc(16px + var(--seguro-izq));
  background: linear-gradient(180deg, rgba(3, 20, 56, 0.55) 0%, rgba(3, 20, 56, 0) 100%);
  pointer-events: none;
}
.rv-superior > * { pointer-events: auto; }

.rv-marca {
  flex: 0 0 auto;
  display: inline-flex; align-items: center;
  height: 48px; padding: 0 12px 0 8px;
  border-radius: 999px;
  background: var(--blanco);
  box-shadow: var(--sombra-suave);
  text-decoration: none;
}
.rv-marca img { height: 32px; width: auto; display: block; }
.rv-marca .rv-marca__iso { display: none; }

/* Nombre del ambiente: estilo de la miniatura "Coliseo Multifuncional" */
.rv-nombre {
  position: relative;
  flex: 0 1 auto; min-width: 0;
  display: inline-flex; align-items: center;
  height: 48px;
  margin-top: 0;
  padding: 0 62px 0 20px;
  border: 0;
  border-radius: 4px;
  background: var(--azul);
  box-shadow: var(--sombra-suave);
  color: var(--blanco);
  cursor: pointer;
  text-align: left;
  max-width: 460px;
}
.rv-nombre__texto {
  display: block;
  font: 700 21px/1.1 var(--f-display);
  letter-spacing: 0.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}
.rv-nombre__icono {
  position: absolute;
  right: -14px; top: 50%;
  width: 62px; height: 62px;
  transform: translateY(-58%);
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--menta);
  border: 3px solid var(--azul);
  box-shadow: 0 4px 12px rgba(3, 20, 56, 0.35);
  color: var(--azul);
}
.rv-nombre__icono svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rv-nombre[data-anim="si"] { animation: rv-nombre-entra 0.55s cubic-bezier(.2,.9,.3,1.2); }
.rv-nombre[data-anim="si"] .rv-nombre__icono { animation: rv-icono-entra 0.7s cubic-bezier(.2,.9,.3,1.3); }
@keyframes rv-nombre-entra {
  from { transform: translateX(-16px); opacity: 0; clip-path: inset(0 100% 0 0); }
  to   { transform: translateX(0); opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes rv-icono-entra {
  from { transform: translateY(-58%) scale(0.2) rotate(-90deg); }
  to   { transform: translateY(-58%) scale(1) rotate(0deg); }
}

/* Indicador de narración */
.rv-narra {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; margin-top: 6px; margin-left: 10px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--vidrio-borde);
  background: var(--vidrio);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font: 700 12px/1 var(--f-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.rv-narra__barras { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.rv-narra__barras i { display: block; width: 3px; height: 30%; border-radius: 2px; background: var(--menta); }
.rv-narra[data-estado="sonando"] .rv-narra__barras i { animation: rv-barra-eq 0.9s ease-in-out infinite; }
.rv-narra[data-estado="sonando"] .rv-narra__barras i:nth-child(2) { animation-delay: -0.3s; }
.rv-narra[data-estado="sonando"] .rv-narra__barras i:nth-child(3) { animation-delay: -0.6s; }
.rv-narra[data-estado="sonando"] .rv-narra__barras i:nth-child(4) { animation-delay: -0.15s; }
@keyframes rv-barra-eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

.rv-controles { flex: 0 0 auto; display: flex; gap: 8px; margin-left: auto; }
.rv-ctrl {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--vidrio-borde);
  background: var(--vidrio);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 0.15s ease;
}
.rv-ctrl svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rv-ctrl:hover { background: var(--azul); }
.rv-ctrl[aria-pressed="true"] { background: var(--degradado); border-color: transparent; }
.rv-ctrl[aria-pressed="false"] { opacity: 0.85; }

/* --------------------------------------------------------------------------
   Descripción (se abre al tocar el nombre)
   -------------------------------------------------------------------------- */
.rv-descripcion {
  position: absolute; z-index: 19;
  left: calc(16px + var(--seguro-izq));
  top: calc(72px + var(--seguro-sup));
  max-width: 420px;
  padding: 12px 40px 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--vidrio-borde);
  background: var(--vidrio);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--sombra-suave);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.rv-descripcion p { margin: 0; font-size: 14px; color: var(--nube); }
.rv-descripcion[data-visible="no"] { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.rv-descripcion__cerrar {
  position: absolute; top: 6px; right: 6px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--nube);
}
.rv-descripcion__cerrar:hover { background: rgba(255,255,255,0.12); }
.rv-descripcion__cerrar svg, .rv-tarjeta__cerrar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* --------------------------------------------------------------------------
   Barra inferior: patio, ambientes, siguiente y vistas
   -------------------------------------------------------------------------- */
.rv-inferior {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 20;
  display: flex; flex-direction: column; gap: 10px;
  padding: 44px calc(16px + var(--seguro-der)) calc(14px + var(--seguro-inf)) calc(16px + var(--seguro-izq));
  background: linear-gradient(0deg, rgba(3, 20, 56, 0.7) 0%, rgba(3, 20, 56, 0) 100%);
  pointer-events: none;
}
.rv-inferior > * { pointer-events: auto; }
.rv-fila { display: flex; align-items: center; gap: 10px; min-width: 0; }

.rv-boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 700 14px/1 var(--f-display);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}
.rv-boton svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rv-boton:hover { transform: translateY(-1px); }
.rv-boton--primario { background: var(--blanco); color: var(--azul); box-shadow: var(--sombra-suave); }
.rv-boton--primario:hover { background: var(--nube); }
.rv-boton--degradado { background: var(--azul); color: var(--blanco); border: 2px solid var(--menta); box-shadow: 0 0 10px rgba(34, 216, 193, 0.4), var(--sombra-suave); }
.rv-boton--degradado:hover { background: var(--azul-claro); }
.rv-boton--vidrio { background: var(--vidrio); color: var(--blanco); border-color: var(--vidrio-borde); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.rv-boton--fantasma { background: transparent; color: var(--blanco); border-color: rgba(255,255,255,0.4); }
.rv-boton--fantasma:hover { background: rgba(255,255,255,0.1); }
.rv-boton--claro { background: transparent; color: var(--azul-tinta); border-color: var(--azul-tinta); }

.rv-boton--siguiente { max-width: 320px; overflow: hidden; }
.rv-siguiente__etiqueta { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; }
.rv-siguiente__nombre { overflow: hidden; text-overflow: ellipsis; }

.rv-chips {
  flex: 1 1 auto; min-width: 0;
  display: flex; gap: 8px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 4px 2px;
  mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 14px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 14px), transparent 100%);
}
.rv-chips::-webkit-scrollbar { display: none; }
.rv-chip {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px 0 10px;
  border-radius: 999px;
  border: 1px solid var(--vidrio-borde);
  background: var(--vidrio);
  color: var(--blanco);
  font: 600 13px/1 var(--f-texto);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 0.15s ease;
}
.rv-chip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rv-chip:hover { background: var(--azul); }
.rv-chip[aria-current="true"] { background: var(--azul); border: 2px solid var(--menta); font-weight: 700; }

.rv-vistas { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-vistas:empty { display: none; }
.rv-vista {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(5, 28, 66, 0.55);
  color: var(--nube);
  font: 600 12px/1 var(--f-texto);
  cursor: pointer;
}
.rv-vista::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.5); }
.rv-vista[aria-current="true"] { background: var(--blanco); color: var(--azul-tinta); border-color: var(--blanco); }
.rv-vista[aria-current="true"]::before { background: var(--azul); }

/* --------------------------------------------------------------------------
   Menú del patio principal: miniaturas al estilo "Coliseo Multifuncional"
   -------------------------------------------------------------------------- */
.rv-hub {
  position: absolute; inset: 0; z-index: 30;
  display: grid; place-items: center;
  padding: 24px 16px;
  background: rgba(3, 20, 56, 0.42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: rv-aparecer 0.3s ease;
}
.rv-hub__panel {
  width: min(100%, 1040px);
  max-height: 100%;
  overflow: auto;
  padding: 24px 26px 20px;
  border-radius: 24px;
  border: 1px solid var(--vidrio-borde);
  background: var(--vidrio);
  box-shadow: var(--sombra);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.rv-hub__cabecera { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.rv-hub__cabecera h2 { margin: 4px 0 0; font: 800 clamp(20px, 3vw, 26px)/1.15 var(--f-display); text-wrap: balance; }
.rv-hub__cabecera .rv-eyebrow { font-size: 11px; letter-spacing: 0.2em; color: var(--menta); }
.rv-hub__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.rv-hub__subtitulo {
  margin: 18px 0 10px;
  font: 700 11px/1 var(--f-display);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--menta);
}
.rv-hub__servicios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rv-tumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 240 / 128;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: var(--azul-prof) center / cover no-repeat;
  box-shadow: 0 6px 16px rgba(3, 20, 56, 0.35);
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.rv-tumb::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3, 20, 56, 0) 40%, rgba(3, 20, 56, 0.25) 100%);
}
.rv-tumb:hover, .rv-tumb:focus-visible { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--menta), 0 12px 24px rgba(3, 20, 56, 0.45); }
.rv-tumb__banda {
  position: absolute; left: 0; right: 0; bottom: 14%;
  display: flex; align-items: center;
  min-height: 34%;
  padding: 4px 10px;
  background: var(--azul);
  color: var(--blanco);
  font: 700 clamp(12px, 1.35vw, 16px)/1.08 var(--f-display);
  text-wrap: balance;
}
.rv-tumb__icono {
  position: absolute; right: 7%; top: 9%;
  width: 30%; aspect-ratio: 1;
  max-width: 64px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--menta);
  border: 2px solid var(--azul);
  color: var(--azul);
}
.rv-tumb__icono svg { width: 58%; height: 58%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rv-tumb__vistas {
  position: absolute; left: 8px; top: 8px;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(3, 20, 56, 0.7);
  font: 700 10px/1.2 var(--f-display);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.rv-tumb--servicio { aspect-ratio: 240 / 96; }
.rv-tumb--servicio .rv-tumb__banda { bottom: 0; min-height: 44%; }

.rv-hub__pie { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.rv-hub__pie p { margin: 0; font-size: 13px; color: var(--nube); }

@keyframes rv-aparecer { from { opacity: 0; } to { opacity: 1; } }

/* --------------------------------------------------------------------------
   Tarjeta informativa (ventana)
   -------------------------------------------------------------------------- */
dialog.rv-tarjeta {
  width: min(94vw, 820px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  overflow: visible;
}
dialog.rv-tarjeta::backdrop { background: rgba(3, 20, 56, 0.62); backdrop-filter: blur(4px); }
dialog.rv-tarjeta[open] { animation: rv-tarjeta-entra 0.35s cubic-bezier(.2,.9,.3,1.15); }
dialog.rv-tarjeta img {
  display: block;
  width: 100%; height: auto;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 22px;
  box-shadow: var(--sombra);
}
.rv-tarjeta__cerrar {
  position: absolute; top: -14px; right: -14px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 3px solid var(--menta);
  background: var(--azul);
  color: var(--blanco);
  cursor: pointer;
  box-shadow: var(--sombra-suave);
}
.rv-tarjeta__cerrar svg { width: 18px; height: 18px; }
@keyframes rv-tarjeta-entra { from { opacity: 0; transform: scale(0.92) translateY(12px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Portada
   -------------------------------------------------------------------------- */
.rv-portada {
  position: absolute; inset: 0; z-index: 50;
  display: grid; place-items: center; align-items: safe center;
  padding: calc(24px + var(--seguro-sup)) 16px calc(24px + var(--seguro-inf));
  overflow-x: hidden; overflow-y: auto;
  background: var(--azul-prof);
  transition: opacity 0.6s ease, visibility 0.6s;
}
.rv-portada[data-visible="no"] { opacity: 0; visibility: hidden; }
.rv-portada__fondo {
  position: absolute; inset: -24px;
  background: url("../img/entrada.jpg") center 55% / cover no-repeat;
  filter: blur(6px) saturate(1.15);
  opacity: 0.55;
}
.rv-portada__fondo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(0, 99, 219, 0.9) 0%, rgba(6, 60, 143, 0.78) 45%, rgba(27, 190, 208, 0.7) 100%);
}
.rv-portada__contenido {
  position: relative;
  width: min(100%, 560px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.rv-portada__isotipo {
  width: 108px; height: 108px; border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.18), var(--sombra);
  object-fit: cover;
}
.rv-eyebrow {
  margin: 0;
  font: 700 12px/1.2 var(--f-display);
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--nube);
}
.rv-portada h1 {
  margin: 0;
  font: 800 clamp(44px, 11vw, 76px)/0.95 var(--f-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-wrap: balance;
}
.rv-portada__lema { margin: -4px 0 0; font: italic 400 clamp(17px, 3vw, 21px)/1.3 var(--f-texto); color: var(--nube); }
.rv-portada__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3);
  font: 700 12px/1 var(--f-display); letter-spacing: 0.12em; text-transform: uppercase;
}
.rv-portada__texto { margin: 4px 0 6px; max-width: 46ch; font-size: 16px; color: var(--nube); }
.rv-portada .rv-boton--primario { min-height: 54px; padding: 0 30px; font-size: 16px; }
.rv-portada .rv-boton--primario:disabled { opacity: 0.7; cursor: progress; transform: none; }
.rv-portada__acciones { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.rv-portada__vr { margin: 0; max-width: 48ch; color: var(--nube); font-size: 13px; }
.rv-vr {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid var(--menta);
  background: var(--azul-tinta);
  color: var(--blanco);
  white-space: nowrap;
}
.rv-vr [data-vr-icono] { display: inline-flex; }
.rv-vr svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rv-vr:disabled { opacity: 0.65; cursor: progress; }
.rv-vr__corto { display: none; }
.rv-vr-ayuda__pasos { padding-left: 22px; }
.rv-vr-ayuda__pasos li + li { margin-top: 10px; }
.rv-vr-ayuda__nota { font-size: 13px; }
.rv-en-vr > .rv-superior, .rv-en-vr > .rv-inferior { visibility: hidden; }
.rv-portada__ayuda {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  margin: 10px 0 0; padding: 0; list-style: none;
  font-size: 13px; color: var(--nube);
}
.rv-portada__ayuda li { display: inline-flex; align-items: center; gap: 6px; }
.rv-portada__ayuda svg { width: 16px; height: 16px; fill: none; stroke: var(--menta); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------------------
   Carga, avisos, ayuda, modo edición
   -------------------------------------------------------------------------- */
.rv-carga {
  position: absolute; left: 0; right: 0; top: 0; z-index: 40;
  height: 3px; overflow: hidden; background: rgba(255,255,255,0.12);
  opacity: 0; transition: opacity 0.2s ease;
}
.rv-carga[data-activa="si"] { opacity: 1; }
.rv-carga::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 38%;
  background: var(--degradado);
  animation: rv-barra 1.1s ease-in-out infinite;
}
@keyframes rv-barra { from { left: -40%; } to { left: 100%; } }

.rv-aviso {
  position: absolute; z-index: 45;
  left: 50%; top: calc(76px + var(--seguro-sup));
  transform: translateX(-50%);
  max-width: min(92vw, 520px);
  padding: 10px 16px; border-radius: 12px;
  background: var(--blanco); color: var(--azul-tinta);
  box-shadow: var(--sombra-suave);
  font-size: 14px; text-align: center;
  animation: rv-aparecer 0.25s ease;
}

.rv-bloqueo {
  position: absolute; inset: 0; z-index: 60;
  display: grid; place-items: center; padding: 16px;
  background: rgba(3, 20, 56, 0.9);
}
.rv-bloqueo__panel {
  width: min(100%, 560px); padding: 26px;
  border-radius: 24px; background: var(--blanco); color: var(--azul-tinta);
  box-shadow: var(--sombra);
}
.rv-bloqueo__panel h2 { margin: 0 0 8px; font: 800 22px/1.2 var(--f-display); color: var(--azul); }
.rv-bloqueo__panel p, .rv-bloqueo__panel li { font-size: 15px; }
.rv-bloqueo__panel ol { padding-left: 22px; }
.rv-bloqueo__panel code { font-family: Consolas, "Courier New", monospace; font-size: 13px; background: var(--nube); padding: 2px 6px; border-radius: 6px; }

dialog.rv-ayuda {
  width: min(92vw, 520px);
  padding: 0; border: 0; border-radius: 24px;
  background: var(--blanco); color: var(--azul-tinta);
  box-shadow: var(--sombra);
}
dialog.rv-ayuda::backdrop { background: rgba(3, 20, 56, 0.55); backdrop-filter: blur(3px); }
.rv-ayuda__cuerpo { padding: 24px 26px 22px; }
.rv-ayuda__cuerpo h2 { margin: 0 0 14px; font: 800 20px/1.2 var(--f-display); color: var(--azul); }
.rv-ayuda__lista { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.rv-ayuda__lista li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.rv-ayuda__lista svg { flex: 0 0 auto; width: 24px; height: 24px; fill: none; stroke: var(--azul); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.rv-ayuda__lista strong { display: block; font-family: var(--f-display); font-size: 14px; }
.rv-ayuda__pie { display: flex; justify-content: flex-end; margin-top: 20px; }
.rv-ayuda .rv-boton--degradado { min-height: 42px; }

.rv-editor {
  position: absolute; z-index: 35;
  right: calc(16px + var(--seguro-der)); top: calc(76px + var(--seguro-sup));
  width: min(92vw, 320px);
  padding: 14px 16px 12px;
  border-radius: 16px;
  background: var(--blanco); color: var(--azul-tinta);
  box-shadow: var(--sombra);
  font-size: 13px;
  border: 3px solid var(--menta);
}
.rv-editor__cabecera { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.rv-editor h3 { margin: 0; font: 800 15px/1.2 var(--f-display); color: var(--azul); }
.rv-editor__cerrar {
  border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer;
  background: var(--azul); color: var(--blanco); font: 700 12px/1 var(--f-display);
}
.rv-editor__ayuda { margin: 0 0 10px; color: #3a4c6b; line-height: 1.4; }
.rv-editor__sel {
  display: flex; flex-direction: column; gap: 2px;
  margin-bottom: 10px; padding: 8px 10px; border-radius: 10px;
  background: var(--nube);
  font-variant-numeric: tabular-nums;
}
.rv-editor__sel strong { font: 700 13px/1.2 var(--f-display); color: var(--azul-tinta); }
.rv-editor__sel span { font-family: Consolas, "Courier New", monospace; font-size: 12px; color: #3a4c6b; }
.rv-editor__acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rv-editor__acciones .rv-boton { min-height: 34px; padding: 0 10px; font-size: 12px; white-space: normal; line-height: 1.1; }
.rv-editor__acciones #btn-editor-guardar { grid-column: 1 / -1; min-height: 40px; font-size: 13px; }
.rv-editor__estado { margin: 8px 0 0; font-size: 12px; color: #3a4c6b; }
.rv-editor__estado[data-pendiente="si"] { color: #b45309; font-weight: 700; }

/* Elementos que se pueden mover en el modo edición */
.rv-editando .pnlm-hotspot-base[data-rv-editable] { cursor: move; touch-action: none; }
.rv-editando .rv-decor { pointer-events: auto; outline: 2px dashed rgba(255, 255, 255, 0.75); outline-offset: 2px; }
.rv-editando .rv-decor img { animation: none; }
.rv-editando .rv-pin__pulso { display: none; }
.rv-seleccionado { outline: 3px solid var(--menta) !important; outline-offset: 5px; border-radius: 50%; }
.rv-decor.rv-seleccionado, .rv-afiche.rv-seleccionado { border-radius: 8px; }
.rv-ayuda__pie { gap: 8px; flex-wrap: wrap; }

/* Editor: pestañas, campos y subida de fotos o videos */
.rv-editor { width: min(92vw, 340px); max-height: calc(100% - 96px); overflow: auto; }
.rv-editor__pestanas {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  margin: 4px 0 10px; padding: 4px;
  border-radius: 12px; background: var(--nube);
}
.rv-editor__pestanas button {
  border: 0; border-radius: 9px; padding: 7px 4px; cursor: pointer;
  background: transparent; color: var(--azul-tinta);
  font: 700 12px/1.1 var(--f-display);
}
.rv-editor__pestanas button[aria-selected="true"] { background: var(--azul); color: var(--blanco); box-shadow: var(--sombra-suave); }
.rv-editor__panel { display: grid; gap: 8px; margin-bottom: 10px; }
.rv-editor__panel[hidden] { display: none !important; }
.rv-editor__panel .rv-editor__sel { margin-bottom: 0; word-break: break-all; }
.rv-editor__acciones--una { grid-template-columns: 1fr; }
.rv-editor__acciones--una .rv-boton { min-height: 40px; font-size: 13px; }
.rv-editor__subtitulo { margin: 4px 0 0; font: 700 12px/1.2 var(--f-display); color: var(--azul); }
.rv-editor__nota { margin: 0; font-size: 12px; line-height: 1.4; color: #3a4c6b; }
.rv-editor__nota:empty { display: none; }
.rv-editor__progreso { height: 8px; border-radius: 999px; background: var(--nube); overflow: hidden; }
.rv-editor__progreso span { display: block; height: 100%; width: 0; background: var(--degradado); transition: width 0.2s ease; }
.rv-editor__campo { display: grid; gap: 4px; font: 700 12px/1.2 var(--f-display); color: var(--azul-tinta); }
.rv-editor__campo input, .rv-editor__campo textarea {
  width: 100%; padding: 8px 10px;
  border: 2px solid #c9d8ee; border-radius: 10px;
  background: var(--blanco); color: var(--azul-tinta);
  font: 400 14px/1.35 var(--f-texto);
  resize: vertical;
}
.rv-editor__campo input:focus, .rv-editor__campo textarea:focus { outline: none; border-color: var(--azul); }
.rv-editor__pie { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.rv-editor__pie .rv-boton { min-height: 40px; padding: 0 12px; font-size: 13px; }
.rv-editor .rv-boton:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.rv-editor .rv-boton--claro { color: var(--azul-tinta); background: var(--blanco); }
.rv-editor .rv-boton--degradado { color: var(--blanco); }

/* Controles del video 360 */
.rv-fila--arriba { flex-wrap: wrap; gap: 8px; }
.rv-video {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 6px 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--vidrio-borde);
  background: var(--vidrio);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.rv-video__etiqueta { font: 700 11px/1 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--menta); }
.rv-ctrl--chico { width: 32px; height: 32px; }
.rv-ctrl--chico svg { width: 17px; height: 17px; }
.rv-fila--arriba:has(> .rv-video[hidden]):has(> .rv-vistas:empty) { display: none; }

/* --------------------------------------------------------------------------
   Etiquetas dentro de la foto (editor de etiquetas)
   El punto marca el lugar exacto; el texto se dibuja encima.
   -------------------------------------------------------------------------- */
.pnlm-hotspot-base.rv-etiqueta {
  --et-fondo: var(--azul);
  --et-texto: var(--blanco);
  --et-borde: var(--menta);
  position: absolute; top: 0; left: 0;
  width: 14px; height: 14px;
  z-index: 2;
}
.rv-etiqueta.rv-etiqueta--blanco   { --et-fondo: #ffffff; --et-texto: #06224f; --et-borde: #0063db; }
.rv-etiqueta.rv-etiqueta--menta    { --et-fondo: #22d8c1; --et-texto: #06224f; --et-borde: #ffffff; }
.rv-etiqueta.rv-etiqueta--amarillo { --et-fondo: #ffc531; --et-texto: #06224f; --et-borde: #ffffff; }
.rv-etiqueta.rv-etiqueta--rojo     { --et-fondo: #d62839; --et-texto: #ffffff; --et-borde: #ffffff; }
.rv-etiqueta__punto {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--et-fondo);
  border: 3px solid var(--et-borde);
  box-shadow: 0 2px 6px rgba(3, 20, 56, 0.5);
}
.rv-etiqueta__caja {
  position: absolute; left: 50%; bottom: calc(100% + 10px);
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  width: max-content; max-width: 220px;
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--et-fondo);
  border: 2px solid var(--et-borde);
  box-shadow: 0 4px 12px rgba(3, 20, 56, 0.45);
  color: var(--et-texto);
  text-align: center;
  pointer-events: none;
}
.rv-etiqueta__caja::after {          /* línea que une el texto con el punto */
  content: "";
  position: absolute; left: 50%; top: 100%;
  width: 2px; height: 10px;
  transform: translateX(-50%);
  background: var(--et-borde);
}
.rv-etiqueta__texto { font: 700 13px/1.15 var(--f-display); }
.rv-etiqueta__detalle {
  display: none;
  margin-top: 4px; padding-top: 4px;
  border-top: 1px solid currentColor;
  font: 400 13px/1.35 var(--f-texto);
}
.rv-etiqueta--con-detalle { cursor: pointer; }
.rv-etiqueta--con-detalle .rv-etiqueta__caja { pointer-events: auto; cursor: pointer; }
.rv-etiqueta--con-detalle .rv-etiqueta__texto::after { content: " \24D8"; font-weight: 400; }
.rv-etiqueta[aria-expanded="true"] .rv-etiqueta__detalle { display: block; }
.rv-etiqueta[aria-expanded="true"] { z-index: 4; }
.rv-etiqueta.rv-seleccionado { border-radius: 50%; }
.rv-editando .rv-etiqueta .rv-etiqueta__caja { pointer-events: auto; cursor: move; }

/* Botón ☰ del menú de ambientes */
.rv-menu { flex: 0 0 auto; width: 48px; height: 48px; background: var(--azul); border-color: var(--menta); border-width: 2px; }
.rv-menu svg { width: 24px; height: 24px; stroke-width: 2.4; }
.rv-menu:hover { background: var(--azul-claro); }
.rv-menu[aria-expanded="true"] { background: var(--degradado); }

/* Editor: cinco pestañas, opciones de diseño, etiquetas y botones */
.rv-editor { width: min(92vw, 372px); }
.rv-editor__pestanas { grid-template-columns: repeat(5, 1fr); }
.rv-editor__pestanas button { padding: 7px 2px; font-size: 11px; }
.rv-editor__grupo { display: grid; gap: 8px; }
.rv-editor__grupo[hidden], .rv-editor__campo[hidden], .rv-editor__ocultos[hidden] { display: none !important; }
.rv-editor__campo select {
  width: 100%; padding: 7px 8px;
  border: 2px solid #c9d8ee; border-radius: 10px;
  background: var(--blanco); color: var(--azul-tinta);
  font: 400 14px/1.3 var(--f-texto);
}
.rv-editor__campo select:focus { outline: none; border-color: var(--azul); }
.rv-editor__opciones { display: flex; flex-wrap: wrap; gap: 5px; }
.rv-editor__opciones button {
  border: 2px solid #c9d8ee; border-radius: 9px;
  padding: 6px 10px; cursor: pointer;
  background: var(--blanco); color: var(--azul-tinta);
  font: 700 12px/1.1 var(--f-display);
}
.rv-editor__opciones button[aria-pressed="true"] { border-color: var(--azul); background: var(--nube); box-shadow: inset 0 0 0 1px var(--azul); }
.rv-editor__opciones button:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }
.rv-editor__opciones .rv-editor__color { width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 3px solid #ffffff; box-shadow: 0 0 0 1px #9fb3d1; }
.rv-editor__opciones .rv-editor__color[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--azul); }
.rv-editor__opciones .rv-editor__color.rv-color--azul { background: #0063db; }
.rv-editor__opciones .rv-editor__color.rv-color--menta { background: #22d8c1; }
.rv-editor__opciones .rv-editor__color.rv-color--blanco { background: #ffffff; box-shadow: 0 0 0 1px #6f86a8; }
.rv-editor__opciones .rv-editor__color.rv-color--blanco[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--azul); }
.rv-editor__opciones .rv-editor__color.rv-color--amarillo { background: #ffc531; }
.rv-editor__opciones .rv-editor__color.rv-color--naranja { background: #b35400; }
.rv-editor__opciones .rv-editor__color.rv-color--rojo { background: #d62839; }
.rv-editor__opciones .rv-editor__color.rv-color--verde { background: #157a41; }
.rv-editor__opciones .rv-editor__color.rv-color--morado { background: #7340d8; }
.rv-editor__opciones .rv-editor__icono { width: 36px; height: 34px; padding: 0; display: grid; place-items: center; }
.rv-editor__icono svg { width: 20px; height: 20px; fill: none; stroke: var(--azul); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rv-editor__opciones .rv-editor__forma { display: inline-flex; align-items: center; gap: 6px; }
.rv-editor__forma i { display: inline-block; background: var(--azul); border: 2px solid var(--menta); }
.rv-editor__forma-rotulo { width: 16px; height: 10px; border-radius: 3px; box-shadow: 0 9px 0 -3px var(--menta); margin-bottom: 6px; }
.rv-editor__forma-circulo { width: 14px; height: 14px; border-radius: 50%; }
.rv-editor__forma-pildora { width: 22px; height: 12px; border-radius: 999px; }
.rv-editor__lista { display: flex; flex-wrap: wrap; gap: 5px; }
.rv-editor__item {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
  border: 2px solid #c9d8ee; border-radius: 999px;
  padding: 4px 10px 4px 7px; cursor: pointer;
  background: var(--blanco); color: var(--azul-tinta);
  font: 700 12px/1.1 var(--f-display);
}
.rv-editor__item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-editor__item svg { flex: 0 0 auto; width: 15px; height: 15px; fill: none; stroke: var(--azul); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rv-editor__item[aria-current="true"] { border-color: var(--azul); background: var(--nube); }
.rv-editor__ocultos { display: grid; gap: 5px; padding: 8px 10px; border-radius: 10px; background: #fff6e5; }
.rv-editor__ocultos::before { content: "Botones quitados en esta vista"; font: 700 12px/1.2 var(--f-display); color: #8a5a00; }
.rv-editor__oculto { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.rv-editor__oculto .rv-boton { min-height: 28px; padding: 0 10px; font-size: 12px; }
.rv-editor__grupo > .rv-boton, .rv-editor__panel > .rv-boton { min-height: 34px; padding: 0 10px; font-size: 12px; }

/* --------------------------------------------------------------------------
   Pantallas medianas y pequeñas
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .rv-hub__panel { padding-left: 18px; padding-right: 18px; }
  .rv-hub__grid, .rv-hub__servicios { gap: 10px; }
  .rv-tumb { aspect-ratio: 4 / 3; }
  .rv-tumb--servicio { aspect-ratio: 240 / 110; }
  .rv-tumb__banda { font-size: 13px; padding: 4px 8px; }
  .rv-tumb__icono { width: 34%; }
}

/* El nombre pasa a su propia fila cuando no cabe junto a los controles */
@media (max-width: 1040px) {
  .rv-superior { flex-wrap: wrap; row-gap: 10px; }
  .rv-superior::before { content: ""; order: 2; flex-basis: 100%; height: 0; }  /* salto de fila */
  .rv-nombre { order: 3; flex: 0 1 auto; max-width: calc(100% - 22px); }
  .rv-descripcion { top: calc(132px + var(--seguro-sup)); }
  .rv-vr--barra { order: 3; }
  .rv-nombre { flex: 1 1 0; max-width: calc(100% - 180px); }
}

@media (max-width: 900px) {
  .rv-narra__texto { display: none; }
  .rv-narra { padding: 0 11px; }
  .rv-siguiente__etiqueta { display: none; }
}

@media (max-width: 720px) {
  :root { --escala-boton: 0.78; }
  .rv-superior { padding-bottom: 28px; gap: 8px; flex-wrap: wrap; }
  .rv-marca { height: 40px; padding: 0 8px; }
  .rv-marca img { height: 26px; }
  .rv-nombre {
    order: 3;
    flex: 1 1 100%;
    max-width: calc(100% - 22px);
    height: 40px;
    padding: 0 54px 0 14px;
  }
  .rv-nombre__texto { font-size: 17px; }
  .rv-nombre__icono { width: 50px; height: 50px; right: -10px; }
  .rv-nombre__icono svg { width: 28px; height: 28px; }
  .rv-narra { margin: 2px 0 0; height: 36px; }
  .rv-ctrl { width: 40px; height: 40px; }
  .rv-ctrl--opcional { display: none; }
  .rv-descripcion { top: calc(124px + var(--seguro-sup)); right: calc(12px + var(--seguro-der)); left: calc(12px + var(--seguro-izq)); max-width: none; }
  .rv-inferior { gap: 8px; padding-top: 36px; }
  .rv-boton--volver span, .rv-boton--elegir span { display: none; }
  .rv-boton--volver { width: 44px; padding: 0; }
  .rv-boton--siguiente { max-width: 46vw; padding: 0 14px; }
  .rv-hub { place-items: end center; padding: 0; }
  .rv-hub__panel { border-radius: 24px 24px 0 0; max-height: 88vh; padding: 18px 14px calc(16px + var(--seguro-inf)); }
  .rv-hub__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rv-hub__servicios { gap: 8px; }
  .rv-tumb__banda { font-size: 14px; }
  .rv-tumb--servicio .rv-tumb__banda { font-size: 12px; padding: 4px 8px; }
  .rv-tumb--servicio .rv-tumb__icono { width: 34%; top: 6%; }
  .rv-editor { top: auto; bottom: calc(10px + var(--seguro-inf)); right: 10px; left: 10px; width: auto; max-height: 52vh; overflow: auto; }
  dialog.rv-tarjeta { width: 96vw; }
  .rv-tarjeta__cerrar { top: -10px; right: -4px; }
  .rv-nombre { flex: 1 1 0; min-width: 0; max-width: calc(100% - 92px); }
  .rv-vr--barra { min-height: 40px; height: 40px; padding: 0 10px; gap: 6px; }
  .rv-vr--barra .rv-vr__texto { display: none; }
  .rv-vr--barra .rv-vr__corto { display: inline; }
  .rv-portada__acciones { gap: 10px; }
}

@media (max-width: 420px) {
  :root { --escala-boton: 0.7; }
  .rv-superior { gap: 6px; }
  .rv-controles { gap: 4px; }
  .rv-marca { padding: 0 7px; }
  .rv-marca .rv-marca__logo { display: none; }
  .rv-marca .rv-marca__iso { display: block; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
  .rv-hub__panel { padding-left: 12px; padding-right: 12px; }
}

/* Pantallas bajas (celular horizontal) */
@media (max-height: 520px) {
  :root { --escala-boton: 0.72; }
  .rv-superior { padding-bottom: 20px; }
  .rv-inferior { padding-top: 24px; gap: 6px; }
  .rv-hub { place-items: center; padding: 12px 16px; }
  .rv-hub__panel { max-height: 100%; border-radius: 20px; padding: 16px; }
  .rv-hub__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .rv-portada__isotipo { width: 72px; height: 72px; }
  .rv-portada__texto, .rv-portada__ayuda { display: none; }
  .rv-portada__contenido { gap: 8px; }
  .rv-portada h1 { font-size: clamp(34px, 12vh, 56px); }
  .rv-portada .rv-boton--primario { min-height: 46px; }
  .rv-portada .rv-vr { min-height: 46px; }
  .rv-portada__vr { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .rv-pin__pulso, .rv-decor img, .rv-narra__barras i { animation: none !important; }
  .rv-hub, .rv-aviso, .rv-nombre, .rv-nombre__icono, dialog.rv-tarjeta[open] { animation: none !important; }
  .rv-portada, .rv-descripcion, .rv-boton, .rv-tumb, .rv-pin__img { transition: none; }
}
