/*
 * Universal House — estilos compartidos para formularios de landing.
 *
 * Por qué vive aquí: el Tailwind compilado del landing (site.css) está
 * purgado y no incluye utilidades que usamos en los forms (sr-only,
 * has-[:checked], grid-cols-3). Este archivo tiene esas reglas sin depender
 * de la compilación de Tailwind.
 *
 * Los chips son neutrales — el color activo se define por variable CSS en
 * cada landing (white+orange en modals, yellow+navy en páginas navy).
 */

.uh-chip {
  display: block;
  text-align: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.uh-chip input[type="radio"] {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Estado activo por tema. Default = white+orange (modals). */
.uh-chip:has(input:checked) {
  background: var(--uh-chip-active-bg, #fff);
  color: var(--uh-chip-active-fg, #E85C1F);
  border-color: var(--uh-chip-active-bg, #fff);
}

/* Tema navy (landings con background navy + botón yellow) */
.uh-theme-navy .uh-chip:has(input:checked) {
  background: var(--uh-chip-active-bg, #facc15);
  color: var(--uh-chip-active-fg, #0F0D3B);
  border-color: var(--uh-chip-active-bg, #facc15);
}

.uh-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.375rem;
}

.uh-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.375rem;
}
