/* ═══════════════════════════════════════════════════════════════════════
   PINTAR → EQUIPOS (mockups/pintar-equipos.html, pantallas 1 a 4 y 6; js/equipos.js)
   Mismos tokens de piel.css que Pintar: un solo acento (--acc), tinta y grises. El color del equipo es la excepción de siempre
   (como el de los barrios) y se pone en línea con --c. Íconos de trazo, nada por debajo de 12 px.
   ═══════════════════════════════════════════════════════════════════════ */
.eq-trazo { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.eq-oculto { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Foto de equipo: círculo con el anillo de su color; sin foto aprobada, las iniciales */
.eq-foto { display: inline-grid; place-items: center; width: var(--s, 30px); height: var(--s, 30px); border-radius: 50%; overflow: hidden; flex: none;
  box-shadow: 0 0 0 2px var(--surf), 0 0 0 4px var(--c); background: var(--c); color: #fff; font-weight: 500; font-size: max(12px, calc(var(--s, 30px) * .36)); line-height: 1; }
.eq-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eq-foto.oro { box-shadow: 0 0 0 3px var(--surf), 0 0 0 6px var(--c), 0 0 0 8px #C9A44C; }
.eq-foto.libre { background: var(--field); color: var(--muted); box-shadow: 0 0 0 2px var(--surf); }

/* ── Marcador de zona sobre el mapa ── */
.eq-zf { border: 0; padding: 0; background: none; display: grid; place-items: center; cursor: pointer; font: inherit; }
.eq-zf .an { display: grid; place-items: center; border-radius: 50%; padding: 3px; background: #fff; box-shadow: 0 4px 10px rgba(31,29,26,.28); }
.eq-zf.asedio .an { padding: 6px; background: conic-gradient(var(--a) calc(var(--p) * 1%), #fff 0); }
.eq-zf .eq-foto { box-shadow: 0 0 0 2px var(--c); }
.eq-zf.fort .an { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #C9A44C, 0 4px 10px rgba(31,29,26,.28); }
.eq-zf .x3 { position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--surf); font-size: 12px; font-weight: 500; line-height: 1; padding: 2px 6px; border-radius: 999px; white-space: nowrap; }
.eq-zf .cor { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; background: #C9A44C; color: #fff; display: grid; place-items: center; }
.eq-zf .cor .eq-trazo { width: 13px; height: 13px; }
.eq-zf > * { transition: opacity .2s; }
.eq-zf.apagado > * { opacity: .15; }

/* ── 1 · Liga ── */
.eq-arriba { gap: 8px; }
.eq-liga { padding: 10px 12px 8px; }
.eq-liga .tit { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; padding: 0 2px; }
.eq-liga .tit b { font-weight: 500; font-size: 14px; }
.eq-liga .tit small { font-size: 12px; color: var(--muted); text-align: right; }
.eq-tabla { max-height: 38vh; overflow-y: auto; overscroll-behavior: contain; }
.eq-lrow { display: grid; grid-template-columns: 18px 30px 1fr auto; gap: 10px; align-items: center; width: 100%; padding: 5px 4px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.eq-lrow + .eq-lrow { border-top: 1px solid var(--line); }
.eq-lrow .pos { font-size: 13px; font-weight: 500; text-align: center; color: var(--muted); }
.eq-lrow .eq-foto { --s: 26px; }
.eq-lrow .nm { min-width: 0; line-height: 1.2; }
.eq-lrow .nm b { font-weight: 500; font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-lrow .nm small { font-size: 12px; color: var(--muted); }
.eq-lrow .pts { font-size: 18px; font-weight: 300; font-variant-numeric: tabular-nums; text-align: right; line-height: 1; }
.eq-lrow .pts small { font-size: 12px; color: var(--muted); margin-left: 2px; }
.eq-lrow.tu { background: var(--field); border-top-color: transparent; }
.eq-lrow.tu + .eq-lrow { border-top-color: transparent; }
.eq-lrow.sel { outline: 2px solid var(--ink); }
.eq-mas { display: block; width: 100%; min-height: 36px; margin-top: 4px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.eq-niebla { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.4; color: var(--muted); margin: 4px 0 6px; }
.eq-niebla .eq-trazo { width: 16px; height: 16px; margin-top: 1px; }
.eq-yo { display: flex; align-items: center; gap: 12px; width: 100%; background: var(--surf); color: var(--ink); border: 0; border-radius: var(--r-sm); padding: 10px 14px; box-shadow: var(--csh); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.eq-yo .txt { min-width: 0; }
.eq-yo b { font-weight: 500; display: block; }
.eq-yo small { color: var(--muted); font-size: 12px; display: block; line-height: 1.35; }
.eq-yo small.aviso { color: var(--ink); }
.eq-yo .mas { margin-left: auto; color: var(--muted); font-size: 20px; }
.eq-sinequipo b { font-weight: 500; font-size: 15px; }
.eq-sinequipo p { margin: 6px 0 10px; }
.eq-chips { display: flex; gap: 8px; pointer-events: auto; }
.eq-chips .pt-chip { min-height: 32px; box-shadow: var(--csh); background: var(--surf); }

/* ── 2 · Hoja de zona ── */
.eq-sub { color: var(--muted); font-size: 13px; margin: 6px 0 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.eq-pildora { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--field); color: var(--ink); font-size: 12px; font-weight: 500; white-space: nowrap; }
.eq-pildora.joya { background: color-mix(in srgb, #C9A44C 22%, transparent); }
.eq-c { margin-top: 10px; }
.eq-dueno { display: flex; gap: 12px; align-items: center; }
.eq-dueno b { font-weight: 500; font-size: 15px; display: block; }
.eq-dueno small { font-size: 12px; color: var(--muted); display: block; line-height: 1.35; }
.eq-dueno .grito { font-style: italic; }
.eq-duelo { margin-top: 10px; }
.eq-duelo .barra { height: 12px; border-radius: 999px; background: var(--field); display: flex; overflow: hidden; gap: 2px; }
.eq-duelo .barra b { display: block; height: 100%; }
.eq-duelo .leyenda { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; margin-top: 6px; color: var(--muted); }
.eq-duelo .leyenda b { color: var(--ink); font-weight: 500; }
.eq-c .falta { font-size: 13px; margin: 10px 0 0; line-height: 1.4; color: var(--ink); }
.eq-aportes { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.eq-aportes span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--field); }
.eq-aportes i { width: 22px; height: 22px; border-radius: 50%; background: var(--surf); display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 500; }
.eq-premio { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.eq-premio .logo { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--surf); display: grid; place-items: center; font-weight: 500; flex: none; }
.eq-premio b { font-weight: 500; font-size: 13px; display: block; }
.eq-premio small { font-size: 12px; color: var(--muted); display: block; line-height: 1.35; }
.eq-premio .dispo { color: var(--ink); margin-top: 4px; font-weight: 500; }
.eq-premio .ver { margin-left: auto; background: var(--ink); color: var(--surf); border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 500; white-space: nowrap; text-decoration: none; }
.eq-leyenda { font-size: 12px; color: var(--muted); line-height: 1.45; margin: 8px 2px 0; }
.eq-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 500; color: var(--ink); text-decoration: underline; cursor: pointer; }
.eq-nota { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--muted); line-height: 1.45; margin: 10px 2px 0; }
.eq-nota .eq-trazo { width: 16px; height: 16px; margin-top: 1px; }
.eq-error { font-size: 13px; color: var(--danger, #C8453B); margin: 8px 2px 0; min-height: 0; }
.eq-error:empty { display: none; }

/* ── 3 · Crear / editar ── */
.eq-form { display: block; }
.eq-subir { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 10px 0 6px; }
.eq-subir .cam { position: relative; cursor: pointer; display: block; }
.eq-subir .cam i { position: absolute; right: -2px; bottom: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--surf); display: grid; place-items: center; border: 3px solid var(--bg, var(--surf)); font-style: normal; }
.eq-subir small { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.4; max-width: 280px; }
.eq-form .campo { margin-top: 12px; }
.eq-form .campo label { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin: 0 4px 5px; }
.eq-form input:not([type=file]) { width: 100%; min-height: 48px; border-radius: 14px; background: var(--surf); border: 1.5px solid var(--line); padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); }
.eq-form input:focus { outline: none; border-color: var(--ink); }
.eq-codigo-in { text-align: center; letter-spacing: .3em; text-transform: uppercase; font-weight: 500; }
.eq-colores { display: flex; gap: 10px; flex-wrap: wrap; }
.eq-colores button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--c); position: relative; cursor: pointer; padding: 0; }
.eq-colores button.on { box-shadow: 0 0 0 3px var(--surf), 0 0 0 5px var(--ink); }
.eq-colores button.usado::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-linear-gradient(45deg, rgba(255,255,255,.6) 0 3px, transparent 3px 7px); }
.eq-seg { display: flex; background: var(--surf); border: 1.5px solid var(--line); border-radius: 999px; padding: 4px; }
.eq-seg button { flex: 1; min-height: 38px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.eq-seg button.on { background: var(--ink); color: var(--surf); }
.eq-form .pt-boton { margin-top: 14px; }
.eq-inv { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-top: 8px; }
.eq-inv .grito { font-style: italic; color: var(--muted); margin: 0; font-size: 14px; }
.eq-inv .pt-boton { margin-top: 12px; }

/* ── 4 · Mi equipo ── */
.eq-portada { display: flex; gap: 14px; align-items: center; padding: 16px; }
.eq-portada h3 { font-weight: 400; font-size: 20px; line-height: 1.1; margin: 0; }
.eq-portada .lema { font-size: 13px; color: var(--muted); margin: 3px 0 7px; font-style: italic; }
.eq-cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 0; }
.eq-cifras div { background: var(--surf); border-radius: 14px; padding: 9px 6px; text-align: center; box-shadow: var(--csh); }
.eq-cifras b { display: block; font-size: 22px; font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.eq-cifras small { font-size: 12px; color: var(--muted); }
.eq-rival { display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 10px; align-items: center; }
.eq-rival .lado { font-size: 12px; line-height: 1.25; color: var(--muted); }
.eq-rival .lado b { font-weight: 500; font-size: 13px; display: block; color: var(--ink); }
.eq-rival .lado.der { text-align: right; }
.eq-cita { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.eq-cita:first-of-type { border-top: 0; }
.eq-cita .ic { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--surf); display: grid; place-items: center; }
.eq-cita b { font-weight: 500; display: block; }
.eq-cita small { font-size: 12px; color: var(--muted); }
.eq-voy { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--field); color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.eq-voy.on { background: var(--ink); color: var(--surf); }
.eq-miembro { display: grid; grid-template-columns: 32px 1fr auto auto; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.eq-miembro:first-of-type { border-top: 0; }
.eq-miembro small { display: block; font-size: 12px; color: var(--muted); }
.eq-miembro .km { font-variant-numeric: tabular-nums; text-align: right; }
.eq-miembro .ava { width: 32px; height: 32px; border-radius: 50%; background: var(--field); color: var(--ink); display: grid; place-items: center; font-weight: 500; font-size: 12px; }
.eq-miembro .ava.cap { background: var(--ink); color: var(--surf); }
.eq-invitar { display: flex; gap: 8px; margin-top: 12px; }
.eq-invitar .pt-boton { min-height: 46px; font-size: 14px; }
.eq-c .codigo { text-align: center; font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.eq-c .codigo b { color: var(--ink); font-weight: 500; letter-spacing: .08em; font-size: 13px; }
.eq-acciones { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.eq-acciones .peligro { color: var(--danger, #C8453B); background: transparent; box-shadow: none; min-height: 44px; font-size: 14px; }

/* ── 6 · Victorias ── */
.eq-palma { display: grid; grid-template-columns: 18px 30px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.eq-palma:first-of-type { border-top: 0; }
.eq-palma .pos { color: var(--muted); text-align: center; font-weight: 500; }
.eq-palma .eq-foto { --s: 28px; }
.eq-palma .nm b { font-weight: 500; display: block; }
.eq-palma .nm small { font-size: 12px; color: var(--muted); }
.eq-palma .tit { display: flex; gap: 2px; color: #C9A44C; align-items: center; }
.eq-palma .tit .eq-trazo { width: 16px; height: 16px; }
.eq-palma .tit .cero { font-size: 12px; color: var(--muted); }
.eq-palma .num { font-size: 18px; font-weight: 300; text-align: right; min-width: 22px; font-variant-numeric: tabular-nums; }
.eq-semanas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.eq-semanas div { background: var(--field); border-radius: 14px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); text-align: center; }
.eq-semanas div b { color: var(--ink); font-weight: 500; }
.eq-semanas div .eq-foto { --s: 32px; box-shadow: 0 0 0 2px var(--field), 0 0 0 4px var(--c); }
.eq-record { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 6px 0; border-top: 1px solid var(--line); }
.eq-record:first-of-type { border-top: 0; }
.eq-record span { color: var(--muted); }
.eq-record b { font-weight: 500; text-align: right; }
@media (prefers-reduced-motion: reduce) { .eq-zf > * { transition: none; } }
