:root {
  --bg: hsl(100% 100% 100%);
  --white: hsl(0 0% 100%);
  --accent: hsl(0 0% 15%);
  --secondary: hsl(0 0% 25%);
}

* {
  margin: 0;
  box-sizing: border-box;
}

li {
  list-style: none;
}

.accordion {
  display: flex;
  width: 100%;
  height: 65vh;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}

.accordion__item {
  position: relative;
  flex-grow: 1;
  min-width: 200px;
  height: 100%;
  background: var(--bg);
  transition: flex-grow 1s ease;
  overflow: hidden;
}

.accordion__item:hover {
  flex-grow: 2;
width: 180%; /* El contenedor también aumenta de tamaño */
}

.accordion__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1s ease, width 1s ease;
}

.accordion__item:hover .accordion__image {
  transform: scale(1.5);
  
}

.accordion__overlay {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease-out;
}

.overlay-1 {
  background-image: 
    linear-gradient(to bottom, rgba(5, 47, 97, 0), rgba(5, 47, 97, 1)),
    url('https://49485633.fs1.hubspotusercontent-na1.net/hubfs/49485633/liquido2.jpg');
}

.overlay-2 {
  background-image: 
    linear-gradient(to bottom, rgba(5, 47, 97, 0), rgba(5, 47, 97, 1)),
    url('https://49485633.fs1.hubspotusercontent-na1.net/hubfs/49485633/patrimonial2.jpg');
}

.overlay-3 {
  background-image: 
    linear-gradient(to bottom, rgba(5, 47, 97, 0), rgba(5, 47, 97, 1)),
    url('https://49485633.fs1.hubspotusercontent-na1.net/hubfs/49485633/crecimiento2.jpg');
}
  
  .overlay-4 {
  background-image: 
    linear-gradient(to bottom, rgba(5, 47, 97, 0), rgba(5, 47, 97, 1)),
    url('https://49485633.fs1.hubspotusercontent-na1.net/hubfs/49485633/t%C3%A1ctico.jpg');
}
  
  .overlay-5 {
  background-image: 
    linear-gradient(to bottom, rgba(5, 47, 97, 0), rgba(5, 47, 97, 1)),
    url('https://49485633.fs1.hubspotusercontent-na1.net/hubfs/49485633/global.jpg');
}

.accordion__item:hover .accordion__overlay{
  opacity: 0;
}

.accordion__title {
  position: absolute;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: clamp(.7em, 3vw - 0.5em, 1em);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  line-height: 1.25;
}

.accordion__title::after {
  content: "→";
  margin-top: 0.3em;
  color: #F05224; /* Cambia 'red' por el color que necesites */
  font-size: 1.5em; /* Ajusta este valor según el tamaño que quieras */
}

.accordion__item:hover .accordion__title::after {
  content: none;
}

.accordion__description {
  position: absolute;
  width: 80%;
  top:10%;
  left: 10%;
  transform: translateX(-50%);
   /*  transform: translateY(200px);*/
  opacity: 0;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  /* Estilos removidos para respetar el Rich Text */
  /* color: var(--white); */
  /* font-size: inherit; */
  /* line-height: inherit; */
}

.accordion__item:hover .accordion__description {
  transform: translateY(0);
  opacity: 1;
}

/* ========================
   MOBILE RESPONSIVE STYLES
=========================== */
/* RESPONSIVE STYLES */
@media (max-width: 768px) {
  .accordion {
    flex-direction: column;
    height: auto;
  }

  .accordion__item {
    width: 100%;
    height: 20vh;
    flex-grow: 0 !important;
    min-width: auto;
    transition: height 0.3s ease;
  }

  .accordion__item:hover {
    flex-grow: 0;
    height: 50vh;
  }

  .accordion__image {
    height: 100%;
    object-position: center;
  }

.accordion__title {
  position: absolute;
  bottom: .5em; /* Puedes ajustar según prefieras */
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5em;
  text-align: center;
  color: var(--white);
  white-space: nowrap; /* Evita que el texto se divida si es largo */
}

.accordion__title::after {
  margin-top: 0.3em;
  display: inline-block;
}

  .accordion__description {
    width: 50%;
    left: 1em;
    bottom: 1.2em;
    opacity: 0;
  transform: none; /* Evita el zoom */
    transition: opacity .3s ease-out, transform .3s ease-out;
  }

  .accordion__item:hover .accordion__description {
    opacity: 1;
    transform: none; /* Evita el zoom */
  }

  .accordion__overlay {
    opacity: 10;
     transition: opacity 0.8s ease-out;
     transform: none; /* Evita el zoom */
  }
   .overlay-1 {
  background-image: 
    linear-gradient(to bottom, rgba(5, 47, 97, 0), rgba(5, 47, 97, 1)),
    url('https://49485633.fs1.hubspotusercontent-na1.net/hubfs/49485633/liquido2-web.jpg');
}

.overlay-2 {
  background-image: 
    linear-gradient(to bottom, rgba(5, 47, 97, 0), rgba(5, 47, 97, 1)),
    url('https://49485633.fs1.hubspotusercontent-na1.net/hubfs/49485633/patrimonial2-web.jpg');
}

.overlay-3 {
  background-image: 
    linear-gradient(to bottom, rgba(5, 47, 97, 0), rgba(5, 47, 97, 1)),
    url('https://49485633.fs1.hubspotusercontent-na1.net/hubfs/49485633/crecimiento2-web.jpg');
}
  
  .overlay-4 {
  background-image: 
    linear-gradient(to bottom, rgba(5, 47, 97, 0), rgba(5, 47, 97, 1)),
    url('https://49485633.fs1.hubspotusercontent-na1.net/hubfs/49485633/t%C3%A1ctico-web.jpg');
}
  
  .overlay-5 {
  background-image: 
    linear-gradient(to bottom, rgba(5, 47, 97, 0), rgba(5, 47, 97, 1)),
    url('https://49485633.fs1.hubspotusercontent-na1.net/hubfs/49485633/global-web.jpg');

}  
}
}