.container-wrapper {
  width: 100%;
  max-width: 1800px;
  margin-inline: auto;
  padding-inline: 1rem;
  padding-block: 1rem;
}

.main-container {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.header {
  background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
  padding: 2rem;
  color: white;
}

.right-block h1 {
  font-size: 2rem;
  font-weight: 700 !important;
  margin-bottom: 0.5rem;
  text-align: center;
}

.right-block > p:nth-of-type(1) {
  color: #ccc;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 2rem;
}

.content-flex {
  display: flex;
  flex-wrap: wrap;
}

.left-block {
  flex: 0 0 40%;
  padding: 2rem;
  background-position: center right;
  background-size: cover;
  background-color: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-right: 1px solid #e2e8f0;
  background-attachment: fixed;
}

.left-block > section.ventajas {
  position: sticky;
  top: 80px;
  z-index: 2;
}

.right-block {
  flex: 0 0 60%;
  padding: 2rem;
  position: relative;
}

@media (max-width: 990px) {
  .left-block,
  .right-block {
    flex: 0 0 100%;
    border-right: none;
  }

  .left-block {
    border-bottom: 1px solid #e2e8f0;
  }
}
@media(max-width:575px) {
  .left-block {
    order:2;
  }
  .right-block {
    order:1;
  }
  .ventajas-title{
    padding: 1rem;
    & span {
      line-height: 1;
      margin-left:0 !important;
    }
  }
  .left-block::after {
    background-position: -122px 0 !important;
  }
  .left-block::before,
  .left-block::after {
    border-radius: 0 0 1rem 1rem !important;
  }
}
.ventajas-title {
  font-size: 1.5rem;
  font-weight: 700 !important;
  color: #fff !important;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ventaja-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  transition: transform 0.2s;
}

.ventaja-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  background: rgba(140, 140, 140, 0.3);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: all 0.3s;
}

.ventaja-item:hover .ventaja-icon {
  background: rgba(90, 90, 90, 0.8);
  color: white;
}

.ventaja-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.ventaja-content p {
  font-size: 0.875rem;
  color: #64748b;
}

.nota-info {
  margin-top: 2rem;
  padding: .6rem 1rem;
  background: rgba(140,140,140,0.4);
  border: 1px solid #aaa;
  border-radius: 0.5rem;
  font-size: 0.825rem;
  color: #f4f4f4;
  text-align: center;
}
.nota-info p {
  margin: 0 !important;
}

.nota-info strong {
  color: #f4f4f4;
}

@media (max-width: 1400px) {
  .ventaja-item {
    display: flex;
    gap:.5rem;
    margin-bottom: 1rem;
    transition: transform 0.2s;
  }

  .ventaja-icon {
    flex-shrink: 0;
    width: 2.2rem;
    height: 2.2rem;
    background: rgba(140, 140, 140, 0.3);
    border-radius: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: all 0.3s;
  }

  .ventaja-item:hover .ventaja-icon {
    background: rgba(90, 90, 90, 0.8);
    color: white;
  }

  .ventaja-content h3 {
    font-size: .9rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.15rem;
  }

  .ventaja-content p {
    font-size: 0.825rem;
    color: #64748b;
  }
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-row-three {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .form-row,
  .form-row-three {
    grid-template-columns: 1fr;
  }
}
@media(min-width:768px) {
  .left-block::after,
  .left-block::before {
    overflow: hidden;
    border-radius: 1rem 0 0 1rem;
  }
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
  background: linear-gradient(90deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.form-footer {
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 1rem;
}

.icon-svg {
  width: 1.5rem;
  height: 1.5rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
  cursor: pointer;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: 400;
  cursor: pointer;
}

.checkbox-group small {
  display: block;
  color: #64748b;
  margin-top: 0.25rem;
}

.address-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  overflow: hidden;
}

.address-header {
  background: #f1f5f9;
  padding: 1rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
  user-select: none;
}

.address-header:hover {
  background: #e2e8f0;
}

.address-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
  margin: 0;
}

.address-toggle {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.3s;
}

.address-toggle.open {
  transform: rotate(180deg);
}

.address-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.address-content.open {
  max-height: 2000px;
  transition: max-height 0.5s ease-in;
}

.address-inner {
  padding: 1.5rem;
}

.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: #2563eb;
}

.password-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.password-wrapper input {
  padding-right: 3rem;
}

.password-match-indicator {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  display: none;
}
.password-requirements {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  display: block;
}
.password-requirements p {
  margin: 0 0 0 0;
}
.password-requirements ul {
  padding-left: 1.25rem;
  margin: 0;
}
.password-requirements ul li.invalid {
  color: #dc2626;
}
.password-requirements ul li.valid {
  color: #16a34a;
}
.password-match-indicator.show {
  display: block;
}

.password-match-indicator.match {
  color: #16a34a;
  & >.match-icon {
    display: inline-block;
  }
  & > .no-match-icon {
    display: none;
  }
}

.password-match-indicator.no-match {
  color: #dc2626;
  & >.no-match-icon {
    display: inline-block;
  }
  & > .match-icon {
    display: none;
  }
}

.password-match-indicator svg {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.25rem;
}

input.password-error {
  border-color: #dc2626;
}

input.password-success {
  border-color: #16a34a;
}

.account-type-wrapper {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.account-type-item {
  position: relative;
  border-radius: 0.8rem;
  padding: 0;
  transition: all 0.3s;
  cursor: pointer;
}

.account-type-item > input {
  display: none;
}

.account-type-item > label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid #e2e8f0;
  border-radius: 0.8rem;
  padding: 24px 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.account-type-item > label::before {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eef2ff;
  top: -15px;
  right: -15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  opacity: 0;
}

.account-type-item input[type="radio"]:checked + label {
  border-color: #2563eb;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.15);
}

.account-type-item ul {
  margin: 0.5rem 0 0 0;
  padding: 0;
  list-style: none;
}

.account-type-item ul > li {
  font-size: 0.8rem;
  color: #666;
}

.account-type-item:has(input:checked) {
  border-color: #2563eb;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
  background: linear-gradient(#f0f5ff, #dbeafe);
  transform: translateY(-10px);
}
.account-type-item:hover {
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}
.account-type-item:hover > label {
  border-color: #476ab6;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

@media (max-width: 768px) {
  .account-type-wrapper {
    gap: 0.5rem;
  }

  .account-type-item {
    padding: 0;
  }

  .account-type-item > label {
    padding: 1rem;
  }
}

.toggle-container {
  display: flex;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 4px;
  border-radius: 0.8rem;
}

.toggle-container input[type="radio"] {
  display: none;
}

.toggle-container label {
  padding: 12px 20px;
  text-align: center;
  cursor: pointer;
  flex: 1;
  z-index: 1;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  position: relative;
  color: #999;
  margin-bottom: 0 !important;
}

.toggle-container input[type="radio"]:checked + label {
  color: white;
}

.toggle-container label:hover {
  color: #333;
}

.toggle-container input[type="radio"]:nth-of-type(1):checked ~ .slide {
  transform: translateX(0);
  background: #2563eb;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.toggle-container input[type="radio"]:nth-of-type(2):checked ~ .slide {
  transform: translateX(100%);
  background: #2563eb;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.toggle-container .slide {
  position: absolute;
  height: calc(100% - 8px);
  width: calc(50% - 8px);
  left: 4px;
  top: 4px;
  background: transparent;
  border-radius: 8px;
  transition: transform 0.3s ease-out;
  box-shadow: 0 0px 15px -5px rgba(99, 102, 241, 0.3);
}

/* Form disabled state */
#registration-form.disabled {
  
  user-select: none;
  position: relative;
  cursor: not-allowed;
}

#registration-form.disabled::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  cursor: not-allowed;
  border-radius: 0.5rem;
}

/* Conditional form fields */
.form-fields-empresa,
.form-fields-autonomo {
  display: none;
}

.form-fields-empresa.active,
.form-fields-autonomo.active {
  display: block;
}
input#documentacion {
  display: none;
}
.file-label {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4caf50;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}
#fileName {
  font-size: 0.9rem;
  display: inline-block;
  max-width: 200px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  line-height: 1;
  transform: translateY(3px);
}

.file-label:hover {
  background-color: #45a049;
}
.left-block {
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}
.left-block::after {
  position: absolute;
  inset: 0;
  background: url("/themes/master_beta/assets/img/left-block-registration1.jpg");
  content: "";
  z-index: 0;
  background-attachment: fixed;
  background-position:79px 0;
  filter:contrast(0.4)
}
.left-block::before {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.26);
  content: "";
  z-index: 1;
}
.ventaja-content p,
.ventaja-content h3 {
  color: #fff !important;
}
#authentication-wrapper {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}
ul#mlpro-errors {
  position: relative;
  padding:1rem !important;
  width:60%;height: max-content;
  float:none;
  margin-inline:auto !important;
  margin-bottom: 1rem !important; 
  scroll-margin-top: 100px;
  scroll-padding-top: 100px;
  transition: display 0.3s, opacity 0.3s;
  transition-behavior: allow-discrete;

}
.continue-btn {
  width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #4285f4, var(--bs-primary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s 
ease;
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}
.continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(66, 133, 244, 0.3);
}
.continue-btn .loading {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}
label[for="terms"] > a:link, label[for="terms"] > a:visited {
  color: #2563eb;
  text-decoration: none;

}
label[for="terms"] > a:hover {
  text-decoration: underline;
}