/* RESET Y BASE */
* {
  box-sizing: border-box;
  margin: 0; 
  padding: 0;
  font-family: 'Raleway', sans-serif;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  width: 100vw;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  overflow-y: hidden;
}

/* HERO CON VÍDEO DE FONDO - ESTO ES LO ÚNICO QUE CAMBIÉ */
/* HERO CON VÍDEO DE FONDO - AHORA SÍ FUNCIONA PERFECTO */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  overflow: hidden;
}

/* Vídeo de fondo */
.hero video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Fallback imagen */
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../imag/ka.webp') center center / cover no-repeat;
  z-index: -2;
}



/* IMPORTANTE: todo lo que tenga botones debe estar por encima del overlay */
.top-buttons,
.content,
header,
footer {
  position: relative;
  top: -20px; /* ← SUBE el footer */
  z-index: 30;
  text-align: center;
  padding: 10px 15px 20px;
  width: 100%;
}


footer .footer-text {
  display: inline-block;
  background: rgba(0, 0, 0, 0.65);
  color: #eee;
  padding: 11px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(255, 20, 129, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 20, 129, 0.3);
  line-height: 1.6;
}

footer .footer-text a {
  color: #ff66b2;
  text-decoration: none;
  margin-left: 15px;
  font-weight: 600;
}

footer .footer-text a:hover {
  text-decoration: underline;
  color: #ff99cc;
}

/* ←←←←←←←←← AQUÍ ESTABA TU ERROR DE MIERDA, YA LO BORRÉ →→→→→→→→→→ */
/* #year::before { content: attr(data-year); }  ← ESTA LÍNEA LA SAQUÉ, ERA LA QUE TE DEJABA EL AÑO VACÍO */

/* Solo dejo esta línea para que el año se vea bien centrado */
#year {
  display: inline-block;
  min-width: 4ch;
  text-align: center;
}

@media (max-width: 768px) {
  footer .footer-text {
    padding: 12px 20px;
    font-size: 10px !important;   /* ← CAMBIÁ ESTO DE 0.9rem A 9px */
    border-radius: 30px;
  }
  
  footer .footer-text a {
    display: block;
    margin: 5px 8px 0 8px;
    /* ya no hace falta poner font-size acá porque lo hereda del padre */
    line-height: 1.2;
  }
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(0,0,0,0.5);
  position: relative;
  z-index: 10;
}

.logo img {
  height: 50px;    /* altura del logo */
  width: auto;     /* mantiene proporción */
  
  /* Baja el logo manualmente */
  margin-top: 20px; /* ajusta este valor para subir o bajar más */
}


nav {
  position: relative;
}

.menu-toggle {
  display: none;
}

.menu-items {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.menu-items a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  position: relative;
  
}

.has-submenu {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 35px;
  left: 0;
  background: rgba(0,0,0,0.9);
  border-radius: 8px;
  flex-direction: column;
  padding: 10px;
  min-width: 140px;
  z-index: 20;
}

.submenu a {
  font-size: 0.95em;
  padding: 8px 10px;
  color: white;
  text-decoration: none;
}

.submenu a:hover {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.submenu.show-submenu {
  display: flex !important;
}

.arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.submenu-toggle.active .arrow {
  transform: rotate(180deg);
}

/* CONTENIDO */
.content {
  text-align: center;
  padding-bottom: 80px;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.content h1 {
  font-size: 3em;
  margin-bottom: 10px;
  text-shadow: 2px 2px 5px black;
}

.content p {
  font-size: 1.2em;
  text-shadow: 1px 1px 3px black;
}

.news-button {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  background-color: #e91e63;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  transition: background-color 0.3s ease;
}

.news-button:hover {
  background-color: #c2185b;
}

footer {
  text-align: center;
  padding: 15px;
  font-size: 14px;
  color: #ccc;
  position: relative;
  z-index: 2;
}

footer .footer-text {
  display: inline-block;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 15px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(255, 64, 129, 0.5);
  font-size: 0.9rem;
}

footer .footer-text a {
  color: #ccc;
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    background: rgba(0,0,0,0.7);
    padding: 8px 12px;
    border-radius: 6px;
    user-select: none;
    cursor: pointer;
  }

  .menu-items {
    display: none;
    flex-direction: column;
    background: #000000 !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: auto;
    padding: 60px 20px 20px 20px;
    z-index: 20;
  }

  .menu-items.show {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .menu-items a {
    margin: 10px 0;
  }

  .submenu {
    position: static;
    background: transparent;
    padding-left: 10px;
    display: none;
  }

  .submenu.show-submenu {
    display: flex;
  }

  .submenu a {
    font-size: 1em;
    padding: 6px 0;
    color: white;
  }

  footer .footer-text {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
    padding: 0 1rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(255, 64, 129, 0.5);
    gap: 10px;
  }
}

/* Hover rosa en enlaces */
.menu-items a:hover,
.submenu a:hover {
  color: #ff66b2;
  transition: color 0.3s ease;
}

/* SELECTOR DE IDIOMA - COMPLETO */
#language-selector {
  position: fixed;
  top: 100px;
  left: 10px;
  z-index: 999;
  font-family: Arial, sans-serif;
}

#lang-button {
  font-size: 12px;
  padding: 2px 4px;
  cursor: pointer;
  background: linear-gradient(135deg, #d90429, #9b0a14);
  border: none;
  color: white;
  border-radius: 25px;
  box-shadow: 0 4px 10px rgba(217,4,41,0.6);
  font-weight: 700;
  letter-spacing: 1px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  text-transform: uppercase;
}

#lang-button:hover {
  background: linear-gradient(135deg, #9b0a14, #d90429);
  box-shadow: 0 6px 15px rgba(217,4,41,0.8);
}

#lang-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(217,4,41,0.5);
}

#lang-dropdown {
  display: none;
  margin-top: 5px;
  border: 1px solid red;
  border-radius: 4px;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  text-align: center;
  min-width: 100px;
  padding: 5px 0;
}

#lang-dropdown.show {
  display: block;
  border-top: 2px solid #900;
}

#lang-dropdown button {
  font-size: 14px;
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: black;
  cursor: pointer;
  text-align: center;
  display: block;
  margin: 2px auto;
  max-width: 90%;
  border-radius: 3px;
}

#lang-dropdown button:hover {
  background-color: #f2f2f2;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-5px);}
  to {opacity: 1; transform: translateY(0);}
}