:root {
  --bg-900: #07111f;
  --bg-800: #0b1730;
  --bg-700: #11224a;
  --card: rgba(255, 255, 255, 0.95);
  --card-border: rgba(94, 121, 188, 0.18);
  --text: #10213b;
  --muted: #64748b;
  --primary: #1f4aa8;
  --accent: #10b981;
  --accent-2: #f59e0b;
  --danger: #dc2626;
  --shadow: 0 24px 80px rgba(1, 7, 20, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.preinscripcion-page {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 22%),
    linear-gradient(180deg, #dce7ff 0%, #f6f8ff 38%, #eef3ff 100%);
  min-height: 100vh;
}

body.preinscripcion-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.38) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.22;
  pointer-events: none;
}

.preinscripcion-shell {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 56px;
  z-index: 1;
}

.hero-card,
.info-panel,
.side-panel,
.preinscripcion-form,
.form-section {
  backdrop-filter: blur(14px);
}

.hero-card {
  background: linear-gradient(135deg, rgba(10, 24, 53, 0.96), rgba(18, 40, 88, 0.93));
  color: #fff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}

/* Top-right icon-button group on the hero card: home, optional "volver"
   (back to the main inscripción form), and logout when authenticated.
   A flex row instead of independently absolutely-positioned badges, so
   every icon that's present always renders visibly side by side. */
.hero-actions {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.hero-home-link,
.hero-back-link,
.hero-logout-link {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(7, 17, 31, 0.22);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  padding: 0;
}

.hero-home-link:hover,
.hero-home-link:focus-visible,
.hero-back-link:hover,
.hero-back-link:focus-visible,
.hero-logout-link:hover,
.hero-logout-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.46);
  color: #ffffff;
}

.hero-home-link:focus-visible,
.hero-back-link:focus-visible,
.hero-logout-link:focus-visible {
  outline: 2px solid rgba(16, 185, 129, 0.72);
  outline-offset: 2px;
}

.hero-logout-link button {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
  cursor: pointer;
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: auto -80px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.32), transparent 68%);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
  animation: floaty 7s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-card h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.92;
  margin: 0;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  margin: 8px 0 0;
  font-size: 1.04rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 720px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.entry-switcher {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.entry-card-switch {
  appearance: none;
  border: 1px solid rgba(94, 121, 188, 0.2);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  flex: 1 1 0;
  min-width: 300px;
}

.entry-card-switch:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(10, 24, 53, 0.12);
}

.entry-card-switch.is-active {
  background: linear-gradient(135deg, rgba(31, 74, 168, 0.14), rgba(16, 185, 129, 0.12));
  border-color: rgba(31, 74, 168, 0.4);
}

.entry-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(31, 74, 168, 0.12);
  color: #123a83;
  flex-shrink: 0;
}

.entry-card-switch strong {
  display: block;
  color: #173a7a;
  margin-bottom: 6px;
}

.entry-card-switch small {
  display: block;
  color: #475569;
  line-height: 1.45;
}

.seguimiento-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.8fr auto;
}

.seguimiento-actions {
  display: flex;
  align-items: flex-end;
}

.tracking-alert {
  margin-top: 14px;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid;
  font-weight: 700;
}

.tracking-alert-error {
  color: #a01f1f;
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.24);
}

.tracking-alert-success {
  color: #0f5132;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.28);
}

/* Inscripción step (código / resumen / datos) — reuses the preinscripción
   shell/palette; these are the only genuinely new pieces that flow needs. */
.inscripcion-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(31, 74, 168, 0.08);
  border-left: 4px solid var(--accent-2);
  color: #173a7a;
  font-size: 0.92rem;
  line-height: 1.5;
}

.inscripcion-note i {
  margin-top: 2px;
}

.approved-categories {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.approved-categories li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(94, 121, 188, 0.16);
  background: rgba(255, 255, 255, 0.85);
}

.approved-categories li span {
  color: var(--muted);
  font-weight: 700;
}

.approved-categories li strong {
  color: #173a7a;
}

a.btn-submit {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.tracking-result {
  margin-top: 16px;
  border-radius: 18px;
  border: 1px solid rgba(31, 74, 168, 0.14);
  background: linear-gradient(180deg, rgba(31, 74, 168, 0.05), rgba(255, 255, 255, 0.95));
  padding: 16px;
}

.tracking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tracking-head h4 {
  margin: 0;
  color: #173a7a;
  font-size: 1.12rem;
}

.tracking-status {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
}

.tracking-status.is-pending {
  color: #7c4a05;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.3);
}

.tracking-status.is-success {
  color: #0f5132;
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.3);
}

.tracking-status.is-danger {
  color: #991b1b;
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.26);
}

.tracking-status.is-warning {
  color: #92400e;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.3);
}

.tracking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tracking-item {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(94, 121, 188, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
}

.tracking-item span {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}

.tracking-item strong {
  color: #132545;
  word-break: break-word;
}

.tracking-block {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(94, 121, 188, 0.14);
  background: rgba(255, 255, 255, 0.76);
}

.tracking-logo-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(94, 121, 188, 0.14);
  background: rgba(255, 255, 255, 0.78);
}

.tracking-logo-preview {
  width: 92px;
  height: 92px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(94, 121, 188, 0.16);
  background: #fff;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.tracking-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.tracking-logo-text strong {
  display: block;
  color: #173a7a;
  margin-bottom: 4px;
}

.tracking-logo-text p {
  margin: 0;
  color: var(--muted);
}

.tracking-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tracking-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(31, 74, 168, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: #1f4aa8;
  text-decoration: none;
  font-weight: 800;
}

.tracking-download:hover {
  background: #fff;
  border-color: rgba(31, 74, 168, 0.3);
}

.tracking-block h5 {
  margin: 0 0 8px;
  color: #173a7a;
  font-size: 0.96rem;
}

.tracking-block ul {
  margin: 0;
  padding-left: 18px;
}

.tracking-block p {
  margin: 0;
}

.roster-category {
  margin-top: 12px;
}

.roster-category:first-child {
  margin-top: 0;
}

.roster-category-title {
  margin: 0 0 8px;
  font-weight: 800;
  color: #173a7a;
  font-size: 0.92rem;
}

.roster-teams {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.roster-team-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(94, 121, 188, 0.16);
  background: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  color: #173a7a;
  font-weight: 800;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.roster-team-link:hover {
  border-color: rgba(31, 74, 168, 0.35);
  transform: translateY(-1px);
}

.roster-team-count {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.86rem;
  white-space: nowrap;
}

.roster-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.88rem;
}

.roster-table th,
.roster-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(94, 121, 188, 0.14);
  vertical-align: top;
}

.roster-table th {
  color: #64748b;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.roster-empty {
  padding: 14px;
  text-align: center;
  color: var(--muted);
}

.file-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  margin: 0 4px 4px 0;
}

.file-badge.is-uploaded {
  color: #0f5132;
  background: rgba(16, 185, 129, 0.14);
}

.file-badge.is-missing {
  color: #64748b;
  background: rgba(100, 116, 139, 0.12);
}

.roster-delete-btn {
  border: none;
  background: transparent;
  color: #991b1b;
  font-weight: 800;
  cursor: pointer;
  padding: 4px 6px;
}

.roster-delete-btn:hover {
  text-decoration: underline;
}

.roster-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.roster-edit-btn {
  border: none;
  background: transparent;
  color: #1f4aa8;
  font-weight: 800;
  cursor: pointer;
  padding: 4px 6px;
}

.roster-edit-btn:hover {
  text-decoration: underline;
}

.form-section .archivo-actual {
  margin: 6px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #047857;
}

.archivo-actual-preview {
  margin: 8px 0 0;
  max-width: 160px;
  max-height: 160px;
  border-radius: 10px;
  border: 1px solid rgba(4, 120, 87, 0.3);
  display: block;
}

.archivo-actual-link {
  color: #047857;
  font-weight: 800;
  text-decoration: underline;
}

.archivo-actual-delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(220, 38, 38, 0.25);
  background: rgba(220, 38, 38, 0.08);
  color: var(--danger);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 999px;
  margin-left: 8px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.archivo-actual-delete-btn i {
  font-size: 0.8rem;
}

.archivo-actual-delete-btn:hover {
  background: rgba(220, 38, 38, 0.16);
  border-color: rgba(220, 38, 38, 0.45);
}

.link-button {
  border: none;
  background: transparent;
  padding: 0;
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.roster-row-number {
  color: #64748b;
  font-weight: 700;
  text-align: center;
  width: 1%;
}

.roster-add-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.roster-add-header h3 {
  margin: 0;
}

.btn-toggle-panel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #1f4aa8, #10b981);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(31, 74, 168, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-toggle-panel:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(31, 74, 168, 0.26);
}

.form-grid.otro-field {
  margin-top: 10px;
}

.meta-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.95fr;
  gap: 18px;
  margin-bottom: 18px;
}

.info-panel,
.side-panel,
.preinscripcion-form {
  background: var(--card);
  border-radius: 24px;
  border: 1px solid var(--card-border);
  box-shadow: 0 16px 50px rgba(14, 23, 44, 0.12);
}

.info-panel,
.side-panel {
  padding: 22px;
}

.info-panel h2,
.side-panel h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  margin: 0 0 14px;
  letter-spacing: 0.03em;
  color: #173a7a;
}

.info-panel p,
.side-panel p,
.form-section p {
  color: #24324b;
  line-height: 1.7;
}

.bases-box {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.09), rgba(16, 185, 129, 0.03));
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 18px;
  padding: 18px;
  margin-top: 18px;
}

.bases-box-compact {
  margin-top: 18px;
  margin-bottom: 0;
}

.bases-box-compact strong {
  display: block;
  margin-bottom: 6px;
}

.bases-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bases-check input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.player-photo-guide {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(31, 74, 168, 0.08);
  border: 1px solid rgba(31, 74, 168, 0.15);
}

.player-photo-guide img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(94, 121, 188, 0.22);
}

.player-photo-guide small {
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.35;
}

.player-photo-guide-side {
  margin-top: 16px;
}

.category-hints {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.hint-card {
  background: linear-gradient(135deg, rgba(31, 74, 168, 0.08), rgba(16, 185, 129, 0.09));
  border: 1px solid rgba(31, 74, 168, 0.14);
  border-radius: 16px;
  padding: 16px;
}

.hint-card span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hint-card strong {
  display: block;
  margin-top: 8px;
  color: #12316a;
  font-size: 1rem;
}

.side-panel ul {
  padding-left: 18px;
  margin: 0;
  line-height: 1.8;
}

.small-note,
.section-note {
  color: var(--muted);
  margin-top: 12px;
  font-size: 0.95rem;
}

.communique-banner {
  padding: 20px 24px;
  text-align: left;
  background: linear-gradient(180deg, rgba(26, 75, 122, 0.08), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(26, 75, 122, 0.2);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.communique-banner i {
  color: #1a4b7a;
  font-size: 1.4rem;
  margin-top: 2px;
}

.communique-banner p {
  margin: 0;
  font-weight: 700;
  color: #1b2b46;
  line-height: 1.6;
}

.closed-card {
  padding: 26px;
  text-align: left;
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.07), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(220, 38, 38, 0.16);
}

.closed-card h2 {
  margin: 14px 0 10px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  color: #8b1f1f;
}

.closed-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(220, 38, 38, 0.12);
  color: #9b1c1c;
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.subtle-home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.84rem;
  color: #64748b;
  text-decoration: none;
  border-bottom: 1px dashed rgba(100, 116, 139, 0.4);
  padding-bottom: 1px;
}

.subtle-home-link:hover {
  color: #1f4aa8;
  border-bottom-color: rgba(31, 74, 168, 0.45);
}

.preinscripcion-form {
  padding: 22px;
}

.wizard-shell {
  display: grid;
  gap: 18px;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.wizard-step {
  appearance: none;
  border: 1px solid rgba(94, 121, 188, 0.16);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: #1b2b46;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wizard-step span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(31, 74, 168, 0.1);
  color: var(--primary);
  font-weight: 900;
  flex-shrink: 0;
}

.wizard-step strong {
  display: block;
  font-size: 0.92rem;
}

.wizard-step:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(10, 24, 53, 0.08);
}

.wizard-step.is-active {
  background: linear-gradient(135deg, rgba(31, 74, 168, 0.15), rgba(16, 185, 129, 0.12));
  border-color: rgba(31, 74, 168, 0.35);
  box-shadow: 0 12px 28px rgba(31, 74, 168, 0.12);
}

.wizard-step.is-complete span {
  background: rgba(16, 185, 129, 0.14);
  color: var(--accent);
}

.wizard-panels {
  display: grid;
}

.wizard-panel {
  animation: wizardReveal 0.25s ease;
}

.review-summary {
  background: linear-gradient(180deg, rgba(31, 74, 168, 0.08), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(31, 74, 168, 0.14);
  border-radius: 20px;
  padding: 18px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.review-item {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(94, 121, 188, 0.12);
  border-radius: 16px;
  padding: 12px 14px;
}

.review-item-full {
  grid-column: 1 / -1;
}

.review-item span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.review-item strong {
  color: #132545;
  font-size: 0.97rem;
  word-break: break-word;
}

.form-section {
  padding: 22px;
  border: 1px solid rgba(71, 98, 160, 0.14);
  border-radius: 22px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 252, 255, 0.92));
}

.form-section h3 {
  margin: 0 0 16px;
  font-size: 1.15rem;
  color: #173a7a;
  letter-spacing: 0.01em;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.three-cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.form-section label,
.submit-accept span {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  color: #1b2b46;
}

.form-control {
  width: 100%;
  border: 1px solid rgba(94, 121, 188, 0.3);
  border-radius: 14px;
  padding: 13px 14px;
  background: #fff;
  color: #12213d;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-control:focus {
  border-color: rgba(31, 74, 168, 0.55);
  box-shadow: 0 0 0 4px rgba(31, 74, 168, 0.12);
}

.textarea-lg {
  min-height: 160px;
  resize: vertical;
}

.radio-grid,
.category-grid,
.check-grid,
.result-grid {
  display: grid;
  gap: 12px;
}

.radio-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.radio-card,
.category-card,
.check-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(94, 121, 188, 0.18);
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.radio-card:hover,
.category-card:hover,
.check-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(10, 24, 53, 0.08);
  border-color: rgba(16, 185, 129, 0.28);
}

.radio-card input,
.category-card input,
.check-card input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.radio-card span,
.category-card span,
.check-card span {
  display: block;
  color: #16243e;
}

.category-card strong,
.check-card span {
  font-size: 0.98rem;
}

.category-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.category-item {
  border: 1px solid rgba(94, 121, 188, 0.14);
  border-radius: 18px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.65);
}

.category-item.is-selected {
  border-color: rgba(16, 185, 129, 0.28);
  box-shadow: 0 10px 24px rgba(10, 24, 53, 0.08);
}

.category-qty {
  margin-top: 10px;
}

.category-qty label {
  margin-bottom: 6px;
  font-size: 0.86rem;
  font-weight: 800;
  color: #1b2b46;
}

.logo-preview {
  margin-top: 12px;
  border: 1px dashed rgba(31, 74, 168, 0.28);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  max-width: 260px;
}

.logo-preview span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.logo-preview img {
  display: block;
  max-width: 100%;
  max-height: 140px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(94, 121, 188, 0.18);
}

.category-grid,
.check-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.result-grid div {
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(31, 74, 168, 0.08), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(31, 74, 168, 0.12);
  font-weight: 700;
  color: #173a7a;
}

.disclaimer-section {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.06), rgba(255, 255, 255, 0.96));
}

.submit-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.wizard-actions-bottom {
  justify-content: flex-end;
  margin-top: 18px;
}

.btn-ghost {
  border: 1px solid rgba(31, 74, 168, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.btn-ghost:hover {
  background: #fff;
  border-color: rgba(31, 74, 168, 0.28);
}

.submit-accept {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.98rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.submit-accept input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.btn-submit {
  border: none;
  border-radius: 16px;
  padding: 14px 20px;
  margin-top: 22px;
  background: linear-gradient(135deg, #1f4aa8, #10b981);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 30px rgba(31, 74, 168, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-next-section {
  min-width: 160px;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(31, 74, 168, 0.28);
}

.alert-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes wizardReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .seguimiento-grid,
  .tracking-grid {
    grid-template-columns: 1fr;
  }

  .tracking-logo-card {
    align-items: flex-start;
  }

  .wizard-steps,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .check-grid,
  .result-grid,
  .radio-grid,
  .form-grid.three-cols,
  .form-grid.two-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .preinscripcion-shell {
    padding: 16px 14px 32px;
  }

  .hero-card,
  .preinscripcion-form,
  .info-panel,
  .side-panel,
  .form-section {
    border-radius: 20px;
    padding: 18px;
  }

  .hero-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-logo {
    width: 72px;
    height: 72px;
  }

  .hero-actions {
    top: 14px;
    right: 14px;
    gap: 8px;
  }

  .hero-home-link,
  .hero-back-link,
  .hero-logout-link {
    width: 34px;
    height: 34px;
  }

  .meta-pill {
    width: 100%;
    justify-content: flex-start;
  }

  .wizard-step {
    padding: 12px 14px;
  }

  .wizard-actions {
    flex-direction: column;
  }

  .wizard-actions > * {
    width: 100%;
  }
}

/* Recorte de la foto personal (nómina) — modal simple sobre Cropper.js. */
.crop-preview-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.crop-preview-thumb {
  max-width: 90px;
  max-height: 72px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(94, 121, 188, 0.3);
  box-shadow: 0 6px 14px rgba(10, 24, 53, 0.14);
  background: #fff;
}

.crop-preview-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f5132;
}

.crop-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(7, 17, 31, 0.72);
}

.crop-modal-box {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.crop-modal-box h4 {
  margin: 0 0 6px;
  color: #173a7a;
}

.crop-modal-canvas {
  margin: 14px 0;
  max-height: 60vh;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
}

.crop-modal-canvas img {
  display: block;
  max-width: 100%;
}

.crop-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.crop-btn {
  border: none;
  border-radius: 12px;
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
}

.crop-btn-secondary {
  background: rgba(100, 116, 139, 0.12);
  color: #334155;
}

.crop-btn-primary {
  background: linear-gradient(135deg, #1f4aa8, #10b981);
  color: #fff;
}

/* Completitud de la nómina (% por participante, badge por equipo, detalle
   de lo que falta cuando se intenta confirmar sin estar todo listo). */
.roster-team-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.roster-team-badge.is-complete {
  color: #0f5132;
  background: rgba(16, 185, 129, 0.16);
}

.roster-team-badge.is-incomplete {
  color: #92400e;
  background: rgba(245, 158, 11, 0.16);
}

.completitud-bar {
  width: 90px;
  height: 8px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.16);
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
}

.completitud-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.completitud-bar-fill.is-complete {
  background: #10b981;
}

.completitud-bar-fill.is-partial {
  background: #f59e0b;
}

.completitud-bar-fill.is-low {
  background: #dc2626;
}

.completitud-label {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #334155;
  vertical-align: middle;
}

.completitud-detalles {
  margin: 10px 0 0;
  padding-left: 20px;
  color: #a01f1f;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Aviso de privacidad Ley 21.719, por participante. */
.privacidad-box {
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(31, 74, 168, 0.05);
  border: 1px solid rgba(31, 74, 168, 0.14);
}

.privacidad-box-title {
  margin: 0 0 6px;
  font-weight: 800;
  color: #173a7a;
}

.privacidad-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  font-size: 0.92rem;
  color: #1b2b46;
  cursor: pointer;
}

.privacidad-check input {
  margin-top: 4px;
}

.privacidad-required {
  color: #dc2626;
}

.form-section .privacidad-ya-aceptado {
  margin: 8px 0 0 26px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #047857;
}

/* Groups the participant's file-upload fields (Part 3): fotos vs. documentos
   anexos get their own soft-tinted container so they read as two distinct
   steps instead of one undifferentiated wall of inputs. */
.archivo-group {
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: 16px;
}

.archivo-group-title {
  margin: 0 0 12px;
  font-weight: 800;
  font-size: 0.95rem;
}

.archivo-group-fotos {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.18);
}

.archivo-group-fotos .archivo-group-title {
  color: #047857;
}

.archivo-group-documentos {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.archivo-group-documentos .archivo-group-title {
  color: #92400e;
}

/* Part 2: "Descargar plantilla" links for the blank templates configured
   for this preinscripción's año torneo, shown above the documentos anexos
   upload fields. */
.plantillas-descarga {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.plantillas-descarga-title {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 0.88rem;
  color: #92400e;
}

.plantillas-descarga-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plantillas-descarga-list a {
  color: #173a7a;
  font-weight: 700;
  text-decoration: underline;
  font-size: 0.92rem;
}
