@media (max-width: 767px) {
  html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
  }

  *,
  *::before,
  *::after {
    box-sizing: inherit;
  }

  body {
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.35;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .header-login {
    width: 100%;
    margin: 0;
    padding: 22px 14px 8px;
  }

  .header-login .logo {
    margin-top: 0;
  }

  .header-login .logo img {
    width: 100%;
    max-width: 430px;
    max-height: none;
  }

  .message,
  .message2,
  .login-text,
  .cancel-text,
  table.resumen {
    width: calc(100% - 28px);
    margin: 14px auto;
  }

  #extlogin {
    padding: 0 14px 24px;
  }

  #extcontainer {
    width: 100%;
    max-width: 420px;
    height: auto;
    min-height: 0;
    margin: 22px auto 28px;
    padding: 24px 18px;
    border-radius: 14px;
  }

  .icono-login {
    font-size: 52px;
    margin-bottom: 16px;
  }

  .entrada {
    display: block;
  }

  .extinput,
  .extbutton {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    margin: 8px 0 !important;
    font-size: 16px;
  }

  form {
    width: 100%;
  }

  form fieldset {
    float: none;
    width: 100%;
    margin: 12px 0 0;
    padding: 12px 10px 8px;
  }

  form fieldset legend {
    width: calc(100% + 20px);
    margin-left: -10px;
    padding: 10px;
    white-space: normal;
    font-size: 17px;
    line-height: 1.25;
  }

  form fieldset ol {
    width: 100%;
  }

  form fieldset li {
    width: 100%;
    margin: 12px 0;
    overflow: visible;
  }

  form label.element,
  form#registrationsecond2 label.element,
  form#edit_person label.element {
    float: none;
    display: block;
    width: 100%;
    min-height: 0;
    margin: 0 0 5px;
    padding: 0;
    text-align: left;
  }

  form div.element {
    float: none;
    display: block;
    width: 100%;
    margin: 0;
  }

  form input,
  form textarea,
  form select {
    max-width: 100% !important;
    font-size: 16px;
  }

  form input[type="text"],
  form input[type="password"],
  form input[type="email"],
  form input[type="number"],
  form input[type="tel"],
  form input[type="file"],
  form textarea,
  form select {
    width: 100% !important;
    min-height: 40px;
  }

  form textarea {
    min-height: 82px;
  }

  form input[type="checkbox"],
  form input[type="radio"] {
    width: 22px !important;
    min-width: 22px;
    height: 22px;
    min-height: 22px;
    margin: 0 8px 0 0;
    vertical-align: top;
  }

  form input[type="file"] {
    height: auto;
    padding: 8px 4px;
  }

  .texto_campo {
    margin-top: 0;
    overflow-wrap: anywhere;
  }

  .prot_datos,
  .prot_datos_tabla {
    padding: 18px 12px;
    text-align: left;
  }

  .prot_datos_tabla table,
  .prot_datos_tabla tbody,
  .prot_datos_tabla tr,
  .prot_datos_tabla td {
    display: block;
    width: 100%;
  }

  .prot_datos_tabla tr td,
  .prot_datos_tabla tr td:first-child {
    padding: 5px 0;
    text-align: left;
  }

  .check_proteccion_datos {
    padding: 12px 0;
    text-align: left;
  }

  input[name="personal_data"],
  input[name="pp_dd_1"],
  input[name="pp_dd_2"],
  input[name="pp_dd_3"] {
    position: static;
    margin: 2px 8px 0 0;
  }

  input[name="personal_data"] + label,
  input[name="pp_dd_1"] + label,
  input[name="pp_dd_2"] + label,
  input[name="pp_dd_3"] + label {
    position: static;
    display: inline-block;
    width: calc(100% - 38px);
    vertical-align: top;
    line-height: 1.25;
  }

  #actionshdr input,
  form input[type="submit"],
  form input[type="reset"],
  form input[type="button"],
  button {
    width: 100%;
    min-height: 42px;
    margin: 7px 0 !important;
    padding: 9px 16px;
    white-space: normal;
  }

  table.resumen,
  table.resumen tbody,
  table.resumen tr,
  table.resumen td,
  table.proposals,
  table.proposals tbody,
  table.proposals tr,
  table.proposals td {
    display: block;
    width: 100%;
  }

  table.resumen td,
  table.proposals td {
    padding: 6px 0;
    border-bottom: 0;
  }

  .category a {
    display: block;
    margin: 8px 0;
    padding: 10px;
  }

  a.category-socialevent {
    line-height: 1.35;
  }

  form .hotels .hotel {
    float: none;
    width: 100%;
    padding: 12px;
    margin: 10px 0;
  }

  form .hotels .hotel .description,
  form .hotels .rooms {
    float: none;
    width: 100%;
  }

  form .hotels .hotel .description img {
    float: none;
    width: 100%;
    max-width: 220px;
    margin: 0 0 10px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .header-login,
  .login-text,
  .cancel-text,
  .message,
  .message2 {
    width: calc(100% - 48px);
  }

  .header-login .logo img {
    max-width: 100%;
  }

  .prot_datos,
  .prot_datos_tabla {
    padding-left: 60px;
    padding-right: 60px;
  }
}
