@font-face {
  font-family: 'Jersey10';
  src: url('Jersey10-Regular-Dg7L8Xa3.ttf') format('truetype');
}

body {
  margin: 0;
  padding: 0;
  background-color: black;
  color: white;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100vh;
  padding: 0 5%;
}

#text {
  font-size: 4rem;
  white-space: pre-wrap;
  max-width: 60%;
  font-family: 'Jersey10', Arial, sans-serif;
}

#profile-pic {
  max-width: 35%;
  display: none;
  transform: scale(0) rotate(-15deg);
  opacity: 0;
  transition: transform 1.2s ease-out, opacity 1.2s ease-out;
}

#profile-pic.mostrar {
  display: block;
  transform: scale(1) rotate(0deg);
  opacity: 1;
}

section {
  padding: 60px 5%;
  margin: 0 40px;
  background: linear-gradient(135deg, #121212, #1e1e1e);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(249, 168, 212, 0.3);
  color: #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 40px rgba(249, 168, 212, 0.7);
}

section h2 {
  color: #f9a8d4;
  font-family: 'Jersey10', Arial, sans-serif;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 0 0 8px #fcd34d;
  letter-spacing: 1.2px;
}

section p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ddd;
  text-align: center;
}

form input,
form textarea,
form button {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 20px auto;
  padding: 12px 15px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  transition: box-shadow 0.3s ease;
}

form input:focus,
form textarea:focus {
  outline: none;
  box-shadow: 0 0 10px #f9a8d4;
  background-color: #222;
  color: white;
}

form button {
  background: linear-gradient(90deg, #f9a8d4, #fcd34d);
  border: none;
  cursor: pointer;
  font-weight: bold;
  color: black;
  transition: background 0.4s ease;
}

form button:hover {
  background: linear-gradient(90deg, #fcd34d, #f9a8d4);
}

#habilidades {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 30px;
  flex-wrap: wrap;
  padding-top: 30px;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: center;
}

#habilidades img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px #f9a8d4);
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: default;
}

#habilidades img:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 12px #fcd34d);
}

.cohete {
  display: inline-block;
  transition: transform 1s ease-in;
  font-size: 1.5em;
  opacity: 1;
}

.cohete.animar {
  animation: despegar 5s linear forwards;
}

@keyframes despegar {
  0% {
    transform: scale(1) translate(0, 0) rotate(0deg);
    opacity: 1;
  }

  20% {
    transform: scale(1.3) translate(20px, -30px) rotate(10deg);
    opacity: 1;
  }

  40% {
    transform: scale(1.6) translate(60px, -100px) rotate(25deg);
    opacity: 0.95;
  }

  60% {
    transform: scale(2) translate(120px, -250px) rotate(45deg);
    opacity: 0.8;
  }

  80% {
    transform: scale(2.5) translate(180px, -400px) rotate(70deg);
    opacity: 0.5;
  }

  100% {
    transform: scale(3) translate(250px, -600px) rotate(90deg);
    opacity: 0;
  }
}

footer {
  color: #9ca3af;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
  font-family: Arial, sans-serif;
  background-color: black;
  /* opcional para que se vea bien */
}

#footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* centra horizontalmente */
  gap: 10px;
  /* espacio entre el texto y el QR */
  margin-bottom: 15px;
}

#qrcode {
  width: 120px;
  height: 120px;
}

.bienvenido-gradient {
  font-weight: 900;
  font-size: 4rem;
  background: linear-gradient(90deg, #f9a8d4, #fcd34d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* MEDIA QUERIES */
@media (max-width: 1024px) {
  .container {
    flex-direction: column;
    height: auto;
    gap: 30px;
    padding: 40px 5%;
  }

  #text {
    font-size: 3rem;
    max-width: 90%;
    text-align: center;
  }

  #profile-pic {
    max-width: 60%;
  }

  section {
    margin: 20px 0;
    padding: 40px 5%;
  }

  section:hover {
    transform: none;
    box-shadow: 0 0 20px rgba(249, 168, 212, 0.3);
  }

  section h2 {
    font-size: 2rem;
  }

  section p {
    font-size: 1rem;
  }

  #habilidades {
    gap: 20px;
  }

  #habilidades img {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 600px) {
  #text {
    font-size: 2rem;
  }

  #profile-pic {
    max-width: 80%;
  }

  section h2 {
    font-size: 1.5rem;
  }

  section p {
    font-size: 0.9rem;
  }

  #habilidades img {
    width: 50px;
    height: 50px;
  }
}