/* ================ */
/* Variables CSS    */
/* ================ */
:root {
  /* Paleta principal */
  --dark:          #0D1B2A;
  --dark-2:        #112236;
  --dark-3:        #152A42;
  --dark-4:        #1a2f47;
  --yellow:        #FAF320;
  --yellow-dim:    rgba(250, 243, 32, 0.12);
  --yellow-glow:   rgba(250, 243, 32, 0.30);
  --yellow-hover:  #ffffff;

  /* Texto */
  --text-light:    #F0F0F0;
  --text-muted:    #9EAFC2;
  --text-dark:     #0D1B2A;

  /* Bordes y sombras */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-yellow: rgba(250, 243, 32, 0.4);
  --box-shadow:    0 4px 24px rgba(0, 0, 0, 0.35);
  --box-shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.25);

  /* Tipografía */
  --font-display:  'Barlow Condensed', sans-serif;
  --font-body:     'Barlow', sans-serif;

  /* Layout */
  --max-width:     1200px;
  --content-width: 1000px;
  --header-height: 60px;

  /* Misc */
  --border-radius:    6px;
  --border-radius-sm: 3px;
  --transition:       all 0.3s ease;
  --transition-fast:  all 0.15s ease;
}

/* ================ */
/* Reset y Base     */
/* ================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-light);
  background-color: var(--dark);
  padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
}

main {
  padding-bottom: 60px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-light);
  text-transform: uppercase;
  margin-top: 28px;
  margin-bottom: 14px;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }

p {
  color: var(--text-muted);
  line-height: 1.75;
}

a {
  color: var(--yellow);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--yellow-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* ================ */
/* Utilidades       */
/* ================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  line-height: 1.1;
  margin-bottom: 14px;
  margin-top: 0;
}

.section-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 560px;
}

/* Reveal animación (scroll) */
.section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.section.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================ */
/* Botones          */
/* ================ */
.btn-primary {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  padding: 13px 32px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn-primary:hover {
  background: var(--yellow-hover);
  color: var(--dark);
  box-shadow: 0 0 28px var(--yellow-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-light);
  padding: 13px 32px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(240, 240, 240, 0.25);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-secondary:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-2px);
}

/* ================ */
/* Breadcrumb       */
/* ================ */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 40px;
}

.breadcrumb ol {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--yellow);
}

.breadcrumb a:hover {
  color: var(--text-light);
}

.breadcrumb span {
  color: var(--text-muted);
}

/* ================ */
/* Header           */
/* ================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background: rgba(13, 27, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 1rem;
  transition: box-shadow 0.3s;
}

header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  height: 38px;
  width: auto;
}

/* Logo texto fallback */
.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
}
.logo-text span {
  color: var(--yellow);
}

/* Nav desktop */
nav {
  display: block;
}

nav a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width 0.25s ease;
}

nav a:hover {
  color: var(--text-light);
}

nav a:hover::after {
  width: 100%;
}

nav a.active {
  color: var(--yellow);
}

nav a.active::after {
  width: 100%;
}

/* CTA en nav */
.nav-cta {
  background: var(--yellow);
  color: var(--dark) !important;
  padding: 8px 18px;
  border-radius: var(--border-radius-sm);
  font-weight: 700 !important;
  margin-left: 10px !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: #fff !important;
  color: var(--dark) !important;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-sm);
  padding: 6px;
  color: var(--text-light);
  cursor: pointer;
  transition: border-color 0.2s;
}
.menu-toggle:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* Mobile nav */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(13, 27, 42, 0.98);
    border-bottom: 1px solid var(--border-subtle);
    padding: 8px 0 16px;
  }

  nav.active {
    display: block;
  }

  nav a {
    display: block;
    margin: 0;
    padding: 12px 28px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 1rem;
  }

  nav a::after { display: none; }

  nav a:last-child {
    border-bottom: none;
  }

  .nav-cta {
    margin: 12px 28px 0 !important;
    display: block;
    text-align: center;
  }
}

@media (min-width: 769px) {
  .menu-toggle { display: none; }
  nav { display: flex !important; align-items: center; }
}

/* ================ */
/* Footer           */
/* ================ */
footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 48px 20px 28px;
  margin-top: 0;
}

.footer-slogan {
  text-align: center;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-slogan img {
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-slogan p {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 32px;
}

.footer-info {
  flex: 1;
  min-width: 260px;
  line-height: 1.8;
}

.footer-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-info .footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
}

.footer-info a {
  color: var(--yellow);
}

.footer-info a:hover {
  color: var(--text-light);
}

.footer-info .footer-copy {
  margin-top: 14px;
  font-size: 0.78rem;
  color: rgba(158, 175, 194, 0.5);
}

.footer-social {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.footer-social p {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.social-icons-footer {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-icons-footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-sm);
  transition: border-color 0.2s, transform 0.15s;
  color: var(--text-muted);
}

.social-icons-footer a:hover {
  border-color: var(--yellow);
  transform: translateY(-2px);
}

.dmca-badge {
  margin-top: 8px;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.dmca-badge:hover { opacity: 1; }

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
  }

  .footer-info,
  .footer-social {
    align-items: center;
    text-align: center;
    min-width: 100%;
  }

  .footer-social {
    order: -1;
  }

  .breadcrumb {
    padding: 10px 20px;
  }

  .container {
    padding: 0 20px;
  }
}

/* ================ */
/* Reduced Motion   */
/* ================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .section {
    opacity: 1 !important;
    transform: none !important;
  }
}
