/* === dashboard-cliente.css COMPLETO === */
/* ===============================
   TABLA COMPETICIONES PROFESIONAL
   =============================== */

.str-tabla-header-controls {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 0.3rem;
  width: 100%;
}

.str-table-search-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 430px;
  margin-bottom: 1rem;
}

.str-table-search {
  width: 100%;
  padding: 0.65rem 1.1rem 0.65rem 2.8rem;
  border: 1px solid #d0e2ff;
  border-radius: 9px;
  font-size: 1rem;
  outline: none;
  box-shadow: 0 1px 3px rgba(0,85,204,0.04);
  margin-bottom: 0;
  transition: border 0.15s;
  z-index: 1;
}
.str-table-search:focus {
  border-color: #0055cc;
}
@media (max-width: 800px) {
  .str-table-search {
    font-size: 0.96rem;
    padding: 0.5rem 0.6rem 0.5rem 2.4rem;
  }
}


/* Tabla */
.str-tabla-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 1.2rem;
}
.str-tabla {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1.01rem;
  min-width: 620px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 16px rgba(60,70,100,0.08);
  overflow: hidden;
}
.str-tabla th,
.str-tabla td {
  padding: 0.95rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid #e6eaf1;
  font-weight: 600;
  background: none;
}
.str-tabla th {
  background: #f2f2f2;
  font-size: 1.07rem;
  position: sticky;
  top: 0;
  z-index: 1;
  user-select: none;
  cursor: pointer;
  font-weight: 700;
  vertical-align: middle;
}
.str-tabla th .str-table-sort-icon {
  margin-left: 0.4em;
  font-size: 1em;
  color: #0055cc;
  display: inline-block;
  vertical-align: middle;
}
.str-tabla th:last-child, .str-tabla td:last-child { text-align: center; }
.str-tabla tbody tr {
  transition: background 0.17s;
}
.str-tabla tbody tr:hover {
  background-color: #eaf3ff;
}
.str-tabla tbody tr:nth-child(even) {
  background-color: #f8fbfe;
}
.str-tabla-intro {
  color: #3d455c;
  font-size: 1.08rem;
  margin-bottom: 1.1em;
  margin-top: 0.4em;
  opacity: 0.87;
}

/* Botón "Ver competición" */
.str-dashboard-btn,
.str-dashboard-btn.str-btn-ver {
  background: #0055cc;
  color: #fff !important;
  border-radius: 7px;
  padding: 0.45rem 1.05rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 7px rgba(0,85,204,0.07);
  transition: background 0.18s, transform 0.18s;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-block;
}
.str-dashboard-btn:hover,
.str-dashboard-btn.str-btn-ver:hover {
  background: #003f99;
  color: #fff !important;
  transform: translateY(-2px) scale(1.04);
  text-decoration: none !important;
}

/* Responsive para la tabla */
@media (max-width: 800px) {
  .str-tabla-wrapper {
    overflow-x: auto;
  }
  .str-tabla {
    min-width: 520px;
    font-size: 0.97rem;
  }
  .str-tabla th, .str-tabla td {
    padding: 0.7rem 0.5rem;
  }
  .str-table-search {
    font-size: 0.96rem;
    padding: 0.5rem 0.6rem 0.5rem 2.1rem;
  }
  .str-table-search-wrapper {
    max-width: 100%;
  }
}


/* Botones del panel */
.str-dashboard-btn {
  background-color: #0055cc;
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.str-dashboard-btn:hover {
  background-color: #003f99;
}

/* Filtros o secciones generales */
.str-dashboard-seccion {
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .str-tabla-competicion {
    font-size: 0.9rem;
  }
}

/* ==== DASHBOARD CARDS HOME ==== */
.str-dashboard-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.str-dashboard-card,
.str-dashboard-card *,
.str-dashboard-card h3,
.str-dashboard-card p {
  text-decoration: none !important;
}

.str-dashboard-card {
  background: #f5f8ff;
  box-shadow: 0 6px 24px rgba(32, 96, 168, 0.07);
  border-radius: 22px;
  padding: 2.2rem 1.3rem 1.8rem 1.3rem;
  text-align: center;
  color: #232b36;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  cursor: pointer;
  border: 1px solid #e3eeff;
}

.str-dashboard-card:hover, .str-dashboard-card:focus {
  box-shadow: 0 10px 32px rgba(32, 96, 168, 0.15);
  transform: translateY(-5px) scale(1.035);
  border-color: #b2d3ff;
}

.str-dashboard-card-icon {
  margin-bottom: 1.3rem;
}
.str-dashboard-card-icon svg {
  display: block;
  margin: 0 auto;
}

.str-dashboard-card h3 {
  margin: 0 0 0.6rem 0;
  font-size: 1.18rem;
  font-weight: 700;
  color: #0055cc;
  letter-spacing: 0.01em;
}

.str-dashboard-card p {
  margin: 0;
  font-size: 1rem;
  color: #49546b;
  opacity: 0.90;
  font-weight: 400;
  line-height: 1.35;
}
.str-dashboard-card-icon {
  margin-bottom: 1.3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.str-dashboard-card-icon i {
  font-size: 2.4rem;
  color: #0055cc;
  background: #eaf3ff;
  border-radius: 50%;
  padding: 0.7rem;
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==== DASHBOARD CARDS HOME Versión movil ==== */
@media (max-width: 900px) {
  .str-dashboard-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 1.2rem;
    justify-items: center;
    width: 100%;
    max-width: 100%;
  }
  .str-dashboard-card {
    width: 100%;
    max-width: 210px;
    min-width: 0;
    padding: 1.4rem 0.5rem 1.4rem 0.5rem;
    font-size: 1.06rem;
    box-sizing: border-box;
  }
  .str-dashboard-card-icon i {
    font-size: 2rem;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.6rem;
  }
}

@media (max-width: 600px) {
  .str-dashboard-cards {
    gap: 0.8rem;
    margin-top: 1rem;
  }
  .str-dashboard-card {
    max-width: 170px;
    padding: 1.25rem 0.2rem 1.1rem 0.2rem;
    font-size: 1rem;
  }
  .str-dashboard-card-icon i {
    font-size: 1.4rem;
    width: 2rem;
    height: 2rem;
    padding: 0.32rem;
  }
}

/* ===== FORMULARIOS (Crear competición) ===== */
.str-dashboard-form {
  background: #ffffff;
  border-radius: 18px;
  padding: 2.2rem;
  box-shadow: 0 12px 40px rgba(12, 40, 114, 0.12);
  max-width: 1080px;
  margin: 0 auto 3rem auto;
}

.str-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.str-form-section {
  border: 1px solid #e6ecff;
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f6ff 100%);
}

.str-form-section__title {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f1f3d;
}

.str-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 1.5rem;
}

.str-form-grid--cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.str-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.str-field label {
  font-weight: 600;
  color: #1b2a4e;
  font-size: 0.95rem;
}

.str-field input,
.str-field select,
.str-field textarea {
  width: 100%;
  border: 1px solid #cfd8f6;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.97rem;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.str-field textarea {
  min-height: 120px;
  resize: vertical;
}

.str-field select[multiple] {
  min-height: 120px;
}

.str-field input:focus,
.str-field select:focus,
.str-field textarea:focus {
  border-color: #0055cc;
  box-shadow: 0 0 0 3px rgba(0, 85, 204, 0.12);
  outline: none;
}

.str-field-hint {
  font-size: 0.78rem;
  color: #5e6987;
}

.str-field--desempate .str-desempate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.8rem;
}

.str-desempate-slot {
  background: #fff;
  border: 1px solid #dfe6ff;
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
}

.str-desempate-slot span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a5878;
}

.str-desempate-slot select {
  border-color: #c2ceed;
  border-radius: 8px;
}

.str-btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0055cc;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.95rem 2.4rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.str-btn--primary:hover {
  background: #0043a3;
  box-shadow: 0 10px 22px rgba(0, 85, 204, 0.25);
  transform: translateY(-2px);
}

.str-btn--xl {
  width: 100%;
  max-width: 320px;
  align-self: flex-end;
}

@media (max-width: 768px) {
  .str-dashboard-form {
    padding: 1.5rem;
  }

  .str-form-section {
    padding: 1.1rem;
  }

  .str-btn--xl {
    width: 100%;
  }
}

/* ===== Wizard creación competición ===== */
.str-competition-wizard {
  position: relative;
}

.str-wizard-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.8rem;
}

.str-wizard-stepper__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid #dde6ff;
  border-radius: 12px;
  background: #f8faff;
  transition: border-color 0.2s, background 0.2s;
}

.str-wizard-stepper__item.is-active {
  border-color: #0055cc;
  background: #eaf2ff;
  box-shadow: 0 6px 18px rgba(0, 62, 128, 0.08);
}

.str-wizard-stepper__index {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #cddcff;
  color: #0f1f3d;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
}

.str-wizard-stepper__item.is-active .str-wizard-stepper__index {
  background: #0055cc;
  color: #fff;
}

.str-wizard-stepper__label {
  font-size: 0.9rem;
  color: #1b2a4e;
  font-weight: 600;
}

.str-wizard-panels {
  min-height: 420px;
}

.str-wizard-panel {
  display: none;
  animation: strWizardFade 0.35s ease;
}

.str-wizard-panel.is-active {
  display: block;
}

@keyframes strWizardFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.str-form-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.str-form-section__subtitle {
  font-size: 0.9rem;
  color: #4b5571;
  margin: 0.2rem 0 0 0;
}

.str-form-pill {
  background: #eef4ff;
  color: #0f1f3d;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

.str-field--hint-wide {
  grid-column: 1 / -1;
}

.str-wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.str-wizard-actions [data-wizard-submit] {
  margin-left: auto;
}

.str-wizard-actions .is-hidden {
  display: none !important;
}

.str-btn--ghost {
  background: transparent;
  color: #1b2a4e;
  border: 1px solid #bac6e6;
  border-radius: 10px;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
}

.str-field-error,
.str-field-error:focus {
  border-color: #d9534f !important;
  box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.2) !important;
}

.is-hidden {
  display: none !important;
}

.str-btn--ghost:hover {
  border-color: #0055cc;
  color: #0055cc;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .str-wizard-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .str-wizard-stepper {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .str-wizard-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .str-wizard-actions [data-wizard-submit] {
    margin-left: 0;
  }
}

/* ====== Simulación paso 2 ====== */
.str-sim-card {
  margin-top: 1.4rem;
  padding: 1.5rem;
  border: 1px solid #d9e4ff;
  border-radius: 16px;
  background: #f9fbff;
}

.str-sim-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.str-sim-card__header h4 {
  margin: 0;
  font-size: 1.15rem;
  color: #0f1f3d;
}

.str-sim-card__header p {
  margin: 0.2rem 0 0;
  color: #4b5571;
  font-size: 0.9rem;
}

.str-sim-card__pill {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.82rem;
  background: #e5e9f4;
  color: #314166;
}

.str-sim-card__pill.is-ok {
  background: #dcfce7;
  color: #065f46;
}

.str-sim-card__pill.is-alert {
  background: #fee2e2;
  color: #b91c1c;
}

.str-sim-card__pill.is-muted {
  background: #e5e9f4;
  color: #314166;
}

.str-sim-card__status {
  font-weight: 600;
  color: #0f1f3d;
  margin-bottom: 0.5rem;
}

.str-sim-card__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  margin: 0.8rem 0 0.4rem;
}

.str-sim-card__metric {
  background: #fff;
  border: 1px solid #e0e7ff;
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.str-sim-card__metric span {
  font-size: 0.85rem;
  color: #4b5571;
}

.str-sim-card__metric strong {
  font-size: 1.06rem;
  color: #1b2a4e;
}

.str-sim-card__macro {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #d7e3ff;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.str-sim-card__macro h5 {
  margin: 0;
  font-size: 1rem;
  color: #0f1f3d;
}

.str-sim-card__note {
  font-size: 0.9rem;
  color: #4b5571;
}

.str-sim-card__macro-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #1b2a4e;
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.str-sim-card__warnings {
  margin-top: 0.8rem;
}

.str-sim-card__warning {
  background: #fff6e5;
  border-left: 4px solid #f97316;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.92rem;
  color: #8a3b07;
}

@media (max-width: 640px) {
  .str-sim-card__metrics {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}
