/* Usa las variables de gimnasio-garzon.css (se carga antes). */
html:has(.gym-start-dialog[open]) {
  overflow: hidden;
}
.gym-start-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--line-dark);
  border-top: 5px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
  font-family: var(--body);
}
.gym-start-dialog::backdrop {
  background: rgba(9, 10, 9, 0.8);
}
.gym-start-head {
  padding: 28px 34px 22px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 1px solid var(--line-dark);
}
.gym-start-head p {
  margin: 0 0 10px;
  color: var(--accent-bright);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.gym-start-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}
.gym-start-head span {
  max-width: 580px;
  margin-top: 12px;
  display: block;
  color: rgba(255, 255, 255, 0.7);
}
.gym-start-head > button {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  font-size: 26px;
  line-height: 1;
}
.gym-start-head > button:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.gym-start-form {
  padding: 26px 34px 30px;
  display: grid;
  gap: 20px;
  background: var(--ink-soft);
}
.gym-start-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.gym-start-form legend {
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 800;
}
.gym-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.gym-choice-grid label {
  position: relative;
}
.gym-choice-grid input {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.gym-choice-grid span {
  min-height: 52px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gym-choice-grid input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
}
.gym-choice-grid input:focus-visible + span {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}
.gym-start-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.gym-start-form > label,
.gym-start-row label {
  display: grid;
  gap: 8px;
  font-size: 1rem;
  font-weight: 800;
}
.gym-start-form label > span {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}
.gym-start-form input,
.gym-start-form select,
.gym-start-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 400;
}
.gym-start-form textarea {
  min-height: 90px;
  resize: vertical;
}
.gym-start-form > p {
  margin: -6px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  text-align: center;
}
.gym-start-form > .button {
  width: 100%;
}
@media (max-width: 600px) {
  .gym-start-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 100dvh;
    margin: auto 0 0;
  }
  .gym-start-head {
    padding: 22px 20px 18px;
  }
  .gym-start-form {
    padding: 22px 20px 26px;
  }
  .gym-start-row {
    grid-template-columns: 1fr;
  }
}
