/* Global reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base styles */
body,
html {
  font-family: "Roboto", sans-serif;
  height: 100%;
  background: #000;
  color: white;
  overflow-x: hidden;
}

/* Background canvas */
canvas#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Container */
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Hero Section */
.hero {
  padding: 2.5rem;
  background: rgba(20, 20, 20, 0.5);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(123, 228, 62, 0.2);
  max-width: 900px;
  width: 90%;
  transition: all 0.4s ease-in-out;
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3.5rem;
  background: linear-gradient(120deg, #7be43e, #5b913b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p.position {
  font-size: 1.2rem;
  color: #b6ff9e;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.hero p.motto {
  font-size: 1.1rem;
  font-style: italic;
  color: #a7ffa2;
  margin-bottom: 1.5rem;
}

.hero-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero-texts {
  display: flex;
  flex-direction: column;
  margin-left: 3rem;
  align-items: flex-start;
}

/* Image */
.profile-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #7be43e;
  box-shadow: 0 0 20px rgba(123, 228, 62, 0.5);
}

/* Buttons */
.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}

.btn {
  background: rgba(123, 228, 62, 0.1);
  border: 1px solid #7be43e;
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.btn:hover {
  background: #7be43e;
  color: #000;
  transform: translateY(-2px);
}

/* Footer */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  background: transparent;
  color: white;
  padding: 2rem 1rem;
  font-size: 1rem;
  gap: 1rem;
  position: relative;
  z-index: 3;
}

.footer .social {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: color 0.3s;
}

.footer .social:hover {
  color: #7be43e;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    align-items: center;
  }

  .hero-texts {
    margin: 1rem 0 0 0;
    align-items: center;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
    text-align: center;
  }

  .buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
  }

  .profile-img {
    width: 140px;
    height: 140px;
  }
}

/* === HERO ENTRADA ANIMADA === */
.hero {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.4s;
}

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

/* === BRILLO EN EL H1 === */
.hero h1 {
  position: relative;
  overflow: hidden;
}

.hero h1::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: skewX(-20deg);
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* === FOOTER FIJO AL FONDO === */
.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  z-index: 3;
  background: transparent;
}

/* === LANG SWITCHER === */
.lang-switch-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #7be43e;
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  backdrop-filter: blur(10px);
}

.flag {
  font-size: 1.2rem;
}

.lang-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.lang-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #7be43e;
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* === Cookies === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  text-align: center;
  padding: 0.7rem;
  font-size: 0.9rem;
  z-index: 1000;
  display: none;
}

.cookie-banner button {
  background: #7be43e;
  border: none;
  padding: 0.3rem 0.8rem;
  margin-left: 1rem;
  border-radius: 4px;
  cursor: pointer;
}
