/* Formulario de directorio: admin y público. Usa los colores del theme si existen. */
.rad-form { --rad-brand: rgb(var(--brand-500, 6 182 212)); --rad-brand-d: rgb(var(--brand-600, 8 145 178)); --rad-brand-l: rgb(var(--brand-500, 6 182 212) / .12);
  --rad-bg: #fff; --rad-bd: #e2e8f0; --rad-tx: #0f172a; --rad-mut: #64748b; --rad-inp: #fff;
  display: grid; gap: 1.25rem; max-width: 960px; margin: 1.25rem 0; color: var(--rad-tx); font-size: 14px; }
.dark .rad-ctx-public { --rad-bg: rgb(var(--ink-800, 17 26 46)); --rad-bd: rgb(255 255 255 / .1); --rad-tx: #e2e8f0; --rad-mut: #94a3b8; --rad-inp: rgb(var(--ink-900, 11 18 32)); }
.rad-ctx-public { margin-inline: auto; }

.rad-card { background: var(--rad-bg); border: 1px solid var(--rad-bd); border-radius: 14px; padding: 1.25rem 1.5rem 1.5rem; box-shadow: 0 1px 2px rgb(0 0 0 / .04); }
.rad-card__head { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.rad-card__head h3 { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--rad-tx); }
.rad-card__icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9px; background: var(--rad-brand-l); }

.rad-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.rad-field { grid-column: span 12; min-width: 0; }
@media (min-width: 700px) {
  .rad-w-6 { grid-column: span 6; } .rad-w-4 { grid-column: span 4; } .rad-w-8 { grid-column: span 8; }
}
.rad-field > label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--rad-tx); }
.rad-req { color: #e11d48; }
.rad-help { margin: .35rem 0 0; font-size: 12px; color: var(--rad-mut); }

.rad-form input[type=text], .rad-form input[type=number], .rad-form input[type=email], .rad-form input[type=url], .rad-form input[type=search], .rad-form textarea, .rad-form select, .rad-select {
  width: 100%; box-sizing: border-box; padding: .6rem .75rem; border: 1px solid var(--rad-bd); border-radius: 9px; background: var(--rad-inp); color: var(--rad-tx); font-size: 14px; line-height: 1.4; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.rad-form input:focus, .rad-form textarea:focus, .rad-form select:focus, .rad-select:focus { outline: none; border-color: var(--rad-brand); box-shadow: 0 0 0 3px var(--rad-brand-l); }

/* Opciones segmentadas y chips */
.rad-segment, .rad-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.rad-segment label, .rad-chips label { position: relative; margin: 0; cursor: pointer; }
.rad-segment input, .rad-chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rad-segment span, .rad-chips span { display: inline-block; padding: .45rem .9rem; border: 1px solid var(--rad-bd); border-radius: 999px; background: var(--rad-inp); font-weight: 500; transition: all .15s; }
.rad-segment label:hover span, .rad-chips label:hover span { border-color: var(--rad-brand); }
.rad-segment input:checked + span, .rad-chips input:checked + span { background: var(--rad-brand); border-color: var(--rad-brand); color: #fff; }
.rad-segment input:focus-visible + span, .rad-chips input:focus-visible + span { box-shadow: 0 0 0 3px var(--rad-brand-l); }

/* Mapa */
.rad-map-tools { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.rad-map-tools input { flex: 1 1 220px; width: auto; }
.rad-map { height: 340px; border-radius: 12px; border: 1px solid var(--rad-bd); overflow: hidden; z-index: 0; }

/* Botones */
.rad-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border: 1px solid var(--rad-bd); border-radius: 9px; background: var(--rad-inp); color: var(--rad-tx); font-weight: 600; font-size: 14px; cursor: pointer; transition: all .15s; }
.rad-btn:hover { border-color: var(--rad-brand); color: var(--rad-brand-d); }
.rad-btn--ghost { background: transparent; }
.rad-btn--primary { background: var(--rad-brand); border-color: var(--rad-brand); color: #fff; justify-self: start; }
.rad-btn--primary:hover { background: var(--rad-brand-d); color: #fff; }
.rad-btn--lg { padding: .8rem 1.6rem; font-size: 15px; }

/* Público */
.rad-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rad-alert { max-width: 960px; margin: 0 auto 1rem; padding: .85rem 1rem; border-radius: 10px; font-size: 14px; }
.rad-alert--ok { background: #d1fae5; color: #065f46; }
.rad-alert--err { background: #ffe4e6; color: #9f1239; }

/* Admin de WordPress */
.rad-ctx-admin { margin-top: 1rem; }
.rad-ctx-admin .rad-field > label { color: #1d2327; }
