/* Variables y fuentes */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&family=Poppins:wght@300;400;600&display=swap');

:root {
  --dark-color: #010113;
  --primary-yellow: #e6f331;
  --light-yellow: #ffeb12;
  --accent-orange: #ff5e00;
  --glow-color: rgba(230, 243, 49, 0.6);
  --text-glow: rgba(255, 235, 18, 0.8);
}

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

html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

body {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--dark-color);
  overflow: hidden;
  perspective: 1000px;
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fondo nocturno mejorado con estrellas */
.night {
  position: fixed;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  filter: blur(0.1vmin);
  background-image: radial-gradient(
      ellipse at top,
      transparent 0%,
      var(--dark-color)
    ),
    radial-gradient(
      ellipse at bottom,
      var(--dark-color),
      rgba(145, 233, 255, 0.2)
    ),
    repeating-linear-gradient(
      220deg,
      rgb(0, 0, 0) 0px,
      rgb(0, 0, 0) 19px,
      transparent 19px,
      transparent 22px
    ),
    repeating-linear-gradient(
      189deg,
      rgb(0, 0, 0) 0px,
      rgb(0, 0, 0) 19px,
      transparent 19px,
      transparent 22px
    ),
    repeating-linear-gradient(
      148deg,
      rgb(0, 0, 0) 0px,
      rgb(0, 0, 0) 19px,
      transparent 19px,
      transparent 22px
    ),
    linear-gradient(90deg, rgb(255, 94, 0), rgb(240, 240, 240));
  z-index: 1;
}

/* Estrellas en el fondo */
.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: twinkle 4s ease-in-out infinite;
  opacity: 0.8;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Estrellas fugaces */
.shooting-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.shooting-stars::before,
.shooting-stars::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  animation: shoot 3s linear infinite;
  opacity: 0;
}

.shooting-stars::before {
  top: 20%;
  left: -100px;
  animation-delay: 0s;
}

.shooting-stars::after {
  top: 60%;
  left: -100px;
  animation-delay: 1.5s;
}

@keyframes shoot {
  0% {
    transform: translateX(0) rotate(-45deg);
    opacity: 1;
  }
  100% {
    transform: translateX(120vw) rotate(-45deg);
    opacity: 0;
  }
}

/* Contenedor de dedicatoria */
.dedication-container {
  position: fixed;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  text-align: center;
  width: 90%;
  max-width: 600px;
}

.dedication-text {
  color: #fff;
  text-shadow: 0 0 20px var(--text-glow), 0 0 40px var(--glow-color);
  animation: fadeInDown 2s ease-out forwards;
}

.title {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--light-yellow);
  margin-bottom: 0.5rem;
  animation: glow 2s ease-in-out infinite alternate;
  letter-spacing: 2px;
}

@keyframes glow {
  from { text-shadow: 0 0 10px var(--text-glow), 0 0 20px var(--glow-color); }
  to { text-shadow: 0 0 20px var(--text-glow), 0 0 40px var(--glow-color), 0 0 60px var(--primary-yellow); }
}

.subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: #fff;
  opacity: 0.9;
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: fadeIn 2s ease-out 0.5s forwards;
  opacity: 0;
}

.message {
  background: rgba(0, 0, 0, 0.3);
  padding: 2rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
  animation: fadeIn 2s ease-out 1s forwards;
  opacity: 0;
}

.message .line {
  display: block;
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  line-height: 1.8;
  color: #fff;
  opacity: 0;
  animation: typewriter 3s steps(40) forwards;
}

.message .line:nth-child(1) { animation-delay: 1.5s; }
.message .line:nth-child(2) { animation-delay: 3s; }
.message .line:nth-child(3) { animation-delay: 4.5s; }
.message .line:nth-child(4) { animation-delay: 6s; }

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

.signature {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--light-yellow);
  opacity: 0;
  animation: fadeIn 2s ease-out 7.5s forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Botón especial */
.special-btn {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  background: linear-gradient(135deg, var(--primary-yellow), var(--accent-orange));
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  box-shadow: 0 0 20px var(--glow-color), 0 5px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  overflow: hidden;
  min-height: 44px;
  min-width: 44px;
}

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

.special-btn:hover {
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 0 30px var(--glow-color), 0 0 60px var(--text-glow);
}

.special-btn:active {
  transform: translateX(-50%) scale(0.95);
}

.btn-text {
  position: relative;
  z-index: 2;
}

/* Mensaje especial modal */
.special-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.special-message.active {
  display: flex;
  opacity: 1;
}

.msg-content {
  background: linear-gradient(135deg, rgba(230, 243, 49, 0.1), rgba(255, 94, 0, 0.1));
  border: 2px solid var(--primary-yellow);
  border-radius: 30px;
  padding: 3rem;
  text-align: center;
  max-width: 500px;
  width: 90%;
  animation: modalPop 0.5s ease-out forwards;
  box-shadow: 0 0 50px var(--glow-color);
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalPop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.msg-content h2 {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5rem;
  color: var(--light-yellow);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px var(--glow-color);
}

.msg-content p {
  font-size: 1.2rem;
  color: #fff;
  line-height: 1.8;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.msg-content p:nth-child(2) { animation-delay: 0.2s; }
.msg-content p:nth-child(3) { animation-delay: 0.4s; }
.msg-content p:nth-child(4) { animation-delay: 0.6s; }
.msg-content p:nth-child(5) { animation-delay: 0.8s; }
.msg-content p:nth-child(6) { animation-delay: 1.0s; }
.msg-content p:nth-child(7) { animation-delay: 1.2s; }
.msg-content p:nth-child(8) { animation-delay: 1.4s; }
.msg-content p:nth-child(9) { animation-delay: 1.6s; }
.msg-content p:nth-child(10) { animation-delay: 1.8s; }
.msg-content p:nth-child(11) { animation-delay: 2.0s; }

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

.highlight {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem !important;
  color: var(--light-yellow) !important;
  margin-top: 1rem;
}

.close-btn {
  margin-top: 2rem;
  background: transparent;
  border: 2px solid var(--primary-yellow);
  color: var(--primary-yellow);
  padding: 0.8rem 2rem;
  border-radius: 25px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  min-height: 44px;
  min-width: 44px;
}

.close-btn:hover {
  background: var(--primary-yellow);
  color: #000;
  box-shadow: 0 0 20px var(--glow-color);
}

/* Flores - Estilos originales mejorados */
.flowers {
  position: relative;
  transform: scale(0.9);
  z-index: 10;
}

.flower {
  position: absolute;
  bottom: 10vmin;
  transform-origin: bottom center;
  z-index: 10;
  --fl-speed: 0.8s;
}

.flower--1 {
  left: 20%;
  animation: moving-flower-1 4s linear infinite;
}

.flower--1 .flower__line {
  height: 70vmin;
  animation-delay: 0.3s;
}

.flower--1 .flower__line__leaf--1 { animation: blooming-leaf-right var(--fl-speed) 1.6s backwards; }
.flower--1 .flower__line__leaf--2 { animation: blooming-leaf-right var(--fl-speed) 1.4s backwards; }
.flower--1 .flower__line__leaf--3 { animation: blooming-leaf-left var(--fl-speed) 1.2s backwards; }
.flower--1 .flower__line__leaf--4 { animation: blooming-leaf-left var(--fl-speed) 1s backwards; }
.flower--1 .flower__line__leaf--5 { animation: blooming-leaf-right var(--fl-speed) 1.8s backwards; }
.flower--1 .flower__line__leaf--6 { animation: blooming-leaf-left var(--fl-speed) 2s backwards; }

.flower--2 {
  left: 45%;
  transform: rotate(20deg);
  animation: moving-flower-2 4s linear infinite;
}

.flower--2 .flower__line {
  height: 60vmin;
  animation-delay: 0.6s;
}

.flower--2 .flower__line__leaf--1 { animation: blooming-leaf-right var(--fl-speed) 1.9s backwards; }
.flower--2 .flower__line__leaf--2 { animation: blooming-leaf-right var(--fl-speed) 1.7s backwards; }
.flower--2 .flower__line__leaf--3 { animation: blooming-leaf-left var(--fl-speed) 1.5s backwards; }
.flower--2 .flower__line__leaf--4 { animation: blooming-leaf-left var(--fl-speed) 1.3s backwards; }

.flower--3 {
  left: 70%;
  transform: rotate(-15deg);
  animation: moving-flower-3 4s linear infinite;
}

.flower--3 .flower__line {
  animation-delay: 0.9s;
}

.flower--3 .flower__line__leaf--1 { animation: blooming-leaf-right var(--fl-speed) 2.5s backwards; }
.flower--3 .flower__line__leaf--2 { animation: blooming-leaf-right var(--fl-speed) 2.3s backwards; }
.flower--3 .flower__line__leaf--3 { animation: blooming-leaf-left var(--fl-speed) 2.1s backwards; }
.flower--3 .flower__line__leaf--4 { animation: blooming-leaf-left var(--fl-speed) 1.9s backwards; }

/* Flor 4 - Nueva */
.flower--4 {
  left: 85%;
  transform: rotate(10deg) scale(0.8);
  animation: moving-flower-4 5s linear infinite;
}

.flower--4 .flower__line {
  height: 50vmin;
  animation-delay: 1.2s;
}

.flower--4 .flower__leafs--4 {
  animation: blooming-flower 2s 2s backwards;
}

/* Flor 5 - Nueva */
.flower--5 {
  left: 5%;
  transform: rotate(-25deg) scale(0.85);
  animation: moving-flower-5 4.5s linear infinite;
}

.flower--5 .flower__line {
  height: 65vmin;
  animation-delay: 1.5s;
}

.flower--5 .flower__leafs--5 {
  animation: blooming-flower 2s 2.3s backwards;
}

/* Hojas de flores */
.flower__leafs {
  position: relative;
  animation: blooming-flower 2s backwards;
}

.flower__leafs--1 { animation-delay: 1.1s; }
.flower__leafs--2 { animation-delay: 1.4s; }
.flower__leafs--3 { animation-delay: 1.7s; }
.flower__leafs--4 { animation-delay: 2s; }
.flower__leafs--5 { animation-delay: 2.3s; }

.flower__leafs::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -100%);
  width: 8vmin;
  height: 8vmin;
  background-color: #e7b201;
  filter: blur(10vmin);
}

.flower__leaf {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 8vmin;
  height: 11vmin;
  border-radius: 51% 49% 47% 53%/44% 45% 55% 69%;
  background-color: var(--primary-yellow);
  background-image: linear-gradient(to top, var(--primary-yellow), var(--light-yellow));
  transform-origin: bottom center;
  opacity: 0.9;
  box-shadow: inset 0 0 2vmin rgba(255, 255, 255, 0.5);
}

.flower__leaf--1 { transform: translate(-10%, 1%) rotateY(40deg) rotateX(-50deg); }
.flower__leaf--2 { transform: translate(-50%, -4%) rotateX(40deg); }
.flower__leaf--3 { transform: translate(-90%, 0%) rotateY(45deg) rotateX(50deg); }

.flower__leaf--4 {
  width: 8vmin;
  height: 8vmin;
  transform-origin: bottom left;
  border-radius: 4vmin 10vmin 4vmin 4vmin;
  transform: translate(0%, 18%) rotateX(70deg) rotate(-43deg);
  background-image: linear-gradient(to top, var(--primary-yellow), var(--light-yellow));
  z-index: 1;
  opacity: 0.8;
}

/* Centro blanco de la flor */
.flower__white-circle {
  position: absolute;
  left: -3.5vmin;
  top: -3vmin;
  width: 9vmin;
  height: 4vmin;
  border-radius: 50%;
  background-color: #fff;
}

.flower__white-circle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  border-radius: inherit;
  background-image: repeating-linear-gradient(
      135deg, rgba(0, 0, 0, 0.03) 0px, rgba(0, 0, 0, 0.03) 1px, transparent 1px, transparent 12px
    ),
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.03) 0px, rgba(0, 0, 0, 0.03) 1px, transparent 1px, transparent 12px),
    linear-gradient(90deg, rgb(255, 235, 18), rgb(255, 206, 0));
}

/* Tallo */
.flower__line {
  height: 55vmin;
  width: 1.5vmin;
  background-image: linear-gradient(
      to left,
      rgba(0, 0, 0, 0.2),
      transparent,
      rgba(255, 255, 255, 0.2)
    ),
    linear-gradient(to top, transparent 10%, #056d24, #028137);
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.5);
  animation: grow-flower-tree 4s backwards;
}

/* Hojas del tallo */
.flower__line__leaf {
  --w: 7vmin;
  --h: calc(var(--w) + 2vmin);
  position: absolute;
  top: 20%;
  left: 90%;
  width: var(--w);
  height: var(--h);
  border-top-right-radius: var(--h);
  border-bottom-left-radius: var(--h);
  background-image: linear-gradient(to top, rgba(12, 94, 32, 0.4), #028137);
}

.flower__line__leaf--1 { transform: rotate(70deg) rotateY(30deg); }
.flower__line__leaf--2 { top: 45%; transform: rotate(70deg) rotateY(30deg); }

.flower__line__leaf--3,
.flower__line__leaf--4,
.flower__line__leaf--6 {
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  border-top-left-radius: var(--h);
  border-bottom-right-radius: var(--h);
  left: -460%;
  top: 12%;
  transform: rotate(-70deg) rotateY(30deg);
}

.flower__line__leaf--4 { top: 40%; }
.flower__line__leaf--5 { top: 0; transform-origin: left; transform: rotate(70deg) rotateY(30deg) scale(0.6); }
.flower__line__leaf--6 { top: -2%; left: -450%; transform-origin: right; transform: rotate(-70deg) rotateY(30deg) scale(0.6); }

/* Luces de las flores */
.flower__light {
  position: absolute;
  bottom: 0vmin;
  width: 1vmin;
  height: 1vmin;
  background-color: rgb(255, 251, 0);
  border-radius: 50%;
  filter: blur(0.2vmin);
  animation: light-ans 4s linear infinite backwards;
}

.flower__light:nth-child(odd) { background-color: #028137; }
.flower__light--1 { left: -2vmin; animation-delay: 1s; }
.flower__light--2 { left: 3vmin; animation-delay: 0.5s; }
.flower__light--3 { left: -6vmin; animation-delay: 0.3s; }
.flower__light--4 { left: 6vmin; animation-delay: 0.9s; }
.flower__light--5 { left: -1vmin; animation-delay: 1.5s; }
.flower__light--6 { left: -4vmin; animation-delay: 3s; }
.flower__light--7 { left: 3vmin; animation-delay: 2s; }
.flower__light--8 { left: -6vmin; animation-delay: 3.5s; }

/* Animaciones de movimiento de flores */
@keyframes moving-flower-1 {
  0%, 100% { transform: rotate(2deg); }
  50% { transform: rotate(-2deg); }
}

@keyframes moving-flower-2 {
  0%, 100% { transform: rotate(18deg); }
  50% { transform: rotate(14deg); }
}

@keyframes moving-flower-3 {
  0%, 100% { transform: rotate(-18deg); }
  50% { transform: rotate(-20deg) rotateY(-10deg); }
}

@keyframes moving-flower-4 {
  0%, 100% { transform: rotate(10deg) scale(0.8); }
  50% { transform: rotate(14deg) scale(0.8); }
}

@keyframes moving-flower-5 {
  0%, 100% { transform: rotate(-25deg) scale(0.85); }
  50% { transform: rotate(-22deg) scale(0.85); }
}

@keyframes blooming-leaf-right {
  0% { transform-origin: left; transform: rotate(70deg) rotateY(30deg) scale(0); }
}

@keyframes blooming-leaf-left {
  0% { transform-origin: right; transform: rotate(-70deg) rotateY(30deg) scale(0); }
}

@keyframes grow-flower-tree {
  0% { height: 0; border-radius: 1vmin; }
}

@keyframes blooming-flower {
  0% { transform: scale(0); }
}

@keyframes light-ans {
  0% { opacity: 0; transform: translateY(0vmin); }
  25% { opacity: 1; transform: translateY(-5vmin) translateX(-2vmin); }
  50% { opacity: 1; transform: translateY(-15vmin) translateX(2vmin); filter: blur(0.2vmin); }
  75% { transform: translateY(-20vmin) translateX(-2vmin); filter: blur(0.2vmin); }
  100% { transform: translateY(-30vmin); opacity: 0; filter: blur(1vmin); }
}

/* Pasto */
.flower__grass {
  --c: #028137;
  --line-w: 1.5vmin;
  position: absolute;
  bottom: 12vmin;
  left: -7vmin;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 20;
  transform-origin: bottom center;
  transform: rotate(-48deg) rotateY(40deg);
}

.flower__grass--1 { animation: moving-grass 2s linear infinite; }

.flower__grass--2 {
  left: 2vmin;
  bottom: 10vmin;
  transform: scale(0.5) rotate(75deg) rotateX(10deg) rotateY(-200deg);
  opacity: 0.8;
  z-index: 0;
  animation: moving-grass--2 1.5s linear infinite;
}

.flower__grass--top {
  width: 7vmin;
  height: 10vmin;
  border-top-right-radius: 100%;
  border-right: var(--line-w) solid var(--c);
  transform-origin: bottom center;
  transform: rotate(-2deg);
}

.flower__grass--bottom {
  margin-top: -2px;
  width: var(--line-w);
  height: 25vmin;
  background-image: linear-gradient(to top, transparent, var(--c));
}

.flower__grass__leaf {
  --size: 10vmin;
  position: absolute;
  width: calc(var(--size) * 2.1);
  height: var(--size);
  border-top-left-radius: var(--size);
  border-top-right-radius: var(--size);
  background-image: linear-gradient(to top, transparent, transparent 30%, var(--c));
  z-index: 100;
}

.flower__grass__leaf--1 { top: -6%; left: 30%; --size: 6vmin; transform: rotate(-20deg); animation: growing-grass-ans--1 2s 2.6s backwards; }
.flower__grass__leaf--2 { top: -5%; left: -110%; --size: 6vmin; transform: rotate(10deg); animation: growing-grass-ans--2 2s 2.4s linear backwards; }
.flower__grass__leaf--3 { top: 5%; left: 60%; --size: 8vmin; transform: rotate(-18deg) rotateX(-20deg); animation: growing-grass-ans--3 2s 2.2s linear backwards; }
.flower__grass__leaf--4 { top: 6%; left: -135%; --size: 8vmin; transform: rotate(2deg); animation: growing-grass-ans--4 2s 2s linear backwards; }
.flower__grass__leaf--5 { top: 20%; left: 60%; --size: 10vmin; transform: rotate(-24deg) rotateX(-20deg); animation: growing-grass-ans--5 2s 1.8s linear backwards; }
.flower__grass__leaf--6 { top: 22%; left: -180%; --size: 10vmin; transform: rotate(10deg); animation: growing-grass-ans--6 2s 1.6s linear backwards; }
.flower__grass__leaf--7 { top: 39%; left: 70%; --size: 10vmin; transform: rotate(-10deg); animation: growing-grass-ans--7 2s 1.4s linear backwards; }
.flower__grass__leaf--8 { top: 40%; left: -215%; --size: 11vmin; transform: rotate(10deg); animation: growing-grass-ans--8 2s 1.2s linear backwards; }

@keyframes growing-grass-ans--1 { 0% { transform-origin: bottom left; transform: rotate(-20deg) scale(0); } }
@keyframes growing-grass-ans--2 { 0% { transform-origin: bottom right; transform: rotate(10deg) scale(0); } }
@keyframes growing-grass-ans--3 { 0% { transform-origin: bottom left; transform: rotate(-18deg) rotateX(-20deg) scale(0); } }
@keyframes growing-grass-ans--4 { 0% { transform-origin: bottom right; transform: rotate(2deg) scale(0); } }
@keyframes growing-grass-ans--5 { 0% { transform-origin: bottom left; transform: rotate(-24deg) rotateX(-20deg) scale(0); } }
@keyframes growing-grass-ans--6 { 0% { transform-origin: bottom right; transform: rotate(10deg) scale(0); } }
@keyframes growing-grass-ans--7 { 0% { transform-origin: bottom left; transform: rotate(-10deg) scale(0); } }
@keyframes growing-grass-ans--8 { 0% { transform-origin: bottom right; transform: rotate(10deg) scale(0); } }

.flower__grass__overlay {
  position: absolute;
  top: -10%;
  right: 0%;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  filter: blur(1.5vmin);
  z-index: 100;
}

/* Crecimiento de pasto */
.growing-grass { animation: growing-grass-ans 1s 2s backwards; }
@keyframes growing-grass-ans { 0% { transform: scale(0); } }

@keyframes moving-grass {
  0%, 100% { transform: rotate(-48deg) rotateY(40deg); }
  50% { transform: rotate(-50deg) rotateY(40deg); }
}

@keyframes moving-grass--2 {
  0%, 100% { transform: scale(0.5) rotate(75deg) rotateX(10deg) rotateY(-200deg); }
  50% { transform: scale(0.5) rotate(79deg) rotateX(10deg) rotateY(-200deg); }
}

/* Elementos de crecimiento */
.grow-ans { animation: grow-ans 2s var(--d) backwards; }
@keyframes grow-ans {
  0% { transform: scale(0); opacity: 0; }
}

/* Flor larga */
.flower__g-long {
  --w: 2vmin;
  --h: 6vmin;
  --c: #0d6632;
  position: absolute;
  bottom: 10vmin;
  left: -3vmin;
  transform-origin: bottom center;
  transform: rotate(-30deg) rotateY(-20deg);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  animation: flower-g-long-ans 3s linear infinite;
}

@keyframes flower-g-long-ans {
  0%, 100% { transform: rotate(-30deg) rotateY(-20deg); }
  50% { transform: rotate(-32deg) rotateY(-20deg); }
}

.flower__g-long__top {
  top: calc(var(--h) * -1);
  width: calc(var(--w) + 1vmin);
  height: var(--h);
  border-top-right-radius: 100%;
  border-right: 0.7vmin solid var(--c);
  transform: translate(-0.7vmin, 1vmin);
}

.flower__g-long__bottom {
  width: var(--w);
  height: 50vmin;
  transform-origin: bottom center;
  background-image: linear-gradient(to top, transparent 30%, var(--c));
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.5);
  clip-path: polygon(35% 0, 65% 1%, 100% 100%, 0% 100%);
}

/* Flor derecha */
.flower__g-right {
  position: absolute;
  bottom: 6vmin;
  left: -2vmin;
  transform-origin: bottom left;
  transform: rotate(20deg);
}

.flower__g-right .leaf {
  width: 30vmin;
  height: 50vmin;
  border-top-left-radius: 100%;
  border-left: 2vmin solid #028137;
  background-image: linear-gradient(to bottom, transparent, var(--dark-color) 60%);
  mask-image: linear-gradient(to top, transparent 30%, #028137 60%);
}

.flower__g-right--1 { animation: flower-g-right-ans 2.5s linear infinite; }

.flower__g-right--2 {
  left: 5vmin;
  transform: rotateY(-180deg);
  animation: flower-g-right-ans--2 3s linear infinite;
}

.flower__g-right--2 .leaf {
  height: 75vmin;
  filter: blur(0.3vmin);
  opacity: 0.8;
}

@keyframes flower-g-right-ans {
  0%, 100% { transform: rotate(20deg); }
  50% { transform: rotate(24deg) rotateX(-20deg); }
}

@keyframes flower-g-right-ans--2 {
  0%, 100% { transform: rotateY(-180deg) rotate(0deg) rotateX(-20deg); }
  50% { transform: rotateY(-180deg) rotate(6deg) rotateX(-20deg); }
}

/* Flor frontal */
.flower__g-front {
  position: absolute;
  bottom: 6vmin;
  left: 2.5vmin;
  z-index: 100;
  transform-origin: bottom center;
  transform: rotate(-28deg) rotateY(30deg) scale(1.04);
  animation: flower__g-front-ans 2s linear infinite;
}

@keyframes flower__g-front-ans {
  0%, 100% { transform: rotate(-28deg) rotateY(30deg) scale(1.04); }
  50% { transform: rotate(-35deg) rotateY(40deg) scale(1.04); }
}

.flower__g-front__line {
  width: 0.3vmin;
  height: 20vmin;
  background-image: linear-gradient(to top, transparent, #028137, transparent 100%);
  position: relative;
}

.flower__g-front__leaf-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: bottom left;
  transform: rotate(10deg);
}

.flower__g-front__leaf-wrapper:nth-child(even) {
  left: 0vmin;
  transform: rotateY(-180deg) rotate(5deg);
  animation: flower__g-front__leaf-left-ans 1s ease-in backwards;
}

.flower__g-front__leaf-wrapper:nth-child(odd) { animation: flower__g-front__leaf-ans 1s ease-in backwards; }

.flower__g-front__leaf-wrapper--1 { top: -8vmin; transform: scale(0.7); animation: flower__g-front__leaf-ans 1s 5.5s ease-in backwards !important; }
.flower__g-front__leaf-wrapper--2 { top: -8vmin; transform: rotateY(-180deg) scale(0.7) !important; animation: flower__g-front__leaf-left-ans-2 1s 4.6s ease-in backwards !important; }
.flower__g-front__leaf-wrapper--3 { top: -3vmin; animation: flower__g-front__leaf-ans 1s 4.6s ease-in backwards; }
.flower__g-front__leaf-wrapper--4 { top: -3vmin; transform: rotateY(-180deg) scale(0.9) !important; animation: flower__g-front__leaf-left-ans-2 1s 4.6s ease-in backwards !important; }

@keyframes flower__g-front__leaf-left-ans-2 { 0% { transform: rotateY(-180deg) scale(0); } }

.flower__g-front__leaf-wrapper--5,
.flower__g-front__leaf-wrapper--6 { top: 2vmin; }

.flower__g-front__leaf-wrapper--7,
.flower__g-front__leaf-wrapper--8 { top: 6.5vmin; }

.flower__g-front__leaf-wrapper--2 { animation-delay: 5.2s !important; }
.flower__g-front__leaf-wrapper--3 { animation-delay: 4.9s !important; }
.flower__g-front__leaf-wrapper--5 { animation-delay: 4.3s !important; }
.flower__g-front__leaf-wrapper--6 { animation-delay: 4.1s !important; }
.flower__g-front__leaf-wrapper--7 { animation-delay: 3.8s !important; }
.flower__g-front__leaf-wrapper--8 { animation-delay: 3.5s !important; }

@keyframes flower__g-front__leaf-ans { 0% { transform: rotate(10deg) scale(0); } }
@keyframes flower__g-front__leaf-left-ans { 0% { transform: rotateY(-180deg) rotate(5deg) scale(0); } }

.flower__g-front__leaf {
  width: 10vmin;
  height: 10vmin;
  border-radius: 100% 0% 0% 100%/100% 100% 0% 0%;
  box-shadow: inset 0 2px 1vmin hsla(150, 97%, 14%, 0.2);
  background-image: linear-gradient(to bottom left, transparent, var(--dark-color)),
    linear-gradient(to bottom right, #028137 50%, transparent 50%, transparent);
  mask-image: linear-gradient(to bottom right, #028137 50%, transparent 50%, transparent);
}

/* Flor FR */
.flower__g-fr {
  position: absolute;
  bottom: -4vmin;
  left: vmin;
  transform-origin: bottom left;
  z-index: 10;
  animation: flower__g-fr-ans 2s linear infinite;
}

@keyframes flower__g-fr-ans {
  0%, 100% { transform: rotate(2deg); }
  50% { transform: rotate(4deg); }
}

.flower__g-fr .leaf {
  width: 30vmin;
  height: 50vmin;
  border-top-left-radius: 100%;
  border-left: 2vmin solid #028137;
  mask-image: linear-gradient(to top, transparent 25%, #028137 50%);
  position: relative;
  z-index: 1;
}

.flower__g-fr__leaf {
  position: absolute;
  top: 0;
  left: 0;
  width: 10vmin;
  height: 10vmin;
  border-radius: 100% 0% 0% 100%/100% 100% 0% 0%;
  box-shadow: inset 0 2px 1vmin hsla(184deg, 97%, 58%, 0.2);
  background-image: linear-gradient(to bottom left, transparent, var(--dark-color) 98%),
    linear-gradient(to bottom right, #028137 45%, transparent 50%, transparent);
  mask-image: linear-gradient(135deg, #028137 40%, transparent 50%, transparent);
}

.flower__g-fr__leaf--1 { left: 20vmin; transform: rotate(45deg); animation: flower__g-fr-leaft-ans-1 0.5s 5.2s linear backwards; }
.flower__g-fr__leaf--2 { left: 12vmin; top: -7vmin; transform: rotate(25deg) rotateY(-180deg); animation: flower__g-fr-leaft-ans-6 0.5s 5s linear backwards; }
.flower__g-fr__leaf--3 { left: 15vmin; top: 6vmin; transform: rotate(55deg); animation: flower__g-fr-leaft-ans-5 0.5s 4.8s linear backwards; }
.flower__g-fr__leaf--4 { left: 6vmin; top: -2vmin; transform: rotate(25deg) rotateY(-180deg); animation: flower__g-fr-leaft-ans-6 0.5s 4.6s linear backwards; }
.flower__g-fr__leaf--5 { left: 10vmin; top: 14vmin; transform: rotate(55deg); animation: flower__g-fr-leaft-ans-5 0.5s 4.4s linear backwards; }
.flower__g-fr__leaf--6 { left: 0vmin; top: 6vmin; transform: rotate(25deg) rotateY(-180deg); animation: flower__g-fr-leaft-ans-6 0.5s 4.2s linear backwards; }
.flower__g-fr__leaf--7 { left: 5vmin; top: 22vmin; transform: rotate(45deg); animation: flower__g-fr-leaft-ans-7 0.5s 4s linear backwards; }
.flower__g-fr__leaf--8 { left: -4vmin; top: 15vmin; transform: rotate(15deg) rotateY(-180deg); animation: flower__g-fr-leaft-ans-8 0.5s 3.8s linear backwards; }

@keyframes flower__g-fr-leaft-ans-1 { 0% { transform-origin: left; transform: rotate(45deg) scale(0); } }
@keyframes flower__g-fr-leaft-ans-5 { 0% { transform-origin: left; transform: rotate(55deg) scale(0); } }
@keyframes flower__g-fr-leaft-ans-6 { 0% { transform-origin: right; transform: rotate(25deg) rotateY(-180deg) scale(0); } }
@keyframes flower__g-fr-leaft-ans-7 { 0% { transform-origin: left; transform: rotate(45deg) scale(0); } }
@keyframes flower__g-fr-leaft-ans-8 { 0% { transform-origin: right; transform: rotate(15deg) rotateY(-180deg) scale(0); } }

/* Luciérnagas */
.fireflies {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.firefly {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ffff00;
  border-radius: 50%;
  box-shadow: 0 0 10px #ffff00, 0 0 20px #ffff00;
  animation: firefly-float 10s infinite ease-in-out;
  opacity: 0;
}

.firefly:nth-child(1) { left: 10%; top: 60%; animation-delay: 0s; }
.firefly:nth-child(2) { left: 30%; top: 40%; animation-delay: 1s; }
.firefly:nth-child(3) { left: 50%; top: 70%; animation-delay: 2s; }
.firefly:nth-child(4) { left: 70%; top: 30%; animation-delay: 3s; }
.firefly:nth-child(5) { left: 20%; top: 80%; animation-delay: 4s; }
.firefly:nth-child(6) { left: 80%; top: 50%; animation-delay: 5s; }
.firefly:nth-child(7) { left: 40%; top: 20%; animation-delay: 6s; }
.firefly:nth-child(8) { left: 90%; top: 70%; animation-delay: 7s; }

@keyframes firefly-float {
  0%, 100% { opacity: 0; transform: translate(0, 0); }
  10% { opacity: 1; }
  25% { transform: translate(20px, -30px); }
  50% { transform: translate(-10px, -50px); opacity: 1; }
  75% { transform: translate(30px, -20px); }
  90% { opacity: 0; }
}

/* Burbujas de corazones mejoradas */
.bubbles {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  pointer-events: none;
  z-index: 50;
}

.bubble {
  position: absolute;
  z-index: 200;
  border-radius: 50%;
}

.bubble:nth-child(1) { top: 8%; left: 60%; height: 11vmin; width: 11vmin; animation: love-burst 3s infinite 0s; box-shadow: inset 0 0 0 5.5vmin transparent; transform: translate(0, 0.05em) scale(0); transform-origin: center bottom; }
.bubble:nth-child(2) { top: 83%; left: 14%; height: 20vmin; width: 20vmin; animation: love-burst 3s infinite 0.15s; box-shadow: inset 0 0 0 10vmin transparent; transform: translate(0, 0.75em) scale(0); transform-origin: center bottom; }
.bubble:nth-child(3) { top: 25%; left: 49%; height: 4vmin; width: 4vmin; animation: love-burst 3s infinite 0.3s; box-shadow: inset 0 0 0 2vmin transparent; transform: translate(0, 0.5em) scale(0); transform-origin: center bottom; }
.bubble:nth-child(4) { top: 63%; left: 93%; height: 3vmin; width: 3vmin; animation: love-burst 3s infinite 0.45s; box-shadow: inset 0 0 0 1.5vmin transparent; transform: translate(0, 0.35em) scale(0); transform-origin: center bottom; }
.bubble:nth-child(5) { top: 7%; left: 56%; height: 18vmin; width: 18vmin; animation: love-burst 3s infinite 0.6s; box-shadow: inset 0 0 0 9vmin transparent; transform: translate(0, 0.3em) scale(0); transform-origin: center bottom; }
.bubble:nth-child(6) { top: 10%; left: 68%; height: 5vmin; width: 5vmin; animation: love-burst 3s infinite 0.75s; box-shadow: inset 0 0 0 2.5vmin transparent; transform: translate(0, 1.1em) scale(0); transform-origin: center bottom; }
.bubble:nth-child(7) { top: 68%; left: 1%; height: 5vmin; width: 5vmin; animation: love-burst 3s infinite 0.9s; box-shadow: inset 0 0 0 2.5vmin transparent; transform: translate(0, 0.15em) scale(0); transform-origin: center bottom; }
.bubble:nth-child(8) { top: 61%; left: 51%; height: 11vmin; width: 11vmin; animation: love-burst 3s infinite 1.05s; box-shadow: inset 0 0 0 5.5vmin transparent; transform: translate(0, 1.05em) scale(0); transform-origin: center bottom; }
.bubble:nth-child(9) { top: 24%; left: 45%; height: 11vmin; width: 11vmin; animation: love-burst 3s infinite 1.2s; box-shadow: inset 0 0 0 5.5vmin transparent; transform: translate(0, 1em) scale(0); transform-origin: center bottom; }
.bubble:nth-child(10) { top: 13%; left: 10%; height: 19vmin; width: 19vmin; animation: love-burst 3s infinite 1.35s; box-shadow: inset 0 0 0 9.5vmin transparent; transform: translate(0, 1em) scale(0); transform-origin: center bottom; }
.bubble:nth-child(11) { top: 76%; left: 7%; height: 14vmin; width: 14vmin; animation: love-burst 3s infinite 1.5s; box-shadow: inset 0 0 0 7vmin transparent; transform: translate(0, 0.1em) scale(0); transform-origin: center bottom; }
.bubble:nth-child(12) { top: 22%; left: 8%; height: 17vmin; width: 17vmin; animation: love-burst 3s infinite 1.65s; box-shadow: inset 0 0 0 8.5vmin transparent; transform: translate(0, 0.2em) scale(0); transform-origin: center bottom; }
.bubble:nth-child(13) { top: 23%; left: 81%; height: 16vmin; width: 16vmin; animation: love-burst 3s infinite 1.8s; box-shadow: inset 0 0 0 8vmin transparent; transform: translate(0, 0.1em) scale(0); transform-origin: center bottom; }
.bubble:nth-child(14) { top: 77%; left: 88%; height: 3vmin; width: 3vmin; animation: love-burst 3s infinite 1.95s; box-shadow: inset 0 0 0 1.5vmin transparent; transform: translate(0, 0.45em) scale(0); transform-origin: center bottom; }
.bubble:nth-child(15) { top: 41%; left: 1%; height: 9vmin; width: 9vmin; animation: love-burst 3s infinite 2.1s; box-shadow: inset 0 0 0 4.5vmin transparent; transform: translate(0, 0.05em) scale(0); transform-origin: center bottom; }
.bubble:nth-child(16) { top: 51%; left: 51%; height: 8vmin; width: 8vmin; animation: love-burst 3s infinite 2.25s; box-shadow: inset 0 0 0 4vmin transparent; transform: translate(0, 1.15em) scale(0); transform-origin: center bottom; }
.bubble:nth-child(17) { top: 37%; left: 65%; height: 11vmin; width: 11vmin; animation: love-burst 3s infinite 2.4s; box-shadow: inset 0 0 0 5.5vmin transparent; transform: translate(0, 0.2em) scale(0); transform-origin: center bottom; }
.bubble:nth-child(18) { top: 11%; left: 83%; height: 18vmin; width: 18vmin; animation: love-burst 3s infinite 2.55s; box-shadow: inset 0 0 0 9vmin transparent; transform: translate(0, 0.9em) scale(0); transform-origin: center bottom; }
.bubble:nth-child(19) { top: 64%; left: 86%; height: 12vmin; width: 12vmin; animation: love-burst 3s infinite 2.7s; box-shadow: inset 0 0 0 6vmin transparent; transform: translate(0, 0.65em) scale(0); transform-origin: center bottom; }
.bubble:nth-child(20) { top: 39%; left: 24%; height: 19vmin; width: 19vmin; animation: love-burst 3s infinite 2.85s; box-shadow: inset 0 0 0 9.5vmin transparent; transform: translate(0, 0.2em) scale(0); transform-origin: center bottom; }

@keyframes love-burst {
  50%, 100% {
    box-shadow: inset 0 0 0 0 rgb(18, 226, 129);
    transform: translate(0, 0) scale(1);
  }
}

.heart {
  fill: transparent;
  opacity: 0;
}

.bubble:nth-child(1) .heart { animation: love 3s forwards infinite 0s; transform: scale(0.5) rotate(-4deg); }
.bubble:nth-child(2) .heart { animation: love 3s forwards infinite 0.15s; transform: scale(0.5) rotate(22deg); }
.bubble:nth-child(3) .heart { animation: love 3s forwards infinite 0.3s; transform: scale(0.5) rotate(-5deg); }
.bubble:nth-child(4) .heart { animation: love 3s forwards infinite 0.45s; transform: scale(0.5) rotate(50deg); }
.bubble:nth-child(5) .heart { animation: love 3s forwards infinite 0.6s; transform: scale(0.5) rotate(-29deg); }
.bubble:nth-child(6) .heart { animation: love 3s forwards infinite 0.75s; transform: scale(0.5) rotate(35deg); }
.bubble:nth-child(7) .heart { animation: love 3s forwards infinite 0.9s; transform: scale(0.5) rotate(-5deg); }
.bubble:nth-child(8) .heart { animation: love 3s forwards infinite 1.05s; transform: scale(0.5) rotate(40deg); }
.bubble:nth-child(9) .heart { animation: love 3s forwards infinite 1.2s; transform: scale(0.5) rotate(-35deg); }
.bubble:nth-child(10) .heart { animation: love 3s forwards infinite 1.35s; transform: scale(0.5) rotate(28deg); }
.bubble:nth-child(11) .heart { animation: love 3s forwards infinite 1.5s; transform: scale(0.5) rotate(-3deg); }
.bubble:nth-child(12) .heart { animation: love 3s forwards infinite 1.65s; transform: scale(0.5) rotate(48deg); }
.bubble:nth-child(13) .heart { animation: love 3s forwards infinite 1.8s; transform: scale(0.5) rotate(-33deg); }
.bubble:nth-child(14) .heart { animation: love 3s forwards infinite 1.95s; transform: scale(0.5) rotate(40deg); }
.bubble:nth-child(15) .heart { animation: love 3s forwards infinite 2.1s; transform: scale(0.5) rotate(-29deg); }
.bubble:nth-child(16) .heart { animation: love 3s forwards infinite 2.25s; transform: scale(0.5) rotate(19deg); }
.bubble:nth-child(17) .heart { animation: love 3s forwards infinite 2.4s; transform: scale(0.5) rotate(-29deg); }
.bubble:nth-child(18) .heart { animation: love 3s forwards infinite 2.55s; transform: scale(0.5) rotate(14deg); }
.bubble:nth-child(19) .heart { animation: love 3s forwards infinite 2.7s; transform: scale(0.5) rotate(-10deg); }
.bubble:nth-child(20) .heart { animation: love 3s forwards infinite 2.85s; transform: scale(0.5) rotate(46deg); }

@keyframes love {
  50% { fill: rgb(253, 93, 19); opacity: 1; }
}

/* Partículas decorativas */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

.particle {
  position: absolute;
  font-size: 1.5rem;
  animation: particle-float 8s infinite ease-in-out;
  opacity: 0;
}

.particle:nth-child(1) { left: 5%; top: 80%; animation-delay: 0s; }
.particle:nth-child(2) { left: 15%; top: 20%; animation-delay: 1s; }
.particle:nth-child(3) { left: 25%; top: 60%; animation-delay: 2s; }
.particle:nth-child(4) { left: 35%; top: 40%; animation-delay: 3s; }
.particle:nth-child(5) { left: 45%; top: 70%; animation-delay: 4s; }
.particle:nth-child(6) { left: 55%; top: 30%; animation-delay: 5s; }
.particle:nth-child(7) { left: 65%; top: 50%; animation-delay: 6s; }
.particle:nth-child(8) { left: 75%; top: 80%; animation-delay: 7s; }

@keyframes particle-float {
  0%, 100% { opacity: 0; transform: translateY(0) rotate(0deg); }
  10% { opacity: 0.8; }
  50% { transform: translateY(-100px) rotate(180deg); opacity: 0.6; }
  90% { opacity: 0.8; }
}

/* ===== MUSIC WIDGET STYLES ===== */
.music-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: rgba(1, 1, 19, 0.95);
  backdrop-filter: blur(20px);
  border: 2px solid var(--primary-yellow);
  border-radius: 20px;
  padding: 20px;
  z-index: 9998;
  box-shadow: 0 0 30px var(--glow-color), 0 10px 40px rgba(0,0,0,0.5);
  animation: slideIn 0.5s ease-out;
  touch-action: pan-y;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.music-widget-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.album-art {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-yellow), var(--accent-orange));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--dark-color);
  animation: pulse-album 2s infinite;
  flex-shrink: 0;
}

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

.track-info {
  flex: 1;
  min-width: 0;
}

.track-info h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: var(--light-yellow);
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-info p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin: 5px 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toggle-lyrics {
  background: transparent;
  border: 2px solid var(--primary-yellow);
  color: var(--primary-yellow);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
}

.toggle-lyrics:hover, .toggle-lyrics:active {
  background: var(--primary-yellow);
  color: var(--dark-color);
  transform: scale(1.1);
}

/* Progress Bar */
.progress-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.time {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  font-family: 'Poppins', sans-serif;
  min-width: 35px;
  flex-shrink: 0;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  overflow: visible;
  touch-action: none;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-yellow), var(--accent-orange));
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
  position: relative;
}

.progress-handle {
  position: absolute;
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: var(--light-yellow);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--glow-color);
  cursor: grab;
  opacity: 0;
  transition: opacity 0.2s;
}

.progress-bar:hover .progress-handle,
.progress-bar:active .progress-handle {
  opacity: 1;
}

/* Controls */
.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}

.control-btn {
  background: transparent;
  border: none;
  color: var(--light-yellow);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 10px;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.control-btn:hover, .control-btn:active {
  background: rgba(230, 243, 49, 0.2);
  transform: scale(1.1);
}

.play-pause {
  background: linear-gradient(135deg, var(--primary-yellow), var(--accent-orange));
  color: var(--dark-color);
  font-size: 1.3rem;
  width: 55px;
  height: 55px;
  box-shadow: 0 0 20px var(--glow-color);
  min-width: 55px;
  min-height: 55px;
}

.play-pause:hover, .play-pause:active {
  transform: scale(1.15);
  box-shadow: 0 0 30px var(--glow-color);
}

/* Volume */
.volume-container {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--light-yellow);
  font-size: 0.9rem;
}

.volume-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  touch-action: none;
}

.volume-fill {
  height: 100%;
  background: var(--primary-yellow);
  border-radius: 2px;
  width: 70%;
  transition: width 0.1s;
}

/* ===== LYRICS PANEL ===== */
.lyrics-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 90%;
  max-width: 500px;
  max-height: 70vh;
  background: rgba(1, 1, 19, 0.98);
  backdrop-filter: blur(30px);
  border: 2px solid var(--primary-yellow);
  border-radius: 25px;
  z-index: 9999;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 0 50px var(--glow-color), 0 20px 60px rgba(0,0,0,0.5);
}

.lyrics-panel.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.lyrics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(230, 243, 49, 0.1), rgba(255, 94, 0, 0.1));
  border-bottom: 1px solid rgba(230, 243, 49, 0.3);
}

.lyrics-header h3 {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  color: var(--light-yellow);
  margin: 0;
  text-shadow: 0 0 10px var(--glow-color);
}

.close-lyrics {
  background: transparent;
  border: 2px solid var(--primary-yellow);
  color: var(--primary-yellow);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.close-lyrics:hover, .close-lyrics:active {
  background: var(--primary-yellow);
  color: var(--dark-color);
  transform: rotate(90deg);
}

.lyrics-content {
  padding: 20px;
  max-height: calc(70vh - 80px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-yellow) rgba(0,0,0,0.3);
  -webkit-overflow-scrolling: touch;
}

.lyrics-content::-webkit-scrollbar {
  width: 8px;
}

.lyrics-content::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
}

.lyrics-content::-webkit-scrollbar-thumb {
  background: var(--primary-yellow);
  border-radius: 4px;
}

.lyrics-section {
  margin-bottom: 25px;
  padding: 15px;
  border-radius: 15px;
  transition: all 0.3s ease;
  opacity: 0.5;
  transform: scale(0.95);
  cursor: pointer;
  min-height: 44px;
}

.lyrics-section.active {
  opacity: 1;
  transform: scale(1);
  background: rgba(230, 243, 49, 0.1);
  border-left: 4px solid var(--primary-yellow);
  box-shadow: 0 0 20px rgba(230, 243, 49, 0.2);
}

.lyrics-section .singer {
  font-family: 'Dancing Script', cursive;
  font-size: 1.1rem;
  color: var(--accent-orange);
  margin-bottom: 8px;
  font-weight: 700;
}

.lyrics-section p {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: #fff;
  line-height: 1.6;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.lyrics-section.active p {
  color: var(--light-yellow);
  text-shadow: 0 0 10px rgba(255, 235, 18, 0.5);
}

/* Pausar animaciones inicialmente */
.container * {
  animation-play-state: paused !important;
}

.container.loaded * {
  animation-play-state: running !important;
}

/* ===== OPTIMIZACIONES MÓVILES ===== */
@media (max-width: 768px) {
  /* Ocultar elementos pesados en móvil */
  .mobile-hidden {
    display: none !important;
  }
  
  /* Simplificar fondo */
  .night {
    background-image: 
      radial-gradient(ellipse at top, transparent 0%, var(--dark-color)),
      radial-gradient(ellipse at bottom, var(--dark-color), rgba(145, 233, 255, 0.2)),
      linear-gradient(      90deg, rgb(255, 94, 0), rgb(240, 240, 240));
  }
  
  /* Ocultar estrellas fugaces en móvil */
  .shooting-stars {
    display: none;
  }
  
  /* Reducir estrellas */
  .stars {
    opacity: 0.4;
    animation: none;
  }
  
  /* Texto más compacto */
  .dedication-container {
    top: 2%;
    width: 95%;
  }
  
  .title {
    font-size: 2.2rem !important;
    margin-bottom: 0.3rem;
  }
  
  .subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 1rem;
    letter-spacing: 2px;
  }
  
  .message {
    padding: 1rem !important;
    margin-bottom: 0.5rem;
    border-radius: 15px;
  }
  
  .message .line {
    font-size: 1.1rem !important;
    line-height: 1.5;
  }
  
  .signature {
    font-size: 1rem !important;
  }
  
  /* Botón más accesible */
  .special-btn {
    bottom: 100px !important;
    padding: 0.9rem 1.8rem;
    font-size: 0.95rem;
    width: 90%;
    max-width: 300px;
  }
  
  /* Modal más compacto */
  .msg-content {
    padding: 2rem 1.5rem;
    width: 95%;
    max-height: 85vh;
    border-radius: 20px;
  }
  
  .msg-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .msg-content p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .highlight {
    font-size: 1.3rem !important;
  }
  
  /* Widget de música optimizado - posición inferior centrada */
  .music-widget {
    width: calc(100% - 20px) !important;
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    padding: 12px;
    border-radius: 15px;
  }
  
  .album-art {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .track-info h3 {
    font-size: 0.9rem;
  }
  
  .track-info p {
    font-size: 0.75rem;
  }
  
  .toggle-lyrics {
    width: 36px;
    height: 36px;
  }
  
  /* Controles más grandes para touch */
  .control-btn {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }
  
  .play-pause {
    width: 60px;
    height: 60px;
    font-size: 1.3rem;
  }
  
  /* Panel de lyrics fullscreen en móvil */
  .lyrics-panel {
    width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    top: 0 !important;
    left: 0 !important;
    transform: translate(0, 100%) !important;
  }
  
  .lyrics-panel.active {
    transform: translate(0, 0) !important;
  }
  
  .lyrics-header {
    padding: 15px 20px;
  }
  
  .lyrics-header h3 {
    font-size: 1.3rem;
  }
  
  .lyrics-content {
    max-height: calc(100vh - 70px);
    padding: 15px;
  }
  
  .lyrics-section {
    margin-bottom: 15px;
    padding: 12px;
  }
  
  .lyrics-section .singer {
    font-size: 1rem;
  }
  
  .lyrics-section p {
    font-size: 0.95rem;
  }
  
  /* Reducir burbujas */
  .bubble:nth-child(n+11) {
    display: none;
  }
  
  /* Simplificar animaciones de flores en móvil */
  .flower {
    animation-duration: 6s !important;
  }
  
  .flower__light {
    animation-duration: 6s !important;
  }
  
  /* Optimizar rendimiento */
  .flowers, .flower, .bubble, .particle {
    will-change: transform;
    contain: layout style paint;
  }
}

/* Orientación landscape en móvil */
@media (max-width: 768px) and (orientation: landscape) {
  .dedication-container {
    top: 1%;
  }
  
  .title {
    font-size: 1.8rem !important;
  }
  
  .message {
    padding: 0.8rem !important;
  }
  
  .message .line {
    font-size: 1rem !important;
    line-height: 1.4;
  }
  
  .flower--3 {
    display: none;
  }
  
  .special-btn {
    bottom: 80px !important;
    padding: 0.7rem 1.5rem;
  }
  
  .music-widget {
    bottom: 5px !important;
    padding: 8px 12px;
  }
  
  .album-art {
    width: 35px;
    height: 35px;
  }
  
  .progress-container {
    margin-bottom: 8px;
  }
  
  .controls {
    margin-bottom: 8px;
    gap: 15px;
  }
  
  .control-btn {
    width: 40px;
    height: 40px;
  }
  
  .play-pause {
    width: 50px;
    height: 50px;
  }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .music-widget {
    width: 280px;
  }
  
  .title {
    font-size: 3.5rem;
  }
}

/* ===== OPTIMIZACIONES DE RENDIMIENTO ===== */

/* Reducir repaints */
.flowers, .flower, .bubble, .particle {
  will-change: transform;
  contain: layout style paint;
}

/* Animaciones más eficientes */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* GPU acceleration para elementos animados */
.flower__leafs, .bubble, .particle, .firefly {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ===== MEJORAS DE ACCESIBILIDAD TÁCTIL ===== */

/* Targets táctiles mínimos 44px */
button, .progress-bar, .volume-bar, .lyrics-section, .special-btn, .close-btn, .toggle-lyrics, .close-lyrics, .control-btn {
  min-height: 44px;
  min-width: 44px;
}

/* Prevenir zoom en inputs (iOS) */
@supports (-webkit-touch-callout: none) {
  input, button, select, textarea {
    font-size: 16px;
  }
}

/* Mejoras para dispositivos con notch */
@supports (padding-top: env(safe-area-inset-top)) {
  .dedication-container {
    padding-top: env(safe-area-inset-top);
  }
  
  .music-widget {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  
  .special-btn {
    bottom: calc(100px + env(safe-area-inset-bottom)) !important;
  }
  
  @media (max-width: 768px) {
    .special-btn {
      bottom: calc(100px + env(safe-area-inset-bottom)) !important;
    }
  }
}

/* ===== OPTIMIZACIONES MÓVILES ===== */
@media (max-width: 768px) {
  /* Ocultar elementos pesados en móvil */
  .mobile-hidden {
    display: none !important;
  }
  
  /* Simplificar fondo */
  .night {
    background-image: 
      radial-gradient(ellipse at top, transparent 0%, var(--dark-color)),
      radial-gradient(ellipse at bottom, var(--dark-color), rgba(145, 233, 255, 0.2)),
      linear-gradient(90deg, rgb(255, 94, 0), rgb(240, 240, 240));
  }
  
  /* Ocultar estrellas fugaces en móvil */
  .shooting-stars {
    display: none;
  }
  
  /* Reducir estrellas */
  .stars {
    opacity: 0.4;
    animation: none;
  }
  
  /* Texto más compacto y posicionado más arriba */
  .dedication-container {
    top: 2%;
    width: 95%;
    z-index: 100;
  }
  
  .title {
    font-size: 2.2rem !important;
    margin-bottom: 0.3rem;
  }
  
  .subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 0.8rem;
    letter-spacing: 2px;
  }
  
  .message {
    padding: 0.8rem !important;
    margin-bottom: 0.5rem;
    border-radius: 15px;
  }
  
  .message .line {
    font-size: 1rem !important;
    line-height: 1.4;
  }
  
  .signature {
    font-size: 0.9rem !important;
    margin: 0.3rem 0;
  }
  
  /* ===== BOTÓN ESPECIAL - POSICIÓN CORREGIDA ===== */
  .special-btn {
    position: fixed;
    bottom: auto !important; /* Eliminar bottom fijo */
    top: 65% !important; /* Posicionar en el centro-árbol de la pantalla */
    left: 50%;
    transform: translateX(-50%);
    padding: 0.9rem 1.8rem;
    font-size: 0.95rem;
    width: auto;
    min-width: 200px;
    max-width: 280px;
    z-index: 1002; /* Mayor que el reproductor */
    animation: pulse-mobile 2s infinite;
  }
  
  @keyframes pulse-mobile {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.03); }
  }
  
  .special-btn:hover,
  .special-btn:active {
    transform: translateX(-50%) scale(1.05);
  }
  
  /* ===== REPRODUCTOR - POSICIÓN INFERIOR ===== */
  .music-widget {
    position: fixed;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    border-radius: 20px 20px 0 0 !important; /* Bordes redondeados arriba */
    padding: 12px 15px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 9998;
    box-shadow: 0 -5px 30px var(--glow-color), 0 -10px 40px rgba(0,0,0,0.5);
  }
  
  /* Compactar reproductor en móvil */
  .music-widget-header {
    margin-bottom: 10px;
  }
  
  .album-art {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  
  .track-info h3 {
    font-size: 0.85rem;
  }
  
  .track-info p {
    font-size: 0.7rem;
  }
  
  .toggle-lyrics {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }
  
  .progress-container {
    margin-bottom: 10px;
  }
  
  .time {
    font-size: 0.7rem;
    min-width: 30px;
  }
  
  /* Controles más compactos */
  .controls {
    margin-bottom: 10px;
    gap: 15px;
  }
  
  .control-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    font-size: 1rem;
  }
  
  .play-pause {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    font-size: 1.2rem;
  }
  
  /* Volumen más compacto */
  .volume-container {
    font-size: 0.8rem;
  }
  
  /* ===== PANEL DE LETRAS FULLSCREEN ===== */
  .lyrics-panel {
    width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    top: 0 !important;
    left: 0 !important;
    transform: translate(0, 100%) !important;
    z-index: 10000; /* Por encima de todo */
  }
  
  .lyrics-panel.active {
    transform: translate(0, 0) !important;
  }
  
  .lyrics-header {
    padding: 15px 20px;
    padding-top: calc(15px + env(safe-area-inset-top, 0px));
  }
  
  .lyrics-header h3 {
    font-size: 1.2rem;
  }
  
  .close-lyrics {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  
  .lyrics-content {
    max-height: calc(100vh - 70px);
    padding: 15px;
  }
  
  .lyrics-section {
    margin-bottom: 12px;
    padding: 10px;
  }
  
  .lyrics-section .singer {
    font-size: 0.95rem;
  }
  
  .lyrics-section p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  /* ===== MODAL DE MENSAJE ESPECIAL ===== */
  .special-message {
    z-index: 10001; /* Por encima del panel de letras */
  }
  
  .msg-content {
    padding: 1.5rem;
    width: 92%;
    max-height: 80vh;
    border-radius: 20px;
    margin: 10px;
  }
  
  .msg-content h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }
  
  .msg-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.3rem;
  }
  
  .highlight {
    font-size: 1.2rem !important;
    margin-top: 0.8rem;
  }
  
  .close-btn {
    margin-top: 1.5rem;
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
  }
  
  /* Reducir burbujas de corazones */
  .bubble:nth-child(n+8) {
    display: none;
  }
  
  /* Simplificar animaciones */
  .flower {
    animation-duration: 8s !important;
  }
  
  .flower__light {
    animation-duration: 8s !important;
  }
  
  /* Ajustar flores para que no tapen el botón */
  .flowers {
    transform: scale(0.7) translateY(20px);
    z-index: 5;
  }
  
  .flower--1 { left: 15%; }
  .flower--2 { left: 50%; }
  .flower--3 { left: 80%; }
}

/* ===== MÓVIL PEQUEÑO (hasta 375px) ===== */
@media (max-width: 375px) {
  .special-btn {
    top: 62% !important;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    min-width: 180px;
  }
  
  .title {
    font-size: 1.9rem !important;
  }
  
  .message .line {
    font-size: 0.9rem !important;
  }
  
  .music-widget {
    padding: 10px 12px;
  }
  
  .controls {
    gap: 12px;
  }
  
  .control-btn {
    width: 38px;
    height: 38px;
  }
  
  .play-pause {
    width: 46px;
    height: 46px;
  }
}

/* ===== MÓVIL GRANDE (376px - 768px) ===== */
@media (min-width: 376px) and (max-width: 768px) {
  .special-btn {
    top: 66% !important;
  }
}

/* ===== ORIENTACIÓN LANDSCAPE EN MÓVIL ===== */
@media (max-width: 768px) and (orientation: landscape) {
  .dedication-container {
    top: 0%;
    transform: translateX(-50%) scale(0.9);
  }
  
  .title {
    font-size: 1.6rem !important;
  }
  
  .subtitle {
    font-size: 0.8rem !important;
    margin-bottom: 0.5rem;
  }
  
  .message {
    padding: 0.6rem !important;
    margin-bottom: 0.3rem;
  }
  
  .message .line {
    font-size: 0.85rem !important;
    line-height: 1.3;
  }
  
  .signature {
    font-size: 0.8rem !important;
  }
  
  /* Botón en posición lateral para landscape */
  .special-btn {
    top: auto !important;
    bottom: 80px !important;
    right: 20px !important;
    left: auto !important;
    transform: none !important;
    min-width: 160px;
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .special-btn:hover,
  .special-btn:active {
    transform: scale(1.05) !important;
  }
  
  /* Reproductor más compacto en landscape */
  .music-widget {
    padding: 8px 15px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }
  
  .album-art {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  
  .track-info h3 {
    font-size: 0.8rem;
  }
  
  .controls {
    gap: 10px;
    margin-bottom: 8px;
  }
  
  .control-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }
  
  .play-pause {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }
  
  .volume-container {
    display: none; /* Ocultar volumen en landscape para ahorrar espacio */
  }
  
  /* Ocultar flor del medio en landscape */
  .flower--2 {
    display: none;
  }
  
  .flowers {
    transform: scale(0.6) translateY(30px);
  }
}

/* ===== TABLETS ===== */
@media (min-width: 769px) and (max-width: 1024px) {
  .music-widget {
    width: 300px;
  }
  
  .special-btn {
    bottom: 40px;
  }
}

/* ===== SAFE AREA PARA DISPOSITIVOS CON NOTCH ===== */
@supports (padding-top: env(safe-area-inset-top)) {
  @media (max-width: 768px) {
    .dedication-container {
      padding-top: env(safe-area-inset-top);
    }
    
    .music-widget {
      padding-left: max(15px, env(safe-area-inset-left));
      padding-right: max(15px, env(safe-area-inset-right));
    }
  }
}