/* Landing Page Styles */

:root {
  --violet-300: #3a3053;
  --white: #FFFFFF;
  --white-200: #F8F8F8;
  --white-shadow-200: rgba(255, 255, 255, 0.2);
  --white-shadow-300: rgba(255, 255, 255, 0.3);
}

/* Categories Scroll Styles */
.categories {
  margin-top: 20px;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.categories-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch; /* Para soporte en iOS */
  scrollbar-width: thin; /* Para Firefox */
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent; /* Para Firefox */
  padding-bottom: 10px;
}

/* Estilos para la barra de desplazamiento en Chrome, Edge y Safari */
.categories-scroll::-webkit-scrollbar {
  height: 6px;
}

.categories-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.categories-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

#categories-container {
  display: flex;
  padding: 10px 0;
  justify-content: flex-start;
  align-items: center;
}

.category-item {
  flex: 0 0 auto;
  text-align: center;
  margin: 0 7px;
  white-space: normal;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

#categories-container > div span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin: 0 0 8px 0;
}

#categories-container > div p {
  font-size: 14px;
  margin: 0;
  font-weight: 500;
}

#categories-container > div img {
  max-width: 40px;
  max-height: 40px;
}

/* Footer Styles */
footer {
  width: 100%;
}

footer .footer {
  background-color: var(--blue-700);
  min-height: 366px;
  background-image: url('../../images/landing-icons/footer-background.svg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 150% 150%;
}

footer .footer .padding {
  padding: 55px 0;
}

footer .footer .padding p,
footer .footer .padding a {
  font-weight: 400;
  font-size: 15px;
  line-height: 22px;
  color: var(--white-200);
  margin-bottom: 20px;
}

footer .footer .padding a {
  text-decoration: none;
  display: block;
}

footer .footer .padding .strong,
footer .footer .padding .fw-bold {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 25px;
}

footer .footer img + p {
  margin-top: 20px !important;
}

footer .footer-sub {
  background-color: var(--violet-700);
  height: 60px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer .footer-sub .container {
  max-width: 939px;
}

footer .footer-sub p {
  font-weight: 400;
  font-size: 15px;
  line-height: 22px;
  color: var(--white-200);
  margin-bottom: 0;
}

footer .footer-sub a {
  margin-left: 20px;
}

/* Responsive adjustments for footer */
@media (max-width: 767px) {
  footer .footer {
    background-size: cover;
  }

  footer .footer .col-md-4 {
    margin-bottom: 30px;
  }

  footer .footer-sub {
    height: auto;
    padding: 15px 0;
  }

  footer .footer-sub .container {
    flex-direction: column;
    text-align: center;
  }

  footer .footer-sub .d-flex {
    margin-top: 15px;
    justify-content: center;
  }

  footer .footer-sub a:first-child {
    margin-left: 0;
  }
}

body {
  overflow-x: hidden;
}

/* Ensure images scale and never overflow */
.landing__worker-image img,
.faq-image-column img,
.download img,
img.img-fluid {
  max-width: 100%;
  height: auto;
}

.cards {
  max-width: 100%;
}

/* Remove unwanted horizontal scroll from categories container */
.categories-scroll {
  overflow-x: auto;
  overflow-y: hidden;
}

/* Mobile tweaks */
@media (max-width: 767px) {
  body{
    padding-top:56px; /* space for fixed header */
  }

  /* center hero text */
  .landing .title, .landing .title h2, .landing .title h3, .landing .points{
    text-align:center;
  }

  /* check-items: 2 per row on mobile (always 3 items → 2 + 1) */
  .landing .points div {
    width: 44%;
    justify-content: center;
    margin-right: 0;
    margin-left: 0;
  }

  .landing .points div:nth-child(3) p {
    white-space: nowrap;
  }

  .landing .landing__worker-image img {
    max-width: 70%;
  }
}

/* Mobile 320px-370px - ocultar checks */
@media (min-width: 320px) and (max-width: 369px) {
  .landing .points {
    gap: 8px;
    display: none !important;
  }
}

/* Mobile desde 370px - espaciado reducido para checks */
@media (min-width: 370px) and (max-width: 767px) {
  .landing .points {
    gap: 8px;
  }

  .landing .points p {
    font-size: clamp(13px, 3vw, 14px);
    padding-left: 6px;
  }

  .landing__worker-image{
    justify-content:center!important;
    margin-bottom:1.25rem;
  }

  /* ensure buttons full width and centered */
  #buttons-action-container{
    justify-content:center!important;
  }
  #buttons-action-container .button-wrapper{
    width:100%;
    margin-bottom:0.75rem;
  }
  #buttons-action-container .btn{
    width:100%;
  }

  /* swiper arrows off screen fix */
  .swiper-button-prev, .swiper-button-next{
    transform:translateY(-50%);
  }

  .landing .row.d-flex.justify-content-between {
    flex-direction: column;
  }

  .landing .title h2 {
    font-size: 2.5rem;
  }

  .landing .title h3 {
    font-size: 0.95rem;
    line-height: 1.4;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .download .row {
    flex-direction: column-reverse;
    text-align: center;
  }

  .download .row .col-auto {
    margin-bottom: 1.25rem;
  }

  .steps .col-4 {
    margin-bottom: 1.5rem;
  }

  .faq-image-column {
    margin-bottom: 1.5rem;
  }

  .cards {
    margin-bottom: 1rem;
  }
}

html,body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

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

#buttons-action-container .btn{
  width:100%;
  min-width:0;
  padding-left: 25px;
  padding-right: 25px;
}

/* Worker image positioning */
#landing-image[src*="worker.png"] {
  position: relative;
  top: -48px;
}

/* Worker image container positioning */
.landing__worker-image {
  margin-bottom: 0;
}

.landing__worker-image.worker-view {
  margin-bottom: -58px;
}

.verified-title {
  font-family: Public Sans;
  font-weight: 700;
  font-style: Bold;
  font-size: 40px;
  line-height: 38px;
  letter-spacing: 0px;
  text-align: center;
  color: var(--Theme-text-primary, #2F2B3DE5);
}

/* Scroll to Top Button in Footer */
.scroll-to-top-footer {
  position: relative !important;
  left: 577px !important;
  top: 78px !important;
  width: 30px !important;
  height: 30px !important;
  background-color: aliceblue !important;
  color: var(--violet-700) !important;
  border: none !important;
  border-radius: 50% !important;
  font-size: 16px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  z-index: 10 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.scroll-to-top-footer:hover {
  background-color: #d4e7f7 !important;
  transform: translateY(-3px) !important;
}

@media (max-width: 767px) {
  .scroll-to-top-footer {
    left: auto !important;
    top: 20px !important;
    width: 30px !important;
    height: 30px !important;
    font-size: 14px !important;
  }
}

.capitalize::first-letter {
  text-transform: uppercase;
}
