/* Mis torneos (index.php · inicio.js), diseño "Panel del Organizador" v2, etapa 4. */

.mt-encabezado { align-items: flex-end; margin-bottom: 24px; }
.mt-organizacion { display: inline-flex; align-items: flex-start; gap: 8px; margin-top: 10px; color: var(--text-dim); font-size: 13px; line-height: 18px; }
.mt-organizacion:hover { color: var(--text); text-decoration: none; }
.mt-organizacion img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.mt-organizacion-colores { display: inline-flex; margin-top: 2px; flex-shrink: 0; }
.mt-organizacion-colores span { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--border-fuerte); }
.mt-organizacion-colores span + span { margin-left: -4px; }

.mt-grilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1100px) { .mt-grilla { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .mt-grilla { grid-template-columns: minmax(0, 1fr); } }

/* La franja de arriba es el color de la organización (gris si terminó). */
.mt-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 16px; color: var(--text); min-height: 190px; }
.mt-franja { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--cyan); }
.mt-card:hover { text-decoration: none; }
.mt-card.terminado .mt-nombre { color: var(--text-dim); }
.mt-cabeza { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mt-nombre { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-bajada { margin-top: -8px; }

.mt-progreso { display: flex; flex-direction: column; gap: 6px; }
.mt-progreso-textos { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; line-height: 18px; }
.mt-barra { height: 6px; border-radius: var(--r-pill); background: var(--border-fuerte); overflow: hidden; }
.mt-barra span { display: block; height: 100%; border-radius: inherit; background: var(--cyan); min-width: 6px; }

.mt-dato { display: flex; align-items: center; gap: 6px; }
.mt-dato b { color: var(--text); font-weight: 600; }

.mt-campeon { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border-fuerte); border-radius: var(--r-medio); background: var(--bg-sutil); }
.mt-campeon > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.mt-campeon .t-fuerte { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-campeon-icono { color: var(--warn); display: inline-flex; }

.mt-pie { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 2px; }
.mt-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.mt-abrir { color: var(--cyan); font-weight: 600; white-space: nowrap; }

.mt-colaboras { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.mt-colaboras h2 { margin: 0; }
.mt-fila { display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: var(--text); }
.mt-fila:hover { text-decoration: none; }
.mt-fila-textos { flex: 1; min-width: 0; }
.mt-fila-textos > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-fila-sellos { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
/* "Tu predio": quien alquila y organiza (un solo panel, 2026-09-29). */
.mt-predio { margin-bottom: 24px; }
.mt-predio-icono { width: 40px; height: 40px; flex: none; border-radius: var(--r-medio); display: grid; place-items: center; background: var(--accent-soft); color: var(--cyan); }
.mt-predio-acciones { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .mt-fila { flex-wrap: wrap; }
  .mt-fila-sellos { order: 3; width: 100%; justify-content: flex-start; padding-left: 54px; }
  .mt-predio-acciones { order: 3; width: 100%; padding-left: 54px; }
}

.mt-nota { margin-top: 40px; display: flex; align-items: center; gap: 8px; }
