
:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172923;
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: grid;
  padding: 0;
  background: #fff;
}

.page {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}

.intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 42px;
  color: #fff;
  background: #DC2626;
}

.intro::before,
.intro::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.intro::before {
  width: 340px;
  height: 340px;
  right: -155px;
  top: 100px;
}

.intro::after {
  width: 440px;
  height: 440px;
  right: -205px;
  top: 50px;
}

.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #DC2626;
  background: #fff;
}

.intro-copy {
  position: relative;
  z-index: 1;
  max-width: 390px;
  margin: 48px 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.83);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.intro-copy > p:last-child {
  max-width: 350px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.7;
}

.trust-note {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.93);
  font-size: 13px;
  line-height: 1.5;
}

.trust-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
}

.form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px;
}

.form-content {
  width: min(100%, 370px);
}

.step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: #6d7f76;
  font-size: 12px;
  font-weight: 650;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #DC2626;
  box-shadow: 0 0 0 4px rgba(112, 71, 217, 0.13);
}

h2 {
  margin: 0;
  color: #172923;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.form-description {
  margin: 12px 0 30px;
  color: #718078;
  font-size: 14px;
  line-height: 1.65;
}

label {
  display: block;
  margin-bottom: 9px;
  color: #263a31;
  font-size: 13px;
  font-weight: 700;
}

.phone-input {
  display: flex;
  min-height: 54px;
  overflow: hidden;
  border: 1px solid #dfe8e3;
  border-radius: 12px;
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.phone-input:focus-within {
  border-color: #DC2626;
  box-shadow: 0 0 0 4px rgba(112, 71, 217, 0.13);
}

input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #172923;
  background: transparent;
  font: inherit;
}

.country-code {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-right: 1px solid #e8efeb;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

input {
  flex: 1;
  padding: 0 14px;
  font-size: 15px;
}

input::placeholder {
  color: #a4b0aa;
}

.hint {
  margin: 9px 0 22px;
  color: #89968f;
  font-size: 12px;
  line-height: 1.5;
}

.consent-container {
  margin: 20px 0 24px;
  padding: 14px;
  border: 1px solid #e3ece7;
  border-radius: 12px;
  background: #f8fbf9;
}

.consent-label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin: 0;
  color: #625366;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  cursor: pointer;
}

.consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  flex: none;
  margin: 2px 0 0;
  padding: 0;
  accent-color: #DC2626;
  cursor: pointer;
}

.consent-label input[type="checkbox"]:focus-visible {
  outline: 3px solid rgba(112, 71, 217, 0.45);
  outline-offset: 3px;
}

.consent-label a,
.privacy a {
  color: #DC2626;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

button {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #DC2626;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

button:hover {
  background: #B91C1C;
  transform: translateY(-1px);
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(112, 71, 217, 0.45);
  outline-offset: 3px;
}

.privacy {
  margin: 20px 0 0;
  color: #89968f;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.privacy strong {
  color: #60736a;
  font-weight: 650;
}

.message {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  color: #991B1B;
  background: #FEE2E2;
  font-size: 13px;
  line-height: 1.5;
}

.message[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .page {
    min-height: 100vh;
    grid-template-columns: 1fr;
  }

  .intro {
    min-height: 38vh;
    padding: 28px;
  }

  .intro-copy {
    margin: 40px 0 30px;
  }


  /* Contenedor flexible para poner los campos en una fila */
.form-fields {
  display: flex;
  gap: 15px; /* Espacio entre casillas */
  flex-wrap: wrap; /* Permite que bajen de línea si no hay espacio */
}

/* Estilo uniforme para cada grupo de campo */
.field-group {
  flex: 1; /* Todos ocupan el mismo ancho disponible */
  min-width: 200px; /* Ancho mínimo antes de bajar de línea */
  display: flex;
  flex-direction: column;
}

/* Etiquetas iguales para todos */
.field-group label {
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

/* Inputs con el mismo estilo visual */
.field-group input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s;
}

/* Efecto al hacer clic en un campo */
.field-group input:focus {
  border-color: #007bff; /* Color azul al activar */
}


  h1 {
    max-width: 460px;
    font-size: clamp(34px, 9vw, 44px);
  }

  .intro-copy > p:last-child {
    margin-top: 13px;
    font-size: 14px;
  }

  .trust-note {
    display: none;
  }

  .form-panel {
    padding: 36px 28px 40px;
  }
}
