/* Fondo global animado */
body {
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE/Edge */
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Press Start 2P', monospace;
    color: #942541;
    background: transparent;
    scroll-behavior: smooth;
    height: 100%;
  }
  
  .fondo {
    background: url("img/fondo.gif") no-repeat center center fixed;
    background-size: cover;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
  }
  
  /* Encabezado y menú */
  header {
    text-align: center;
    padding: 2rem 1rem 1rem;
  }
  
.titulo-container {
  position: relative;
  display: flex;
  justify-content: center; /* Centra el h1 */
  align-items: center;
}

h1 {
  font-size: 93px;
  color: #942541;
  line-height: 1.2;
  text-align: center;
  z-index: 1; /* Encima si se superpone */
}

/* Posicionamos la imagen a la derecha absoluta */
.avatar {
  position: absolute;
  right: 10rem;
  top: 5%;
  transform: translateY(-50%);
  width: 350px;  /* Más grande */
  height: 350px;
  animation: flipHorizontal 6s linear infinite;
}
  
  @keyframes flipHorizontal {
    0% { transform: rotateY(0); }
    100% { transform: rotateY(360deg); }
  }
  
  
  nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0;
    margin: 1rem 0 2rem;
  }
  
  nav a {
    text-decoration: none;
    color: #942541;
    font-size: 0.8rem;
  }
  
  /* Máquina de escribir */
  .typewriter-container {
    max-width: 80vw;
    margin: 0 auto;
    font-size: 0.8rem;
    text-shadow: 1px 1px 2px #d6708a;
    line-height: 1.6;
    word-wrap: break-word;
    white-space: normal;
    background-color: transparent; /* invisible fondo */
  }
  
  .cursor {
    display: inline-block;
    width: 10px;
    background-color: #942541;
    animation: blink 0.8s step-end infinite;
    position: relative;
    top: -2px;
  }
  
  @keyframes blink {
    50% { background-color: transparent; }
  }
  
  main, section {
    padding: 2rem;
    text-align: center;
    color: #942541;
    background-color: transparent; /* fondo invisible */
  }
  
  footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.7rem;
    color: #942541;
  }
  .musica-inspiracional {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 1rem;
  }
  
  .reproductor {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    font-family: 'Press Start 2P', sans-serif;
  }
  
  .lado-izquierdo {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .cover {
    width: 450px;
    height: 450px;
  }
  
  .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }
  
  .botones {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 14px;
    width: 100%;
  }
  
  .botones button {
    font-size: 2rem;
    background: none;
    color: #942541;
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.3s ease;
  }
  
  .botones button:hover {
    transform: scale(1.2);
    background: rgba(85, 85, 85, 0.2); /* gris con 20% de opacidad */
    border-radius: 8px; /* opcional: para que se vea suave */
  }
  
  
  .descripcion {
    flex: 2; /* o incluso 3 */
    min-width: 700px;
    padding: 0rem 0rem;
    color: #FFFFFF;
    text-shadow: 1px 1px 2px #942541;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  
  .descripcion h3 {
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
  }
  
  .descripcion p {
    font-size: 0.9rem;
    line-height: 1.8;
  }
  