body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background: #111;
  color: #fff;
  scroll-behavior: smooth;
}

header {
  background: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2em;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.logo {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8em;
  color: gold;
  transition: transform 0.3s;
}
.logo:hover {
  transform: scale(1.05);
}
.logo span {
  font-size: 0.7em;
  color: red;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1em;
  margin: 0;
  padding: 0;
}

nav a {
  color: white;
  text-decoration: none;
  position: relative;
  padding: 5px 10px;
  transition: all 0.3s ease;
  overflow: hidden;
  display: inline-block;
  white-space: nowrap;
}

nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, red, gold, transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

nav a::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, gold, red, transparent);
  transform: translateX(100%);
  transition: transform 0.5s ease;
}

nav a:hover {
  color: gold;
  text-shadow: 0 0 5px rgba(255,215,0,0.5);
  transform: translateY(-2px);
}

nav a:hover::before {
  transform: translateX(100%);
}

nav a:hover::after {
  transform: translateX(-100%);
}

.hero {
  position: relative;
  height: 100vh;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2em;
  z-index: 1;
}
.hero h1 {
  font-size: 3em;
}
.hero h2 {
  color: gold;
  font-family: 'Great Vibes', cursive;
  font-size: 2em;
}

section {
  padding: 6em 2em;
  max-width: 1000px;
  margin: auto;
  text-align: justify;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease-in-out;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, transparent, red, gold, transparent);
  opacity: 0.7;
}

section h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5em;
  transform: translateY(0);
  transition: all 0.5s ease;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, gold, red, gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s ease;
}

section:hover h2::after {
  transform: scaleX(1);
}

section:hover h2 {
  transform: translateY(-5px);
  text-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
}

.bio-img {
  max-width: 100%;
  border-radius: 10px;
  margin-top: 1em;
  transition: transform 0.3s;
}
.bio-img:hover {
  transform: scale(1.02);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5em;
  margin-top: 1em;
}

.social-icons a {
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.social-icons img {
  width: 50px;
  height: 50px;
  filter: grayscale(30%);
  transition: all 0.4s ease;
}

.social-icons a:hover img {
  filter: grayscale(0%);
  transform: translateY(-8px) scale(1.15);
  filter: drop-shadow(0 8px 10px rgba(255, 215, 0, 0.4));
}

.social-icons a::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, red, gold);
  transition: transform 0.3s ease;
  border-radius: 3px;
}

.social-icons a:hover::before {
  transform: translateX(-50%) scale(1);
}

.eventos li {
  margin: 1em 0;
  padding: 1em;
  border-left: 3px solid transparent;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0 8px 8px 0;
  transition: all 0.4s ease;
  cursor: pointer;
}

.eventos li:hover {
  border-left-color: gold;
  background: rgba(255, 215, 0, 0.1);
  transform: translateX(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5em;
  perspective: 1000px;
}

.galeria-grid iframe {
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.6);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  height: 200px;
  width: 100%;
}

.galeria-grid iframe:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 15px 30px rgba(255, 0, 0, 0.3);
  filter: brightness(1.1);
}

#musica iframe {
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.7);
  margin-bottom: 2em;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform-origin: center;
}

#musica iframe:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 35px rgba(255, 215, 0, 0.4);
}

form {
  display: grid;
  gap: 1em;
  width: 100%;
}
input, textarea {
  padding: 1em;
  border-radius: 8px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

input:hover, textarea:hover {
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

input:focus, textarea:focus {
  border-color: gold;
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
  outline: none;
}

button {
  background: linear-gradient(45deg, #ff0000, #cc0000);
  color: white;
  padding: 1em 1.5em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s;
}

button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
  background: linear-gradient(45deg, #cc0000, #ff0000);
}

button:hover:before {
  left: 100%;
}

button:active {
  transform: translateY(1px) scale(0.98);
}

footer {
  background: #000;
  text-align: center;
  padding: 1em;
  box-shadow: inset 0 1px 0 #333;
}

/* Menú hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 100;
}
.menu-toggle span {
  background: white;
  height: 3px;
  width: 25px;
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  header {
    padding: 1em;
  }
  
  .logo {
    font-size: 1.4em;
  }
  
  nav ul {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2em 0;
    z-index: 90;
    gap: 1.5em;
    transition: all 0.5s ease;
  }
  
  nav ul.active {
    display: flex;
    animation: fadeIn 0.5s ease forwards;
  }
  
  nav a {
    font-size: 1.2em;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  section {
    padding: 3em 1em;
  }
  
  .hero h1 {
    font-size: 2.2em;
  }
  
  .hero h2 {
    font-size: 1.8em;
  }
  
  .galeria-grid {
    grid-template-columns: 1fr;
  }
  
  .galeria-grid iframe {
    height: 220px;
  }
  
  /* Ajustes de fuente y espaciado */
  body {
    font-size: 16px;
  }
  
  h2 {
    font-size: 1.8em !important;
    margin-bottom: 0.8em;
  }
  
  p {
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 1em;
  }
  
  /* Formulario responsivo */
  form {
    gap: 0.8em;
  }
  
  input, textarea {
    padding: 0.8em;
    font-size: 16px; /* Evita zoom en iOS */
  }
  
  button {
    padding: 0.8em 1.2em;
  }
  
  /* Optimización de animaciones */
  .social-icons a:hover img {
    transform: translateY(-5px) scale(1.1);
  }
  
  section h2::after {
    transition: transform 0.5s ease;
  }
  
  /* Ajustes para eventos */
  .eventos li {
    padding: 0.8em;
    margin: 0.8em 0;
  }
  
  .eventos li:hover {
    transform: translateX(5px);
  }
  
  /* Ajustes para reproductor de música */
  #musica iframe {
    height: 160px;
    margin-bottom: 1.5em;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8em;
  }
  
  .hero h2 {
    font-size: 1.5em;
  }
  
  .logo {
    font-size: 1.5em;
  }
  
  section {
    padding: 2em 1em;
  }
  
  h2 {
    font-size: 1.5em !important;
  }
  
  .social-icons {
    gap: 1em;
  }
  
  .social-icons img {
    width: 38px;
    height: 38px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* PANTALLA DE CARGA */
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s;
  padding-top: 15vh;
  overflow: hidden;
}

/* Estrellas de fondo */
#stars-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.star {
  position: absolute;
  background-color: gold;
  border-radius: 50%;
  opacity: 0;
  animation: twinkle var(--duration) infinite ease-in-out;
  animation-delay: var(--delay);
  box-shadow: 0 0 4px gold;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: var(--opacity); transform: scale(1); }
}

/* Estrellas fugaces */
#shooting-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.shooting-star {
  position: absolute;
  width: 100px;
  height: 2px;
  background: linear-gradient(to right, rgba(255,215,0,0), rgba(255,215,0,1));
  transform: rotate(var(--angle));
  animation: shooting var(--duration) linear infinite;
  animation-delay: var(--delay);
  opacity: 0;
}

.shooting-star::before {
  content: '';
  position: absolute;
  right: 0;
  width: 10px;
  height: 10px;
  background: rgba(255,215,0,0.5);
  border-radius: 50%;
  box-shadow: 0 0 15px 2px gold;
}

@keyframes shooting {
  0% { 
    opacity: 0;
    transform: translateX(-100px) rotate(var(--angle)); 
  }
  5% { opacity: 1; }
  20% { opacity: 1; }
  30% { 
    opacity: 0;
    transform: translateX(calc(100vw + 100px)) rotate(var(--angle)); 
  }
  100% { 
    opacity: 0;
    transform: translateX(calc(100vw + 100px)) rotate(var(--angle)); 
  }
}

#loader-title {
  font-family: 'Great Vibes', cursive;
  font-size: 3.5em;
  color: gold;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.7), 0 0 20px rgba(255, 215, 0, 0.5);
  margin-bottom: 20px;
  animation: glow 2s infinite alternate, float 3s ease-in-out infinite;
  letter-spacing: 2px;
}

#loader-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 30px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.7), 0 0 40px rgba(255, 0, 0, 0.5);
  animation: pulse 2s infinite alternate;
  border: 3px solid gold;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7), 0 0 40px rgba(255, 0, 0, 0.5);
  }
  100% {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.9), 0 0 50px rgba(255, 0, 0, 0.7);
  }
}

@keyframes glow {
  0% {
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.7), 0 0 20px rgba(255, 215, 0, 0.5);
  }
  100% {
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.9), 0 0 30px rgba(255, 215, 0, 0.8), 0 0 45px rgba(255, 215, 0, 0.4);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

#loading-text {
  color: white;
  font-size: 1.5em;
  margin-top: 20px;
  letter-spacing: 1px;
}

#loading-text .dots {
  display: inline-block;
  animation: dots-animation 1.5s infinite;
}

#loader-wrapper.fade-out {
  opacity: 0;
  visibility: hidden;
}

#loader {
  width: 80px;
  height: 80px;
  border: 5px solid transparent;
  border-top-color: red;
  border-bottom-color: gold;
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
  position: relative;
}

#loader:before, #loader:after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

#loader:before {
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 4px solid transparent;
  border-left-color: white;
  border-right-color: white;
  animation: spin 1s linear infinite reverse;
}

#loader:after {
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 3px solid transparent;
  border-top-color: gold;
  border-bottom-color: red;
  animation: spin 1.2s linear infinite;
}

@keyframes dots-animation {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

@keyframes spin {
  0% {transform: rotate(0deg);}
  100% {transform: rotate(360deg);}
}

/* FONDO DE PARTÍCULAS */
#tsparticles {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.social-icons {
  margin-top: 1em;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.2);
  opacity: 0.8;
}
/* Botón WhatsApp */
#boton-whatsapp {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background-color: #ffffff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: all 0.5s ease;
  z-index: 9999;
  opacity: 0;
  transform: scale(0);
  animation: pulse 1.5s infinite alternate;

  /* Centrar contenido con Flexbox */
  display: flex;
  justify-content: center;
  align-items: center;
}

#boton-whatsapp img {
  width: 40px;
  height: 40px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  100% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
}

#boton-whatsapp:hover {
  background-color: #128C7E;
  transform: scale(1.1);
}

/* Botón Ir Arriba */
#boton-arriba {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: red;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: background-color 0.3s, transform 0.3s;
  z-index: 9999;

  /* Centrar contenido con Flexbox */
  display: flex;
  justify-content: center;
  align-items: center;
}

#boton-arriba:hover {
  background-color: darkred;
  transform: scale(1.1);
}