/* ==============================
   VARIABLES DE LAYOUT
================================ */
:root {
  --header-height: 90px;
}

/* ==============================
   HEADER - ESTILO CIRCO DE LUJO
================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-height);
  padding: 0 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11, 11, 11, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  transition: all 0.4s ease;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  
  /* Borde decorativo superior */
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--red), var(--gold), var(--red)) 1;
}

/* Efecto de luces de marquesina */
.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: marquee 3s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Estado al hacer scroll */
.header.scrolled {
  background: rgba(11, 11, 11, 0.98);
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.6),
    0 0 50px rgba(212, 175, 55, 0.1);
}

/* Estado con menú abierto */
.header.menu-open {
  background: rgba(11, 11, 11, 0.98);
}

/* ==============================
   LOGO
================================ */
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--white);
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  transition: transform 0.3s ease;
  z-index: 1002;
}

.logo:hover {
  transform: scale(1.05);
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

.logo span {
  color: var(--gold);
  position: relative;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
  }
}

/* ==============================
   NAVEGACIÓN DESKTOP
================================ */
.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 8px 4px;
  transition: color 0.3s ease;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* Subrayado animado */
.nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transition: width 0.4s ease;
  box-shadow: 0 0 10px var(--gold);
}

.nav a:hover {
  color: var(--gold);
}

.nav a:hover::after {
  width: 100%;
}

/* ==============================
   MENÚ HAMBURGUESA
================================ */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1002;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Menú activo */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* ==============================
   NAVEGACIÓN MÓVIL
================================ */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 350px;
    height: 100vh;
    background: linear-gradient(180deg, #1a0000, #000);
    flex-direction: column;
    justify-content: center;
    gap: 35px;
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    padding: 40px;
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 1001;
    margin: 0;
  }
  
  .nav.active {
    right: 0;
  }
  
  .nav a {
    font-size: 1.3rem;
    opacity: 0;
    transform: translateX(30px);
    color: var(--white);
    width: 100%;
    text-align: center;
    padding: 12px 0;
  }
  
  .nav.active a {
    animation: slideIn 0.5s ease forwards;
  }
  
  .nav a:nth-child(1) { animation-delay: 0.1s; }
  .nav a:nth-child(2) { animation-delay: 0.2s; }
  .nav a:nth-child(3) { animation-delay: 0.3s; }
  .nav a:nth-child(4) { animation-delay: 0.4s; }
  .nav a:nth-child(5) { animation-delay: 0.5s; }
  
  @keyframes slideIn {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  /* Prevenir scroll cuando el menú está abierto */
  @media (max-width: 768px) {
  body.menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
  }
}
  
  .header {
    padding: 0 24px;
    height: 70px;
  }
  
  :root {
    --header-height: 70px;
  }
  
  .logo {
    font-size: 1.3rem;
  }
  
  /* Footer responsive */
  .footer {
    padding: 80px 20px 40px;
  }
  
  .footer-top h3 {
    font-size: 2rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 25px;
  }
}

/* ==============================
   FOOTER - ESTILO CIRCO
================================ */
.footer {
  background: linear-gradient(180deg, #0a0000, var(--black));
  color: var(--white);
  padding: 100px 40px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Efecto de cortina de circo */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0px,
    var(--red) 40px,
    var(--gold) 40px,
    var(--gold) 80px
  );
}

/* Puntos de luz decorativos */
.footer::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.1),
    transparent 70%
  );
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1.2);
  }
}

.footer-top {
  position: relative;
  z-index: 1;
  margin-bottom: 50px;
}

.footer-top h3 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
  animation: fadeInUp 1s ease forwards;
}

.footer-top p {
  color: var(--gray);
  margin-bottom: 40px;
  font-size: 1.1rem;
  animation: fadeInUp 1.2s ease forwards;
}

/* Links del footer */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  position: relative;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 8px 16px;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.footer-links a::before {
  content: '★';
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  color: var(--gold);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateY(-3px);
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.footer-links a:hover::before {
  opacity: 1;
  left: -15px;
}

/* Copyright */
.footer-bottom {
  font-size: 0.9rem;
  color: var(--gray);
  padding-top: 30px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
  z-index: 1;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==============================
   AJUSTE GLOBAL PARA CONTENIDO
================================ */
main {
  padding-top: var(--header-height);
}

/* ==============================
   RESPONSIVE ADICIONAL
================================ */

@media (max-width: 1024px) {
  .header {
    padding: 0 40px;
  }
  
  .nav {
    gap: 22px;
  }
  
  .logo {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0 20px;
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  .nav {
    width: 85%;
  }
  
  .footer {
    padding: 60px 20px 40px;
  }
  
  .footer-top h3 {
    font-size: 1.7rem;
  }
}

/* ==============================
   MENÚ HAMBURGUESA - PRUEBA
================================ */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1002;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #D4AF37; /* gold */
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Navegación móvil */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: #000;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transition: right 0.3s ease;
    padding: 40px;
    z-index: 1001;
  }
  
  .nav.active {
    right: 0;
  }
  
  .nav a {
    font-size: 1.3rem;
    color: white;
    text-decoration: none;
  }
  
  /* Prevenir scroll cuando el menú está abierto */
  body.menu-open {
    overflow: hidden;
  }
}