html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  background-color: #fafafa;
  overflow-x: hidden;
  height: 100%;
  font-size: 15px;
}

header {
  background-color: #000;
  color: #fff;
  padding: 18px 30px;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: bold;
}

header p {
  color: #ccc;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.4;
}

.mobile-br {
  display: none;
}

.main-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 60px;
  height: calc(100vh - 96px);
  box-sizing: border-box;
}

.image-area {
  flex: 0 0 45%;
  text-align: center;
}

.image-area img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.info-area {
  flex: 0 0 50%;
  padding-left: 40px;
}

h3 {
  margin-top: 0;
  color: #000;
  font-size: 17px;
  margin-bottom: 10px;
}

p {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

strong {
  font-weight: bold;
}

.buttons {
  margin-top: 22px;
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.link {
  color: #f50057;
  text-decoration: underline;
  font-weight: 500;
  font-size: 14px;
}

.primary-button {
  background-color: #f50057;
  color: #fff;
  border: none;
  padding: 8px 28px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

/* Sección Verificación */
.verificacion-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 60px;
  box-sizing: border-box;
}

.form-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

input[type="text"] {
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  width: 420px;
  max-width: 90vw;
}

.primary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mensaje-error {
  opacity: 0;
  transition: opacity 0.3s ease;
  min-height: 20px;
  margin-top: 14px;
  color: #fff;
  background-color: #e1002a;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 6px;
  max-width: 500px;
  text-align: center;
  pointer-events: none;
}

.mensaje-error.visible {
  opacity: 1;
}

.primary-button.activo {
  opacity: 1 !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
  }

  header {
    padding: 18px 20px;
    text-align: left;
  }

  .main-content {
    flex-direction: column;
    padding: 20px;
    height: auto;
    align-items: center;
    text-align: center;
  }

  .image-area {
    display: none;
    height: 0;
    width: 0;
    overflow: hidden;
  }

  .info-area {
    padding-left: 0;
    width: 100%;
    text-align: left;
  }

  .buttons {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px 20px 28px;
    box-sizing: border-box;
    background-color: #fafafa;
    text-align: center;
    z-index: 10;
  }

  .primary-button {
    width: 100%;
    box-sizing: border-box;
  }

  .verificacion-wrapper {
    padding: 0 20px;
    margin-top: 28px;
    flex-direction: column;
    align-items: stretch;
    height: auto !important;
    width: 100%;
    box-sizing: border-box;
  }

  .form-wrapper {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 14px;
  }

  .form-wrapper label {
    font-weight: 500;
    margin-bottom: 6px;
    margin-left: 2px;
    text-align: left;
    padding-left: 8px;
  }

  input[type="text"] {
    width: 100%;
    max-width: none;
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 10px;
    margin: 0 auto;
    display: block;
    box-sizing: border-box;
  }

  #btn-validar {
    position: fixed;
    bottom: 18px;
    left: 20px;
    right: 20px;
    margin: 0 auto;
    padding: 14px;
    font-size: 15px;
    width: calc(100% - 40px);
    box-sizing: border-box;
    z-index: 20;
  }

  .mensaje-error {
    margin-top: 14px;
    font-size: 14px;
    text-align: center;
  }

  .mobile-br {
    display: inline;
  }
}
