:root {
  --blue: #4332ff;
  --white: #fff;
  --gray-dark: #585858;
  --gray: #8C8C8C;
  --lilac: #c785ff;
  --black: #181818;
  --gray-light: #f2f2f2;
  --white-soft: #f5f4ff;
  font-family: "Manrope", Arial, sans-serif;
  --cta-radius: 0.5rem;
  --cta-btn-radius: 2.87rem;
  --cta-btn-padding: 0.5rem 1rem;
  --cta-btn-font-size: 1rem;
  --cta-btn-font-weight: 600;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family, "Manrope", Arial, sans-serif);
  color: var(--black);
  background: var(--white);
  max-width: 100vw;
  overflow: auto !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

main,
section,
article,
div {
  max-width: 100%;
}

.hero {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
  padding: 1.25rem 1.37rem;
  max-width: 100vw;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  z-index: 160;
  isolation: isolate;
}

.main-content {
  padding-bottom: 4.3rem;
}

.badge-access {
  background: #ff33b2;
  color: var(--white);
  border-radius: 0.375rem;
  padding: 0.125rem 0.625rem;
  font-size: 0.92rem;
  font-weight: 600;
  margin-right: 0.625rem;
  vertical-align: middle;
}
.blue-bg-section {
  width: 23.43rem;
  background-color: var(--blue);
  padding: 4rem 0;
  margin-bottom: 4rem;
}


.blue-bg-section,
.desktop-only {
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none !important;
  outline: none !important;
  width: 100%;
  display: block;
}
.divider{
  width: 100%;
  height: auto;
  display: block;
  background-color: var(--blue);

}

@media (max-width: 599px) {
  .hero {
    z-index: 50; /* Reducido para quedar por debajo del banner sticky y formularios desplegados en móvil */
  }
}

@media (min-width: 600px) {
  .hero {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 0.62rem;
  }

  .hero > * {
    flex: 1 1 23rem;
    min-width: 18rem;
    max-width: 43rem;
    height: 47.625rem;
    max-height: 47.625rem;
    width: 100%;
  }

  .main-content {
    padding-bottom: 0;
  }
}

.sr-only {
  position: absolute !important;
  width: 0.0625rem !important;
  height: 0.0625rem !important;
  padding: 0 !important;
  margin: -0.0625rem !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.footer-grid {
  display: grid;
  grid-template-columns: 57% 1fr;
  grid-template-rows: auto auto;
  background: var(--gray-light);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@media (min-width: 2560px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.desktop-only {
  display: none;
}

.mobile-tablet-only {
  display: block;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding-bottom: 4rem;
  }

  .mobile-tablet-only {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 1rem;
  }
}

@media (min-width: 1024px) {
  .desktop-only {
    display: block;
  }

  .mobile-tablet-only {
    display: none;
  }
}

/* Mejoras de accesibilidad para el foco */
:focus {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  position: relative;
  z-index: 1000; /* Elevado para asegurar visibilidad */
  background-color: rgba(67, 50, 255, 0.15); /* Fondo sutil al enfocar */
  transition: all 0.2s ease;
  border-radius: 4px;
}
/* Ocultar foco cuando NO es focus-visible (ej. click mouse) */
:focus:not(:focus-visible) {
  outline: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Asegurar que los elementos con foco sean siempre visibles */

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  position: relative;
  z-index: 1000;
  background-color: rgba(67, 50, 255, 0.15);
  border-radius: 4px;
  transition: all 0.2s ease;
  scroll-margin: 2rem;
  scroll-padding: 2rem;
}


/* Mejorar la visibilidad del foco en elementos interactivos */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible,
[role="tab"]:focus-visible,
[role="switch"]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  background-color: rgba(67, 50, 255, 0.15);
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1000;
}

/* Estilos específicos para elementos del carousel */
.switch-carousel input[type="checkbox"]:focus-visible,
.btn-prev:focus-visible,
.btn-next:focus-visible,
.thumbanil-thumb:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  background-color: rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
  border-radius: 4px;
}

/* Estilos para elementos de formulario */
.form-group input:focus-visible,
.form-check input[type="checkbox"]:focus-visible,
.footer-input:focus-visible,
.footer-checkbox:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  background-color: rgba(67, 50, 255, 0.15);
  transition: all 0.2s ease;
  border-radius: 4px;
}

/* Estilos para botones de envío */
.submit-btn:focus-visible,
.footer-submit-btn:focus-visible,
.cta-action-btn:focus-visible,
.banner-btn:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  background-color: rgba(67, 50, 255, 0.15);
  transition: all 0.2s ease;
  border-radius: 4px;
}

/* Mejorar la visibilidad en zoom alto */
@media screen and (max-resolution: 1dppx) {
  :focus-visible {
    outline-width: 3px;
    outline-offset: 3px;
  }
}

/* Asegurar que los elementos con foco tengan suficiente contraste */
:focus-visible {
  background-color: rgba(67, 50, 255, 0.1);
  transition: background-color 0.2s ease;
}

/* Estilos para elementos que reciben foco por teclado */
:focus-visible {
  background-color: rgba(67, 50, 255, 0.15);
}

/* Mejoras para dispositivos móviles y zoom alto */
@media screen and (max-width: 768px) {
  :focus {
    outline-width: 3px;
    outline-offset: 3px;
  }
  
  :focus-visible {
    scroll-margin: 3rem;
    scroll-padding: 3rem;
  }
}

/* Mejoras específicas para zoom alto */
@media screen and (min-resolution: 2dppx) {
  :focus-visible {
    outline-width: 4px;
    outline-offset: 4px;
  }
  
  :focus-visible {
    scroll-margin: 4rem;
    scroll-padding: 4rem;
  }
}

/* Asegurar que los elementos con foco sean siempre accesibles */
:focus-visible {
  position: relative;
  z-index: 1000;
}

/* Mejorar la visibilidad en modo de alto contraste */
@media (prefers-contrast: high) {
  :focus-visible {
    outline: 4px solid currentColor;
    outline-offset: 4px;
  }
}

/* Mejorar la accesibilidad para usuarios con preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  :focus-visible {
    transition: none;
  }
  
  * {
    scroll-behavior: auto !important;
  }
}

/* ========================================
   SELECTOR DE IDIOMA WPML
   ======================================== */



/* Selector de idioma en el HERO */
.hero-language-selector {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
}

.hero-language-selector .wpml-ls {
  transform: scale(1.1);
}

.hero-language-selector .wpml-ls-legacy-dropdown {
  background: transparent;
  border: 2px solid var(--white);
  border-radius: 100px;
  width: 47px;
  height: 22px;
  padding: 1px 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-language-selector .wpml-ls-legacy-dropdown .wpml-ls-item {
  color: var(--white);
  font-weight: 600;
  font-size: 0.75rem;
  text-decoration: none;
  padding: 0;
  border-radius: 100px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
}

.hero-language-selector .wpml-ls-legacy-dropdown .wpml-ls-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.hero-language-selector .wpml-ls-legacy-dropdown .wpml-ls-current {
  background: var(--white);
  color: var(--blue);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  margin: 0;
}

.hero-language-selector .wpml-ls-legacy-dropdown .wpml-ls-current:hover {
  background: var(--white);
  color: var(--blue);
  transform: translateY(-1px);
}

/* Responsive para el selector del Hero */
@media (max-width: 768px) {
  .hero-language-selector {
    top: 1rem;
    right: 1rem;
  }
  
  .hero-language-selector .wpml-ls {
    transform: scale(0.9);
  }
}

@media (max-width: 480px) {
  .hero-language-selector {
    top: 0.75rem;
    right: 0.75rem;
  }
  
  .hero-language-selector .wpml-ls {
    transform: scale(0.8);
  }
}

/* Accesibilidad y focus */
.hero-language-selector .wpml-ls-legacy-dropdown:focus-within {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.hero-language-selector .wpml-ls-legacy-dropdown .wpml-ls-item:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  background: var(--white-soft);
}

/* Preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .hero-language-selector .wpml-ls-legacy-dropdown,
  .hero-language-selector .wpml-ls-legacy-dropdown .wpml-ls-item {
    transition: none;
    transform: none;
  }
}

@media (prefers-contrast: high) {
  .hero-language-selector .wpml-ls-legacy-dropdown {
    border-width: 3px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  }
}

/* Estilos para el selector nativo de WPML - Mayor especificidad */
.wpml-ls-statics-shortcode_actions.wpml-ls.wpml-ls-legacy-list-horizontal {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Estilos para wpml-ls y wpml-ls-legacy-list-horizontal - Menor especificidad */
.wpml-ls.wpml-ls-legacy-list-horizontal {
  transform: scale(0.1) !important;
  opacity: 0.1 !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
  z-index: -9999 !important;
}
.sticky-banner {
  width: 100%;
  background: var(--white);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  font-family: 'Montserrat', sans-serif;
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-100%);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.sticky-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  line-height: 0;
  text-decoration: none;
}

.sticky-banner.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.sticky-banner-img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

/* Selector de idioma en el sticky-banner */
.sticky-banner-language-selector {
  display: flex;
  align-items: center;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* Estilos para el selector de idioma WPML */
.sticky-banner-language-selector .wpml-language-selector {
  display: flex;
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: 2rem;
  padding: 0.25rem;
  box-shadow: 0 2px 8px rgba(67, 50, 255, 0.15);
  overflow: hidden;
}

.sticky-banner-language-selector .wpml-lang-option {
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  min-width: 3rem;
  text-align: center;
  position: relative;
  z-index: 2;
  text-decoration: none;
  color: var(--blue);
}

.sticky-banner-language-selector .wpml-lang-option.wpml-lang-active {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 4px rgba(67, 50, 255, 0.3);
}

.sticky-banner-language-selector .wpml-lang-option:hover:not(.wpml-lang-active) {
  background: var(--white-soft);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(67, 50, 255, 0.2);
}

.sticky-banner-language-selector .wpml-lang-option.wpml-lang-active:hover {
  background: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(67, 50, 255, 0.4);
}



/* Responsivo */
@media (max-width: 600px) {
  .sticky-banner {
    padding: 0.7rem 1rem;
  }
  
  .sticky-banner-content {
    justify-content: flex-start;
  }
  
  .sticky-banner-img {
    max-height: 32px;
  }
  
  .sticky-banner-language-selector {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .sticky-banner-language-selector .wpml-language-selector {
    padding: 0.2rem;
  }
  
  .sticky-banner-language-selector .wpml-lang-option {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    min-width: 2.5rem;
  }
}




.legal-text-container {
  max-width: 1440px;
  margin: 0 auto;
  margin-bottom: 4rem;
  padding: 4rem 1.25rem 2rem 1.25rem;
}
.legal-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3.56rem;
}

/* Sidebar */
.legal-text-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 20.93rem;
}

.legal-text-sidebar h1 {
  font-size: 1.87rem;
  font-weight: 600;
  line-height: 120%;
  color: var(--blue);
}

.legal-text-sidebar p {
  color: var(--gray-dark);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 100%;
}

/* Content */
.legal-text-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.legal-text-cards {
  display: flex;
  flex-direction: column;
  background: var(--gray-light);
  border-radius: 1rem;
  padding: 1.5rem 1rem 1rem 1rem;
  gap: 3.5rem;
}
.legal-text-card {
  display: flex;
  flex-direction: column;
  width: 18.93rem;
  gap: 1.5rem;
}

.legal-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 120%;
  color: var(--black);
}

.legal-card-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 100%;
  color: var(--gray-dark);
}
.legal-text-card p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 150%;
  color: var(--gray-dark);
  letter-spacing: 0px;
 
}


.legal-text-list {
  background-color: var(--white);
  border-radius: .5rem;
  padding: .69rem 1.13rem .69rem 1.13rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  list-style: disc inside;
  width: 18.93rem;
}

.legal-text-list li {
  width: 16.78rem;
  min-height: 4.5rem;
  border-bottom: 1px solid var(--gray-light);
  color: var(--gray-dark);
  border-radius: 6px;
  padding: .75rem 0.63rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0px;
  text-align: left;
}
.legal-sticky-banner {
  width: 100%;
  background: var(--white);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  font-family: 'Montserrat', sans-serif;
  padding: .75rem .625rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  opacity: 1 ;
  visibility: visible ;
  pointer-events: auto ;
  transform: translateY(0) ;
}

.legal-sticky-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.legal-sticky-banner-content a {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.legal-sticky-banner-img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

/* Selector de idioma en el sticky-banner */
.legal-sticky-banner-language-selector {
  display: flex;
  align-items: center;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* Estilos para el selector de idioma WPML */
.legal-sticky-banner-language-selector .wpml-language-selector {
  display: flex;
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: 2rem;
  padding: 0.25rem;
  box-shadow: 0 2px 8px rgba(67, 50, 255, 0.15);
  overflow: hidden;
}

.legal-sticky-banner-language-selector .wpml-lang-option {
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  min-width: 3rem;
  text-align: center;
  position: relative;
  z-index: 2;
  text-decoration: none;
  color: var(--blue);
}

.legal-sticky-banner-language-selector .wpml-lang-option.wpml-lang-active {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 4px rgba(67, 50, 255, 0.3);
}

.legal-sticky-banner-language-selector .wpml-lang-option:hover:not(.wpml-lang-active) {
  background: var(--white-soft);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(67, 50, 255, 0.2);
}

.legal-sticky-banner-language-selector .wpml-lang-option.wpml-lang-active:hover {
  background: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(67, 50, 255, 0.4);
}



/* Responsivo */
@media (max-width: 600px) {
  .legal-sticky-banner {
    padding: 2.25rem 1.25rem .75rem 1.25rem;
  }
  
  .legal-sticky-banner-content {
    justify-content: flex-start;
  }
  
  .legal-sticky-banner-img {
    max-height: 32px;
  }
  
  .legal-sticky-banner-language-selector {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .legal-sticky-banner-language-selector .wpml-language-selector {
    padding: 0.2rem;
  }
  
  .legal-sticky-banner-language-selector .wpml-lang-option {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    min-width: 2.5rem;
  }
}


@media (min-width: 768px) {
  .legal-text-container {
    padding: 4rem 5rem;
    gap: 2.5rem;
  }
  .legal-text-wrapper {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }

  .legal-text-sidebar {
    flex: 1;
    max-width: 25.81rem;
    height: fit-content;
    padding-top: 7rem;
    padding-bottom: 13.5rem;
    gap: 1.75rem;
  }
  .legal-text-sidebar h1 {
    font-size: 2.5rem;
    color: var(--blue);
    font-weight: 600;
    line-height: 120%;
  }
  .legal-text-sidebar p {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--gray-dark);
    line-height: 100%;
  }

  .legal-text-content {
    max-width: 51.18rem;
    height: fit-content;
    padding-top: 2.62rem;
    gap: 3.5rem;
    flex: 3;
  }
  .legal-text-cards {
    padding: 5rem;
  }
  .legal-text-card {
    gap: 1.5rem;
    width: 41.18rem;
  }
  
  .legal-text-card .legal-card-title {
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 120%;
    color: var(--black);
  }
  
  .legal-text-card .legal-card-subtitle {
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 100%;
    color: var(--gray-dark);
  }
  
  .legal-text-card p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 0px;
  }
  .legal-text-list {
    width: 41.18rem;
    padding: 1rem 1.75rem ;
    gap:1.5rem;
  }
  .legal-text-list li {
    width: 37.68rem;
    min-height: 3rem;
  }
}

/* Sticky sidebar para pantallas de 1024px en adelante */
@media (min-width: 1024px) {
  .legal-text-wrapper {
    height: 100vh;
    overflow: hidden;
  }

  .legal-text-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
    padding-top: 7rem;
    padding-bottom: 2rem;
  }

  .legal-text-content {
    height: 100vh;
    overflow-y: auto;
    padding-right: 1rem;
    /* Ocultar scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer y Edge */
  }

  /* Ocultar scrollbar en Webkit (Chrome, Safari) */
  .legal-text-content::-webkit-scrollbar {
    display: none;
  }
}