/* Contacto por región y horario · ADR 0850 Rev. 2 · prefijo rh-
   Usa solo los tokens de cada marca (marca.css): no añade colores nuevos. */

.rh-tu-hora { margin: 0 0 18px; color: var(--suave); font-size: .95rem; }
.rh-tu-hora b { color: var(--tinta); font-weight: 650; }
.rh-tu-hora[hidden] { display: none; }

.rh-equipos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rh-equipo {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px 22px;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  background: var(--fondo);
  color: var(--texto);
}
.rh-equipo--tuyo { border-color: var(--acento-texto, var(--acento)); box-shadow: inset 0 0 0 1px var(--acento-texto, var(--acento)); }
.rh-insignia {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bloque);
  color: var(--sobre-bloque);
  font: 600 .75rem/1.4 var(--fuente);
  letter-spacing: .02em;
}
.rh-equipo > .rh-insignia { position: absolute; top: -12px; left: 20px; }
.rh-region { margin: 0; color: var(--acento-texto, var(--acento)); font: 600 .8rem/1.3 var(--mono, var(--fuente)); letter-spacing: .06em; text-transform: uppercase; }
.rh-numero { margin: 0; }
.rh-numero a { color: var(--tinta); font: var(--peso-titulos, 600) clamp(1.35rem, 1rem + 1.1vw, 1.85rem)/1.15 var(--fuente-titulos, var(--fuente)); text-decoration: none; }
.rh-numero a:hover, .rh-numero a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.rh-quien { margin: 0; color: var(--suave); font-size: .92rem; }
.rh-horario { margin: 0; color: var(--texto); }
.rh-horario span { color: var(--suave); }
.rh-estado { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--tinta); font-weight: 600; font-size: .95rem; }
.rh-estado:empty { display: none; }
.rh-estado::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--linea-fuerte); }
.rh-estado--abierto::before { background: var(--acento-vivo); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acento-vivo) 22%, transparent); }
.rh-conv, .rh-dif { margin: 0; color: var(--suave); font-size: .92rem; }
.rh-conv:empty, .rh-dif:empty { display: none; }
.rh-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: auto; padding-top: 8px; }
.rh-tel { color: var(--acento-texto, var(--acento)); font-weight: 600; }
.rh-nota { margin: 16px 0 0; color: var(--suave); font-size: .92rem; }

/* Agenda: tarjeta que acompaña a los equipos */
.rh-agenda {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 18px;
  padding: 20px 24px;
  border-radius: var(--radio);
  background: var(--papel2);
  color: var(--texto);
}
.rh-agenda p { margin: 0; max-width: 60ch; }
.rh-agenda b { color: var(--tinta); }

/* Selector LATAM / Europa (details, funciona sin JS) */
.rh-elige { position: relative; display: inline-block; }
.rh-elige[open] { z-index: 70; }
.rh-fijar--activa { font-weight: 700; }
.rh-elige > summary { list-style: none; cursor: pointer; }
.rh-elige > summary::-webkit-details-marker { display: none; }
.rh-elige__menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 60;
  display: grid;
  gap: 4px;
  width: min(320px, calc(100vw - 24px));
  margin: 0;
  padding: 8px;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  background: var(--fondo);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--tinta) 20%, transparent);
  list-style: none;
}
.rh-elige--abajo .rh-elige__menu { top: calc(100% + 10px); right: auto; bottom: auto; left: 0; }
/* Dirección decidida por JS según el espacio libre al abrir */
.rh-elige.rh-elige--sube .rh-elige__menu { top: auto; bottom: calc(100% + 10px); }
.rh-elige.rh-elige--baja .rh-elige__menu { top: calc(100% + 10px); bottom: auto; }
.rh-elige.rh-elige--izq .rh-elige__menu { left: 0; right: auto; }
.rh-elige.rh-elige--der .rh-elige__menu { right: 0; left: auto; }
.rh-elige__titulo { margin: 4px 8px 6px; color: var(--suave); font-size: .8rem; }
.rh-opcion {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radio-sm);
  color: var(--tinta);
  text-decoration: none;
}
.rh-opcion:hover, .rh-opcion:focus-visible { background: var(--papel2); }
.rh-opcion b { font-weight: 650; }
.rh-opcion small { color: var(--suave); font-size: .82rem; }
.rh-opcion .rh-estado { font-size: .82rem; font-weight: 600; }
.rh-opcion .rh-insignia { justify-self: start; margin-top: 4px; }
.rh-opcion--tuya { box-shadow: inset 0 0 0 2px var(--acento-texto, var(--acento)); }

@media (max-width: 640px) {
  .rh-equipo { padding: 24px 18px 18px; }
  .rh-agenda { padding: 18px; }
  /* Absoluto respecto al botón (no fixed): así no se descoloca si un contenedor tiene transform o animación */
  .rh-elige__menu { width: min(320px, calc(100vw - 24px)); }
}
@media (prefers-reduced-motion: reduce) {
  .rh-estado--abierto::before { box-shadow: none; }
}
