body { 
  background: linear-gradient(#597346, #7A0137);
  background-attachment: fixed;
  color: #4b4b4b;
  font-family: "Trebuchet MS", sans-serif;
}


.title {
  color: #a873ff;
  text-shadow: 0 0 6px #ffd6ff;
}

.main-box {
  background: rgba(255,255,255,0.7);
  border: 2px solid #ffe6ff;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 0 20px #ffd6ff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.profile-pic {
  width: 160px;
  height: 160px;
  border-radius: 25px;
  border: 4px solid #ffefd5;
  object-fit: cover;
  display: block;
  margin: 0 auto 15px auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.layout {
  width: 1100px;
  margin: 30px auto;
  display: flex;
  gap: 20px;
}



.sidebar {
  background: rgba(255,255,255,0.6);
  border-radius: 15px;
  padding: 15px;
  border: 2px dashed #d7b9ff;
}

.sidebar h2 {
  background: #ffefd5;
  padding: 8px;
  border-radius: 12px;
}

.sidebar a {
  display:block;
  background:#ffffffd9;
  border:2px solid #c5a9ff;
  border-radius:20px;
  padding:10px;
  margin:8px 0;
  text-decoration:none;
  color:#603a2e;
  font-weight:bold;
  text-align:center;
  transition:0.3s;
}

.sidebar a:hover {
  background:#c5a9ff;
  color:white;
  transform: scale(1.08) rotate(-1deg);
  box-shadow:0 0 12px #fcdfff;
}

body::before {
  content:"";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: url("Encaje.png") repeat-x;
  background-size: contain;
  pointer-events: none;
  z-index: 100;
}




.sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: radial-gradient(#ffffff, #ffd6ff);
  border-radius: 50%;
  pointer-events: none;
  animation: fade 0.8s linear forwards;
}

@keyframes fade {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

.leaf {
  position: absolute;
  top: -60px;
  pointer-events: none;
  animation: fall var(--speed, 4s) linear forwards;
}

/* tamaño random desde JS */
.leaf-img {
  width: var(--size, 40px);
}

/* usa un desvío horizontal distinto para cada hoja */
@keyframes fall {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
    opacity: 1;
  }

  50% {
    transform: translateX(var(--drift)) translateY(50vh) rotate(120deg);
  }

  100% {
    transform: translateX(calc(var(--drift) * -1)) translateY(100vh) rotate(260deg);
    opacity: 0;
  }
}
.box {
  background: #fffdf8;
  border: 3px solid #e6c7ff;
  border-radius: 16px;
  padding: 18px;
  margin: 18px auto;
  width: 85%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.decor {
  position: absolute;
  z-index: 10;
  pointer-events: none;
}

.top-left { top: 10px; left: 10px; }
.top-right { top: 10px; right: 10px; }
.bottom-left { bottom: 10px; left: 10px; }
.bottom-right { bottom: 10px; right: 10px; }

.decor img {
  width: 120px;
}

#quote {
  background: #fffdf8;
  border: 3px solid #e6c7ff;
  padding: 10px 15px;
  border-radius: 15px;
  width: fit-content;
  margin: 20px auto;
  font-size: 18px;
  color: #6b4a7c;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.star {
  position: absolute;
  font-size: 20px;
  animation: float 6s linear infinite;
  pointer-events: none;
}

@keyframes float {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-200px); opacity: 0; }
}
