:root {
  --bg-color: #000000;
  --text-color: #fff700;
  --accent-color: #aaff00;
  --link-hover: #90f906;
  --card-bg: #111;
}

[data-theme="light"] {
  --bg-color: #ffffff;
  --text-color: #222222;
  --accent-color: #007acc;
  --link-hover: #0055aa;
  --card-bg: #f3f3f3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2rem;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Outfit', sans-serif;
  scroll-behavior: smooth;
  text-shadow:
    0 0 1.9px var(--accent-color),
    0 0 1.9px var(--accent-color),
    0 0 1.5px var(--accent-color);
  transition: all 0.4s ease-in-out;
}

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--bg-color);
  padding: 1rem;
  border-bottom: 1px solid var(--accent-color);
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

nav a:hover {
  color: var(--link-hover);
}

.lang-switch select,
#themeToggle,
#theme-toggle {
  background: var(--accent-color);
  color: var(--bg-color);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-switch select:hover,
#themeToggle:hover,
#theme-toggle:hover {
  background: var(--link-hover);
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

h1, h2 {
  text-align: center;
}

.button {
  background: var(--accent-color);
  color: var(--bg-color);
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
  margin-top: 1rem;
  transition: background 0.3s ease;
}

.button:hover {
  background: var(--link-hover);
}

input,
textarea {
  width: 100%;
  background: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--accent-color);
  padding: 0.5rem;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--accent-color);
  padding: 1rem;
  border-radius: 10px;
  width: 250px;
  text-align: center;
  color: var(--text-color);
  transition: background 0.3s ease, color 0.3s ease;
}

footer {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.8rem;
}

footer a {
  color: var(--text-color);
  text-decoration: underline;
}

footer a:hover {
  color: var(--link-hover);
}

/* Spark effect */
.spark {
  position: absolute;
  background: #62ff00;
  border-radius: 1000%;
  pointer-events: none;
  opacity: 1;
  animation: sparkFade 0.5s ease-out forwards;
  z-index: 9999;
}

@keyframes sparkFade {
  to {
    opacity: 0;
    transform: scale(0.5);
  }
}

/* Scroll to Top Button */
#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent-color);
  color: var(--bg-color);
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  z-index: 999;
  transition: background 0.3s ease;
}

#scrollToTop:hover {
  background: var(--link-hover);
}

/* Testimonials */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.testimonial {
  background: var(--card-bg);
  border: 1px solid var(--accent-color);
  border-radius: 10px;
  padding: 1rem;
  width: 280px;
  color: var(--text-color);
  font-style: italic;
  position: relative;
}

.testimonial .rating {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.2rem;
}

@media (max-width: 600px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }

  nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .testimonial {
    width: 100%;
  }
}
.social-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-links a svg {
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
  filter: drop-shadow(0 0 3px #f0fe33);
}

.social-links a svg:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 6px #ffea00);
}
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.3);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fbee65;
  padding: 2rem;
}
header {
  position: sticky;
  top: 0;
  z-index: 999; /* Para que quede por encima del resto */
  background-color: rgba(0, 0, 0, 0.9); /* Fondo semitransparente oscuro */
  backdrop-filter: blur(6px); /* desenfoque moderno */
  padding: 1rem 0;
  transition: background-color 0.3s ease;
}
header.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
  padding: 1rem 0;
  transition: background-color 0.3s ease;
}

header.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
/* ===== MENU HAMBURGUESA RESPONSIVE ===== */
#menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--accent-color, #f0fe33);
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
}

/* Ajustes en móviles */
@media (max-width: 768px) {
  #menu-toggle {
    display: block;
  }

  #main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70%;
    background-color: var(--background-color, #000);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
  }

  #main-nav.open {
    transform: translateX(0);
  }

  #main-nav .nav-link {
    margin: 1.5rem 0;
    font-size: 1.5rem;
  }

  .lang-switch {
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
  }
}
/* Estilo base para nav (oculto en móviles) */
@media (max-width: 768px) {
  #main-nav {
    display: none;
    flex-direction: column;
    background-color: #000;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    z-index: 1000;
  }

  #main-nav.open {
    display: flex;
  }

  #menuToggle {
    display: block;
    background: none;
    border: none;
    color: #f0fe33;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1100;
  }
}
/* -----------------------------
   MENÚ RESPONSIVE
------------------------------ */
#menuToggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #f0fe33;
  cursor: pointer;
  margin-left: auto;
}

@media (max-width: 768px) {
  #main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: #000;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    padding: 1rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
  }

  #main-nav.open {
    transform: translateY(0);
  }

  #main-nav .nav-link {
    padding: 0.75rem 1rem;
    width: 100%;
  }

  .lang-switch {
    margin-top: 1rem;
  }

  #menuToggle {
    display: block;
    position: absolute;
    top: 15px;
    right: 20px;
  }
}
