@font-face {
  font-family: 'Work Sans';
  src: url('../assets/fonts/WorkSans-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Quicksand';
  src: url('../assets/fonts/Quicksand-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@layer reset, base, layout, components, utilities;

@layer reset {

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

  /* https://kilianvalkhof.com/2022/css-html/your-css-reset-needs-text-size-adjust-probably/ */
  html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
  }

  body,
  h1,
  h2,
  h3,
  h4,
  p,
  figure,
  blockquote,
  dl,
  dd {
    margin: 0;
  }

  /* https://www.scottohara.me/blog/2019/01/12/lists-and-safari.html */
  [role="list"] {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  body {
    min-block-size: 100vh;
  }

  h1,
  h2,
  h3,
  button,
  input,
  label {
    line-height: 1.1;
  }

  h1,
  h2,
  h3,
  h4 {
    text-wrap: pretty;
    text-wrap: balance;
  }

  p,
  li {
    text-wrap: pretty;
  }

  img,
  picture {
    max-inline-size: 100%;
    display: block;
  }

  input,
  button,
  textarea,
  select {
    font: inherit;
  }

  a {
    text-decoration: none;
  }
}

@layer base {
  :root {

    /* colors */
    --clr-white: #FFFFFF;
    --clr-light-100: #F1F2ED;
    --clr-light-200: #F3F3F3;
    --clr-light-300: #F7F7F7;
    --clr-light-400: #D5F7F6;

    --clr-gray-100: #DDDDDD;
    --clr-gray-200: #D9D9D9;
    --clr-gray-300: #303030;
    --clr-black: #000000;

    --clr-cyan-100: #01CECA;
    --clr-cyan-200: #087D8C;
    --clr-cyan-300: #199BA7;
    --clr-cyan-400: #04A4AA;

    --clr-green-100: #AFEEB6;
    --clr-green-200: #0f3c31;

    --clr-teal-100: #063F51;
    --clr-teal-200: #032E3C;
    --clr-teal-300: #0C5C73;

    /* typography */
    --ff-quicksand: 'Quicksand', sans-serif;
    --ff-worksans: 'Work Sans', sans-serif;

    /* font-sizes */
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
    --fs-xxl: 2rem;
    --fs-xxxl: 3.75rem;
    --fs-4xl: 3.75rem;


    /* font-weight */
    --fw-md: 500;
    --fw-bold: 700;

    @media (min-width: 760px) {
      --fs-md: 1.25rem;
      --fs-lg: 1.5rem;
      --fs-xl: 2rem;
      --fs-xxl: 3rem;
      --fs-xxxl: 5rem;
      --fs-4xl: 7.5rem;
    }
  }

  /* primitive variables here */
  :root {
    --text-dark: var(--clr-black);
    --text-white: var(--clr-white);
    --text-brand: var(--clr-cyan-300);
    --text-brand-dark: var(--clr-teal-100);

    --bg-white: var(--clr-white);
    --bg-light: var(--clr-cyan-300);
    --bg-dark: var(--clr-teal-200);

    --border-radius-s: 1rem;
    --border-radius-md: 1.5rem;
    --border-radius-lg: 2rem;
    --border-radius-xl: 50px;
  }

  html {
    font-family: var(--ff-quicksand);
    line-height: 1.4;
    scroll-padding: 2rem;
  }

  body {
    font-size: var(--fs-base);
    color: var(--clr-teal-100);
  }

  h1,
  h2,
  h3,
  h4 {
    font-family: var(--ff-quicksand);
  }

  .nav-link {
    color: var(--text-white);
  }

  .nav-link.secondary {
    color: var(--clr-teal-100);
  }

  .logo-secondary {
    fill: var(--clr-teal-100)
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    color: var(--clr-gray-200);
  }

  .bold {
    font-weight: var(--fw-bold) !important;
  }

  .semibold {
    font-weight: var(--fw-md) !important;
  }

  .items-center {
    align-items: center;
  }

  .text-center {
    text-align: center;
  }

  .color-cyan {
    color: var(--clr-cyan-300) !important;
  }

  .color-cyan-light {
    color: var(--clr-cyan-100) !important;
  }

  .color-green-dark {
    color: var(--clr-green-200) !important;
  }

  .bg-cyan {
    background-color: var(--clr-cyan-300);
  }

  .bg-green-dark {
    background-color: var(--clr-green-200) !important;
  }

  .bg-white {
    background-color: var(--clr-white);
  }

  .fs-sm {
    font-size: var(--fs-sm);
  }

  .fs-base {
    font-size: var(--fs-base);
  }

  .sf-md {
    font-size: var(--fs-md);
  }

  .fs-lg {
    font-size: var(--fs-lg);
  }

  .fs-xl {
    font-size: var(--fs-xl);
  }

  .fs-xxl {
    font-size: var(--fs-xxl);
  }

  .fs-xxxl {
    font-size: var(--fs-xxxl);
  }

  .fs-4xl {
    font-size: var(--fs-4xl);
  }
}

@layer layout {
  .flex-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .space-between {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
  }

  .space-between_row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  /* Agrega a todos los elementos, excluyendo al primer hijo em porque deja un espacio más grande en el último hijo */
  .flow>*+* {
    margin-top: var(--flow-space, 1em);
  }

  .grid-flow {
    display: grid;
    gap: var(--grid-flow-gap, 1rem);
  }

  .grid-auto-fill {
    --auto-fit-min-col-size: 250px;
    display: grid;
    gap: var(--grid-auto-fit-gap, 1rem);
    /* Agregar el 100% min() para decir x cantidad o 100%*/
    grid-template-columns: repeat(auto-fill,
        minmax(min(var(--auto-fit-min-col-size), 100%), 1fr));
  }

.equal-columns {
    display: grid;
    gap: var(--equal-columns-gap, 1rem);
    align-items: var(--equal-columns-vertical-align, stretch);

    @media (min-width: 760px) {
      grid-auto-flow: column;
      grid-auto-columns: 1fr;
      /* align-items: center; */
    }

    &[data-gap="large"] {
      --equal-columns-gap: 2rem;
    }

    &[data-align="centered"] {
      --equal-columns-vertical-align: center;
    }

    &[data-align="bottom"] {
      --equal-columns-vertical-align: end;
    }
  }

  .equal-columns__large {
    display: grid !important;
    gap: 1rem !important;
    align-items: var(--equal-columns-vertical-align, stretch) !important;

    @media (min-width: 760px) {
      grid-template-columns: 2fr 1fr !important;
      gap: 2rem !important;
    }

    &[data-gap="large"] {
      --equal-columns-gap: 2rem;

      @media (max-width: 760px) {
        --equal-columns-gap: 1rem;
      }
    }

    &[data-align="centered"] {
      --equal-columns-vertical-align: center;
    }
  }

  .equal-columns__large--reversed {
    display: grid !important;
    gap: 1rem !important;
    align-items: var(--equal-columns-vertical-align, stretch) !important;

    @media (min-width: 760px) {
      grid-template-columns: 1fr 2fr !important;
        gap: 2rem !important;
    }

    &[data-gap="large"] {
      --equal-columns-gap: 2rem;
    }

    &[data-align="centered"] {
      --equal-columns-vertical-align: center;
    }
  }

  .equal-columns__phases {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
    cursor: grab;
    user-select: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    /* Oculta scrollbars */
    scrollbar-width: none;
    /* Firefox */
  }

  .equal-columns__phases::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
  }

  .equal-columns__phases.dragging {
    cursor: grabbing;
  }

  .section-hero_grid {
    display: grid;
    gap: var(--equal-columns-gap, 1rem);
    align-items: var(--equal-columns-vertical-align, stretch);

    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "col1 col2"
      "col4 col5"
      "col3 col3";

    .col1 {
      grid-area: col1;
    }

    .col2 {
      grid-area: col2;
    }

    .col3 {
      grid-area: col3;
    }

    .col4 {
      grid-area: col4;
    }

    .col5 {
      grid-area: col5;
    }

    @media (min-width: 760px) {
      grid-template-columns: 1fr 1fr 2fr 1fr 1fr;
      grid-template-areas: unset;

      .col1,
      .col2,
      .col3,
      .col4,
      .col5 {
        grid-area: unset;
      }
    }
  }

  .section {
    position: relative;
    --padding-block: 2rem;
    padding-block: var(--padding-block);

    @media (min-width: 760px) {
      --padding-block: 3rem;

      &[data-padding="compact"] {
        --padding-block: 4.5rem;
      }
    }
  }


  .wrapper {
    /* Scope max-width */
    --wrapper-max-width: 1130px;

    max-width: var(--wrapper-max-width);
    margin-inline: auto;
    padding-inline: 1rem;
    box-sizing: content-box;

    &[data-width="narrow"] {
      --wrapper-max-width: 940px;
    }

    &[data-width="wide"] {
      --wrapper-max-width: 1330px;
    }
  }

  #cases {
    background-image: url('../assets/img/background-elipse-green-cases.png'), url('../assets/img/background-elipse-teal-cases.png');
    background-repeat: no-repeat, no-repeat;
    background-position: left top, left bottom;
  }

  #team {
    background-image: url('../assets/img/background-elipse-green-team.png'), url('../assets/img/background-elipse-teal-team.png');
    background-repeat: no-repeat, no-repeat;
    background-position: left 30%, right top;
  }

}

@layer components {
  .site-header {
    padding-block: 2rem 1rem;
    overflow-x: clip;
    position: relative;
  }

  .site-header__inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .main-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
  }

  .main-navigation a {
    /*font-family: var(--ff-worksans);*/
    font-weight: var(--fw-md);
    font-size: 20px;
  }

  .menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    top: 5px;
    position: relative;
    z-index: 1001;
  }

  .menu-toggle span:nth-child(1) {
    top: 0px;
  }

  .menu-toggle span:nth-child(2) {
    top: 7px;
  }

  .menu-toggle span:nth-child(3) {
    top: 14px;
  }

  .menu-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: var(--clr-white);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
  }

  .post-type-archive-casos .menu-toggle span, .page-template-default .menu-toggle span, .casos-template-default .menu-toggle span {
    background-color: var(--clr-teal-100);
  }

  .menu-toggle.secondary span {
    background-color: var(--clr-black);
  }

  @media (max-width: 869px) {
    .site-header__inner .main-navigation {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      background-color: var(--clr-teal-100);
      flex-direction: column;
      justify-content: center;
      align-items: center;
      opacity: 1;
      visibility: hidden;
      transition: opacity 0.4s ease, visibility 0.4s ease;
      z-index: 999;
      padding-top: 100px;
    }

    .site-header.mobile-open .main-navigation {
      opacity: 1;
      visibility: visible;
    }

    .site-header .main-navigation a {
      opacity: 0;
      transform: translateY(10px);
      transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
    }

    .site-header .main-navigation a.animated {
      opacity: 1;
      transform: translateY(0);
      transition-delay: calc(var(--item-index, 0) * 0.05s);
    }

    .menu-toggle {
      display: block;
    }

    .menu-toggle.active span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
      opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }

    .menu-toggle.active span {
      background-color: var(--clr-white);
    }

    .site-header__inner .main-navigation a {
      color: var(--clr-white);
    }
  }

  .site-footer {
    position: relative;
    padding-block: 3.75rem;
    background-color: var(--clr-teal-100);
  }

  .site-footer__inner {
    display: flex;
    flex-direction: column;
  }

  .site-footer__inner>*:first-child {
    margin-bottom: 3rem;
  }

  .site-footer__top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .site-footer__top .logo {
    height: 70px;
  }

  .site-footer__top .logo img {
    height: 100%;
  }

  .site-footer__top .main-navigation {
    flex-grow: 1;
    gap: 10px;
    justify-content: space-between;
  }

  .site-footer__top .main-navigation a {
    font-weight: normal;
  }

  .site-footer__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }

  .site-footer__grid .site-footer__col-linkedin {
    grid-column: span 1;
    /* background-image: url('../assets/img/background-linkedin.jpg'); */
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: center;
  }
  
  ul.btn_sociales {
    list-style: none;
    padding: 0;
    margin: 0px;
    display: flex
;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: center;
}
  .site-footer__col-linkedin p {
    color: white;
    font-size: 18px;
    text-align: center;
    margin: 0px 0px 0px 0px;
font-weight: 400;
    }
  
    svg.btn_linkedin {
        fill: white;
        height: 40px;
        width: 40px;
    }
  
    svg.btn_instagram {
        fill: white;
        height: 40px;
        width: 40px;
    }
  

  .site-footer__gridOLD .site-footer__col-newsletter {
    grid-column: span 2;
    background-color: var(--clr-green-100);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    /* MINE */
    min-height: 280px;
    height: 100%;
    margin-top: auto;
    margin-bottom: auto;
  }
  
  .site-footer__grid .site-footer__col-newsletter {
    grid-column: span 5;
    background-color: var(--clr-green-100);
    padding: 2rem 2rem;
    border-radius: var(--border-radius-md);
    display: flex;
    min-height: 10px;
    height: 100%;
    margin-top: auto;
    margin-bottom: auto;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    }
  

  .site-footer__col-newsletter__title {
    font-weight: var(--fw-bold);
    font-size: 20px;
  }
  
  .site-footer__col-newsletterOLD .input-group {
    display: flex;
    flex-direction: column;
  }

  .site-footer__col-newsletterOLD .input-group .input-group__email {
    height: 70px;
    padding-inline: 1rem;
    background-color: transparent;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--clr-teal-100);
    color: var(--clr-teal-100);
    min-width: 400px;
  }

  .site-footer__col-newsletterOLD .input-group .input-group__email::placeholder {
    color: var(--clr-teal-100);
  }

  .site-footer__col-newsletterOLD .input-group .input-group__button {
    background-color: var(--clr-gray-300);
    border: 1px solid var(--clr-gray-300);
    border-radius: var(--border-radius-md);
    color: var(--clr-white);
    padding: 0.5rem 1.5rem;
    width: fit-content;
    cursor: pointer;
  }

  .site-footer__col-newsletterOLD .input-group .input-group__button:hover {
    background-color: transparent;
    color: var(--clr-gray-300);
  }

  .site-footer__col-newsletter .input-group {
    display: flex;
    flex-direction: row;
    margin: 0px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .site-footer__col-newsletter .input-group .input-group__email {
    height: 50px;
    padding-inline: 1rem;
    background-color: transparent;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--clr-teal-100);
    color: var(--clr-teal-100);
    min-width: 400px;
  }

  .site-footer__col-newsletter .input-group .input-group__email::placeholder {
    color: var(--clr-teal-100);
  }

  .site-footer__col-newsletter .input-group .input-group__button {
    background-color: var(--clr-gray-300);
    border: 1px solid var(--clr-gray-300);
    border-radius: var(--border-radius-md);
    color: var(--clr-white);
    padding: 0.5rem 1.5rem;
    width: fit-content;
    cursor: pointer;
    margin: 0px;
    height: 50px;
  }

  .site-footer__col-newsletter .input-group .input-group__button:hover {
    background-color: transparent;
    color: var(--clr-gray-300);
  }

  .site-footer__bottom p {
    text-align: end;
    color: var(--clr-white);
  }

  @media screen and (max-width: 760px) {
    .site-footer__grid .site-footer__col-linkedin {
      grid-column: span 6;
    }

    .site-footer__grid .site-footer__col-newsletter {
      grid-column: span 6;
      display: flex;
        flex-direction: column;
    }
    
    .site-footer__col-newsletter .input-group {
        flex-direction: column;
    }
    .site-footer__col-newsletter .input-group .input-group__email {
        min-width: 300px;
    }
    
  }

  .video-background-hero {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
  }

  .main-navigation a:hover,
  .main-navigation a:focus-visible {
    font-weight: var(--fw-bold);
    color: var(--clr-green-100);
  }

  .hero {
    position: relative;
    height: 100vh;
  }

  /* Sección del slider */
  .slider-section {
    position: relative;
    overflow: hidden;
  }

  .slider-section:nth-child(odd) {
    background-color: var(--bg-dark);

    .section__title,
    .section__text {
      color: var(--clr-gray-200);
    }

    .section__title .bar {
      background-color: var(--clr-gray-200);
    }
	  
	  .section__title .line {
		  background-color: var(--clr-gray-200);
	  }
  }

  .slider-section:nth-child(even) {
    background-color: var(--bg-light);

    .section__title,
    .section__text {
      color: var(--clr-teal-100);
    }

    .section__title .bar {
      background-color: var(--clr-teal-100);
    }
  }

  .slider-container {
    height: 100%;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .slider-wrapper {
    height: 100%;
    position: relative;
  }

  .slide {
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  @media screen and (max-width: 760px) {
    .slide {
      justify-content: start;
      padding-top: 4em;
    }
  }

  .slide.active {
    opacity: 1;
  }

  .slide:not(.active) {
    transition: none;
  }

  .slide-contenido,
  .section-content,
  .section-content_casos {
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    gap: 4rem;
  }

  .section__title {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .section__title h2 {
    display: flex;
    flex-direction: column;
    font-size: var(--fs-xxl);
    font-weight: var(--fw-md);
  }

  @media screen and (max-width: 910px) {
    .section__title h2 {
      font-size: var(--fs-xl);
    }

    .slide-img img {
      padding-inline: 3rem !important;
    }
  }

  .section__title .line-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .section__title .line {
    flex-basis: 100px;
    flex-shrink: 0;
    height: 2px;
/*     background-color: var(--bg-line-color, var(--clr-teal-100));
 */
	background-color: var(--clr-teal-100);
/*     &[data-color="light"] {
      --bg-line-color: var(--clr-gray-200);
    } */
  }

  .section__title .line-text {
    flex-grow: 1;
  }

  .section__title .bar {
    width: 1px;
    height: 5rem;
    transform: rotate(25deg);
    margin: 0 1.5rem;
  }

  .slide-img {
    min-width: 45vw;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .slide-img img {
    height: 450px;
    padding-block: 4.5rem 2rem;
    padding-inline: 8rem;
  }

  .section__text {
    font-size: var(--fs-md);
    font-weight: var(--fw-md);
    line-height:28px;
  }
  .case-card__paragraph {
    line-height: 22.5px;
  }

  .button {
    background-color: var(--clr-green-100);
    color: var(--clr-teal-100);
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius-xl);
    font-weight: var(--fw-md);
    width: fit-content;
    font-size: var(--fs-md);
    border: 1px solid transparent;
    cursor: pointer;
  }

  .button.secondary {
    background-color: var(--clr-cyan-300);
    color: var(--clr-light-100);
  }

  .button.tertiary {
    background-color: var(--clr-cyan-100);
    color: var(--clr-teal-100);
  }

  .button.quaternary {
    background-color: var(--clr-white);
    color: var(--clr-teal-100);
    border: 1px solid var(--clr-teal-100);
  }

  .button:hover {
    background-color: transparent;
    color: var(--clr-green-100);
    border: 1px solid var(--clr-green-100);
  }

  .button.secondary:hover {
    background-color: transparent;
    color: var(--clr-cyan-300);
    border: 1px solid var(--clr-cyan-300);
  }

  .button.tertiary:hover {
    background-color: transparent;
    color: var(--clr-teal-100);
    border: 1px solid var(--clr-teal-100);
  }

  .button.quaternary:hover {
    border: 1px solid transparent;
    background-color: var(--clr-cyan-100);
    color: var(--clr-teal-100);
  }

  .slider-indicators {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 3;
  }

  .indicator {
    width: 12px;
    height: 12px;
    border-radius: var(--border-radius-md);
    background: var(--clr-gray-200);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
  }

  .indicator.active {
    background: var(--clr-teal-100);
    transform: scale(1.2);
    border-color: var(--clr-gray-100);
  }

  .indicator:hover {
    background: var(--clr-teal-100);
    transform: scale(1.1);
  }

  .slide-content__img {
    max-width: 80px;
  }

  #contacto {
    overflow: hidden;
  }

  @media screen and (max-width: 760px) {
    .section__title {
      flex-wrap: wrap;
    }

    .section__title .bar {
      display: none;
    }

    .section__title .line {
      display: none;
    }

    .slider-container {
      flex-direction: column;
      gap: 0;
    }

    .slide-contenido,
    .section-content,
    .section-content_casos,
    .section-hero__nosotros__title {
      gap: 1rem ! important;
    }

    .slide-contenido .space-between.flow {
      align-items: center;
    }

    .slider-indicators {
      flex-direction: row ! important;
      gap: 1rem ! important;
      position: absolute ! important;
      bottom: 2.75rem ! important;
    }

    .slide-img img {
      height: 240px ! important;
      padding-block: 1rem ! important;
      padding-inline: 1rem ! important;
    }

    .slide-content__img {
      width: 50px;
    }

    .section__text {
      font-size: var(--fs-base);
      font-weight: var(--fw-md);
    }

    .button {
      padding: 0.2rem 1.5rem;
      text-align: center;
      font-size: var(--fs-base);
    }
  }
	
	@media screen and (max-width: 500px) {
		.section__title.home {
			flex-direction: column;
			align-items: start;
		}
	}
	
	@media screen and (max-width: 360px) {
        .slide-img img {
          height: 180px ! important;
          padding-block: 0.5rem 0 ! important;
          padding-inline: 1rem ! important;
        }
        .slide {
            padding-top: 2.75rem;
        }
	}

  .section .bar {
    background-color: var(--clr-teal-200);
  }
    
    .flex-cases {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

  .case-card {
    padding: 7em 2em 3em;
    background-color: var(--clr-green-100);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 240px;
    align-items: center;
    color: var(--clr-teal-100);
    transition: transform 0.5s ease;
    max-width: 300px;
    min-height: 550px;
    min-width: 280px;
  }

  .case-card__title {
    font-size: 30px;
    line-height: 1.2;
  }
	
	@media screen and (max-width: 760px) {
		font-size: var(--fs-xl);
	}

  .case-card__link {
    border-radius: 50%;
    font-size: var(--fs-md);
    border: 1px solid var(--clr-teal-100);
    color: var(--clr-teal-100);
    padding: 0.5rem 1rem;
    font-weight: var(--fw-bold);
  }

  .arrow-container:hover, .post-type-archive-casos .arrow:hover {
    display: inline-block;
    animation: arrowShake 0.1s ease-in-out infinite;
    scale: 1.1;
    transition: scale 0.3s ease;
  }

  @keyframes arrowShake {

    0%,
    100% {
      transform: rotate(0deg);
    }

    25% {
      transform: rotate(-5deg);
    }

    75% {
      transform: rotate(5deg);
    }
  }

  .team-description {
    padding-left: 2rem;
  }

  .team-card {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
  }

  .team-description__text {
    max-width: 25vw;
    width: 100%;
  }

  .team-description__title,
  .team-card__title {
    font-size: var(--fs-xl);
  }

  .team-description__paragraph {
    font-size: var(--fs-lg);
  }

  .team-card__img {
    max-width: 350px;
  }

  .team-card__img img {
    border-radius: var(--border-radius-md);
  }

  .team-card__paragraph {
    font-size: var(--fs-lg);
  }

  .team-card__email {
    font-size: var(--fs-md);
    color: var(--clr-teal-100);
  }

  .team-card__link {
    align-self: flex-start;
    ;
  }

  .team-card__email {
    cursor: pointer;
  }

  @media screen and (max-width: 760px) {
    .team-description {
      padding-left: 0;
    }

    .team-description__text {
      max-width: 100%;
    }
  }

  .aliados-column {
    display: flex;
    justify-content: center;
  }

  .section-img__contact {
    padding-block: 2.5rem;
    position: relative;
    left: 10%;
    z-index: 100;
  }

  .section-img__contact img {
    border-radius: var(--border-radius-xl);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
  }

  @media screen and (max-width: 760px) {
    .section-img__contact {
      padding-block: 0;
      left: 0;
    }

    .section-form__contact {
      border-radius: var(--border-radius-xl);
      padding: 2rem !important;
    }

    #contacto {
      /* Scope max-width */
      --wrapper-max-width: 1130px;

      max-width: var(--wrapper-max-width);
      margin-inline: auto;
      padding-inline: 1rem;
      box-sizing: content-box;

      &[data-width="narrow"] {
        --wrapper-max-width: 940px;
      }

      &[data-width="wide"] {
        --wrapper-max-width: 1330px;
      }
    }
  }

  .section-form__contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    gap: 3rem;
    background-image: url(../assets/img/section-form__contact.jpg);
    background-position: center;
    background-repeat: no-repeat;
    border-top-left-radius: var(--border-radius-xl);
    border-bottom-left-radius: var(--border-radius-xl);
    position: relative;
    z-index: 2;
    padding: 5rem;
  }

  .section-form__contact h2 {
    color: var(--clr-white);
  }

  .section-form__contact .line {
    background-color: transparent;
  }

  form.space-between {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
  }

  form .equal-columns input,
  textarea {
    width: 100%;
    padding: 2rem;
    border-radius: var(--border-radius-md);
    background-color: transparent ! important;
    border: 1px solid var(--clr-white);
    color: var(--clr-white);
  }

  form .equal-columns input::placeholder,
  textarea::placeholder {
    color: var(--clr-white);
  }

  .section-form__contact-text {
    color: var(--clr-white);
  }

  /* CONICET / CASOS */
  .section-hero_casos__title {
    color: var(--clr-black);
  }

  .section-hero_casos__title h1 {
    font-size: var(--fs-xxl);
    margin-bottom: 1em;
  }

  .section-hero_casos__subtitle {
    color: var(--clr-cyan-200);
    font-weight: var(--fw-bold);
    font-size: var(--fs-md);
  }

  .section-hero_casos__image {
    display: flex;
    justify-content: end;
  }

  .section-hero_casos__image img {
    /* max-height: 320px; */
    border-radius: var(--border-radius-md);
  }

  @media screen and (max-width: 760px) {

    .section-hero_casos__title h1,
    .section-content__subtitle,
    .section-hero_servicios__title h1 {
      text-align: center;
      font-size: var(--fs-xl) ! important;
    }

    .section-hero_casos__image {
      justify-content: center;
    }

    /* .section-hero_casos__image img {
      max-height: 200px;
    } */

    .section-hero_casos__subtitle {
      text-align: start;
    }
  }

  .section-content__subtitle {
    color: var(--clr-cyan-100);
    font-size: var(--fs-xxl);
    text-align: center;
  }

  .section-hero_grid> :nth-child(n+2):nth-child(-n+4) {
    padding-top: 3em;
  }

  .section-hero_grid> :nth-child(1),
  .section-hero_grid> :nth-child(5) {
    padding-bottom: 3em;
  }

  .section-hero_grid__col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
  }

  .section-hero_grid__img {
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
  }

  .section-hero_grid__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-md);
  }

  .section-hero_grid__input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .section-hero_grid__paragraph.bg {
    background-color: var(--clr-teal-100);
    padding: 2rem;
    color: var(--clr-green-100);
    border-radius: var(--border-radius-md);
  }

  .section-hero_grid__paragraph__number {
    font-size: var(--fs-xxl);
    font-weight: var(--fw-md);
  }

  @media screen and (max-width: 760px) {
    .section-hero_grid> :nth-child(n+2):nth-child(-n+4) {
      padding-top: 0;
    }

    .section-hero_grid> :nth-child(1),
    .section-hero_grid> :nth-child(5) {
      padding-bottom: 0;
    }
  }

  .section-content_servicios__paragraph {
    color: var(--clr-black);
    font-size: var(--fs-md);
  }

  .section-content_servicios__model {
    min-height: 400px;
    background-image: url("../assets/img/background-servicios-model.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  @media screen and (max-width: 760px) {
    .section-content_servicios__model {
      min-height: 300px;
    }
  }

  @media screen and (max-width: 500px) {
    .section-content_servicios__model {
      min-height: 200px;
    }
  }

  .section-content_servicios__model__title {
    color: var(--clr-black);
    font-size: var(--fs-xxl);
    font-weight: var(--fw-bold);
    width: 100%;
  }

  .section-content_servicios__model__title .input-group {
    text-align: center;
  }

  @media screen and (max-width: 760px) {

    .section-content_servicios__model__title {
      font-size: var(--fs-xl);
    }

    .section-content_servicios__model .input-group .button {
      font-size: var(--fs-base);
    }
  }

  @media screen and (max-width: 500px) {
    .section-content_servicios__model__title {
      font-size: var(--fs-lg);
    }

    .section-content_servicios__model .input-group .button {
      border: none;
      padding: 0;
      font-size: var(--fs-sm);
      text-decoration: underline;
    }
  }

  .phase-card {
    flex: 0 0 calc(25% - 1rem);
    height: 266px;
    aspect-ratio: 1 / 1;
    padding: 1rem 2rem 0;
    background-color: var(--clr-light-100);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 50%;
    align-items: start;
    color: var(--clr-teal-100);
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
    min-width: 267px;
  }

  .phase-card:hover {
    background-color: var(--clr-green-100);
  }

  .phase-card.active {
    height: auto;
    justify-content: space-between;
    border-radius: 240px;
    padding-block: 7em;
    background-color: var(--clr-green-100);
  }

  .phase-card__paragraph:last-child {
    display: none;
    transition: opacity 0.3s ease;
    opacity: 0;
  }

  .phase-card.active .phase-card__paragraph:last-child {
    display: block;
    opacity: 1;
  }

  .section-hero__nosotros {
    padding: 2rem;
    border-radius: var(--border-radius-xl);
  }

  .section-hero__servicios_grid__col {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .full-height {
    height: 100%;
  }

  .medium-height {
    height: 50%;
  }

  .section-hero__nosotros__inner {
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }

  .section-hero__nosotros__title {
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }

  .section-hero__nosotros__list__title {
    background-color: var(--clr-cyan-300);
    width: fit-content;
    padding-inline: 1rem;
    border-radius: var(--border-radius-md);
    color: var(--clr-white);
  }

  .section-hero__nosotros__list__item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    border-bottom: 1px solid var(--clr-cyan-300);
    padding-bottom: 1em;
  }

  .arrow-container {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid var(--clr-cyan-300);
  }

  .section-hero__nosotros__list__item .arrow {
    font-size: 1.1rem;
    padding-inline: 3px;
    color: var(--clr-cyan-300);
  }

  @media screen and (max-width: 760px) {
    .section-hero__nosotros__inner {
      gap: 1rem;
    }

    .section-hero__nosotros__title h2 {
      font-size: var(--fs-lg);
    }

    .equal-columns.full-height {
      display: flex;
      height: auto;
    }

    .team-card-justify-center {
      justify-content: center;
    }
  }

  /* POP UP */
  #heroPopupImpulso,
  #heroPopupOrigen {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--clr-light-100);
    z-index: 9999;
  }

  #heroPopupImpulso.mostrar,
  #heroPopupOrigen.mostrar {
    display: block;
  }

  body.popup-open {
    overflow: hidden;
  }

  .popup-container {
    height: 100%;
    width: 100%;
    position: relative;
  }

  .popup-close {
    cursor: pointer;
    border-radius: 50%;
    border: 1px solid var(--clr-gray-300);
    color: var(--clr-gray-300);
    font-weight: var(--fw-bold);
    font-size: var(--fs-lg);
    width: 3rem;
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .section-popup__button {
    display: flex;
    align-items: end;
    justify-content: end;
  }

  .popup-page {
    font-size: var(--fs-lg);
  }
}

@media screen and (max-width: 360px) {
    #heroPopupImpulso ul, #heroPopupOrigen ul {
        margin-block: 0 !important;
    }
    
    #heroPopupImpulso ul li, #heroPopupOrigen ul li {
        font-size: 14px;
    }
}

.padding-slide-top {
  padding-top: 4.5rem;
}

.section__text_85 {
  width: 78%;
}

/* ========== Secciones generales ========== */
.page-template-index main .section,
.section.padding-compact {
  padding-block: 3rem;
}

.post-type-archive-casos .section {
  padding-block: 6rem;
}

.casos-template-default .section {
    padding-block: 2rem;
}

/* ========== Ajustes para primeros y últimos ========== */
.casos-template-default .section:first-of-type,
.section.padding-compact:first-of-type {
  padding-top: 6rem;
}

.casos-template-default .section:last-of-type,
.section.padding-compact:last-of-type {
  padding-bottom: 6rem;
}

/* ========== Página de inicio (template-index) ========== */
.page-template-index main .section#casos {
  padding-top: 6rem;
}

.page-template-index main .section#contacto {
  padding-bottom: 6rem;
}

/* ========== Página con ID 14 ========== */
.page-id-14 .section:first-of-type {
  padding-block: 6rem;
}

.page-id-14 .section:nth-child(2),
.page-id-14 .section:nth-child(4) {
  padding-top: 6rem;
}

.page-id-14 .section:nth-child(3) {
  padding-bottom: 6rem;
}

@media (max-width: 760px) {
  .page-template-index main .section,
  .casos-template-default .section,
  .section.padding-compact {
    padding-block: 2rem;
  }

  .post-type-archive-casos .section {
    padding-block: 4rem;
  }

  .casos-template-default .section:first-of-type,
  .section.padding-compact:first-of-type {
    padding-top: 4rem;
  }

  .casos-template-default .section:last-of-type,
  .section.padding-compact:last-of-type {
    padding-bottom: 4rem;
  }

  .page-template-index main .section#casos {
    padding-top: 4rem;
  }

  .page-template-index main .section#contacto {
    padding-bottom: 4rem;
  }

  .page-id-14 .section:first-of-type {
    padding-block: 4rem;
  }

  .page-id-14 .section:nth-child(2),
  .page-id-14 .section:nth-child(4) {
    padding-top: 4rem;
  }

  .page-id-14 .section:nth-child(3) {
    padding-bottom: 4rem;
  }
}

@media (max-width: 760px) {
  .slider-container {
    justify-content: space-between;
    height: 100%;
  }
  .padding-slide-top {
    padding-top: 0;
  }
  .section__text_85 {
    width: 100%;
  }

  .casos-template-default .section {
    padding-block: 1rem;
  }

  .section-hero_grid .col3 {
    z-index: 2;
  }

    .mySwiper {
      touch-action: pan-y !important;
    }

}

:where(.wp-block-columns) {
  margin-bottom: 0;
}

.scroll-indicator {
  position: relative;
  display: flex;
  justify-content: end;
  margin-top: 0;
  animation: bounce 2s infinite;
  pointer-events: none;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.section-content-phases {
  gap: 2rem !important;
}

.site-footer__bottom__link {
  color: var(--clr-green-100);
}

/* Para pantallas pequeñas, ocultar los videos de escritorio */
@media (max-width: 760px) {
  .video-desktop {
    display: none;
  }
  .video-mobile {
    display: block;
  }
}

/* Para pantallas grandes, ocultar los videos móviles */
@media (min-width: 761px) {
  .video-desktop {
    display: block;
  }
  .video-mobile {
    display: none;
  }
}

.casos-template-default .section-hero_casos__title.wp-block-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.casos-template-default .button {
    margin-top: 0 !important;
}

.casos-template-default .wp-block-image {
    margin-bottom: 0 !important;
}

.casos-template-default .section-hero_casos__image .wp-block-image {
  margin-bottom: 0 !important;
  min-height: 300px;
}

.casos-template-default .section-hero_casos__image img {
  object-fit: cover;
  height: 100%;
  width: 100%
}

.casos-template-default .section-hero_casos__title a {
    color: #087D8C;
    text-decoration: underline;
}