/* =========================================
   REGISTER.CSS — Página de registro
   ========================================= */

/* Asegurar que el footer se vea igual que en index */
.site-footer {
  background: #004387 !important;
  padding: 14px 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-shrink: 0;
}

/* ---- Sección principal ---- */
.reg-section {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

/* ---- Contenedor centrado 1200px ---- */
.reg-body {
  position: relative;
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 24px 120px 32px 0;
}


/* ---- Logo Sigelec ---- */
.reg-sigelec-logo {
  position: absolute;
  top: 24px;
  left: 120px;
  height: 52px;
  width: auto;
  z-index: 10;
}

/* ---- Técnico ---- */
.reg-tecnico {
  position: absolute;
  bottom: 0;
  left: 80px;
  height: 92%;
  width: auto;
  z-index: 5;
}

/* ---- Logo Club Máster ---- */
.reg-club-logo {
  position: absolute;
  left: 30%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  z-index: 6;
}

/* ---- Formulario contenedor ---- */
.reg-form-wrap {
  position: relative;
  z-index: 10;
  width: 520px;
  flex-shrink: 0;
}

/* ---- Título imagen ---- */
.reg-title-img {
  width: 320px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-bottom: 16px;
}

/* ---- Filas del formulario ---- */
.reg-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reg-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reg-row label {
  font-weight: 800;
  font-size: 0.82rem;
  color: #004F9B;
  text-align: right;
  min-width: 155px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.reg-row input:not([type="checkbox"]),
.reg-row select {
  flex: 1;
  height: 36px;
  padding: 0 14px;
  border: 2px solid #f5c800;
  border-radius: 30px;
  background: #ffffff;
  font-family: var(--font-main);
  font-size: 0.82rem;
  color: #666;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.reg-row input:not([type="checkbox"]):focus,
.reg-row select:focus {
  border-color: #004F9B;
  box-shadow: 0 0 0 3px rgba(0,79,155,0.12);
  color: #222;
}

.reg-row input:not([type="checkbox"])::placeholder {
  color: #bbb;
}

/* Select flecha personalizada */
.reg-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23004F9B'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 32px;
  cursor: pointer;
  color: #bbb;
}

.reg-row select:focus,
.reg-row select:valid {
  color: #444;
}

/* Inline (fecha + edad, documento) */
.reg-inline {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reg-inline-label {
  font-weight: 800;
  font-size: 0.82rem;
  color: #004F9B;
  text-transform: uppercase;
  white-space: nowrap;
  min-width: unset !important;
  flex-shrink: 0;
}

.reg-fecha {
  flex: 1 !important;
}

.reg-edad {
  width: 56px !important;
  flex: none !important;
  text-align: center;
}

.reg-doc-select {
  width: 130px !important;
  flex: none !important;
}

.reg-doc-input {
  flex: 1 !important;
}

/* Texto legal */
.reg-legal {
  margin-top: 18px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #222;
  text-align: center;
  background: rgba(255,255,255,0.82);
  border-radius: 8px;
  padding: 12px 16px;
}

.reg-legal strong {
  font-weight: 900;
}

/* Términos */
.reg-row--check {
  justify-content: center;
}

/* Botón confirmar */
.reg-row--submit {
  justify-content: flex-end;
  margin-top: 6px;
}

.reg-submit {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  background: #2196F3;
  border: none;
  padding: 11px 52px;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 4px 14px rgba(33,150,243,0.35);
}

.reg-submit:hover {
  background: #1565C0;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(33,150,243,0.4);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1100px) {
  .reg-body {
    padding: 40px 48px 40px 0;
  }

  .reg-form-wrap {
    width: 460px;
  }

  .reg-club-logo {
    left: 210px;
    width: 150px;
  }
}

@media (max-width: 900px) {
  .reg-body {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
  }

  .reg-sigelec-logo,
  .reg-tecnico {
    display: none;
  }

  .reg-club-logo {
    position: relative;
    left: unset;
    top: unset;
    transform: none;
    width: 220px;
    display: block;
    margin: 20px auto 8px;
  }

  .reg-title-img {
    position: relative;
    display: block;
    width: 220px;
    margin: 0 auto 16px;
  }

  .reg-form-wrap {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 0 16px 24px;
  }
}

@media (max-width: 600px) {
  .reg-club-logo {
    width: 180px;
  }

  .reg-title-img {
    width: 180px;
  }

  .reg-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .reg-row label {
    text-align: left;
    min-width: unset;
    font-size: 0.78rem;
  }

  .reg-row input:not([type="checkbox"]),
  .reg-row select {
    width: 100%;
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    padding: 0 14px;
    box-sizing: border-box;
  }

  .reg-inline {
    width: 100%;
    flex-wrap: nowrap;
  }

  .reg-inline input,
  .reg-inline select {
    height: 38px;
    min-height: 38px;
    max-height: 38px;
  }

  .reg-edad {
    width: 60px !important;
    flex: none !important;
  }

  .reg-doc-select {
    width: 110px !important;
    flex: none !important;
  }

  .reg-row--submit {
    justify-content: center;
    flex-direction: row;
  }

  .reg-submit {
    width: 80%;
    max-width: 300px;
  }

  .reg-legal {
    font-size: 0.74rem;
  }
}
