/* ============================================
   RESET Y CONFIGURACIÓN BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colores */
  --primary-color: #fff;
  --secondary-color: #000;
  --hover-color: #4a9eff;
  --shadow-color: rgba(0, 0, 0, 0.5);

  /* Espaciado */
  --nav-height: 80px;
  --container-padding: 2rem;

  /* Transiciones */
  --transition-speed: 0.3s;
}

/* ============================================
   ESTILOS GENERALES
   ============================================ */
body {
  margin: 0;
  background: linear-gradient(
    135deg,
    #000000 0%,
    #1a1a2e 25%,
    #0f3460 50%,
    #16213e 75%,
    #000000 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  position: relative;
  color: var(--primary-color);
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  font-family: "Alfa Slab One", cursive;
  overflow-x: hidden;
}

/* Capa de gradiente superpuesta para mayor profundidad */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      ellipse at top,
      rgba(74, 158, 255, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at bottom,
      rgba(0, 212, 255, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

/* Animación sutil del gradiente */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  padding: 0 var(--container-padding);
  flex: 1;
  position: relative;
  z-index: 1;
}

/* ============================================
   NAVEGACIÓN
   ============================================ */
.nav {
  font-family: "Poppins", sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  margin: 2rem 0 3rem 0;
  box-shadow: 0 8px 32px var(--shadow-color);
  position: relative;
  z-index: 1000;
  height: var(--nav-height);
}

/* Logo y nombre */
.nav .col1 {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 600;
  z-index: 1001;
}

.nav .col1 img {
  width: clamp(45px, 8vw, 60px);
  height: clamp(45px, 8vw, 60px);
  border-radius: 10px;
  transition: transform var(--transition-speed) ease;
}

.nav .col1 img:hover {
  transform: scale(1.1) rotate(5deg);
}

.nav .col1 p {
  margin: 0;
  background: linear-gradient(135deg, #fff, #4a9eff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Menú de navegación */
.nav .col2 {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav .col2 a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-speed) ease;
}

.nav .col2 a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4a9eff, #00d4ff);
  transition: width var(--transition-speed) ease;
}

.nav .col2 a:hover {
  color: var(--hover-color);
}

.nav .col2 a:hover::after {
  width: 100%;
}

/* Botón hamburguesa (oculto por defecto) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  transition: transform var(--transition-speed) ease;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
  transition: all var(--transition-speed) ease;
}

.hamburger:hover {
  transform: scale(1.1);
}

/* Animación del botón hamburguesa cuando está activo */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   CONTENIDO PRINCIPAL
   ============================================ */
.weekend {
  font-size: clamp(0.5rem, 2vw, 2rem);
  text-align: center;
  margin-top: 1rem;
  text-shadow: 2px 2px 8px var(--shadow-color);
  animation: fadeIn 1s ease-in;
}

.event {
  font-size: clamp(1rem, 2vw, 2rem);
  text-align: center;
  margin-top: 1rem;
  text-shadow: 2px 2px 8px var(--shadow-color);
  animation: fadeIn 1.2s ease-in;
}

.counter {
  font-size: clamp(3rem, 8vw, 5rem);
  padding: 2rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  margin-top: 2rem;
  box-shadow: 0 10px 40px var(--shadow-color);
  border: 2px solid rgba(74, 158, 255, 0.3);
  min-width: min(90%, 400px);
  animation: fadeIn 1.4s ease-in, pulse 2s infinite;
}

.counter-description {
  font-family: "Poppins", sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  text-align: center;
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  font-style: italic;
  text-shadow: 1px 1px 4px var(--shadow-color);
  animation: fadeIn 1.6s ease-in;
}

footer {
  margin-top: auto;
  padding: 1rem;
  text-align: center;
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 10px 40px var(--shadow-color);
  }
  50% {
    box-shadow: 0 10px 40px rgba(74, 158, 255, 0.4);
  }
}

/* ============================================
   MEDIA QUERIES - RESPONSIVE
   ============================================ */

/* Tablets y pantallas medianas (max-width: 768px) */
@media screen and (max-width: 768px) {
  :root {
    --container-padding: 1rem;
  }

  .nav {
    padding: 1rem 1.5rem;
    margin: 1.5rem 0 2rem 0;
  }

  .hamburger {
    display: flex;
  }

  .nav .col2 {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 50%;
    max-width: 300px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem;
    transition: right var(--transition-speed) ease;
    box-shadow: -5px 0 20px var(--shadow-color);
  }

  .nav .col2.active {
    right: 0;
  }

  .nav .col2 a {
    font-size: 1.2rem;
    padding: 0.75rem 0;
    width: 100%;
    text-align: center;
  }

  .weekend {
    margin-top: 1rem;
  }

  .counter {
    padding: 1.5rem;
    margin-top: 1.5rem;
  }
}

/* Móviles pequeños (max-width: 480px) */
@media screen and (max-width: 480px) {
  .nav {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin: 1rem 0 1.5rem 0;
  }

  .nav .col1 {
    gap: 0.5rem;
  }

  .nav .col2 {
    width: 60%;
    gap: 2rem;
  }

  .weekend {
    margin-top: 0.5rem;
    padding: 0 1rem;
  }

  .event {
    margin-top: 0.5rem;
    padding: 0 1rem;
  }

  .counter {
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 15px;
  }
}

/* Pantallas grandes (min-width: 1400px) */
@media screen and (min-width: 1400px) {
  .nav {
    padding: 2rem 3rem;
  }

  .nav .col2 {
    gap: 3rem;
  }

  .nav .col2 a {
    font-size: 1.1rem;
  }

  .counter {
    padding: 2.5rem;
    min-width: 500px;
  }
}

/* Modo landscape en móviles */
@media screen and (max-height: 600px) and (orientation: landscape) {
  .nav {
    margin: 1rem 0;
  }

  .weekend,
  .event {
    margin-top: 0.5rem;
  }

  .counter {
    margin-top: 1rem;
    padding: 1rem;
  }
}
