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

body {
  overflow: hidden;
}

.slider {
  width: 100vw;
  height: 100vh;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kenburns-left {
  -webkit-animation: kenburns-left 8s ease-out both;
  animation: kenburns-left 8s ease-out both;
}

@-webkit-keyframes kenburns-left {
  0% {
    -webkit-transform: scale(1) translate(0, 0);
    transform: scale(1) translate(0, 0);
    -webkit-transform-origin: 16% 50%;
    transform-origin: 16% 50%;
  }
  100% {
    -webkit-transform: scale(1.25) translate(-20px, 15px);
    transform: scale(1.25) translate(-20px, 15px);
    -webkit-transform-origin: left;
    transform-origin: left;
  }
}

@keyframes kenburns-left {
  0% {
    -webkit-transform: scale(1) translate(0, 0);
    transform: scale(1) translate(0, 0);
    -webkit-transform-origin: 16% 50%;
    transform-origin: 16% 50%;
  }
  100% {
    -webkit-transform: scale(1.25) translate(-20px, 15px);
    transform: scale(1.25) translate(-20px, 15px);
    -webkit-transform-origin: left;
    transform-origin: left;
  }
}

.controls {
  position: absolute;
  bottom: 95px;
  right: 20px;
  display: flex;
  gap: 20px;
  z-index: 10;
}

.control-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.286);
  border: 0px solid rgba(0, 0, 0, 0.748);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
  
.control-btn:hover {
  transform: scale(1.1);
  background-color: #f0f0f0;
}

.control-btn::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border: solid black;
  border-width: 0 2px 2px 0;
}

.prev-btn::before {
  transform: rotate(135deg);
}

.next-btn::before {
  transform: rotate(-45deg);
}

.text-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}


/* Estilos de tipografia de textos */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Raleway-ExtraBoldItalic.ttf') format('truetype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}



.slide-text {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 50px;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  text-align: center;
  -webkit-text-stroke: 2px black;
  opacity: 0;
  display: none;
}

.slide-text.active {
  display: block;
  animation: slide-down 1s ease-out forwards;
  animation-delay: 1s;
}

@keyframes slide-down {
  0% {
    transform: translate(-50%, -150%);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

.slide-text-secondary {
  position: absolute;
  top: calc(50% + 75px);
  left: 50%;
  transform: translate(-50%, -50%);
  color: #F95C06;
  font-size: 50px;
  font-family: Arial, sans-serif;
  font-style: italic;
  font-weight: 800; /* Extra bold */
  text-align: center;
  -webkit-text-stroke: 2px black;
  opacity: 0;
  display: none;
}

.slide-text-secondary.active {
  display: block;
  animation: slide-left 1s ease-out forwards;
  animation-delay: 3s;
}

@keyframes slide-left {
  0% {
    transform: translate(50%, -50%);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

.color-div-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.color-div {
  position: absolute;
  bottom: 0;
  left: 0;
  opacity: 0;
  display: none;
}

.color-div.active {
  display: block;
  animation: slide-up-bounce 1s ease-out forwards;
  animation-delay: 4s;
}

@keyframes slide-up-bounce {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  80% {
    transform: translateY(-10%);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Tamaños específicos para cada color-div en vista normal */
.color-div-1 {
  width: 30vw;
  height: 80vh;
  background-image: url('../img/manos.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.color-div-2 {
  width: 25vw;
  height: 65vh;
  background-image: url('../img/hamburguesa-slide.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.color-div-3 {
  width: 35vw;
  height: 85vh;
  background-image: url('../img/mensajero.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.button-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
}

.action-button {
  position: absolute;
  top: calc(50% + 170px);
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 45px;
  background-color: #ff6200;
  color: white;
  font-size: 16px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  text-align: center;
  line-height: 45px;
  border: 2px outset black;
  border-radius: 10px;
  text-decoration: none;
  opacity: 0;
  display: none;
  cursor: pointer;
}

.action-button.active {
  display: block;
  animation: scale-up 1s ease-out forwards;
  animation-delay: 4s;
}

@keyframes scale-up {
  0% {
    transform: translate(-50%, -50%) scale(0.1);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.action-button:hover {
  background-color: black;
  color: white;
}

.logo-container {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 15;
}

.logo-container img {
  width: 250px;
  height: auto;
  display: block;
}



.skip-intro {
    position: absolute;
    bottom: 150px !important;
    right: 25px;
    font-size: 25px;

    color: white !important; /* Color del enlace blanco con !important */
    -webkit-text-stroke: 0.2px black; /* Contorno negro delgado */
    font-family: Arial, sans-serif;
    text-decoration: none;
    z-index: 15;
    transition: font-weight 0.3s ease;
}

.skip-intro:hover {
    font-weight: bolder;
}


@media (max-width: 840px) {
  /* Ocultar el segundo slide (slider 2) en móviles */
  .slide:nth-child(2) {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none;
  }
  
  /* Ocultar el segundo texto y color-div asociados al slider 2 */
  .slide-text:nth-child(2),
  .slide-text-secondary:nth-child(2),
  .color-div-2 {
    display: none !important;
    opacity: 0 !important;
  }
  
  .slide-text,
  .slide-text-secondary {
    font-size: 30px;
    -webkit-text-stroke: 1px black;
    white-space: normal;
    max-width: 90%;
    line-height: 1.2;
    top: calc(25% + 0px);
  }
  .slide-text-secondary {
    top: calc(30% + 85px);
  }
  /* Tamaños específicos para cada color-div en resolución 840px */
  .color-div-1 {
    width: 80vw;
    height: 70vh;
  }
  .color-div-2 {
    width: 70vw;
    height: 45vh;
  }
  .color-div-3 {
    width: 50vw;
    height: 70vh;
  }
  .action-button {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    top: calc(50% + 115px);
    line-height: normal;
    padding: 0 15px;
    font-size: 15px;
  }
  
  .action-button.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .logo-container {
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    padding: 0 10px;
  }
  .logo-container img {
    width: 100px;
    max-width: 80%;
    height: auto;
    margin: 0 auto;
  }
  .skip-intro-unique {
    bottom: 80px;
    right: 10px;
  }
  .skip-intro {
    font-size: 20px;
    font-weight: bold;
    bottom: 240px;
    right: 25px;
    color: white !important; /* Color del enlace blanco con !important */
    -webkit-text-stroke: 0.8px black; /* Contorno ligeramente más delgado para pantallas pequeñas */
  }
}
