.pagina {
  position: relative;
  overflow-x: hidden;
  background: -webkit-linear-gradient(90deg, #000000,#ff0000,#000000);/* Chrome 10-25, Safari 5.1-6 */                          background: linear-gradient(90deg, #000000,#ff0000,#000000);/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */                                             
}

.pagina::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  opacity: 1;
  pointer-events: none;
}

/* --- Splash Screen --- */
.splash-screen {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  height: 100vh;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

.splash-screen.display-none {
  transition: all 0.5s ease-in-out;
  opacity: 0;
  visibility: hidden;
}

.logo-splash {
  width: 500px;
  height: auto;
  animation: bounce-in 1.5s linear;
  animation-fill-mode: forwards;
}

/* --- Header y Título --- */
header {
  display: flex;
  width: 100%;
  justify-content: center;
}
.contenedor-titulo {
  position: absolute;
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: center;
  height: 75vh;
  margin: 0 auto;
}
.titulo {
  position: relative;
  z-index: 2;
  top: 35vh;
  color: #000;
  font-size: 20vw;
  white-space: nowrap;
  font-weight: bold;
  font-family: 'Tall';
  letter-spacing: 1rem;
  text-shadow: 10px 5px #fff, 10px 5px 17px #000;
  animation: entrada-desde-arriba 1.2s ease-out forwards;
  text-align: center;
}
.logo-fondo {
  position: absolute;
  top: -50vh;
  left: 100vh;
  width: 100vw;
  z-index: -1;
  opacity: 1;
  filter:  drop-shadow(2px 2px 10px rgba(255, 0, 0, 0.75));
}
.logo-fondo img {
  width: 150vw;
  height: auto;
  display: block;
}
.izq {
  left: -100vh;
  width: 100vw;
  z-index: -1;
  opacity: 1;
  transform: rotateY(180deg);
}

/* --- Secciones principales --- */
.contenido {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.seccion {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* --- Contenedor de bienvenida --- */
.contenedor {
  border-radius: 20px;
  display: flex;
  justify-content: center;
  z-index: 1;
  background-image: url('img/Hello_my_name_is_sticker.svg.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top;
  filter: drop-shadow(2px 2px 10px rgba(0,0,0,0.75));
  width: 70vw;
  height: 80vh;
  margin: 20px;
}

/* --- Twitch --- */
.twitch {
  width: 100%;
  height: 60vh;
  position: relative;
  z-index: 1;
  align-self: start;
  border-radius: 10px;
}
#twitch-embed {
  width: 100%;
  height: 100%;
}
.twitch iframe {
  width: 100% !important;
  height: 100% !important;
  border-radius: 20px;
  overflow: hidden;
  display: block;
}



/* --- Directos --- */

.directos {
  background-color: #000;
  width: 90%;
  padding: 20px;
  border-radius: 15px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-image: url('img/twitch-logo-png_seeklogo-274042.webp');
  background-size: auto;
  background-position: center;
}

.texto-directos {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.5rem;
  display: flex;
  margin-right: 20px;
  text-decoration: none;
  color: #fff;
}

.texto-directos:hover {
  color: #8401ff;
  cursor: pointer;
  transition: color 0.3s ease;
}

/* --- Instagram --- */
.instagram {
  padding: 20px;
  border-radius: 15px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.instagram iframe {
  width: 70% !important;
  height: 90vh !important;
  border-radius: 20px !important;
  overflow: hidden;
  display: flex;
  box-shadow: 1px 10px 40px #000 !important;
}
.texto-instagram {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  width: 50%;
  font-size: 2rem;
  color: #ffffff;
  text-shadow: 2px 2px #000;
  margin-right: 10px;
  display: flex;
}

/* --- Animaciones y efectos de scroll --- */
.scrolling-item {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s, transform 0.6s;
}
.scrolling-item.visible {
  opacity: 1;
  transform: scale(1);
}
.contenedor-titulo .scrolling-item:nth-child(1) {
  animation-delay: 0.2s;
}

/* --- Tipografía y estilos generales --- */
.graffiti {
  font-family: 'TallAndDark';
  font-size: 6rem;
  position: relative;
  display: flex;
  justify-content: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  align-items: center;
  text-align: center;
  line-height: 1;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 2px 10px #252525;
}

.texto-pagina {
  font-family: 'Segoe UI';
  width: 60%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  color: #fff;
  margin-top: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
}

/* --- Footer --- */
.contenedor-footer {
  margin-top: 10px;
  background-color: rgba(0,0,0,0.8);
  color: #fff;
  text-align: center;
  padding: 10px;
  width: 100%;
  height: 100%;
}

/* --- Responsive --- */
@media (width < 600px) {
  body, .pagina {
    overflow-x: hidden;
  }
  .contenido {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: end;
    padding: 10px;
    margin: 0;
  }
  .titulo {
    font-size: 30vw;
    letter-spacing: 0.02em;
    text-align: center;
    top: 7vh;
    margin: 0 auto;
    width: 100vw;
    display: block;
  }
  .seccion {
    width: 100vw;
    padding: 0;
    margin: 0;
    align-items: center;
    justify-content: center;
  }
  .contenedor {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 95vw;
    height: 40vh;
    margin: 10px 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
  .graffiti {
    font-family: 'TallAndDark';
    font-size: 2.2rem;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 2px 2px #000000;
    padding: 10px 0;
    margin: 0 auto;
    width: 95vw;
    text-align: center;
  }
  .texto-pagina,
  .texto-directos,
  .texto-instagram {
    width: 80vw;
    font-size: 1.1rem;
    margin: 10px auto;
    padding: 8px;
    text-align: center;
    display: block;
  }
  .directos,
  .instagram {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 98vw;
    padding: 10px 0;
    margin: 10px 0;
    border-radius: 10px;
    background-size: 40vw;
    background-position: center;
  }
  .twitch {
    width: 95vw;
    height: 30vh;
    margin: 10px 0;
    align-self: center;
    border-radius: 10px;
  }
  #twitch-embed,
  .twitch iframe {
    width: 100% !important;
    height: 100% !important;
    border-radius: 10px !important;
  }
  .instagram iframe {
    width: 100% !important;
    height: 40vh !important;
    border-radius: 10px !important;
    margin: 0 auto;
    display: block;
  }
  .texto-instagram {
    width: 95vw;
    font-size: 1.1rem;
    margin: 10px auto 0 auto;
    padding: 8px;
    text-align: center;
    display: block;
  }
  .contenedor-footer {
    width: 100vw;
    font-size: 1rem;
    padding: 8px;
    margin: 0;
  }
}

@media (350px> width) {
  .titulo {
    font-size: 25vw;
    letter-spacing: 0.01em;
    top: 7vh;
    text-align: center;
    white-space: nowrap;
  }
  .texto-pagina,
  .texto-directos,
  .texto-instagram {
    width: 80vw;
    font-size: 1rem;
    margin: 10px auto;
    padding: 8px;
    text-align: center;
    display: block;
  }
  .contenedor {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
  .graffiti {
    font-size: 1rem;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 2px 2px #000000;
    padding: 10px 0;
    margin: 0 auto;
    width: 90vw;
    text-align: center;
  }
}


@media (width >= 600px) and (width < 900px) {
  .titulo {
    font-size: 20vw;
    letter-spacing: 0.02em;
    top: 17vh;
    margin: 0 auto;
    display: block;
  }
  .contenedor {
    height: 50vh;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }
  .texto-pagina {
    font-size: 1.5rem;
    padding: 10px;
    margin: 10px auto;
  }
  .graffiti {
    font-size: 2rem;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 2px 2px #000000;
    padding: 10px 0;
    margin: 0 auto;
  }
  .directos,
  .instagram {
    align-items: center;
    justify-content: center;
    width: 98vw;
    padding: 10px 0;
    margin: 10px 0;
    border-radius: 10px;
    background-size: 40vw;
    background-position: center;
  }
}
@media (width >= 900px) and (width < 1200px) {
  .titulo {
    font-size: 16vw;
    top: 35vh;
    letter-spacing: 0.02em;
    margin: 0 auto;
    display: block;
  }
  .contenedor {
    height: 80vh;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }
  .instagram {
    padding: 20px;
    width: 90%;
    border-radius: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .instagram iframe {
    width: 70% !important;
    height: 90vh !important;
    border-radius: 20px !important;
    overflow: hidden;
    display: flex;
    box-shadow: 1px 10px 40px #000 !important;
  }

  .texto-instagram {
    display: flex;
    font-size: 4.1rem;
    white-space: normal;
    width: 70vw;
    margin: 10px auto;
    padding: 8px;
    text-align: center;
  }
  .texto-directos {
    font-size: 2rem;
    display: flex;
    margin-right: 20px;
    text-decoration: none;
    color: #fff;
  }
  
}


 /* --- Animaciones --- */
@keyframes entrada-desde-arriba {
  0% { opacity: 0; transform: translateY(-50px);}
  100% { opacity: 1; transform: translateY(0);}
}
@keyframes bounce-in {
  0% { transform: scale(0.5); opacity: 1;}
  100% { transform: scale(4); opacity: 1;}
}

/* --- Fuentes personalizadas --- */
@font-face {
  font-family: 'Tall';
  src: url('fonts/TallGrass.ttf') format('truetype');
}
@font-face {
  font-family: 'Pask';
  src: url('fonts/Pask-Personal\ Use.otf') format('truetype');
}
@font-face {
  font-family: 'Tag';
  src: url('fonts/aAnotherTag.ttf') format('truetype');
}
@font-face {
  font-family: 'TallAndDark';
  src: url('fonts/talldark.ttf') format('truetype');
}