/* Contact form section */
:root {
  --contact-panel-bg: #eeeeee;
  --contact-field-bg: white;
}

.section_contact {
  background-color: var(--background-color--background-primary);
  scroll-margin-top: 2rem;
}

.contact_component {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.contact_intro {
  text-align: center;
  margin-bottom: 3rem;
}

.contact_lead {
  margin: 1rem 0 0;
}

.contact_form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0;
  padding: 2.5rem;
  border-radius: 20px;
  background-color: var(--contact-panel-bg);
}

.contact_row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact_field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.contact_label {
  margin: 0;
  font-size: .95rem;
  font-weight: 400;
}

.contact_input {
  width: 100%;
  min-height: 3rem;
  padding: .75rem 1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background-color: var(--contact-field-bg);
  color: var(--text-color--text-primary);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .2s, background-color .2s;
}

.contact_input::placeholder {
  color: var(--base-color-neutral--neutral);
}

.contact_input:focus {
  outline: none;
  border-color: #8a66aa;
  background-color: var(--base-color-neutral--white);
}

.contact_input[aria-invalid="true"] {
  border-color: var(--base-color-system--error-red);
}

.contact_select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background-image: url("../images/chevron-down.svg");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  cursor: pointer;
}

.contact_textarea {
  min-height: 9rem;
  resize: vertical;
}

/* Honeypot: hidden from people, visible to bots */
.contact_hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact_check {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  margin: 0;
  font-size: .95rem;
  font-weight: 400;
  cursor: pointer;
}

.contact_check input {
  width: 1.1rem;
  height: 1.1rem;
  margin: .15rem 0 0;
  flex-shrink: 0;
  appearance: auto;
  -webkit-appearance: checkbox;
  accent-color: #8a66aa;
  cursor: pointer;
}

.contact_check a {
  color: inherit;
  text-decoration: underline;
}

.contact_status {
  margin: 0;
  font-size: .95rem;
}

.contact_status:empty {
  display: none;
}

.contact_status.is-error {
  color: var(--base-color-system--error-red);
}

.contact_submit {
  align-self: flex-start;
  font-family: inherit;
  cursor: pointer;
}

.contact_submit:disabled {
  opacity: .5;
  cursor: wait;
}

.contact_success {
  background-color: var(--contact-panel-bg);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: contact-success-in .5s ease-out;
}

.contact_success-icon {
  width: 4.5rem;
  height: auto;
  margin-bottom: 1.5rem;
  animation: contact-success-icon 1s ease-out;
}

@keyframes contact-success-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes contact-success-icon {
  from { transform: scale(.4) rotate(-45deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .contact_success,
  .contact_success-icon {
    animation: none;
  }
}

.contact_success h3 {
  margin: 0 0 .5rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.contact_success p {
  margin: 0;
}

@media screen and (max-width: 479px) {
  .contact_form,
  .contact_success {
    padding: 1.5rem;
  }

  .contact_row {
    grid-template-columns: 1fr;
  }

  .contact_submit {
    align-self: stretch;
  }
}

/* Legal pages (privacidad.html) */
.legal_header {
  border-bottom: 1px solid var(--contact-panel-bg);
}

.legal_header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.legal_logo {
  width: 8rem;
  display: block;
}

.legal_back {
  color: inherit;
  font-size: .95rem;
  text-decoration: none;
}

.legal_back:hover {
  text-decoration: underline;
}

.section_legal {
  padding-top: 4rem;
  padding-bottom: 6rem;
}

.legal_content {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  line-height: 1.65;
}

.legal_content h1 {
  margin: 0 0 .5rem;
}

.legal_updated {
  color: var(--base-color-neutral--neutral);
  font-size: .95rem;
  margin: 0 0 2.5rem;
}

.legal_content h2 {
  margin: 2.5rem 0 .75rem;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
}

.legal_content p {
  margin: 0 0 1rem;
}

.legal_content ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal_content li {
  margin-bottom: .4rem;
}

.legal_content a {
  color: inherit;
  text-decoration: underline;
}

.legal_footer {
  border-top: 1px solid var(--contact-panel-bg);
}

.legal_footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  font-size: .9rem;
}

.legal_footer-inner a {
  color: inherit;
}

@media screen and (max-width: 479px) {
  .section_legal {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
  }

  .legal_content {
    font-size: 1rem;
  }
}

/* Footer legal links (hidden by default in the Webflow export) */
.footer1_legal-list {
  display: grid;
}

.footer1_bottom-wrapper {
  justify-content: space-between;
}

.footer1_legal-link {
  color: inherit;
}

.legal_footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.legal_card {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  background-color: var(--contact-panel-bg);
}

.legal_card-title {
  font-weight: 700;
}

.legal_card ul {
  margin-bottom: 0;
}

/* Testimonials: continuous scroll, pauses on hover. The track holds the cards twice,
   so shifting it by half its width (plus half a gap) loops seamlessly. */
.testimonials_marquee {
  --testimonials-gap: 2rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

.testimonials_track {
  display: flex;
  gap: var(--testimonials-gap);
  width: max-content;
  animation: testimonials-scroll 60s linear infinite;
}

.testimonials_marquee:hover .testimonials_track,
.testimonials_marquee:focus-within .testimonials_track {
  animation-play-state: paused;
}

.testimonials_card {
  flex: 0 0 24rem;
}

@keyframes testimonials-scroll {
  to {
    transform: translateX(calc(-50% - var(--testimonials-gap) / 2));
  }
}

@media screen and (max-width: 767px) {
  .testimonials_marquee {
    --testimonials-gap: 1.5rem;
  }

  .testimonials_card {
    flex-basis: 78vw;
  }
}

/* Without motion: a row you can scroll by hand */
@media (prefers-reduced-motion: reduce) {
  .testimonials_marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .testimonials_track {
    animation: none;
  }

  .testimonials_card[aria-hidden="true"] {
    display: none;
  }
}

/* Bento percentage charts ("Usuarios", "Marcas"): ring fills and number counts up when it scrolls into view (js/script.js) */
.stat-chart {
  height: auto;
  overflow: visible;
}

.stat-chart_value {
  font-family: Beatrice, Tahoma, sans-serif;
  font-size: 31px;
  font-variant-numeric: tabular-nums;
}
