/* Box sizing rules */
@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap");

/* ************************ RESET *********************************************** */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}
html {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}
ul {
  margin: 0;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

html,
body {
  margin: 0;
  padding: 0;
  /* overflow-x: hidden; */
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/***************************** VARIABLES *********************************  */
:root {
  --container: 1440px;

  --color-primary: #1858a2;
  --color-secondary: #3ad550;
  --color-primary-dark: #001a38;
  --color-primary-light: #a0ccff;
  --color-secondary-light: #d5ffda;
  --color-secondary-medium: #91f69f;

  --ff-primary: "DM Serif Text", serif;
  --ff-secondary: "Work Sans", sans-serif;

  --section-space: 126px;
  --section-padding: 50px;
}
@media screen and (max-width: 647px) {
  :root {
    --section-padding: 20px;
  }
}
/***************************** MAIN CSS *************************************/
body {
  font-family: var(--ff-secondary);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}
a {
  text-decoration: none;
}
li {
  list-style: none;
}
ul {
  padding-left: 0;
}
.link-white {
  color: white;
}

.link-white:hover,
.link-white:active {
  color: var(--color-primary-dark);
}
.link-dark,.link-dark-bold {
  color: var(--color-primary-dark);
}
.link-dark:hover {
  color: var(--color-secondary);
}
.link-dark-bold:hover {
  font-weight: 700;
}
.link-primary {
  color: var(--color-primary-dark);
}
.link-primary:hover {
  color: var(--color-secondary);
}
.link-white:hover,
.link-white:active {
  color: white;
}
.inline-block {
  display: inline-block;
}
h1,
h2,
h3 {
  font-family: var(--ff-primary);
}

h1 {
  font-size: 52px;
  font-weight: 400;
  line-height: 1.35em;
}

h2 {
  font-size: clamp(32px, 2.188vw, 42px);
  font-weight: 400;
  line-height: 1.35em;
}
h3 {
  font-size: 24px;
  font-weight: 400;
  line-height: 2em;
}

/* FONT  */
.text-primary {
  color: var(--color-primary);
}
.text-secondary {
  color: var(--color-secondary);
}
.text-primary-light {
  color: var(--color-primary-light);
}
.text-dark {
  color: var(--color-primary-dark);
}
.text-white {
  color: white;
}

.fs-small {
  font-size: 0.875rem;
}

.fs-regular {
  font-size: 15px;
}

.fs-h3 {
  font-size: 24px;
  line-height: 32px;
}

.fs-medium {
  font-size: 28px;
  line-height: 48px;
}
.fs-30{
  font-size: 30px;
}

.fs-large {
  font-size: 1.625rem;
}

.fs-xlarge {
  font-size: 1.75rem;
}

.fs-xxlarge {
  font-size: 3rem;
}

.fs-xxxlarge {
  font-size: 3.75rem;
}

.fw-regular {
  font-weight: 400 !important;
}

.fw-thin {
  font-weight: 200 !important;
}
.fw-mthin {
  font-weight: 300 !important;
}


.fw-medium {
  font-weight: 500 !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.fw-extrabold {
  font-weight: 800;
}
.ff-primary {
  font-family: var(--ff-primary);
}
.ff-secondary {
  font-family: var(--ff-secondary);
}

.title-icon {
  display: flex;
  align-items: center;
}
.title-icon img {
  display: inline-block;
  padding: 10px;
}
.title-icon-brain {
  position: relative;
}
h2.title {
  font-size: 42px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
}
.title-first {
  padding-right: 0.3em;
}
.title-text-icon {
  display: inline-flex;
  align-items: center;
}
.title-text-icon img {
  padding-right: 0.5rem;
}
.subtitle {
  font-size: clamp(22px, 1.458vw, 28px);
  line-height: 1.18em;
}
.lh-1{
  line-height: 1em;
}
.lh-2 {
  line-height: 1.4em;
}
@media screen and (max-width: 1024px) {
  h2.title {
    font-size: 32px;
  }
  .title-text-icon img {
    width: 50px;
  }
}
@media screen and (max-width: 764px) {
  body {
    font-size: 14px;
    line-height: 21px;
  }
  h2.title {
    font-size: 25px;
  }
  .title-text-icon img {
    width: 38px;
  }
  .subtitle {
    font-size: 16px;
  }
}

/* BACKGROUND COLORS */
.bg-primary {
  background: var(--color-primary);
}
.bg-primary-dark {
  background: var(--color-primary-dark);
}

/* LAYOUT */
.flex {
  display: flex;
}

.flex-column {
  display: flex;
  gap: var(--gap, 1rem);
  flex-direction: column;
}

.flex-coluymn > *:not(:last-child) {
  margin-bottom: 1rem;
}

.flex-column-center {
  display: flex;
  gap: var(--gap, 1rem);
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.container {
  max-width: 1440px !important;
  margin: 0 auto;
  width: 100%; /* Asegúrate de que ocupe todo el ancho del viewport */
  padding: 0; /* Sin padding adicional */
  box-sizing: border-box;
}
.container-xxs {
  max-width: 600px !important;
  width: 100%; /* Asegúrate de que ocupe todo el ancho del viewport */
  padding: 0; /* Sin padding adicional */
  box-sizing: border-box;
}
.container-center {
  margin: 0 auto;
}
.container > * {
  max-width: 100%;
  box-sizing: border-box; /* Importante para incluir padding en el cálculo de ancho */
}
@media screen and (max-width: 1530px) {
  .container {
    padding-inline: 0;
  }
}

section{
  padding-inline: var(--section-padding);
}

.is-fullheight {
  min-height: 100vh;
}

.grid {
  display: grid;
  padding-inline: 0;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  /* added line */
  border: 0;
}

h1,
h2,
h3,
h4,
p:not(:last-of-type) {
  margin-bottom: var(--margin-bottom);
}

.justify {
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  text-align: justify;
}

.mw-36 {
  max-width: 400px;
}

.mw-40 {
  max-width: 515px;
}

.mw-50 {
  max-width: 731px;
}

.mw-80 {
  max-width: 80%;
}

.pt-xs {
  padding-top: 30px;
}
.pt-s {
  padding-top: 50px !important;
}

.pb-xxs {
  padding-bottom: 20px;
}
.pb-xs {
  padding-bottom: 30px;
}
.pb-s {
  padding-bottom: clamp(30px, 2.604vw, 50px) !important;
}
.pb-l {
  padding-bottom: clamp(50px, 6.563vw, 126px) !important;
}

.py-s {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}
.py-m {
  padding-top: clamp(120px, 6.563vw, 126px);
  padding-bottom: clamp(120px, 6.563vw, 126px) !important;
}
.py-l {
  padding-top: 150px;
  padding-bottom: 150px;
}

.py-8 {
  padding-left: 8%;
  padding-right: 8%;
}

.py-9 {
  padding-left: 12% !important;
  padding-right: 12% !important;
}
.px-0 {
  padding-inline: 0 !important;
}

.mt-xs {
  margin-top: 30px;
}

.mt-s {
  margin-top: 50px;
}

.is-center {
  margin: 0 auto;
}

.is-flex-center {
  justify-content: center;
  align-items: center;
  width: 100%;
}

.is-text-center {
  text-align: center;
}
.uppercase {
  text-transform: uppercase;
}
@media screen and (max-width: 1064px) {
  .is-hidden-tablet {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .is-hidden-mobile {
    display: none !important;
  }
  .py-m {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .py-l {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .desktop-heading {
    display: flex;
  }

  .mobile-heading {
    display: none !important;
  }
}
/* En pantallas pequeñas */
@media (max-width: 840px) {
  .desktop-heading {
    display: none !important;
  }

  .mobile-heading {
    display: block !important;
  }
}

/* SLIDE CAROUSEL */

.my-slider-progress {
  position: absolute;
  bottom: -30px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #e0e0e0; /* Color de fondo */
}

.my-slider-progress-bar {
  height: 7px;
  width: 0;
  background-color: var(--color-secondary);
  transition: width 0.3s ease;
  border-radius: 4px;
  position: absolute;
  top: -3px;
}
.slide-counter {
  position: absolute;
  right: 0.2rem;
  padding-top: 20px;
  font-size: 12px;
  bottom: -60px;
}
.animate {
  opacity: 0; /* Oculto inicialmente */
  transform: translate(0, 0); /* Sin transformaciones iniciales */
  will-change: opacity, transform; /* Optimización para CSS */
}
.custom-arrow img {
  width: 24px;
  height: 24px;
}
.custom-arrow.left {
  right: 40px;
  transform: rotate(180deg);
}
.custom-arrow {
  position: absolute;
  top: -40px;
  right: 0px;
  z-index: 10;
  cursor: pointer;
  display: none;
}
@media screen and (max-width: 1132px) {
  .custom-arrow {
    display: block;
  }
}
@media screen and (max-width: 450px) {
  .custom-arrow {
    display: none;
  }
}