* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Merriweather", serif;
  height: 100vh;
  color: #fff;
  background: #000;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
}

/* Fondo progresivo */
body.step-1 { background: #000; }
body.step-2 { background: linear-gradient(rgb(195 0 0 / 88%), rgb(0 0 0)) }
body.step-3 { background: linear-gradient(#000, #020617); }
body.step-4 { background: linear-gradient(#000, #020617); }
body.step-5 { background: linear-gradient(#000, #020617); }
body.step-6 { background: linear-gradient(#000, #020617); }

#bg-image-groovy {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  background: linear-gradient(232deg, #542e6e, #8e1a1a, #292924);
    background-size: 600% 600%;

    -webkit-animation: backend 6s ease infinite;
    -moz-animation: backend 6s ease infinite;
    animation: backend 6s ease infinite;
}

/* Imagen de fondo */
#bg-image {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.spacer{
  width: 100%; 
  height: 50px;
}

.img-size{
  max-width: 200px;
  margin: auto;
}

.modal-content a{
  color:white;
}

.poster-slot, .final-poster-container{
  margin-top: 40px;
}

@-webkit-keyframes backend {
    0%{background-position:0% 9%}
    50%{background-position:100% 92%}
    100%{background-position:0% 9%}
}
@-moz-keyframes backend {
    0%{background-position:0% 9%}
    50%{background-position:100% 92%}
    100%{background-position:0% 9%}
}
@keyframes backend {
    0%{background-position:0% 9%}
    50%{background-position:100% 92%}
    100%{background-position:0% 9%}
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
}

/* Layout */
main {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step {
  display: none;
  text-align: center;
  padding: 20px;
  max-width: 420px;
  width: 100%;
}

.step.active {
  display: block;
}

/* Texto */
h1 {
  font-size: 2rem;
  margin-bottom: 32px;
}

p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Inputs */
textarea,
input[type="text"] {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  margin-bottom: 24px;
}

.overlay-updated{
  background: #891c1ccc;
  backdrop-filter: blur(10px);
}

textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  resize: none;

  color: #ffbddc;
  font-size: 1.8rem;
  line-height: 1.4;
  text-align: center;

  padding: 0;
  margin-bottom: 40px;

  font-family: "Merriweather", serif;
  height: 240px;
}

textarea::placeholder {
  color: rgba(255, 47, 146, 0.4);
}

textarea:focus {
  outline: none;
  box-shadow: none;
}

textarea {
  transition: font-size 0.3s ease;
}

textarea:not(:placeholder-shown) {
  font-size: 2rem;
}

input[type="file"] {
  margin-bottom: 24px;
  color: #aaa;
}

/* Botones */
button {
  padding: 12px 34px;
  border-radius: 30px;
  border: none;
  background: #bf1b1b;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

button:hover{
  background: white;
  color: #bf1b1b;
}

/* RESULTADO */
.result {
  
}

.story {
  width: 270px;
  height: 480px;
  margin: 0 auto 24px;
  position: relative;
  background: #000;
  overflow: hidden;
}

.poster-text {
  position: absolute;
    z-index: 1;
    width: 100%;
    padding: 20px;
    text-align: center;
}

.poster-text p {
  font-size: 1.6rem;
  margin-top: 6px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.poster-text span {
  font-size: 1rem;
  opacity: 0.8;
}

/* Tipografías */
.font-hand { font-family: 'Caveat', cursive; }
.font-editorial { font-family: 'DM Sans', sans-serif; }
.font-bold { font-family: 'Bebas Neue', sans-serif; }

/* Filtros (base) */
.filter-dark { }
.filter-bw { filter: grayscale(1); }
.filter-cool { filter: hue-rotate(-10deg) saturate(0.7); }

/* Textos finales */
.share-text {
  font-size: 0.95rem;
  opacity: 0.85;
}

.closing {
    margin-top: 24px;
    font-size: 1.4rem;
    opacity: 0.6;
    font-weight: 600;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.controls button {
  width: auto;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  font-size: 0.85rem;
}

.controls button.active {
  background: #2563eb;
}

.step {
  animation: fade 0.6s ease;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.story {
  width: 270px;
  height: 480px;
  margin: 0 auto 24px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.story::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.poster-text {
  position: relative;
  z-index: 1;
}

.story {
  background-color: #000;
}

.poster-text p,
.poster-text span {
  opacity: 1;
}

/* FORMATOS */
.poster {
  margin: 0 auto 24px;
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  filter:
    brightness(0.75)
    contrast(1.1)
    saturate(0.8);
}

/* Story */
.poster.story {
  width: 270px;
  height: 480px;
}

/* Cuadrado */
.poster.square {
  width: 360px;
  height: 360px;
}

/* Facebook Cover */
.poster.cover {
  width: 360px;
  height: 188px;
}

/* Ajustes de texto por formato */

.poster {
  transition: width 0.4s ease, height 0.4s ease;
}

.poster {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(20,30,80,0.5),
      rgba(0,0,0,0.9)
    );
}

.poster {
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-text {
  position: relative;
  max-width: 90%;
}

.music-icon {
  display: inline-block;
  margin-right: 8px;
  font-size: 1.4em;
  opacity: 0.85;
  transform: translateY(-2px);
}

.bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
    filter: brightness(0.35) saturate(0.9);
    background: url(../media/heart-kitty.webp);
    background-position: center;
    background-size: cover;

}

.poster-brand {
    position: absolute;
    bottom: 6px;
    width: 100%;
    text-align: center;
    font-size: 0.45rem;
    letter-spacing: 0.08em;
    opacity: 0.55;
    z-index: 1;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'DM Sans', sans-serif;
}

.upload-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 14px;
  border-radius: 30px;
  font-size: 1rem;
  margin-bottom: 20px;
  cursor: pointer;
  transition: background 0.3s, border 0.3s;
}

.upload-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color:white;
}

.hey-zombie{
    position: fixed;
    bottom: 0;
    left: 50%;
    color: white;
    font-size: 10px;
    letter-spacing: 1px;
    transform: translateX(-50%);
    background: #00000078;
    padding: 6px 10px;
    backdrop-filter: blur(10px);
    font-family: "Lato", sans-serif;
    font-weight: 400;
    width: 92%;
    text-align: center;
    border-radius: 20px 20px 0 0;
}

.hey-zombie a{
  color:white;
}

.logotipe{
      font-size: 30px;
    color: pink;
    border-bottom: 20px;
    display: block;
}

.intro-text {
  font-size: 1.5rem;
  text-align: center;
  opacity: 0;
  height:240px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.start.ready {
  animation: pulseZoom 1s ease-in-out infinite;
}

@keyframes pulseZoom {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  max-width: 400px;
  padding: 30px;
  background: rgba(20, 20, 30, 0.9);
  border-radius: 16px;
  color: white;
  font-size: 0.9rem;
  line-height: 1.6;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: white;
  cursor: pointer;
}

.spotify-btn {
  display: inline-block;
  padding: 12px 20px;
  background: #1DB954;
  color: white;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.spotify-btn:hover {
  background: white;
  color: #1DB954;
}
