.check-shadow {
  box-shadow: 2px 3px 10px -3px rgba(0, 0, 0, 0.35) !important;
}

.custom-box-shadow {
  box-shadow: 5px 5px 2px 1px rgba(0, 0, 0, 0.2);
}

.custom-box-shadow-2 {
  box-shadow: 2px 3px 10px -3px rgba(0, 0, 0, 0.35);
}

.blueBgContentText {
  color: rgba(255, 255, 255, 0.9) !important;
}

.advantage-icon {
  display: inline-block;
  width: 80px;
  height: 80px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.advicon-1 {
  background-image: url('../img/heliot/advantage-icon-1.svg');
}
.advicon-2 {
  background-image: url('../img/heliot/advantage-icon-2.svg');
}
.advicon-3 {
  background-image: url('../img/heliot/advantage-icon-3.svg');
}

#inicio {
  position: relative;
  overflow: hidden;
  max-height: 885px;
}

/* Elemento pseudo que actúa como fondo */
#inicio::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7); /* Estado final */
  backdrop-filter: blur(5px); /* Estado final */
  z-index: 0;
  animation: animarFondo 1.2s ease-out forwards;
}

#inicio-icons {
  display: grid;
  grid-template-columns:  .5fr 1fr;
  grid-template-rows: .5fr 1fr;
  row-gap: 1rem;
}

/* Animación desde opacidad y blur suaves hacia el estado final */
@keyframes animarFondo {
  0% {
    background: rgba(0, 0, 0, 0.2); /* Menos oscuro */
    backdrop-filter: blur(1px); /* Menos difuminado */
  }
  100% {
    background: rgba(0, 0, 0, 0.7); /* Más oscuro */
    backdrop-filter: blur(5px); /* Más difuminado */
  }
}

#intro .highlighted-word.highlighted-word-animation-1.highlighted-word-animation-1-2:after {
  background: url(../img/pencil-global-line-1.png);
  background-repeat: no-repeat;
}

#contacto {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

#contacto form {
  display: grid;
  grid-template-areas:
    'name email email'
    'asunto asunto asunto'
    'message message message'
    'submit submit submit';
  gap: 1rem;
}

#contacto form input,
#contacto form textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-size: 1.1rem;
  border-radius: 10px;
}

#contacto form input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #1fbccdce;
}
#contacto form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px #1fbccdce;
}

#contacto form input[name='name'] {
  grid-area: name;
}
#contacto form input[name='email'] {
  grid-area: email;
}
#contacto form input[name='subject'] {
  grid-area: asunto;
}
#contacto form textarea[name='message'] {
  grid-area: message;
}
#contacto form .submit-container {
  grid-area: submit;
  width: fit-content;
  margin-top: 1rem;

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

#contacto form .submit-container button {
  font-size: 1.1rem !important;
  margin: 0 !important;
}

#footer .footer-links {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  grid-template-rows: repeat(2, auto);
  grid-template-areas:
    'about-header products-header contact-header policys-header'
    'about products contact policys';
  row-gap: 1rem;
}

.footer-links .footer-item-title {
  text-align: left;
}

.footer-links .footer-item-title.about {
  grid-area: about-header;
}
.footer-links .footer-item-title.products {
  grid-area: products-header;
}
.footer-links .footer-item-title.contact {
  grid-area: contact-header;
}
.footer-links .footer-item-title.policys {
  grid-area: policys-header;
}

.footer-links .footer-item-content.about {
  grid-area: about;
}
.footer-links .footer-item-content.products {
  grid-area: products;
}
.footer-links .footer-item-content.contact {
  grid-area: contact;
}
.footer-links .footer-item-content.policys {
  grid-area: policys;
}

.footer-links .footer-item-content {
  text-align: left;
}

.footer-links .styled-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.footer-links .styled-list li {
  transition: all 0.3s ease-in-out;
  position: relative;
  padding-left: 0.8rem;
  font-size: 0.9rem;
}

.footer-links .styled-list li::before {
  content: '>';
  position: absolute;
  left: 0px;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-right: 0.5rem;

  transition: all 0.35s ease-in-out;
}

.footer-links .styled-list li:hover {
  padding-left: 1.3rem;
  color: white;
}

.footer-links .styled-list li:hover::before {
  color: whitesmoke;
  left: 0.4rem;
}

.footer-links .simple-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.footer-links .footer-item-content.about p {
  max-width: 85%;
  font-size: 0.9rem;
  margin: 0;
}

#heliot-wifi .highlighted-word.highlighted-word-animation-1:after {
  background: url(../img/pencil-white-line.png);
}

@media screen and (max-width: 1000px) {
  #contacto {
    grid-template-columns: 1fr 1.6fr;
  }

  #inicio {
    max-height: none;
  }
}

@media screen and (max-width: 900px) {
  #footer .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, auto);
    grid-template-areas:
      'about-header products-header'
      'about products'
      'contact-header policys-header'
      'contact policys';
    row-gap: 1rem;
    padding-inline: 1rem;
  }

  .footer-links .footer-item-content {
    margin-bottom: 1.5rem;
  }
}

@media screen and (max-width: 700px) {
  #contacto {
    grid-template-columns: 1fr;
  }

  #contacto iframe {
    display: none;
  }

  #contacto .form-container {
    padding: 1.5rem !important;
  }

  #footer .logo img {
    width: 110px !important;
    height: auto;
  }
}

@media screen and (max-width: 500px) {
  #footer .footer-links {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      'about-header'
      'about'
      'products-header'
      'products'
      'contact-header'
      'contact'
      'policys-header'
      'policys';
    row-gap: 1rem;
    padding-inline: 1rem;
  }

  #contacto form {
    grid-template-areas:
      'name'
      'email'
      'asunto'
      'message'
      'submit';
    gap: 1rem;
  }
}

/* ------------ ARREGLA BUG HERO ANIMACIONES */

/* Oculta por defecto */
.custom-header-bar {
  opacity: 0;
  transform: translateX(50px); /* lo que hace maskRight */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Cuando ya aparece */
.custom-header-bar.appear-animation-visible {
  opacity: 1;
  transform: translateX(0);
}
