* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body,
html {
  height: 100%;
  font-family: 'Montserrat', sans-serif;
}

header {
  position: relative;
  width: 100%;
  background-color: #ff4b77;
  overflow: hidden;
  transition: height 0.6s ease, opacity 0.4s ease, transform 0.6s ease;
  height: 0;
  opacity: 0;
  transform: translateX(100%);
}

header .img {
  display: flex;
  align-items: center;
  justify-content: center;
}

header .img img {
  filter: brightness(0) invert(1);
  max-height: 75px;
  max-width: 260px;
}

header.header-visible {
  height: 100px;
  opacity: 1;
  transform: translateX(0%);
  display: flex;
  justify-content: center;
  align-items: center;
}

header.header-hidden {
  height: 0;
  opacity: 0;
  transform: translateX(100%);
}

main {
  background-color: #fff;
  width: 100%;
  height: 100%;
  min-height: 600px;
  margin: auto;
  padding-top: 100px;
  background-repeat: repeat;
  background-position: 0 0;
  background-size: auto 650px;
  position: relative;
  overflow: hidden;
  transition: background-color 0.4s ease;
}

main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: repeat;
  background-size: auto 650px;
  background-position: 0 0;
  z-index: 0;
  transform: translateX(0); /* posición inicial */
  transition: transform 0.6s ease;
  pointer-events: none;
}

main.slide-out::before {
  transform: translateX(-100%);
}

main.slide-in::before {
  transform: translateX(0);
}

main.stepM1 {
  background-image: none;
  background-color: #fff;
  width: 100%;
  height: calc(100% - 100px);
  min-height: 680px;
}

.hidden {
  display: none !important;
}

.progress-container {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(100%); /* empieza fuera por la derecha */
  width: 95%;
  max-width: 620px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4px;
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.progress-containerM1 {
  transform: translateX(-50%);
  opacity: 1;
}

.progress-bg,
.progress {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  z-index: 0;
  transition: width 0.3s;
}

.progress-bg {
  width: 100%;
  background-color: #ccc;
  z-index: 0;
}

.progress {
  background-color: #ff4b77;
  width: 0;
  z-index: 1;
}

.circle {
  width: 30px;
  height: 30px;
  background-color: #ccc;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  color: white;
  font-weight: bold;
  position: relative;
}

.circle.active {
  background-color: #ff4b77;
}

.content {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.6s ease;
  background-color: #e9e9e9;
  width: 90%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0px;
  box-shadow: 0 0 5px rgba(0, 0, 0, .8);
  border-radius: 5px;
  border: 1px solid #fff;
  z-index: 9999;
}

.contentstepM1 {
  max-width: 620px;
  box-shadow: 0 0 5px rgba(0, 0, 0, .4);
  border: 1px solid #fff;
}


.content.slide-left {
  transform: translateX(-100%);
}

.content.slide-reset {
  transform: translateX(100%);
}

.content.hidden {
  display: none;
}

.headerMain {
  background-color: #ff4b77;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  padding: 10px 0;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  border-radius: 5px 5px 0 0;
}

.logo-wrapper {
  height: 95px;
  position: relative;
}

.headerMain img {
  filter: brightness(0) invert(1);
  max-height: 75px;
  max-width: 260px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/*.logo-alto {
  height: 75px;
  width: auto;
}

.logo-ancho {
  width: 260px;
  height: auto;
}

.logo2.logo-alto,
.logo2.logo-ancho {
  opacity: 1 !important;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}*/

.headerMain p {
  font-size: 30px;
  line-height: 40px;
  padding: 5px 0 10px;
}

#regForm {
  margin: 0 auto;
  padding: 25px 30px 0;
  max-width: 100%;
}

.regFormM1 {
  padding: 0 0 30px !important;
}

input,
select {
  background: #ffffff;
  padding: 10px;
  height: 50px;
  width: 100%;
  margin: 0 auto 25px;
  font-size: 15px !important;
  font-family: 'Montserrat', sans-serif !important;
  border: 1px solid #aaaaaa;
  border-radius: 8px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  border: 1px solid #ddd;
}

input#agreement-checkbox:checked {
    background-color: #ff5f89;
    box-shadow: inset 0 0 0 3px #fff;
}

.agreement-checkbox-firstlabel input[type="checkbox"] {
    width: 22px;
    height: 22px;
    top: -2px;
    left: -6px;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 50%;
    border: 1px solid #aaa;
}

.select-container, .select-containertwo {
  position:relative; 
  display: inline;
}

.select-container:after, .select-containertwo:after {
  content:""; 
  width:0; 
  height:0; 
  position:absolute; 
  pointer-events: none;
}

.select-container:after {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  top: .3em;
  right: .75em;
  border-top: 8px solid black;
  opacity: 0.5;
}

.select-containertwo:after {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  top: 1.25em;
  right: .75em;
  border-top: 8px solid black;
  opacity: 0.5;
}

select::-ms-expand {
    display: none;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

.step span {
  display: block;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  padding-bottom: 12px;
  padding-left: 5px;
}

.row {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.country {
  width: calc(30% - 10px);
}

.region {
  width: 70%;
}

.interests {
  max-width: 900px;
  margin: auto;
  padding-bottom: 40px;
}

.header-image {
  position: relative;
  width: 100%;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px 5px 0 0;
}

.header-image::after {
  content: "";
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background-color: rgba(255,255,255,0.5);
}

.header-text {
  position: relative;
  max-width: 30ch;
  font-size: 24px;
  color: #111;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
  text-align: center;
  line-height: 1.3;
  padding: 0 25px;
  z-index: 1;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 20px 20px 0;
}

.interest {
  position: relative;
  height: 120px;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
}

.interest img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.label {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.label-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(139, 0, 0, 0.6);
  z-index: 1;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: height 0.4s ease, border-radius 0.3s ease;
  height: auto;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.label-text {
  color: white;
  font-weight: bold;
  font-size: 15px;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  z-index: 2;
  pointer-events: auto;
  transition: font-size 0.3s ease;
}

.interest.selected .label-bg {
  height: 100% !important;
  border-radius: 8px;
}

.interest.selected .label-text {
  font-size: 16px;
}

.interest .check {
  opacity: 0;
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 24px;
  color: white;
  z-index: 3;
  transform: scale(0.8);
}

.interest.selected .check {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease 0.15s, transform 0.3s ease 0.15s;
}

.newsteps {
  padding: 25px 30px 0;
}

.buttonnext {
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: center;
}

.finalContentM1 {
  padding: 0 30px;
}

.buttonsbacknext {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

button {
  border: none;
  background-position: center;
  background-size: cover;
  background-color: transparent;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  border: none;
  outline: none;
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  cursor: pointer;
}

#backBtn {
  align-items: center;
  background-image: none !important;
  background-color: #ccc;
  display: none;
  width: calc(20% - 10px) !important;
}

.nextBtnM1 {
  width: 80% !important;
}

.terms {
  display: none;
  text-align: center;
  padding-top: 20px;
  font-size: 12px;
  line-height: 22px;
  color: #666;
}

.terms a {
  font-size: 12px;
  color: #ff4f89;
  text-decoration: underline;
}

.icons {
  width: 100%;
  margin: 20px 0 25px;
  display: flex;
  justify-content: center;
}

.onlyregister {
  display: none;
}

.main_footer {
  position: absolute;
  left: 50%;
  bottom: 5%;
  transform: translateX(-50%);
}

.main_footer p {
  background-color: rgba(0, 0, 0, .5);
  padding: 5px;
  font-size: 22px;
  color: #fff;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}

.main_footer .free {
  color: #1efb02;
}

.main_footer .hours {
  text-transform: lowercase;
}

#errors {
  display: none;
}

/*#errors {
  text-align: center;
  color: #d20000;
  font-weight: 400;
  font-size: 16px;
  padding: 0;
}*/

#errors {
  text-align: center;
  color: #d20000;
  font-weight: 400;
  font-size: 16px;
  padding: 0;
  margin-top: -13px;
  margin-bottom: 10px;
}

.btn-con.oauth .btn.btn-microsoft-oauth {
  border: solid 1px #2f2f2f;
  background: #2f2f2f;
  color: #fff
}

.btn-con.oauth .btn.btn-microsoft-oauth span.icon-bg {
    border: 2px solid #2f2f2f;
}

.btn-con.oauth .btn.btn-microsoft-oauth i.icon {
  left: 12px;

}

.btn-con.oauth .btn.btn-microsoft-oauth span:last-child {
  font-weight: 300;
}

.btn-con.oauth .btn.btn-google-oauth, .btn-con.oauth .btn.btn-yahoo-oauth, .btn-con.oauth .btn.btn-microsoft-oauth {
  width: 338px;
}

.btn-con.oauth .btn.btn-otheremails-oauth {
  max-width: 100%;
  width: 338px;
  padding: 15px;
  border-radius: 0;
  position: relative;
  margin: 5px auto 0;
  display: block;
  cursor: pointer;
  text-decoration: none;
}

.btn-con.oauth .btn.btn-otheremails-oauth {
  border: solid 1px #000;
  background: #fff;
}

.btn-con.oauth .btn.btn-otheremails-oauth span.icon-bg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 46px;
  height: 100%;
  background: #fff;
}

.btn-con.oauth .btn.btn-otheremails-oauth span.icon-bg {
  border: 2px solid #fff;
}

.btn-con.oauth .btn.btn-otheremails-oauth i.icon {
  z-index: 10;
  width: 30px;
  position: absolute;
  height: 19px;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-style: normal;    
  font-variant: normal;
  font-weight: 400;
  text-decoration: none;
  text-transform: none;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

#continue-with-yahoo {
  padding-top: 30px;
}

@media only screen and (max-height: 880px) {
  .main_footerM1 {
    display: none;
  }
}

@media only screen and (max-height: 700px) {
  .main_footer {
    display: none;
  }
}

@media only screen and (max-width: 1200px) {
  header .img {
    padding: 0;
    justify-content: center;
  }
}
  
@media only screen and (max-width: 700px) {
  main {
    background-size: auto 500px;
  }
  .main_footer p {
    font-size: 20px;
  }
}

@media only screen and (max-width: 600px) {
  .main_footer p {
    font-size: 18px;
  }
}

@media only screen and (max-width: 550px) {
  .main_footer p {
    font-size: 16px;
  }
}

@media only screen and (max-width: 500px) {
  html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overscroll-behavior: none;
  height: 100%;
  }

  header.header-visible {
    height: 75px;
  }

  header .img {
    height: 75px;
  }

  header .img img {
    max-height: 55px;
    max-width: 220px;
  }

  .logo-wrapper {
    height: 75px;
    position: relative;
  }

  .headerMain img {
    max-height: 55px;
    max-width: 220px;
  }

  /*.logo-alto {
    height: 55px;
  }

  .logo-ancho {
    width: auto;
    height: 55px;
  }*/
  
  main {
    background-size: auto 420px;
    padding-top: 80px;
  }

  main::before {
    background-size: auto 420px;
  }

  main.stepM1 {
    min-height: 550px;
  }

  .progress-container {
    top: 35px;
  }

  .headerMain p {
    font-size: 26px;
    line-height: 34px;
    padding: 0 0 10px;
  }

  .interest-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contentstepM1 {
    width: 92% !important;
  }

  .interests {
    padding-bottom: 0px
  }

  .header-text{
    font-size: 22px;
    padding: 0 15px;
  }

  .step span {
    font-size: 18px;
  }

  .newinputselect {
    margin: 0 auto !important;
  }

  #backBtn {
    background-color: #b6b6b6;
  }

  #errors {
    width: 100%;
    font-size: 15px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -20px;
  }

  .onlyregister {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 35px 10px 45px;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.6s ease, opacity 0.6s ease;
    visibility: hidden;
  }

  .onlyregister.animate-fixed {
    position: fixed; /* 💥 durante la entrada animada */
    top: 757px;   /* donde quieras que aparezca */
    left: 50%;
    transform: translateX(100%);
    width: 100%;
    max-width: 500px;
    margin-left: -50%;
  }

  .onlyregister.onlyregistershows {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
  }

  .onlyregisterhidden {
    display: none !important;
  }

  .onlyregister img {
    width: 16px;
    height: auto;
    margin-right: 7px;
  }

  .onlyregister span {
    color: #888;
    font-size: 13px;
  }

  .main_footer p {
    font-size: 17px;
  }

  .main_footer .hidden_mobile {
    display: none;
  }

  .main_footerM1 {
    display: none;
  }

  .finalContentM1 {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    right: 0;
    background-color: rgba(224, 224, 224, 1);
    color: white;
    font-size: 18px;
    padding: 15px;
    border: none;
    z-index: 9999;
    transform: translateZ(0); /* ✅ clave para aislar del transform del padre */
  }

  .contentStatic {
    position: static !important;
    transform: none !important;
  }

  .stepM1Hidden {
    height: calc(100% - 100px); /* igual que .stepM1 */
    min-height: 680px;
    overflow: hidden;
  }

  .finalContentClon {
    position: absolute;
    top: 0;
    right: -100%; /* fuera de pantalla */
    transition: right 0.5s ease 0.3s; /* ← el último valor es el delay */
  }

  button {
    width: 95%;
    margin: 0 auto;
  }

}

@media only screen and (max-width: 410px) {
  main {
    background-size: auto 400px;
  }

  main::before {
    background-size: auto 400px;
  }

  input,
  select {
    font-size: 16px;
  }

  #regForm {
    padding: 20px 20px 0;
  }

  .newsteps {
    padding: 20px 20px 0;
  }

}

@media only screen and (max-width: 380px) {
  .main_footer p {
    font-size: 16px;
  }
}

@media only screen and (max-width: 360px) {
  .main_footer p {
    font-size: 15px;
  }
}

@media only screen and (max-width: 340px) {
  #regForm {
    padding: 20px 20px 0;
  }

  .step span {
    font-size: 16px;
  }

  button {
    font-size: 16px;
  }

}

@media only screen and (max-width: 330px) {
  .main_footer p {
    font-size: 14px;
  }
}

.row {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.country {
  width: calc(30% - 10px);
}
.region {
  width: 70%;
}
.full {
  width: 100%;
}
