@import url('https://fonts.googleapis.com/css2?family=Rubik:ital@1&display=swap');*{
    font-family: 'Poppins', sans-serif;
}

/* Hamburger Menu */
 .hamburger {
    cursor: pointer;
    width: 24px;
    height: 24px;
    transition: all 0.25s;
    position: relative;
  }
  
  .hamburger-top,
  .hamburger-middle,
  .hamburger-bottom {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: #000;
    transform: rotate(0);
    transition: all 0.5s;
  }
  
  .hamburger-middle {
    transform: translateY(7px);
  }
  
  .hamburger-bottom {
    transform: translateY(14px);
  }
  
  .open .hamburger-top {
    transform: rotate(45deg) translateY(6px) translate(6px);
  }
  
  .open .hamburger-middle {
    display: none;
  }
  
  .open .hamburger-bottom {
    transform: rotate(-45deg) translateY(6px) translate(-6px);
  }
  /* Gsap utils Functions */

  /* Gsap  utils Functions */
  [data-hidden] {
    opacity: 0;
}
.especial-class-1{
  grid-area: 1/7/2/13;
  align-self: center;
}
.especial-class-2{
  grid-area: span 1/span 5/span 1/span 5;
}
.areas3{
  grid-area: span 1/span 5/span 1/span 5;
}
.areas4{
  grid-area: 1/7/2/13;
  justify-self: end;
}
.cards .card:hover {
  transform: scale(1.1, 1.1);
}

.cards:hover > .card:not(:hover) {
  /* filter: blur(5px); */
  transform: scale(0.9, 0.9);
}
#column-1{
  grid-area: span 1/span 2/span 1/span 2;
}
#column-2{
  /* grid-area: 2/1/3/2; */
}
#column-3{
  /* grid-area: 2/2/3/3; */
}
#column-4{
  grid-area: 1/3/3/5;
}
.h4-gradient{
  -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}
@media  screen and (max-width: 991px) {
  #column-4{
    grid-area: span 2/span 2/span 2/span 2;
  }
  .responsiveclass{
    display: grid !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0px 20px;
    grid-template-columns: 1fr 1fr;
    justify-content: center !important;
    gap: 2rem;
  }

}
@media screen and (max-width:1024) {
  .submenu{
    height: 130px !important;
  }
}
.fullwidth-image{
  clip-path: polygon(5% 10%, 95% 10%, 95% 90%, 5% 90%);
}
.fullwidth-image__text{
  transform: translate(-50%, -50%);
}
#firstcolumn{
  grid-area: span 1/span 1/span 1/span 1;
}
#secondcolumn{
  grid-area: span 1/span 1/span 1/span 1;
  align-self: center;
}
.has-submenu > .submenu {
  display: none; /* Ocultar el submenú por defecto */
  position: absolute; /* Posicionar el submenú */
  /* Ajusta lo siguiente según tu diseño */
  left: 0;
  top: 100%;
}

.has-submenu:hover > .submenu {
  display: block; /* Mostrar el submenú al pasar el ratón por encima */
}

/* Agrega estilos adicionales para tu submenú aquí */
.bg-pigmentos{
  background-image: url('/images/pigmentos/pigmentosback.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}
.bg-pigmentos::before{
  content: "";
  border-radius: 14px;
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}
.bg-masterbatch{
  background-image: url('/images/Masterbatch/Horizontal.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-size:cover;
}
.bg-masterbatch::before{
  content: "";
  border-radius: 14px;
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}
.bg-igualacion{
  background-image: url('/images/Igualacion/igualacionback.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.bg-igualacion::before{
  content: "";
  border-radius: 14px;
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}
.bg-aditivos{
  background-image: url('/images/Aditivos/ADITIVOS.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.bg-aditivos::before{
  content: "";
  border-radius: 14px;
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}
.overlay{
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}
 a:hover + .submenu {
  opacity: 1;
  display: flex;
}
.submenu{
  transition: opacity 0.5s;
  height: 192px;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index:1;
}
.submenu:hover{
  opacity: 1;
  display: flex;
}
/* Slider */
.item {
  width: 200px;
  height: 300px;
  list-style-type: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  background-position: center center;
  background-size: cover;
  border-radius: 20px;
  transition: transform 0.3s, left 0.45s, top 0.45s,bottom 0.45s,right 0.45s, width 0.45s, height 0.45s;
  &:nth-child(1), &:nth-child(2) {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
  }

  &:nth-child(3) { left: 50%; }
  &:nth-child(4) { left: calc(50% + 220px); }
  &:nth-child(5) { left: calc(50% + 440px); }
  &:nth-child(6) { left: calc(50% + 660px); opacity: 0; }
}

.content {
  width: min(30vw,400px);
  position: absolute;
  top: 55%;
  left: 1.1rem;
  transform: translateY(-50%);
  font: 400 0.85rem helvetica,sans-serif;
  color: white;
  text-shadow: 0 3px 8px rgba(0,0,0,0.5);
  opacity: 0;
  display: none;

  & .title {
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
  }

  & .description {
    line-height: 1.7;
    margin: 1rem 0 1.5rem;
    font-size: 0.8rem;
  }

  & button {
    width: fit-content;
    background-color: rgba(0,0,0,0.1);
    color: white;
    border: 2px solid white;
    border-radius: 0.25rem;
    padding: 0.75rem;
    cursor: pointer;
  }
}

.item:nth-of-type(2) .content {
  display: block;
  animation: show 0.75s ease-in-out 0.3s forwards;
}
.item:nth-of-type(3) .content {
  display: none !important;
}
.item:nth-of-type(4) .content {
  display: none !important;
}
.item:nth-of-type(5) .content {
  display: none !important;
}
.item:nth-of-type(6) .content {
  display: none !important;
}
@keyframes show {
  0% {
    filter: blur(5px);
    transform: translateY(calc(-50% + 75px));
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

.nav {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  user-select: none;
  justify-content: space-between;
  width: 175px;

  & .btn {
    background-color: rgba(255,255,255,0.5);
    color: rgba(0,0,0,0.7);
    border: 2px solid rgba(0,0,0,0.6);
    margin: 0 0.25rem;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;

    &:hover {
      background-color: rgba(255,255,255,0.3);
    }
  }
}
.content {
  & .title        { font-size: 2.5rem; }
  & .description  { font-size: 1rem; }
  & button        { font-size: 1rem; }
}

@media (width > 650px) and (width < 900px) {
  .item {
    width: 160px;
    height: 270px;

    &:nth-child(3) { left: 50%; }
    &:nth-child(4) { left: calc(50% + 170px); }
    &:nth-child(5) { left: calc(50% + 340px); }
    &:nth-child(6) { left: calc(50% + 510px); opacity: 0; }
  }
}

@media (width < 650px) {
  .content{
    display: flex !important;
    justify-content: space-between;
    /* border: solid red; */
    width: 75% !important;
    height: 60%;
    width: 100%;
    left: 0;
    flex-direction: column;
    padding: 10px;
  }
  .item {
    width: 130px;
    height: 220px;

    &:nth-child(3) { left: 80%; }
    &:nth-child(4) { left: calc(50% + 330px); }
    &:nth-child(5) { left: calc(50% + 330px); }
    &:nth-child(6) { left: calc(50% + 320px); opacity: 0; }
  }
  .nav{
    width: 150px;
  }
  .slider-css {
    width: 205px !important;
  }
  .item:nth-of-type(3) .content{
    display: none !important;
    animation: show 0.75s ease-in-out 0.3s forwards;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.pulse {
  animation: pulse-animation 2s infinite;
  border-radius: 50%;
}

@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.2);
  }
  100% {
    box-shadow: 0 0 0 20px rgba(0, 0, 0, 0);
  }
}

#nosotrosImage{
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(/images/Masterbatch/masterbanchback.webp) center center / cover no-repeat; 
}
.position{
  background-image: url(/images/Masterbatch/sprite.webp);
}

.position1{
  background-position: 0% 0%;
  width: 125px;
  height: 115px;
}
.position2{
  background-position: 130px 0%;
  width: 125px;
  height: 115px;
}
.position3{
  background-position: 0px 100%;
  width: 125px;
  height: 115px;
}
.position4{
  background-position: 130px 100%;
  width: 125px;
  height: 115px;
}

::-webkit-scrollbar {display: none;}

.slider-css {
border-radius: 20px;
width: 301px;
height: 300px;
position: relative;
display: flex;
overflow: scroll;
box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;

scroll-snap-type: x mandatory;
}
.slider-css img {
width: 100%;
left: 0;
position: sticky;
object-fit: cover;
border-radius: 5px;
scroll-snap-align: center;
}
