/* EQUIPO-BUSCADOR (2026-10-29) · Campo «Equipo» del registro (ftnd/archivosJS/equipoCampo.js).
   Diseño de Claude Design. Todas las clases empiezan con «eq-»; colores y tamaños sólo en
   las variables de :root. El registro va siempre en paleta clara (evento.php fija
   data-theme="light"), por eso no hay bloque oscuro. */
:root {
  --eq-ink: #131319;
  --eq-ink-2: #44444F;
  --eq-muted: #5E5E6B;
  --eq-surface: #FFFFFF;
  --eq-hover: #F1FBF6;
  --eq-locked-bg: #E8E9EE;
  --eq-accent: #00E276;
  --eq-accent-dark: #00693B;
  --eq-accent-soft: #E1F8EC;
  --eq-accent-ring: rgba(0, 226, 118, .30);
  --eq-new: #0B5CAD;
  --eq-new-soft: #E5F1FD;
  --eq-error: #B3132E;
  --eq-error-ring: rgba(179, 19, 46, .16);
  --eq-warn: #5C3D00;
  --eq-warn-soft: #FFF4D9;
  --eq-scrim: rgba(19, 19, 25, .55);
  --eq-line: #C9CAD3;
  --eq-line-soft: #ECEDF1;
  --eq-control: #8A8A99;
  --eq-border-w: 1px;
  --eq-border-w-focus: 2px;
  --eq-radius: 10px;
  --eq-radius-sheet: 16px;
  --eq-touch: 44px;
  --eq-input-h: 52px;
  --eq-row-h: 58px;
  --eq-fs: 18px;
  --eq-sheet-max-w: 440px;
  --eq-z: 1000;
  --eq-shadow: 0 8px 24px rgba(19, 19, 25, .10);
  --eq-shadow-sheet: 0 -8px 32px rgba(19, 19, 25, .25);
  --eq-font: inherit;
}

.eq-field, .eq-field *, .eq-sheet-wrap, .eq-sheet-wrap * { box-sizing: border-box; }
.eq-field [hidden], .eq-sheet-wrap[hidden], .eq-field[hidden] { display: none !important; }

.eq-field {
  position: relative; display: flex; flex-direction: column; gap: 8px; width: 100%;
  font-family: var(--eq-font); color: var(--eq-ink); text-align: left;
  scroll-margin-top: 12px; -webkit-text-size-adjust: 100%;
}
/* El CSS heredado del sitio (principal.css) pone mayúsculas, centrado y colores propios a
   h2, p, li, b…: dentro del campo y de la hoja manda lo de aquí. */
.eq-field, .eq-sheet { text-transform: none; letter-spacing: normal; white-space: normal; }
.eq-field b, .eq-sheet b { font-family: inherit; }
.eq-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.eq-icon {
  font-family: 'Material Symbols Sharp'; font-weight: normal; font-style: normal;
  font-size: 22px; line-height: 1; width: 22px; height: 22px; overflow: hidden;
  display: inline-block; flex: none; letter-spacing: normal; text-transform: none;
  white-space: nowrap; direction: ltr; user-select: none; -webkit-user-select: none;
  -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased;
}

.eq-box {
  display: flex; align-items: center; gap: 10px; min-height: var(--eq-input-h);
  padding: 0 4px 0 13px;
  background: var(--eq-surface); border: var(--eq-border-w) solid var(--eq-control); border-radius: var(--eq-radius);
}
.eq-box > .eq-icon { color: var(--eq-ink-2); }
.eq-box:focus-within {
  border: var(--eq-border-w-focus) solid var(--eq-accent-dark);
  padding-left: 12px; box-shadow: 0 0 0 3px var(--eq-accent-ring);
}
.eq-box.eq-box--error, .eq-box.eq-box--error:focus-within {
  border: var(--eq-border-w-focus) solid var(--eq-error);
  padding-left: 12px; box-shadow: 0 0 0 3px var(--eq-error-ring);
}
/* Los estilos del formulario (sistema-publico.css) pintan todo <input>: aquí se anulan. */
.eq-field .eq-input {
  flex: 1; min-width: 0; width: auto; height: calc(var(--eq-input-h) - 4px); margin: 0; padding: 0;
  border: 0; border-radius: 0; outline: 0; background: transparent; box-shadow: none;
  font-family: var(--eq-font); font-size: var(--eq-fs); font-weight: 500; line-height: 1.2; color: var(--eq-ink);
  -webkit-appearance: none; appearance: none;
}
.eq-field .eq-input::placeholder { color: var(--eq-muted); opacity: 1; }
.eq-count { font-size: 14px; font-weight: 500; color: var(--eq-muted); white-space: nowrap; }
.eq-iconbtn {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: var(--eq-touch); height: var(--eq-touch); margin: 0; padding: 0;
  border: 0; border-radius: var(--eq-radius); background: transparent; color: var(--eq-ink); cursor: pointer;
  box-shadow: none; -webkit-tap-highlight-color: transparent;
}
.eq-iconbtn:focus-visible { outline: 3px solid var(--eq-accent-ring); outline-offset: -3px; background: var(--eq-hover); }

.eq-msg { display: flex; gap: 6px; margin: 0; font-size: 14px; line-height: 1.35; color: var(--eq-muted); }
.eq-msg .eq-icon { font-size: 18px; width: 18px; height: 18px; }
.eq-msg.eq-msg--error { font-size: 15px; font-weight: 500; color: var(--eq-error); }
.eq-msg.eq-msg--error .eq-icon { font-size: 20px; width: 20px; height: 20px; }

.eq-full-note {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px;
  background: var(--eq-warn-soft); border-radius: var(--eq-radius); color: var(--eq-warn); font-size: 15px; line-height: 1.35;
}
.eq-full-note b { font-weight: 700; }

/* La lista FLOTA bajo la caja (absolute): abrirla y cerrarla no mueve el resto del
   formulario, así el toque que la cierra (blur) cae donde la persona apuntó. */
.eq-ancla { position: relative; }
.eq-pop {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40;
  display: flex; flex-direction: column; max-height: min(60vh, 420px); overflow-y: auto;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: var(--eq-surface); border-radius: var(--eq-radius); box-shadow: var(--eq-shadow);
}
.eq-pop .eq-group { box-shadow: none; }
.eq-group { background: var(--eq-surface); border: 1px solid var(--eq-line); border-radius: var(--eq-radius); box-shadow: var(--eq-shadow); overflow: hidden; }
.eq-cap { padding: 10px 14px 8px; font-size: 13px; font-weight: 600; color: var(--eq-muted); }
.eq-option {
  display: flex; align-items: center; flex-wrap: wrap; column-gap: 8px; row-gap: 0; min-height: var(--eq-row-h);
  padding: 8px 14px; border-top: 1px solid var(--eq-line-soft); background: var(--eq-surface);
  font-size: var(--eq-fs); font-weight: 700; line-height: 1.25; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.eq-option:hover { background: var(--eq-hover); }
.eq-option[aria-selected="true"] { background: var(--eq-hover); outline: 2px solid var(--eq-accent-dark); outline-offset: -2px; }
.eq-name { overflow-wrap: anywhere; }
.eq-n { font-size: 16px; font-weight: 500; color: var(--eq-muted); white-space: nowrap; }
.eq-more { padding: 10px 14px; border-top: 1px solid var(--eq-line-soft); font-size: 14px; color: var(--eq-muted); }
.eq-none { display: flex; gap: 10px; align-items: flex-start; padding: 16px 14px; border-top: 1px solid var(--eq-line-soft); font-size: 16px; line-height: 1.35; color: var(--eq-ink-2); }
.eq-none b { display: block; color: var(--eq-ink); font-weight: 700; }

.eq-create {
  display: flex; align-items: center; gap: 8px; margin: 10px; min-height: 52px; padding: 8px 14px;
  border: 1px dashed var(--eq-control); border-radius: var(--eq-radius); background: var(--eq-surface);
  font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--eq-ink-2); cursor: pointer; overflow-wrap: anywhere;
  -webkit-tap-highlight-color: transparent;
}
.eq-create b { font-weight: 700; color: var(--eq-ink); }
.eq-create:hover { background: var(--eq-surface); }
.eq-create[aria-selected="true"] { background: var(--eq-surface); outline: 2px solid var(--eq-accent-dark); outline-offset: 1px; }
.eq-full-row {
  display: flex; align-items: flex-start; gap: 8px; margin: 10px; padding: 10px 14px;
  border: 1px dashed var(--eq-line); border-radius: var(--eq-radius); background: var(--eq-locked-bg);
  font-size: 15px; line-height: 1.35; color: var(--eq-ink-2);
}
.eq-full-row b { display: block; font-weight: 600; }

.eq-chip { display: flex; align-items: center; gap: 8px; padding: 10px 4px 10px 14px; background: var(--eq-surface); border: 1.5px solid var(--eq-accent-dark); border-radius: var(--eq-radius); }
.eq-chip.eq-chip--new { border-color: var(--eq-new); }
.eq-chip-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.eq-chip-name { font-size: 20px; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.eq-chip-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--eq-muted); }
.eq-tag { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px 0 6px; border-radius: 13px; font-size: 13px; font-weight: 600; }
.eq-tag .eq-icon { font-size: 17px; width: 17px; height: 17px; }
.eq-tag--ok { background: var(--eq-accent-soft); color: var(--eq-accent-dark); }
.eq-tag--new { background: var(--eq-new-soft); color: var(--eq-new); }

.eq-box.eq-box--locked { background: var(--eq-locked-bg); border: var(--eq-border-w) solid var(--eq-line); padding: 0 14px; cursor: not-allowed; }
.eq-box--locked .eq-input { font-weight: 700; color: var(--eq-ink-2); cursor: not-allowed; }
.eq-box--locked .eq-icon { color: var(--eq-ink-2); }

.eq-sheet-wrap {
  position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: var(--eq-z);
  display: flex; align-items: flex-end; justify-content: center; background: var(--eq-scrim);
  font-family: var(--eq-font); color: var(--eq-ink);
}
.eq-sheet {
  width: 100%; min-width: 0; max-width: var(--eq-sheet-max-w); max-height: 92%; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; gap: 16px; padding: 12px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--eq-surface); border-radius: var(--eq-radius-sheet) var(--eq-radius-sheet) 0 0; box-shadow: var(--eq-shadow-sheet);
  text-align: left;
}
.eq-grip { align-self: center; width: 40px; height: 4px; border-radius: 2px; background: var(--eq-line); }
.eq-sheet-title { margin: 0; font-family: var(--eq-font); font-size: 24px; font-weight: 700; line-height: 1.15; color: var(--eq-ink); text-align: left; text-transform: none; overflow-wrap: anywhere; }
.eq-sheet-text { margin: 0; font-size: 16px; line-height: 1.35; color: var(--eq-ink-2); overflow-wrap: anywhere; }
.eq-sheet-text b { color: var(--eq-ink); }
.eq-similar { margin: 0; padding: 0; list-style: none; border: 1px solid var(--eq-line); border-radius: var(--eq-radius); overflow: hidden; }
.eq-similar li { color: var(--eq-ink); list-style: none; margin: 0; display: flex; align-items: center; flex-wrap: wrap; column-gap: 8px; min-height: 52px; padding: 8px 14px; border-top: 1px solid var(--eq-line-soft); font-size: var(--eq-fs); font-weight: 700; }
.eq-similar li:first-child { border-top: 0; }
.eq-sheet-btns { display: flex; flex-direction: column; gap: 10px; }
.eq-btn {
  min-height: var(--eq-input-h); margin: 0; padding: 0 16px; border-radius: var(--eq-radius); cursor: pointer;
  font-family: var(--eq-font); font-size: 17px; font-weight: 700; line-height: 1.2; -webkit-tap-highlight-color: transparent;
}
.eq-btn--primary { border: 0; background: var(--eq-accent); color: var(--eq-ink); }
.eq-btn--secondary { border: 1.5px solid var(--eq-ink-2); background: var(--eq-surface); color: var(--eq-ink); font-weight: 600; }
.eq-btn:focus-visible { outline: 3px solid var(--eq-ink); outline-offset: 2px; }
@media (min-width: 600px) {
  .eq-sheet-wrap { align-items: center; }
  .eq-sheet { border-radius: var(--eq-radius-sheet); padding-bottom: 24px; }
  .eq-sheet-btns { flex-direction: row-reverse; }
  .eq-btn { flex: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .eq-sheet { animation: eq-up .18s ease-out; }
  @keyframes eq-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}
