@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English+SC&family=Great+Vibes&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
body {
  margin: 0;
  font-family: 'Cinzel Decorative', cursive;
  background-color: #000;
  color: #eaeaea;
  display: flex;
}


/* Encabezado mágico */
header {
  background: #1a1a1a;
  color: #ffb3f6;
  text-align: center;
  padding: 1.5rem;
  font-size: 2.7rem;
  font-family: 'Great Vibes', cursive;
  border-bottom: 1px solid #555;
  box-shadow: 0 0 10px #ffb3f630;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 99;
  height: 150px; /* le damos altura fija para que el nav sepa dónde empieza */
  line-height: 1.5;
}

/* Menú lateral */
nav {
  position: fixed;
  top: 150px; /* antes decía 100px, ahora lo bajamos un poco */
  left: 0;
  width: 250px;
  height: calc(100% - 80px); /* ajustamos a la nueva altura del header */
  background-color: #1a1a1a;
  border-right: 1px solid #333;
  padding: 2rem 1rem;
  z-index: 90;
  overflow-y: auto;
}

nav ul {
  list-style: none;
}

nav ul li {
  margin-bottom: 1.2rem;
}

nav ul li a {
  display: block;
  padding: 0.6rem 1rem;
  background-color: #2a2a2a;
  color: #ffd6fa;
  border-radius: 12px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px #ff99cc30;
}

nav ul li a:hover {
  background-color: #ffccf1;
  color: #1a1a1a;
  box-shadow: 0 0 10px #ffb3f6;
}

/* Contenido principal */
main {
  margin-top: 150px; /* puedes ajustar este valor si lo ves muy pegado */
  padding: 2rem;
}

/* Secciones encantadas */
section {
  background-color: rgba(255, 230, 250, 0.07);
  border: 1px dashed #ffaad4;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 15px rgba(255, 179, 246, 0.1);
  position: relative;
}

section h2 {
  font-size: 1.7rem;
  color: #f7c8ff;
  border-bottom: 1px dotted #d49acd;
  margin-bottom: 1rem;
}

/* Enlaces mágicos */
a {
  color: #ffc3e6;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-shadow: 0 0 5px #ffaad4;
  color: #ffe6ff;
}

/* Emojis mágicos y decorativos */
.magical-intro {
  font-size: 1.2rem;
  color: #ffd6fa;
  padding: 1rem;
  border-left: 3px solid #ffb3f6;
  background-color: rgba(255, 230, 255, 0.06);
  border-radius: 10px;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding-left: 0;
  }

  nav {
    position: relative;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #333;
  }

  main {
    margin-left: 0;
    padding: 1rem;
  }
}.presentacion {
  background-color: rgba(255, 245, 255, 0.04);
  padding: 2rem;
  border: 2px dashed #ffb3f6;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 15px rgba(255, 179, 246, 0.3);
  color: #ffeef8;
  font-family: 'Cinzel Decorative', serif;
  text-align: center;
  margin-bottom: 2rem;
}

.presentacion h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #ffc8ec;
  text-shadow: 0 0 5px #ff9ecb;
}

.intro-cute {
  font-family: 'Quicksand', Shooting Star;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ffeef8;
  padding: 1rem;
}

.datos-magicos ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.datos-magicos li {
  font-size: 1rem;
  padding: 0.3rem 0;
  color: #fcd6ff;
  font-style: italic;
}

.cute-emoji {
  margin-top: 1.5rem;
  font-size: 1.4rem;
  color: #ffd9f5;
  font-family: monospace;
}

#brillitos {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #ffccff 0%, #cc99ff 50%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  animation: sparkle-fade 1s ease-out forwards;
  box-shadow: 0 0 6px #ffccff;
}

@keyframes sparkle-fade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2);
  }
}

.magic-sparkle {
  position: absolute;
  pointer-events: none;
  font-size: 18px;
  z-index: 9999;
  animation: floatUp 1s ease-out forwards;
  opacity: 0.9;
  transform: translate(-50%, -50%);
}

@keyframes floatUp {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -100%) scale(1.5);
    opacity: 0;
  }
}