@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; }

body{
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color:#111;
  background:#fff;
}

/* CONTENEDOR */
.wrap{
  max-width: 760px;
  margin: 24px auto 90px;
  padding: 0 16px;
}

/* HEADER */
.top{
  text-align:center;
  margin-bottom: 90px;
}

.logo{
  width: 60px;
  height: auto;
  display:block;
  margin: 60px auto 80px;
}

.top h1{
  font-size: 20px;
  font-weight: 550;
  letter-spacing: .01em;
  margin: 0 0 60px;
  line-height: 1.2;
}

.top h2{
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .06em;
  margin: 30px 0 0;
  line-height: 1.25;
}

/* GRID */
.form{ width: 100%; }

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 30px;
}

/* LABELS */
.field{
  display:flex;
  flex-direction:column;
}

.field label{
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color:#111;
  margin-bottom: 16px;
}

.field label span{ font-weight: 600; }

/* INPUTS & SELECTS */
.field input,
.field select{
  all: unset;
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  font-size: 16px;
  color:#111;
  border-bottom: 1px solid #d9d9d9;
}

.field input:focus,
.field select:focus{
  border-bottom-color:#111;
}

.field input::placeholder{ color:#aaa; }

/* SELECT FLECHA */
.selectWrap{ position:relative; }

.selectWrap::after{
  content:"";
  position:absolute;
  right: 2px;
  top: 55%;
  width: 9px;
  height: 9px;
  border-right: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: translateY(-70%) rotate(45deg);
  pointer-events:none;
}

.selectWrap select{
  padding-right: 26px;
  cursor:pointer;
}

/* ERRORES */
.error{
  margin-top: 6px;
  font-size: 13px;
  color:#e60012;
  min-height: 16px;
}

/* PRIVACIDAD */
.privacy{
  margin-top: 40px;
}

.privacy h3{
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 28px;
}

.privacyText{
  font-size: 15px;
  line-height: 1.8;
  color:#4A4A4A;
  margin: 0 0 40px;
}

.privacyLink{
  color:#4A4A4A;
  text-decoration: underline;
}

/* CHECKS */
.checkRow{
  display:flex;
  gap: 16px;
  align-items:flex-start;
  margin: 36px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #4A4A4A;
}

.checkRow input[type="checkbox"]{
  appearance: none;
  width: 22px;
  height: 22px;
  border: 1px solid #777;
  background: #fff;
  border-radius: 2px;
  display: inline-grid;
  place-content: center;
  flex: 0 0 22px;
  margin-top: 2px;
  cursor: pointer;
}

.checkRow input[type="checkbox"]::before{
  content: "";
  width: 12px;
  height: 12px;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  background: #111;
}

.checkRow input[type="checkbox"]:checked::before{
  transform: scale(1);
}

/* Error alineado con texto */
.checkRow + .error{
  margin-left: 38px;
  margin-top: -12px;
  margin-bottom: 10px;
}

.checkRow input[type="checkbox"].invalid{
  border-color: #e60012;
}

/* BOTÓN */
.actions{
  margin-top: 90px;
  display:flex;
  justify-content:center;
}

.btn{
  width: 180px;
  height: 60px;
  background: #e60012;
  border: none;
  color:#fff;
  font-weight: 750;
  letter-spacing: .18em;
  cursor:pointer;
  position: relative;
  transition: opacity .2s ease;
}

.btn:active{ transform: translateY(1px); }

/* Estado bloqueado */
.btn.loading,
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn.loading:hover,
.btn:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Spinner */
.btn.loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* =========================
   TABLET
========================= */
@media (max-width: 1024px){
  .wrap{ margin: 20px auto 70px; }
  .grid{ gap: 60px 40px; }
  .privacy{ margin-top: 100px; }
  .actions{ margin-top: 70px; }
}

/* =========================
   MÓVIL
========================= */
@media (max-width: 820px){

  .wrap{ padding: 0 18px; margin-bottom: 60px; }
  .top{ margin-bottom: 60px; }
  .logo{ width: 56px; }
  .top h1{ font-size: 28px; }
  .top h2{ font-size: 22px; }

  .grid{
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .field label{
    font-size: 11px;
    letter-spacing: .18em;
  }

  .field input,
  .field select{
    height: 42px;
    font-size: 15px;
  }

  .privacy{ margin-top: 80px; }
  .privacy h3{ font-size: 22px; }
  .privacyText{ font-size: 14px; }

  .checkRow{
    gap: 12px;
    margin: 22px 0;
    font-size: 14px;
  }

  .checkRow input[type="checkbox"]{
    width: 20px;
    height: 20px;
  }

  .checkRow + .error{ margin-left: 32px; }

  .btn{
    width: 100%;
    max-width: 320px;
    height: 52px;
    font-size: 14px;
    letter-spacing: .15em;
  }
}

/* =========================
   MÓVIL PEQUEÑO
========================= */
@media (max-width: 480px){

  .wrap{ padding: 0 14px; }
  .top h1{ font-size: 18px; }
  .top h2{ font-size: 15px; }
  .privacy h3{ font-size: 20px; }
  .privacyText{ font-size: 13.5px; }
  .checkRow{ font-size: 13.5px; }

  .btn{
    height: 50px;
    font-size: 13px;
  }
}
