  .mobile video {
  display: none;
}

.desktop video {
  display: block;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

#my-svg {
  animation: rotate 2s linear infinite;
}

#loading {
  display: none;
}

.mobile {
  display: none;
}

.desktop {
  display: block;
}


  .hero {
    width: 100vw;
    height: 100vh;
    background-color: #;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
  }

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-container video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  align-content: center;
  opacity: .95;
}

.hero-content {
  display: block;
  align-items: center;
}

.svg-hero-container {
  max-width: 85%;
  padding: 1em;
  margin: 0 auto;
}

.my-svg {
  display: block;
  margin: 0 auto;
  width: 400px;
  height: auto;
  max-height: 35vh;
  fill: #fff;
}

#logo {
  display: block;
  position: relative;
  width: 960px;
  height: auto;
  max-height: 35vh;
  margin: 0 auto;
}

.hero-text {
  position: relative;
  background-color: rgba(255, 255, 255, .65);
  color: #24061E;
  text-align: center;
  animation: spin 5s forwards;
}

.hero-text h2 {
  font-size: 35px;
  font-weight: 800;
  text-transform: uppercase;
  animation: spin 5s forwards;
  opacity: 0;
  padding: 3rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg) translateX(-1000px);
    opacity: 0;
  }
  100% {
    transform: rotate(360deg) translateX(0);
    opacity: 1;
  }
}

@keyframes glitch {
  0% {
    transform: skewX(-10deg) translateX(0);
    opacity: 1;
  }
  20% {
    transform: skewX(0) translateX(0);
    opacity: 1;
  }
  25% {
    transform: skewX(0) translateX(4px);
    opacity: 0.8;
  }
  30% {
    transform: skewX(0) translateX(0);
    opacity: 1;
  }
  50% {
    transform: skewX(-10deg) translateX(0);
    opacity: 1;
  }
  100% {
    transform: skewX(-10deg) translateX(0);
    opacity: 1;
  }
}

.somos {
  display: block;
  background-color: #BF214B;
  top: 0;
}

.somos h2 {
  width: 960px;
  max-width: 90%;
  text-align: center;
  margin: 0 auto;
  padding: 1.5em;
  color: #FFFFFF;
  font-size: 45px;
  font-weight: 800;
}

.bg-somos {
  background-image: url("https://krakenmedia.com.mx/statics/img/agencia-woman-02-desktop.webp");
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: cover;
  position: relative;
  padding: 0px;
  margin: 0px;
  width: 100vw;
  height: 100vh;
}

.agencia {
  width: 960px;
  height: auto;
  max-width: 90%;
  margin: 0 auto;
  position: relative;
  display: inline-block;
  object-fit: fit-content;
  float: right;
}

.agencia svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 960px;
  max-width: 100%;
  height: 100%;
}

.agencia h1 {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  font-size: 30px;
  padding: 20px;
  margin: 2.5em;
  width: calc(100% - 5em);
  box-sizing: border-box;
  animation: glitch 0.4s infinite;
}

.agencia h1 span {
  display: inline-block;
  transform-origin: left;
  animation: glitch 0.4s infinite;
  animation-delay: calc(var(--delay) * 0.1s);
}

.agencia h1 span:nth-child(1) {
  --delay: 0;
}

.agencia h1 span:nth-child(2) {
  --delay: 1;
}

.agencia h1 span:nth-child(3) {
  --delay: 2;
}

.agencia h1 span:nth-child(4) {
  --delay: 3;
}

.agencia h1 span:nth-child(5) {
  --delay: 4;
}

.agencia h1 span:nth-child(6) {
  --delay: 5;
}

.agencia h1 span:nth-child(7) {
  --delay: 6;
}

.agencia h1 span:nth-child(8) {
  --delay: 7;
}

.agencia h1 span:nth-child(9) {
  --delay: 8;
}

.woman {
  display: block;
  position: relative;
  width: 100vw;
  height: auto;
  z-index: -1;
}

.woman img {
  object-fit: cover;
  object-position: center;
}

/* hacemos desktop CSS styles */



.sub-section {
  display: block;
  position: relative;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hacemos-bg {
  content: "";
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}


.hacemos-sub-container {
  width: 90%;
  max-width: 768px;
  margin: 0 auto;
  margin-top: 5vh;
  position: relative;
  text-align: center;
  z-index: 2;
}

.sub-section-hacemos-content {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.sub-section-hacemos-content h2 {
  font-size: 45px;
  text-align: center;
  text-transform: uppercase;
  padding: 1em;
  color: #FFFFFF;
  text-shadow: 5px 0px 0px rgba(191, 33, 75, .9),
               0px 5px 0px rgba(191, 33, 75, .9),
              -5px 0px 0px rgba(191, 33, 75, .9),
               0px -5px 0px rgba(191, 33, 75, .9);
}

.sub-section-hacemos-content p {
  max-width: 100%;
  margin: 0 auto;
  margin-top: 0;
  margin-bottom: 0;
  text-align: center;
  font-weight: 300;
  padding: 2em;
  position: relative;
  color: #24061E;
  font-size: 22px;
}

.sub-section-hacemos-content .hacemos-span {
  font-weight: 600;
  text-align: center;
  text-shadow: 3px 0px 0px rgba(255, 255, 255, .9),
               0px 3px 0px rgba(255, 255, 255, .9),
              -3px 0px 0px rgba(255, 255, 255, .9),
               0px -3px 0px rgba(255, 255, 255, .9);  
  color: #BF214B;
  text-transform: uppercase;
}

.image-container-hacemos {
  width: 100%;
  position: relative;
  margin: 0 auto;
  top: 3vh;
  z-index: 1;
}

.img-hacemos {
  width: 100%;
  max-height: 40vh;
  object-fit: scale-down;
  object-position: top;
}

.secction-03 {
  width: 100vw;
  height: 85vh;
  display: block;
  position: relative;
}

.como-lo-hacemos {
  display: block;
  background-color: #24061E;
  top: 0;
}

.como-lo-hacemos h2 {
  color: #FFFFFF;
  font-size: calc(4vw + 1em); /* Escala dinámica basada en el ancho de la ventana */
  text-align: center;
  margin: 0;
  padding: 20px 0;
  font-weight: 800;
  line-height: 1.2;
}

.secction-03 {
  background-image: url("https://krakenmedia.com.mx/statics/img/como-lo-hacemos-woman-01-desktop.webp");
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 0px;
  margin: 0px;
  width: 100vw;
  height: 85vh;
}

    #contact-05 {
  display: block;
  position: relative;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Essential for parallax effect */
}

.sub-section {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-sub-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 2rem); /* Applying horizontal padding */
  max-width: 768px;
  padding: 1rem;
  text-align: center;
}

.cierre-text {
  width: 480px;
  max-width: 80%;
  margin-right: 0;
  margin-top: 3em;
  margin-bottom: 35vh;
}

.cierre-text h2 {
  background-color: rgba(191, 33, 75, 0.85);
  padding: 1rem;
  border-radius: 2rem;
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 2rem;
  font-size: calc(1.5rem + 0.5vw); /* Dynamic font size adjustment */
}

.contact-links-container {
  width: 100%;
  text-align: center;
}
    .call-to-action-icons {
      height: 80px;
      width: auto;
      padding: 10px;
      margin: 10px;
      display: inline-block; /* Cambia a inline-block para alinear horizontalmente */
      fill: #FFFFFF;
      background: #BF214B;
      border-radius: 25%;
      box-shadow: 0px 3px 6px rgb(0 ,0, 0, 0.16), 0px 3px 6px rgb(33,39,33, .23);
    -webkit-animation: init 0.5s 0.2s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards, moveDown 1s 0.8s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards, moveUp 1s 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, materia_landscape 0.5s 2.7s cubic-bezier(0.86, 0, 0.07, 1) forwards;
    animation: init 0.5s 0.2s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards, moveDown 1s 0.8s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards, moveUp 1s 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, materia_landscape 0.5s 2.7s cubic-bezier(0.86, 0, 0.07, 1) forwards;
    }

     .call-to-action-icons:hover,
     .call-to-action-icons:focus {
     background-color: #24061E;
     cursor: pointer;
     transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;}
     
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 0) {
  html {
    font-size: 14px; /* Smaller base font size for smaller devices */
  }
  .mobile {
    display: block;
  }  

  .desktop {
    display: none;
  }

  .desktop video {
  display: none;
}
  .my-svg {
    display: block;
    margin: 0 auto;
    width: 400px;
    max-width: 60%;
    height: auto;
    fill: #fff;
    bottom: 0;
  }

  .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

.mobile video {
  display: block;
}

  .hero-text h2 {
    font-size: 1.25rem;
  }

  .somos h2 {
    font-size: 25px;
  }

  .como-lo-hacemos h2 {
    font-size: calc(5vw + 1em); /* Mayor tamaño base en móviles */
  }

  .sub-section-hacemos-content h2 {
    font-size: 25px;
    text-shadow: 2px 0px 0px rgba(191, 33, 75, .9),
               0px 2px 0px rgba(191, 33, 75, .9),
              -2px 0px 0px rgba(191, 33, 75, .9),
               0px -2px 0px rgba(191, 33, 75, .9);
}

.sub-section-hacemos-content p {
    font-size: 15px;  
}

  .secction-03 {
    background-image: url("https://krakenmedia.com.mx/statics/img/como-lo-hacemos-woman-01-mobile.webp");
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 0px;
    margin: 0px;
    width: 100vw;
    height: 65vh;
  }

  @keyframes slide-in-1 {
    0% {
      opacity: 0;
      transform: translateY(100px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes slide-in-2 {
    0% {
      opacity: 0;
      transform: translateY(100px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes slide-in-3 {
    0% {
      opacity: 0;
      transform: translateY(100px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes slide-in-4 {
    0% {
      opacity: 0;
      transform: translateY(100px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes slide-in-5 {
    0% {
      opacity: 0;
      transform: translateY(100px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes slide-in-6 {
    0% {
      opacity: 0;
      transform: translateY(100px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .btn-hero {
    display: block;
    position: relative;
    margin: 0 auto;
    width: 100%;
    text-align: center;
  }

  .agencia h1 {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    font-size: 15.5px;
    padding: 20px;
    margin: 2.5em;
    width: calc(100% - 5em);
    box-sizing: border-box;
  }

  .woman {
    display: block;
    position: relative;
    width: 100vw;
    height: auto;
  }

  .woman img {
    object-fit: cover;
    object-position: center;
  }
  .contact-sub-container {
    width: calc(100% - 1rem); /* Reduced padding for smaller screens */
    padding: 0.5rem;
  }

  .cierre-text h2 {
    font-size: calc(1.25rem + 1vw); /* Increased relative font size for visibility on small screens */
    padding: 0.5rem; /* Reduced padding */
    border-radius: 1rem; /* Smaller radius for smaller elements */
    margin-bottom: 1rem; /* Reduced margin bottom */
  }

  #contact-05, .sub-section {
    height: auto; /* Adjust height to content */
  }

    .call-to-action-icons {
      height: 60px;
      width: auto;
      padding: 10px;
      margin: 10px;
      display: inline-block; /* Cambia a inline-block para alinear horizontalmente */
      fill: #FFFFFF;
      background: #BF214B;
      border-radius: 25%;
    }
}
