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

html, body {
  overflow-x: hidden;
  
  -webkit-overflow-scrolling: touch;
}

body {
  background-color: #0b001a;
  overflow-x: hidden;
}

.world {
  background-color: transparent;
  background-image: none;
  background-size: auto 100%;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 1000vw;
  height: 100vh;
height: 100svh;
height: 100dvh;
  transition: transform 0.2s ease-out;
  will-change: transform;
  pointer-events: auto;
}



.level {
  width: 600vw;
  height: 100vh;
height: 100svh;
height: 100dvh;
  position: relative;
}

.plataforma {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background-color: #333;
}

.avatar-wrapper {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.1s ease-out;
  z-index: 10;
}

.avatar {
  width: 230px;
  height: 230px; /* Forzamos altura fija */
  object-fit: contain;
  image-rendering: auto;
  pointer-events: none;
  transition: filter 0.4s ease, box-shadow 0.4s ease;
  transform: translateX(0); 
}


.avatar.super-saiyan {
  width: 230px;
  height: 230px; /* Forzamos altura fija */
  -webkit-filter: drop-shadow(0 0 10px #00f2ff); filter: drop-shadow(0 0 10px #00f2ff); /* ← Correcto */
  animation: resplandor 1.5s infinite alternate ease-in-out;
  object-fit: contain;
  image-rendering: auto;
  pointer-events: none;
  transition: filter 0.4s ease, box-shadow 0.4s ease;
  transform: translateX(0); /* ← asegura que no se desplace */
}



/* Animación de resplandor */
@keyframes resplandor {
  0% {
    -webkit-filter: drop-shadow(0 0 6px #00f2ff); filter: drop-shadow(0 0 6px #00f2ff);
  }
  50% {
    -webkit-filter: drop-shadow(0 0 6px #4bdcec); filter: drop-shadow(0 0 6px #4bdcec);
  }
  100% {
    -webkit-filter: drop-shadow(0 0 15px #abe7f9); filter: drop-shadow(0 0 15px #abe7f9);
  }
}


/* Salto aplicado al wrapper, no al avatar directamente */
.avatar-wrapper.salta {
  animation: salto-avatar 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


.titulo {
  position: absolute;
  top: 40px;
  left: 100px;
  font-size: 2rem;
  font-family: sans-serif;
  color: white;
}

.texto {
  position: absolute;
  top: 140px;
  left: 100px;
  font-size: 1.2rem;
  color: #333;
  max-width: 70%;
}

.lista {
  position: absolute;
  top: 140px;
  left: 100px;
  font-size: 1.2rem;
  list-style: none;
  padding: 0;
}

.lista li {
  margin-bottom: 10px;
}

.decor {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.ciudad {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 900px;
  opacity: 0.85;
  z-index: 3;
}

@keyframes entrada-ciudad {
  0% { top: -200px; opacity: 0; }
  100% { top: 450px; opacity: 0.7; }
}

.nube {
  width: 480px;
  position: absolute;
  top: 150px;
  opacity: 0.7;
  z-index: 2;
  animation: entrada-nube 1.2s ease-out forwards, flotar-sutil 12s ease-in-out infinite;
  animation-delay: 0s, 1.2s;
}

.nube1 { top: -1000px; left: 0px; animation-delay: 0s; }
.nube2 { top: -1000px; left: 350px; animation-delay: 2s; }
.nube3 { top: -1000px; left: 550px; animation-delay: 1s; }

@keyframes entrada-nube {
  0% { top: -200px; opacity: 0; }
  100% { top: 450px; opacity: 0.7; }
}

.sol {
  width: 170px;
  position: absolute;
  top: 150px;
  opacity: 0.7;
  z-index: 1;
  animation: entrada-sol 1.2s ease-out forwards, flotar-sol 2s ease-in-out infinite;
  animation-delay: 0s, 1.2s;
}

.sol1 {
  top: -1000px;
  left: 400px;
  animation-delay: 3s, 1.2s;
}

@keyframes entrada-sol {
  0% { top: -200px; opacity: 0; }
  100% { top: 450px; opacity: 0.7; }
}

@keyframes flotar-sol {
  0% { transform: translateX(0px); }
  50% { transform: translateX(20px); }
  100% { transform: translateX(0px); }
}

.formacion {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80%;
  max-width: 900px;
  opacity: 1;
  z-index: 1;
}

.pen {
  width: 170px;
  position: absolute;
  top: 150px;
  opacity: 0.7;
  z-index: 3;
  animation: entrada-pen 1.2s ease-out forwards, flotar-pen 2s ease-in-out infinite;
  animation-delay: 0s, 1.2s;
}

@keyframes entrada-pen {
  0% { top: -200px; opacity: 0; }
  100% { top: 250px; opacity: 1; }
}

@keyframes flotar-pen {
  0% { transform: translateX(0px); }
  50% { transform: translateX(20px); }
  100% { transform: translateX(0px); }
}

.habilidades .huerto {
  position: absolute;
  bottom: 0;
  left: 100px;
  display: flex;
  gap: 40px;
  z-index: 2;
}

.planta {
  width: 40px;
  background-color: #228B22;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 1s ease-out;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  font-size: 0.9rem;
  color: white;
  padding: 4px;
  border-radius: 5px 5px 0 0;
}

.planta1 { height: 80px; transition-delay: 0.2s; }
.planta2 { height: 120px; transition-delay: 0.4s; }
.planta3 { height: 60px; transition-delay: 0.6s; }
.planta4 { height: 100px; transition-delay: 0.8s; }

.planta.crecida { transform: scaleY(1); }

.habilidades-container {
  position: absolute;
  bottom: 250px;
  left: 50%;
  transform: translateX(-50%);
  height: 500px;
  display: flex;
  flex-direction: row;
  gap: 60px;
  align-items: flex-end;
  z-index: 5;
}

.barra {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  color: white;
  font-size: 1rem;
  height: 70%;
  width: 120px;
  position: relative;
}

.label {
  margin-bottom: 12px;
  font-size: 1rem;
  color: #ffffff;
  font-weight: 600;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.progreso {
  width: 100%;
  height: 0%;
  border-radius: 12px;
  background: linear-gradient(to top, #c322ff, #9442ff);
  box-shadow: 0 4px 12px rgba(0, 204, 153, 0.4);
  transition: height 3s ease-out;
}

.progreso.auto {
  width: 100%;
  height: 0%;
  border-radius: 12px;
  background: linear-gradient(to top, #42ffd3, #42d9ff);
  box-shadow: 0 4px 12px rgba(0, 204, 153, 0.4);
  transition: height 3s ease-out;
}

.diseño.crecer { height: 90%; }
.uiux.crecer { height: 80%; }
.ilustracion.crecer { height: 60%; }
.auto.crecer { height: 75%; }

.niveles {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: space-between;
  height: 70%;
  padding-right: 20px;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  text-align: center;
}

.niveles span {
  display: inline-block;
  padding: 14px 14px;
  background: #1e1e2f;
  color: #00fff7;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease-in-out;
  animation: pulse 2.5s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.progreso.crecer {
  box-shadow: 0 0 20px rgba(0, 204, 153, 0.6);
}

.titulo-central {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.2rem;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  color: #ffffff;
  text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.4);
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 10;
  background: linear-gradient(to right, #c322ff, #9442ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes caer-avatar {
  0% { transform: translate(-50%, -1000px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

.avatar.caida {
  animation: caer-avatar 1s ease-out forwards;
}

@keyframes bajar-nivel {
  0% { transform: translate(-50%, 0); }
  100% { transform: translate(-50%, 160px); }
}

@keyframes subir-nivel {
  0% { transform: translate(-50%, 160px); }
  100% { transform: translate(-50%, 0); }
}

.avatar.baja-nivel {
  animation: bajar-nivel 0.5s forwards ease-out;
}

.avatar.sube-nivel {
  animation: subir-nivel 0.5s forwards ease-out;
}

.camara {
  position: fixed;
  width: 100%;
  height: 100vh;
height: 100svh;
height: 100dvh;
  overflow: hidden;
  top: 0;
  left: 0;
  z-index: 100;
  pointer-events: none;
}

@keyframes salto-avatar {
  0% { transform: translate(-50%, 0); }
  30% { transform: translate(-50%, -120px); }  /* más alto */
  50% { transform: translate(-50%, -120px); }  /* mantiene arriba */
  100% { transform: translate(-50%, 0); }
}

.avatar.salta {
  animation: salto-avatar 0.6s ease-out;
}

.obstaculo {
  position: absolute;
  margin-left: 100px;
  bottom: 120px;
  width: 130px;
  z-index: 5;
}

.obstaculo-about {
  left: 320px;
}


.name {
  position: absolute;
  top: -800px; /* empieza fuera de pantalla */
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  opacity: 0;
  animation: caer-name 1s ease-out forwards, brillo-neon 5s infinite;
  z-index: 10;
}

/* Animación de caída */
@keyframes caer-name {
  0% {
    top: -800px;
    opacity: 0;
  }
  100% {
    top: 5%; /* ajusta según donde quieres que se detenga */
    opacity: 1;
  }
}


.next-level {
  position: absolute;
  top: -800px; /* empieza fuera de pantalla */
  left: 50%;
  transform: translateX(-50%);
  width: 350px;
  opacity: 0;
  animation: caer-next-level 1s ease-out forwards, brillo-neon 5s infinite;
  z-index: 10;
}

/* Animación de caída */
@keyframes caer-next-level {
  0% {
    top: -800px;
    opacity: 0;
  }
  100% {
    top: 10%; /* ajusta según donde quieres que se detenga */
    opacity: 1;
  }
}

/* Efecto de brillo tipo neón */
@keyframes brillo-neon {
  0%   { -webkit-filter: drop-shadow(0 0 2px #c322ff); filter: drop-shadow(0 0 2px #c322ff); opacity: 1; }
  10%  { -webkit-filter: drop-shadow(0 0 8px #c322ff); filter: drop-shadow(0 0 8px #c322ff); opacity: 0.95; }
  20%  { -webkit-filter: drop-shadow(0 0 2px #c322ff); filter: drop-shadow(0 0 2px #c322ff); opacity: 1; }
  30%  { -webkit-filter: drop-shadow(0 0 8px #c322ff); filter: drop-shadow(0 0 8px #c322ff); opacity: 0.9; }
  40%  { -webkit-filter: drop-shadow(0 0 2px #9442ff); filter: drop-shadow(0 0 2px #9442ff); opacity: 1; }
  60%  { -webkit-filter: drop-shadow(0 0 8px #9442ff); filter: drop-shadow(0 0 8px #9442ff); opacity: 0.95; }
  80%  { -webkit-filter: drop-shadow(0 0 2px #9442ff); filter: drop-shadow(0 0 2px #9442ff); opacity: 1; }
  100% { -webkit-filter: drop-shadow(0 0 8px #9442ff); filter: drop-shadow(0 0 8px #9442ff); opacity: 0.95; }
}


.hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}



.suelo-continuo {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 160px; /* Ajusta según altura del SVG */
  width: 100%;
  background-image: url("assets/suelo_tierra.svg");
  background-repeat: repeat-x;
  background-size: contain;
  z-index: 2; /* Debajo del avatar, encima del fondo */
  pointer-events: none;
}


.objeto-education {
  opacity: 1;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
  max-width: 280px;
  z-index: 6;
}

.objeto {
  opacity: 1;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
  max-width: 350px;
  z-index: 6;
}

.decoraciones {
  position: absolute;
  bottom: 430px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  z-index: 2;
  pointer-events: none;
}



.cartel {
  position: absolute;
  width: 350px;
  max-width: none;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  height: auto;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  animation: entrada-cartel 1s ease-out forwards;
}


@keyframes entrada-cartel {
  0% {
    transform: translateX(-50%) translateY(-40px);
    opacity: 0;
  }
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}



.decor-cartel1 {
  animation-delay: 0s;
}
.decor-cartel2 {
  animation-delay: 1s;
}
.decor-cartel3 {
  animation-delay: 2s;
}




@keyframes flotar {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

@keyframes entrada-flotante {
  0% {
    opacity: 0;
    transform: translateY(-100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.visible .decor-cartel1 {
  animation: entrada-flotante 1s ease-out forwards, flotar 4s ease-in-out infinite;
  animation-delay: 0s, 1s;
}

.visible .decor-cartel2 {
  animation: entrada-flotante 1s ease-out forwards, flotar 4s ease-in-out infinite;
  animation-delay: 0.5s, 1.5s;
}

.visible .decor-cartel3 {
  animation: entrada-flotante 1s ease-out forwards, flotar 4s ease-in-out infinite;
  animation-delay: 1s, 2s;
}



@keyframes entrada-objeto {
  0% {
    opacity: 0;
    transform: translateY(-300px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flotar-cartel {
  0% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
  100% { transform: translateX(-50%) translateY(0); }
}

.cartel.visible {
  animation: entrada-cartel 1s ease-out forwards, flotar-cartel 4s ease-in-out infinite;
}


@keyframes entrada-cartel {
  0% {
    transform: translateX(-50%) translateY(-40px);
    opacity: 0;
  }
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.boton-transformar {
  margin-top: 200px;
  left: 43%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  padding: 20px 50px;
  background: linear-gradient(45deg, #c322ff, #5d1378);
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  animation: pulse-btn 2s infinite;
  z-index: 20;
  position: absolute;
  
}

@keyframes pulse-btn {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px #c322ff; }
  50% { transform: scale(1.03); box-shadow: 0 0 20px #5d1378; }
}




.btn-transformar-svg {
  width: 70px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
  z-index: 999;
  position: relative;
}

.btn-transformar-svg:hover {
  transform: scale(1.1);
  -webkit-filter: drop-shadow(0 0 8px #1ee9ec); filter: drop-shadow(0 0 8px #1ee9ec);
}

.transformador-container {
  position: absolute;
  bottom: 450px;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
}


.objetos-desintegrables {
  position: absolute;
  bottom: 250px;
  left: 30%;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
  z-index: 3;
  pointer-events: none;
}


.desintegrable {
  max-width: 80px;
  opacity: 1;
  -webkit-filter: blur(0); filter: blur(0);
  animation: flotar-objeto 4s ease-in-out infinite;
}

.objetos-desintegrables2 {
  position: absolute;
  bottom: 250px;
  left: 30%;
  transform: translateX(-50%);
  display: flex;
  gap: 60px;
  z-index: 3;
  pointer-events: none;
}


.desintegrable2 {
  max-width: 100px;
  opacity: 1;
  -webkit-filter: blur(0); filter: blur(0);
  animation: flotar-objeto 4s ease-in-out infinite;
}


@keyframes dispersar {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
    -webkit-filter: blur(0); filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate(var(--x, 0px), var(--y, -400px)) rotate(20deg);
    -webkit-filter: blur(4px); filter: blur(4px);
  }
}

.desintegrable.desintegrado {
  animation: dispersar 0.6s ease-out forwards;
}

@keyframes flotar-objeto {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Zigzag de altura */
.objetos-desintegrables .desintegrable:nth-child(odd) {
  margin-top: -20px;
}
.objetos-desintegrables .desintegrable:nth-child(even) {
  margin-top: 20px;
}

/* Quitar flotación a graduate */
/*
.objeto-education.decor-cartel1,
.objeto-education.decor-cartel2,
.objeto-education.decor-cartel3 {
  animation: none !important;
}
*/

.skyline-madrid {
  position: absolute;
  bottom: 100px;
  width: 100%;
  height: 300px;
  z-index: 1;
  pointer-events: none;
}

.edificio {
  position: absolute;
  opacity: 0;
  transform: translateY(100px) scale(0.9);
  transition: opacity 1.4s ease-out, transform 1.4s ease-out;
  max-height: 700px;
}

/* Posiciones personalizadas y profundidad */

.edificio1 {
  left: 10%;
  height: 300px;
  bottom: 50px;
  z-index: 1;
}
.edificio2 {
  left: 50%;
  height: 400px;
  bottom: 50px;
  z-index: 2;
}
.edificio3 {
  left: 8%;
  height: 530px;
  bottom: 50px;
  z-index: 8;
  
}
.edificio5 {
  left: 54%;
  height: 150px;
  bottom: 50px;
  z-index: 3;
}
.edificio6 {
  left: 24%;
  height: 230px;
  bottom: 40px;
  z-index: 4;
}
.edificio4 {
  left: 70%;
  height: 530px;
  bottom: -70px;
  z-index: 5;
}

/* Animación al hacerse visible */
.skyline-madrid.visible .edificio {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Delays escalonados */
.skyline-madrid.visible .edificio1 { transition-delay: 0.6s; }
.skyline-madrid.visible .edificio2 { transition-delay: 1s; }
.skyline-madrid.visible .edificio3 { transition-delay: 0s; }
.skyline-madrid.visible .edificio5 { transition-delay: 0.4s; }
.skyline-madrid.visible .edificio6 { transition-delay: 0.2s; }
.skyline-madrid.visible .edificio4 { transition-delay: 1.4s; }



/* Animaciones con delay diferenciada */
.skyline-madrid.visible .edificio:nth-child(1) {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.3s;
}
.skyline-madrid.visible .edificio:nth-child(2) {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.6s;
}
.skyline-madrid.visible .edificio:nth-child(3) {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.9s;
}
.skyline-madrid.visible .edificio:nth-child(4) {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 1.2s;
}
.skyline-madrid.visible .edificio:nth-child(5) {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 1.5s;
}
.skyline-madrid.visible .edificio:nth-child(6) {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 1.8s;
}


.skyline-ciudad2 {
  position: absolute;
  bottom: 100px;
  width: 100%;
  height: 300px;
  z-index: 1;
  pointer-events: none;
}

.skyline-ciudad2 .edificio {
  position: absolute;
  opacity: 0;
  transform: translateY(100px) scale(0.9);
  transition: opacity 1.4s ease-out, transform 1.4s ease-out;
}

/* Posiciones, tamaños y profundidad personalizadas */
.ciudad2-1  { left: 3%;   height: 280px; bottom: 25px; z-index: 6; }
.ciudad2-2  { left: 6%;  height: 180px; bottom: 70px; z-index: 2; }
.ciudad2-3  { left: 5%;  height: 260px; bottom: 80px; z-index: 3; }
.ciudad2-4  { left: 22%;  height: 280px; bottom: 240px; z-index: 2; }
.ciudad2-5  { left: 30%;  height: 470px; bottom: 80px; z-index: 4; }
.ciudad2-6  { left: 37%;  height: 450px; bottom: 60px; z-index: 3; }
.ciudad2-7  { left: 44%;  height: 450px; bottom: 70px; z-index: 4; }
.ciudad2-8  { left: 52%;  height: 450px; bottom: 50px; z-index: 2; }
.ciudad2-9  { left: 59%;  height: 250px; bottom: 70px; z-index: 3; }
.ciudad2-10 { left: 71%;  height: 250px; bottom: 65px; z-index: 4; }

/* Animación de entrada escalonada */
.skyline-ciudad2.visible .edificio {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.skyline-ciudad2.visible .ciudad2-1  { transition-delay: 0s; }
.skyline-ciudad2.visible .ciudad2-2  { transition-delay: 0.2s; }
.skyline-ciudad2.visible .ciudad2-3  { transition-delay: 0.5s; }
.skyline-ciudad2.visible .ciudad2-4  { transition-delay: 1.5s; }
.skyline-ciudad2.visible .ciudad2-5  { transition-delay: 1.8s; }
.skyline-ciudad2.visible .ciudad2-6  { transition-delay: 2s; }
.skyline-ciudad2.visible .ciudad2-7  { transition-delay: 2.2s; }
.skyline-ciudad2.visible .ciudad2-8  { transition-delay: 2.4s; }
.skyline-ciudad2.visible .ciudad2-9  { transition-delay: 0.7s; }
.skyline-ciudad2.visible .ciudad2-10 { transition-delay: 0.9s; }


.hobbies-objetos {
  position: absolute;
  bottom: 400px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  pointer-events: auto;
}


.fila-hobbies {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 20px;
}

@keyframes flotar-hobby {
  0%   { transform: translateY(0) scale(1); }
  50%  { transform: translateY(-10px) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}


.hobby-desintegrable {
  animation: flotar-hobby 4s ease-in-out infinite;
}

.hobby-desintegrable:nth-child(odd) {
  animation-delay: 0s;
}

.hobby-desintegrable:nth-child(even) {
  animation-delay: 2s;
}



/* === Estilos corregidos para ciudad3 === */

.skyline-ciudad3 {
  position: absolute;
  bottom: 100px;
  width: 100%;
  height: 300px;
  z-index: 1;
  pointer-events: none;
}
.skyline-ciudad3 .edificio {
  position: absolute;
  opacity: 0;
  /*transform: translateY(100px) scale(0.9);*/
  transition: opacity 1.4s ease-out, transform 1.4s ease-out;
}

.skyline-ciudad3.visible .edificio {
  opacity: 1;
  transform: translateY(0) scale(1);
}


.ciudad3-1  { left: 50%;   height: 370px; bottom: 300px; z-index: 99; }
.ciudad3-2  { left: 54%;  height: 180px; bottom: 520px; z-index: 7; }
.ciudad3-3  { left: 42%;  height: 150px; bottom: 370px; z-index: 6; }
.ciudad3-4  { left: 75%;  height: 80px; bottom: 340px; z-index: 2; }
.ciudad3-5  { left: 55%;  height: 150px; bottom: 240px; z-index: 4; }
.ciudad3-6  { left: 56%;  height: 60px; bottom: 350px; z-index: 3; }
.ciudad3-7  { left: 44%;  height: 100px; bottom: 550px; z-index: 4; }
.ciudad3-8  { left: 40%;  height: 80px; bottom: 465px; z-index: 2; }
.ciudad3-9  { left: 70%;  height: 110px; bottom: 400px; z-index: 5; }
.ciudad3-10 { left: 45%;  height: 350px; bottom: 250px; z-index: 1; }
.ciudad3-1  { transition-delay: 0s; }
.ciudad3-2  { transition-delay: 0s; }
.ciudad3-3  { transition-delay: 0s; }
.ciudad3-4  { transition-delay: 0s; }
.ciudad3-5  { transition-delay: 0s; }
.ciudad3-6  { transition-delay: 0s; }
.ciudad3-7  { transition-delay: 0s; }
.ciudad3-8  { transition-delay: 0s; }
.ciudad3-9  { transition-delay: 0s; }
.ciudad3-10 { transition-delay: 0s; }
.skyline-ciudad3.visible .ciudad3-1  { transition-delay: 0s; }
.skyline-ciudad3.visible .ciudad3-2  { transition-delay: 0s; }
.skyline-ciudad3.visible .ciudad3-3  { transition-delay: 0s; }
.skyline-ciudad3.visible .ciudad3-4  { transition-delay: 0s; }
.skyline-ciudad3.visible .ciudad3-5  { transition-delay: 0s; }
.skyline-ciudad3.visible .ciudad3-6  { transition-delay: 0s; }
.skyline-ciudad3.visible .ciudad3-7  { transition-delay: 0s; }
.skyline-ciudad3.visible .ciudad3-8  { transition-delay: 0s; }
.skyline-ciudad3.visible .ciudad3-9  { transition-delay: 0s; }
.skyline-ciudad3.visible .ciudad3-10 { transition-delay: 0s; }





.ux-canvas-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2%;
  
}



.portfolio-level {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
height: 100svh;
height: 100dvh;
  background: transparent;
}



.portfolio-screen {
  width: 100%;
  height: 340px;
  margin: 20px auto;
  background-color: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 4px solid #62eff9;
  border-radius: 12px;
 position: relative;}

.portfolio-screen img:not(.arrow-icon) {
  max-width: 100%;
  max-height: 100%;
}




.portfolio-container {
  text-align: center;
  margin-bottom: 300px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portfolio-screen {
  width: 100%;
  height: 340px;
  margin: 20px;
  background-color: #11111100;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 0px solid #62eff9;
  border-radius: 12px;
  position: relative;
}

.portfolio-buttons {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  gap: 300px;
}








.puntos-flotantes {
  position: absolute;
  color: #97effe;
  font-size: 44px;
  font-weight: bold;
  animation: flotar 1s ease-out forwards;
  pointer-events: none;
  z-index: 1000;
}

@keyframes flotar {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-50px);
  }
}


.parallax-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1; /* Para que quede detrás del contenido */
}

.layer {
  position: absolute;
  width: 200%;
  height: 100%;
  background-size: cover;
  background-repeat: repeat-x;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Añade la nueva animación de flotación vertical */
@keyframes floatY {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.capa1 {
  animation: scrollParallax1 120s linear infinite;
}

/* Flotación vertical para capa2 */
.capa2 {
  animation: floatY 12s ease-in-out infinite;
  background-repeat: repeat-x;
  background-size: cover;
  will-change: transform;
}

/* Flotación vertical diferente para capa3 */
.capa3 {
  bottom: 0px;
  animation: floatY 16s ease-in-out infinite;
  background-repeat: repeat-x;
  background-size: contain;
  background-position: center;
  will-change: transform;
}

@keyframes scrollParallax1 {
  0% { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}




/* === Estilos corregidos para ciudad3 === */

.skyline-ciudad4 {
  position: absolute;
  bottom: 100px;
  width: 100%;
  height: 300px;
  z-index: 1;
  pointer-events: none;
}
.skyline-ciudad4 .edificio {
  position: absolute;
  opacity: 0;
  transform: translateY(100px) scale(0.9);
  transition: opacity 1.4s ease-out, transform 1.4s ease-out;
}

.skyline-ciudad4.visible .edificio {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ciudad4-1  { left: 34%;   height: 180px; bottom: 400px; z-index: 99; }
.ciudad4-2  { left: 37%;  height: 280px; bottom: 15%; z-index: 7; }
.ciudad4-3  { left: 52%;  height: 300px; bottom: 15%; z-index: 6; }
.ciudad4-4  { left: 40%;  height: 330px; bottom: 0px; z-index: 2; }
.ciudad4-5  { left: 55%;  height: 130px; bottom: 75%; z-index: 4; }
.ciudad4-6  { left: 68%;  height: 160px; bottom: 75%; z-index: 3; }
.ciudad4-7  { left: 48%;  height: 180px; bottom: 400px; z-index: 4; }
.ciudad4-8  { left: 78%;  height: 180px; bottom: 400px; z-index: 2; }
.ciudad4-9  { left: 72%;  height: 180px; bottom: 350px; z-index: 5; }
.ciudad4-10 { left: 60%;  height: 200px; bottom: 370px; z-index: 1; }
.ciudad4-1  { transition-delay: 0s; }
.ciudad4-2  { transition-delay: 0s; }
.ciudad4-3  { transition-delay: 0s; }
.ciudad4-4  { transition-delay: 0s; }
.ciudad4-5  { transition-delay: 0s; }
.ciudad4-6  { transition-delay: 0s; }
.ciudad4-7  { transition-delay: 0s; }
.ciudad4-8  { transition-delay: 0s; }
.ciudad4-9  { transition-delay: 0s; }
.ciudad4-10 { transition-delay: 0s; }
.skyline-ciudad4.visible .ciudad4-1  { transition-delay: 0s; }
.skyline-ciudad4.visible .ciudad4-2  { transition-delay: 0s; }
.skyline-ciudad4.visible .ciudad4-3  { transition-delay: 0s; }
.skyline-ciudad4.visible .ciudad4-4  { transition-delay: 0s; }
.skyline-ciudad4.visible .ciudad4-5  { transition-delay: 0s; }
.skyline-ciudad4.visible .ciudad4-6  { transition-delay: 0s; }
.skyline-ciudad4.visible .ciudad4-7  { transition-delay: 0s; }
.skyline-ciudad4.visible .ciudad4-8  { transition-delay: 0s; }
.skyline-ciudad4.visible .ciudad4-9  { transition-delay: 0s; }
.skyline-ciudad4.visible .ciudad4-10 { transition-delay: 0s; }


.comparison-container {
  position: relative;
  width: 600px;
  height: 300px;
  overflow: hidden;
  margin: 80px auto; /* separación arriba y abajo */
  border-radius: 24px;
  box-shadow: 0 0 60px #aba9a954, 0 0 40px #fffefe5a inset;
  border: 3px solid rgba(255, 255, 255, 0.335);
  background-color: #0a0a0a;
  padding: 0;
  z-index: 2;
}

.img {
  position: absolute;
  top: 0;
  left: 0;
  width: 600px;
  height: 500px;
  object-fit: cover;
  pointer-events: none;
  border-radius: 24px;
}

.img-bottom {
  z-index: 1;
}

.img-top-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  border-radius: 24px 0 0 24px;
}

.img-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 600px;
  height: 500px;
  object-fit: cover;
  border-radius: 24px;
}

/* Línea divisoria con flechas */
.slider-bar {
  position: absolute;
  top: 0;
  left: 50%;
  width: 8px; /* más gruesa */
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 3;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-bar::before {
  content: "⇆";
  font-size: 30px;
  color: rgb(255, 255, 255);
  background: #111;
  padding: 6px 12px;
  border-radius: 50%;
  /*box-shadow: 0 0 10px #c322ff;*/
}

.efecto-neon {
  /*animation: caer-comparador 1s ease-out forwards, brillo-neon 5s infinite;*/
}

@keyframes caer-comparador {
  0% {
    transform: translateY(-200px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Efecto de brillo tipo neón */
@keyframes brillo-neon {
  0%   { -webkit-filter: drop-shadow(0 0 2px #c322ff); filter: drop-shadow(0 0 2px #c322ff); opacity: 1; }
  10%  { -webkit-filter: drop-shadow(0 0 8px #c322ff); filter: drop-shadow(0 0 8px #c322ff); opacity: 0.95; }
  20%  { -webkit-filter: drop-shadow(0 0 2px #c322ff); filter: drop-shadow(0 0 2px #c322ff); opacity: 1; }
  30%  { -webkit-filter: drop-shadow(0 0 8px #c322ff); filter: drop-shadow(0 0 8px #c322ff); opacity: 0.9; }
  40%  { -webkit-filter: drop-shadow(0 0 2px #9442ff); filter: drop-shadow(0 0 2px #9442ff); opacity: 1; }
  60%  { -webkit-filter: drop-shadow(0 0 8px #9442ff); filter: drop-shadow(0 0 8px #9442ff); opacity: 0.95; }
  80%  { -webkit-filter: drop-shadow(0 0 2px #9442ff); filter: drop-shadow(0 0 2px #9442ff); opacity: 1; }
  100% { -webkit-filter: drop-shadow(0 0 8px #9442ff); filter: drop-shadow(0 0 8px #9442ff); opacity: 0.95; }
}

.slider img,
.level img {
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}





.skyline-ciudad6 {
  position: absolute;
  bottom: 100px;
  width: 100%;
  height: 300px;
  z-index: 1;
  pointer-events: none;
}
.skyline-ciudad6 .edificio {
  position: absolute;
  opacity: 0;
  /*transform: translateY(100px) scale(0.9);*/
  transition: opacity 1.4s ease-out, transform 1.4s ease-out;
}

.skyline-ciudad6.visible .edificio {
  opacity: 1;
  transform: translateY(0) scale(1);
}


.ciudad6-1  { left: 50%;   height: 270px; bottom: 80%; z-index: 99; }

.ciudad6-1  { transition-delay: 0s; }

.skyline-ciudad6.visible .ciudad6-1  { transition-delay: 0s; }


.skyline-ciudad7 {
  position: absolute;
  bottom: 100px;
  width: 100%;
  height: 300px;
  z-index: 1;
  pointer-events: none;
}
.skyline-ciudad7 .edificio {
  position: absolute;
  opacity: 0;
  /*transform: translateY(100px) scale(0.9);*/
  transition: opacity 1.4s ease-out, transform 1.4s ease-out;
}

.skyline-ciudad7.visible .edificio {
  opacity: 1;
  transform: translateY(0) scale(1);
}


.ciudad7-1  { left: 50%;   height: 270px; bottom: 80%; z-index: 99; }

.ciudad7-1  { transition-delay: 0s; }

.skyline-ciudad7.visible .ciudad7-1  { transition-delay: 0s; }

.skyline-ciudad8 {
  position: absolute;
  bottom: 100px;
  width: 100%;
  height: 300px;
  z-index: 1;
  pointer-events: none;
}
.skyline-ciudad8 .edificio {
  position: absolute;
  opacity: 0;
  /*transform: translateY(100px) scale(0.9);*/
  transition: opacity 1.4s ease-out, transform 1.4s ease-out;
}

.skyline-ciudad8.visible .edificio {
  opacity: 1;
  transform: translateY(0) scale(1);
}


.ciudad8-1  { left: 50%;   height: 270px; bottom: 80%; z-index: 99; }

.ciudad8-1  { transition-delay: 0s; }

.skyline-ciudad8.visible .ciudad8-1  { transition-delay: 0s; }


.skyline-ciudad9 {
  position: absolute;
  bottom: 100px;
  width: 100%;
  height: 300px;
  z-index: 1;
  pointer-events: none;
}
.skyline-ciudad9 .edificio {
  position: absolute;
  opacity: 0;
  /*transform: translateY(100px) scale(0.9);*/
  transition: opacity 1.4s ease-out, transform 1.4s ease-out;
}

.skyline-ciudad9.visible .edificio {
  opacity: 1;
  transform: translateY(0) scale(1);
}


.ciudad9-1  { left: 50%;   height: 270px; bottom: 80%; z-index: 99; }

.ciudad9-1  { transition-delay: 0s; }

.skyline-ciudad9.visible .ciudad9-1  { transition-delay: 0s; }










/* === Ajustes para pantallas grandes (Full HD, 2K, 4K) === */
@media (min-width: 1920px) {
  .avatar-wrapper {
    bottom: 150px;
  }

  .avatar {
    width: 260px;
  }

  .camara {
    transform: scale(1.05);
  }

  .titulo-central {
    font-size: 2.8rem;
  }

  .titulo {
    font-size: 2.4rem;
  }

  .texto,
  .lista {
    font-size: 1.4rem;
  }

  .cartel {
    width: 400px;
  }
}

/* Contact card — centrado en la sección Contacto, sin animación ni movimiento */
.contact-card{
  position: absolute;
  top: 50%;              /* mitad de los 100vh de .level */
  left: 50vw;            /* mitad del viewport, no del ancho 600vw de la sección */
  transform: translate(-50%, -50%);
  z-index: 150;          /* por encima del decorado, por debajo de overlays de cámara */
  width: min(720px, 90vw);
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: 1.25rem;
  -webkit-backdrop-filter: blur(8px);backdrop-filter: blur(8px);
  -webkit--webkit-backdrop-filter: blur(8px);backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  text-align: center;
}

/* Hover sin mover: solo sombra/saturación */
.contact-card:hover{
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  background: rgba(255,255,255,0.12);
  -webkit-filter: saturate(1.05); filter: saturate(1.05);
}

/* 2 columnas (Portfolio + LinkedIn) */
.contact-grid{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0.75rem;
}

/* Estilos base comunes */


/* Hover común */
/* Estilo específico para Porfolio */


/* Estilo específico para LinkedIn */


/* === Scroll Hint: fixed note guiding users to scroll === */
.scroll-hint{
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  border-radius: 999px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  color: #fff;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  pointer-events: none; /* non-blocking */
  opacity: 1;
  transition: opacity .5s ease, visibility .5s linear .5s;
  animation: scrollHintFloat 2s ease-in-out infinite;
}

.scroll-hint .scroll-icon{
  display:inline-block;
  font-size: 16px;
  line-height: 1;
  transform: translateY(0);
  animation: scrollIconBounce 1.4s ease-in-out infinite;
}

@keyframes scrollIconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes scrollHintFloat {
  0%, 100% { transform: translate(-50%,0); }
  50% { transform: translate(-50%,-6px); }
}

/* Hide after we add the 'hidden' class from JS */
.scroll-hint.hidden{
  opacity: 0;
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce){
  .scroll-hint{ animation: none; }
  .scroll-hint .scroll-icon{ animation: none; }
}


/* invisible hit slop without changing layout */


@media (pointer: coarse){
  
  
}

/* Feedback visual sin mover la flecha */


@media (pointer: coarse) {
  
  
  
  
}
/* === Arrow buttons: PNG version (clean), adaptive sizes === */
.portfolio-screen { position: relative; }



.arrow-button.left  { left: 14px; }
.arrow-button.right { right: 14px; }





@media (pointer: coarse) {
  .arrow-button.left  { left: 18px; }
  .arrow-button.right { right: 18px; }
  
}

@media (max-width: 360px) {
  
}
/* === Canonical arrow styles (desktop) === */
.portfolio-screen { position: relative; }
.arrow-button{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  z-index: 50;
}
.arrow-button.left  { left: 14px; }
.arrow-button.right { right: 14px; }
.arrow-icon{ width: auto; height: 58px; display: block; pointer-events: none; }
.arrow-button:hover, .arrow-button:active, .arrow-button:focus { transform: translateY(-50%); outline: none; }
/* replaced by gradient-border variant */
/* Variants */
/* Mobile comfortable sizing */
@media (pointer: coarse){
  }


/* === Font family for key contact buttons === */
/* WhatsApp variant using Option A variables */
/* Optional: icon alignment */
/* === Contact layout: desktop horizontal === */
.contact-grid{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.contact-item{ list-style: none; }
/* === Gradient-border hover reveal buttons === */
.contact-link{
  --bg: #6d5ef9;      /* fallback brand */
  --bg2: #8a7bff;
  --ring: rgba(99,102,241,.35);
  --inner: rgba(5,6,45,1);     /* inner background (dark) */
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 3px;                /* gradient border thickness */
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(144deg, var(--bg), var(--bg2) 50%, color-mix(in oklab, var(--bg2), white 10%));
  box-shadow: rgba(0,0,0,0.22) 0 12px 24px -6px;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  font-weight: 700;
}

.contact-link .btn-inner{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 12px 18px;
  border-radius: 10px;
  width: 100%;
  height: 100%;
  background: var(--inner);
  transition: background .3s ease, filter .3s ease;
}

/* Hover/active/focus */
.contact-link:hover .btn-inner{ background: none; }
.contact-link:active{ transform: scale(.98); }
.contact-link:focus-visible{ outline: none; box-shadow: 0 0 0 4px var(--ring), rgba(0,0,0,0.22) 0 12px 24px -6px; }

/* Brand variants */
.contact-link.portfolio{ --bg:#6d5ef9; --bg2:#8a7bff; --ring: rgba(109,94,249,.35); }
.contact-link.linkedin{ --bg:#0a66c2; --bg2:#0e7de9; --ring: rgba(14,125,233,.35); }
.contact-link.whatsapp{ --bg:#25D366; --bg2:#1ebe5d; --ring: rgba(37,211,102,.32); }

/* Icons alignment */
.contact-link svg{ flex: 0 0 auto; }

/* Mobile comfortable sizing preserved */
@media (pointer: coarse){
  .contact-link{ border-radius: 14px; }
  .contact-link .btn-inner{ padding: 14px 20px; border-radius: 12px; }
}
/* === Enforce Open Sans on key contact buttons === */
.contact-link.portfolio,
.contact-link.linkedin,
.contact-link.whatsapp {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans";
  text-transform: uppercase;
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.contact-link .btn-inner { font: inherit; }


/* === Contact area cleanup: hide card chrome and lift buttons === */
.contact-card{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
}

/* Desktop: lift a bit more */
@media (min-width: 769px){
  .contact-card{ margin-top: -48px; }
}

/* Mobile: lift slightly */
@media (max-width: 768px){
  .contact-card{ margin-top: -28px; }
}
