/* SPINNER */
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 0.15em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}
.spinner__sm {
  width: 0.75rem;
  height: 0.75rem;
  border-width: 0.125em;
}
.spinner.hidden {
  display: none;
}
@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-weight: 800;
  text-decoration: none;
  color: var(--ink-900);
  transition: 0.2s ease;
  background: #fff;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-700);
  border-color: var(--primary-700);
}
.btn-ghost {
  background: #fff;
  color: var(--ink-900);
  border-color: var(--border);
}

.close-button {
  position: absolute;
  top: 0px;
  right: 12px;
  font-size: 24px;
  color: var(--ink-700);
  cursor: pointer;
}
.close-button:hover {
  color: var(--ink-900);
}

.btn-new {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: 2px solid;
  border-radius: var(--radius-md);
  box-shadow: 0px 2px 2px -1px var(--ColorsEffectsShadowsshadow-lg03),
    0px 4px 6px -2px var(--ColorsEffectsShadowsshadow-lg02),
    0px 12px 16px -4px var(--ColorsEffectsShadowsshadow-lg01);
}

.btn-new.btn-new--sx {
}

.btn-new.btn-new--md {
}

.btn-new.btn-new--lg {
  padding: 0px 20px;
  height: 48px;
}

.btn-new.btn-new--center {
  margin: auto;
}

.btn-new.btn-new--contact {
  width: 320px;
  height: 48px;
}

.btn-new.btn-new--blue {
  color: #fff;
  background-color: var(--primary);
  border-image-source: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.btn-new.btn-new--blue:hover {
  background-color: #004a5c;
}

.btn-new.btn-new--white {
  color: #414651;
  background-color: #fff;
  border-color: #d5d7da;
}

.btn-new.btn-new--white:hover {
  background-color: #f4f5f7;
}

/* MODALS */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2001;
}
.modal.hidden {
  display: none;
}
.modal-content {
  position: relative;
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow);
  overflow-y: auto;
  max-height: 90vh;
}
.modal-content h2 {
  font-size: unset;
}

/* MAIN CONTAINER */
.main-container {
  /* max-width: 920px; */
  margin: 0 auto;
  border-radius: 6px;
  background: #fff;
  padding: 60px 90px;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
  /* margin-bottom: 80px; */
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
}

.main-container h1,
.main-container h2 {
  max-width: 700px;
  margin: 30px auto;
}

.main-container h1 {
  font-size: 3em;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.main-container h2 {
  font-size: 2em;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 60px;
  margin-bottom: 45px;
}

.main-container img {
  display: block;
  max-width: 700px;
  height: auto;
  margin: 30px auto;
}

.main-container span {
  color: #007bff;
}

/* DESCRIPTION PARAGRAPH */
.description-paragraph {
  font-size: 1.1rem;
  color: var(--ink-700);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 40px;
}

.description-paragraph.separation {
  margin-bottom: 80px;
}

.description-paragraph.less-separation {
  margin-bottom: 10px;
}

/* UNORDERED LIST */
.unordered-list {
  text-align: left;
  font-size: 1.1rem;
  color: var(--ink-700);
  line-height: 1.6;
  list-style-type: disc;
  max-width: 700px;
  margin: 0 auto 30px;
}

.max-800 {
  max-width: 800px;
}

/* HELP TABLE */
.table-help {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 70px;
}

.table-help th,
.table-help td {
  border: 1px solid #ddd;
  padding: 12px 15px;
  text-align: left;
}

.table-help th {
  background-color: #f4f4f4;
  font-weight: 600;
}

.table-help tr:nth-child(even) {
  background-color: #fafafa;
}

.table-help tr:hover {
  background-color: #f1f1f1;
}

/* MODAL */

.modal-content .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.modal-content .form-group input,
.modal-content .form-group select,
.modal-content .form-group textarea {
  padding: 12px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow);
  background: var(--bg);
  color: var(--ink-900);
  transition: all 0.2s;
}

.modal-content .form-group label {
  color: var(--ink-900);
  text-align: left;
}

/* FORM */

.form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 80px;
}

.form input,
.form select {
  padding: 12px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow);
  background: var(--bg);
  color: var(--ink-900);
  transition: all 0.2s;
}

.form input:focus,
.form select:focus,
.form button:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.form input::placeholder,
.form select::placeholder {
  color: var(--ink-500);
}

.form .g-recaptcha > div {
  width: 100% !important;
}

/* HAMBURGUER */

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.mobile-toggle:focus {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

.mobile-brand {
  display: none;
  height: 32px;
}
.mobile-brand img {
  height: 100%;
}
/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 85vh;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  padding: 100px 30px 30px;
  transition: right 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
  right: 0;
}

.mobile-menu a {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: var(--primary);
  font-family: var(--font-family-body);
  font-weight: 600;
  font-size: var(--text-md);
  transition: color 0.2s ease;
}

.mobile-menu a:hover {
  color: var(--color-primary-500);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu-separator {
  height: 1px;
  background: #ddd;
  margin: 20px 0;
}

/* Overlay when menu is open */
/* .mobile-menu.open::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
} */

/* Ajustar botones en menú móvil */
.mobile-menu .btn-new {
  margin-top: 10px;
  text-align: center;
  justify-content: center;
}

@media (max-width: 960px) {
  .mobile-toggle {
    display: flex;
  }
  .mobile-brand {
    display: block;
  }

  .header-section__left,
  .header-section__right {
    display: none;
  }
  
  .unordered-list {
    padding-left: 20px;
  }
  .main-container {
    max-width: 90vw;
    padding: 40px 40px;
  }
  .main-container img {
    display: none;
  }
  .main-container p {
    max-width: unset;
  }
}

/* LINES */
.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--ink-900);
  transition: all 0.3s ease;
  transform-origin: center;
}

/* ANIMATION WHEN OPEN */
.mobile-toggle.open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 960px) {
  .mobile-toggle {
    display: flex;
  }
  .mobile-brand {
    display: block;
  }

  .header-section__left,
  .header-section__right {
    display: none;
  }
  .unordered-list {
    padding-left: 20px;
  }
  .main-container {
    max-width: 90vw;
    padding: 40px 40px;
  }
  .main-container img {
    display: none;
  }
  .main-container p {
    max-width: unset;
  }
}
