/* ─── VARIABLES ─── */
:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dark: #8B6914;
  --green: #1A3D1A;
  --green-dark: #0F2810;
  --dark: #0D0D0D;
  --dark-2: #141414;
  --dark-3: #1E1E1E;
  --dark-4: #2A2A2A;
  --gray: #888;
  --light: #F5F0E8;
  --white: #FDFAF4;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dark);
  color: var(--white);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
  transition: all 0.3s ease;
}

.nav-logo {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  line-height: 1.2;
}

.nav-unofficial {
  display: block;
  width: 100%;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.55rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.06em;
  text-transform: none;
  text-align: center;
  color: rgba(245, 240, 232, 0.4);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.6);
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

.nav-links a:hover {
  color: var(--gold);
}

/* ─── HAMBURGER ─── */
.nav-hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── BOTONES ─── */
.btn-primary {
  padding: 0.9rem 2.2rem;
  background: var(--gold);
  color: var(--dark);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  display: inline-block;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3);
}

.btn-secondary {
  padding: 0.9rem 2.2rem;
  background: transparent;
  color: var(--gold);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(201, 168, 76, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-secondary:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

.btn-logout {
  background: transparent;
  border: 1px solid rgba(201, 168, 76, 0.3);
  padding: 0.4rem 1rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  transition: all 0.2s;
  clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
  font-family: 'Source Sans 3', sans-serif;
}

.btn-logout:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--gold);
  color: var(--white);
}

/* ─── SECCIONES ─── */
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.3), transparent);
  max-width: 200px;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-body {
  font-family: 'Crimson Text', serif;
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(245, 240, 232, 0.7);
}

/* ─── ACCESO DENEGADO ─── */
.unauthorized-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  max-width: 500px;
  margin: 4rem auto;
  background: var(--dark-2);
  border: 1px solid rgba(201, 168, 76, 0.2);
  position: relative;
}

.unauthorized-container::before,
.unauthorized-container::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--gold);
  border-style: solid;
}

.unauthorized-container::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.unauthorized-container::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.unauthorized-icon  { font-size: 3rem; color: var(--gold); margin-bottom: 1.5rem; }
.unauthorized-title { font-family: 'Cinzel', serif; font-size: 1.5rem; color: var(--white); margin-bottom: 1rem; letter-spacing: 0.05em; }
.unauthorized-text  { font-family: 'Crimson Text', serif; font-size: 1.1rem; color: rgba(245, 240, 232, 0.6); margin-bottom: 2rem; line-height: 1.6; }

/* ─── FOOTER ─── */
footer {
  background: var(--dark-2);
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner { max-width: 700px; margin: 0 auto; }

.footer-logo {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.footer-sub {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.25);
  margin-bottom: 1.5rem;
}

.footer-divider {
  width: 40px;
  height: 1px;
  background: rgba(201, 168, 76, 0.3);
  margin: 1.5rem auto;
}

.footer-motto {
  font-family: 'Crimson Text', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(245, 240, 232, 0.3);
}

/* ─── ANIMACIONES ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
  /* Logo centrado en móvil; la hamburguesa flota a la derecha */
  nav { justify-content: center; }

  .nav-logo {
    align-items: center;
    text-align: center;
  }

  .nav-hamburger {
    display: flex;
    position: absolute;
    right: 2.5rem;
    top: 1.1rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 57px;
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(12px);
    padding: 1.5rem 2.5rem;
    flex-direction: column;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    z-index: 99;
  }

  .nav-links.open { display: flex; }
}
