* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
}

.container {
  background: white;
  border-radius: 12px;
  padding: 24px 20px;
  margin: 30px auto;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.logo {
  width: 200px;
  display: block;
  margin: 0 auto 20px auto;
}

.company {
  font-size: 15px;
  color: #555;
  text-align: center;
  margin-bottom: 15px;
}

.info h2 {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 10px;
}

.contract-note {
  font-size: 16px;
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.formulario label {
  display: block;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
}

.input-box {
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 20px;
}

.input-box input {
  font-size: 20px;
  text-align: center;
  border: none;
  outline: none;
  width: 100%;
  letter-spacing: 3px;
}

button {
  background-color: #f9c806;
  color: #000;
  border: none;
  padding: 15px 0;
  width: 100%;
  font-size: 17px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background 0.3s;
}

button:hover {
  background-color: #e6b700;
}

/* 🌐 Mobile adjustments */
@media only screen and (max-width: 1000px) {

  html, body {
    height: 100%;
    margin: 0;
    padding: 0;
  }

  body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    background: #f4f4f4;
  }

  .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    padding-top:0px;
    padding-right: 16px;
    padding-left: 16px;
    background: white;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
  }

  .logo {
    width: 125px;
    margin-bottom: 25px;
    margin-top: 0;
  }

  /* ¡Aquí va el ajuste importante! */
  .info, .formulario {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .info h2 {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
    text-align: center;
    word-break: normal;
  }

  .contract-note {
    display: flex;
    justify-content: left;
    flex-direction: column;
    font-size: 14px;
    text-align: left;
  }

  .formulario label {
    font-size: 15px;
    margin-bottom: 14px;
  }


  button {
    font-size: 18px;
    padding: 14px 0;
    margin-bottom: 10em;
  }
  .formulario {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 60vh; /* Ajusta según el contenido */
  }

  .form-footer {
    margin-top: auto;
    display: flex;
    justify-content: center;
  }

  .form-footer button {
    font-size: 3.5em;
    padding: 16px 0;
    width: 15em;
  }
  .input-error {
    font-size: 10px;
  }
  #resultado {
    margin-top: auto;
  }

  .input-box input {
    font-size:15px;
    padding: 5px 3px;

  }
  .input-box{
    padding: 3px 0;
    border-radius: 8px;
    border: 1px solid #aaa;
    margin-left: 0.5em;
    margin-right: 0.5em;
    margin-bottom: 15px;
    margin-top: 0em;
  }
  .box {
    box-shadow: 2px 4px 8px 0 rgba(0, 0, 0, 0.11);
    background-color: #f9f9f9 !important;
    border-radius: 10px;
    padding: 10px 7px;
    margin-bottom: 16px;
  }
  .info h2 {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
    text-align: center;
    word-break: normal;
  }
  .company {
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 10px;
    padding-left: 2px;
    padding-right: 2px;
  }
  .input-error {
    color: red;
    margin-top: 4px;
    font-size: 10px;
  }
}
.contract-note,
.contract-note.margin {
  font-size: 15px;
  margin-bottom: 12px;
  margin-left: 0 !important;
  text-align: center !important;
  padding: 2px 3px;
}
.input-error {
  color: red;
  margin-top: 4px;
  font-size: 14px;
}

