* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #fff;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px 20px 20px;
}

.frases {
  width: 80%;
  text-align: left;
  margin-bottom: 30px;
}

.frase-wrapper {
  display: block;
  width: fit-content;
  min-width: 34ch;
}

.frase {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #1f1f1f;
  font-weight: 300;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  display: inline-block;
  border-right: 2px solid transparent;
}

/* Animación separada para frase 1 */
.frase-1 {
  font-style: italic;
  border-right-color: #333;
  animation-name: escribir-1, cursor-1;
  animation-duration: 4s, 4s;
  animation-timing-function: steps(34, end), steps(1, end);
  animation-delay: 0s, 0s;
  animation-fill-mode: forwards, forwards;
}

/* Animación separada para frase 2 */
.frase-2 {
  margin-left: 2em;
  border-right-color: transparent;
  animation-name: escribir-2, cursor-2;
  animation-duration: 4s, 4s;
  animation-timing-function: steps(33, end), steps(1, end);
  animation-delay: 4.2s, 4.2s;
  animation-fill-mode: forwards, forwards;
}

/* Logo fade + zoom */
.logo {
  max-width: 100%;
  height: auto;
  width: 420px;
  margin: 30px 0 20px 0;
  opacity: 0;
  transform: scale(0.8);
  animation: aparecerLogo 1.5s ease-out forwards;
  animation-delay: 8.5s;
}

/* Próximamente */
.proximamente {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #555;
  margin-top: 10px;
  text-align: center;
  font-style: italic;
  opacity: 0;
  animation: aparecerTexto 1.5s ease-out forwards;
  animation-delay: 10.2s;
}

/* Keyframes */

@keyframes escribir-1 {
  from { width: 0; }
  to { width: 34ch; }
}

@keyframes escribir-2 {
  from { width: 0; }
  to { width: 33ch; }
}

@keyframes cursor-1 {
  0%, 98% { border-right-color: #333; }
  100% { border-right-color: transparent; }
}

@keyframes cursor-2 {
  0%, 4% { border-right-color: transparent; }
  5%, 98% { border-right-color: #333; }
  100% { border-right-color: transparent; }
}

@keyframes aparecerLogo {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes aparecerTexto {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (min-width: 768px) {
  .logo {
    width: 500px;
  }

  .frase {
    font-size: 2rem;
  }

  .proximamente {
    font-size: 1.6rem;
  }

  .frases {
    width: 60%;
  }
}
