/* ===== Reset base (cargado con header, primer CSS) ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  background-color: #0a0a0c;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: #17171a;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

/* Eyebrow compartido de sección (estilo, no variable) */
.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #e10600;
  text-align: center;
  margin-bottom: 10px;
}

/* Animación de aparición al hacer scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Header ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 12, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

#header.scrolled {
  background: #0a0a0c;
  border-bottom: 1px solid rgba(225, 6, 0, 0.25);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.header-logo i {
  font-size: 26px;
  color: #e10600;
}

.header-logo-text {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.header-logo-text span {
  color: #e10600;
}

.header-logo:hover {
  transform: scale(1.03);
}

.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.header-nav ul li a {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d8d8dc;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.header-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #e10600;
  transition: width 0.3s ease;
}

.header-nav ul li a:hover,
.header-nav ul li a[aria-current="page"] {
  color: #ffffff;
}

.header-nav ul li a:hover::after,
.header-nav ul li a[aria-current="page"]::after {
  width: 100%;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: #ffffff;
  background: #e10600;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.header-cta:hover {
  background: #ff2a1a;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(225, 6, 0, 0.35);
}

.header-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.header-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.35s ease, width 0.35s ease;
  transform-origin: center;
}

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

.header-mobile-nav {
  display: none;
  background: #0a0a0c;
  border-top: 1px solid rgba(225, 6, 0, 0.2);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}

.header-mobile-nav.open { max-height: 400px; }

.header-mobile-nav ul {
  list-style: none;
  padding: 12px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-mobile-nav ul li a {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #d8d8dc;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.header-mobile-nav ul li a:hover {
  color: #e10600;
  padding-left: 8px;
}

/* ===== Responsive ===== */
@media (min-width: 1440px) {
  .header-inner { max-width: 1320px; padding: 0 64px; }
}

@media (max-width: 1280px) {
  .header-inner { padding: 0 40px; }
  .header-nav ul { gap: 26px; }
}

@media (max-width: 1024px) {
  .header-inner { padding: 0 32px; height: 78px; }
  .header-nav ul { gap: 20px; }
  .header-nav ul li a { font-size: 13px; }
  .header-logo-text { font-size: 19px; }
  .header-cta { padding: 10px 18px; font-size: 13px; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 24px; height: 72px; }
  .header-nav { display: none; }
  .header-cta { display: none; }
  .header-hamburger { display: flex; }
  .header-mobile-nav { display: block; }
  html { scroll-padding-top: 72px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 16px; height: 64px; }
  .header-logo i { font-size: 22px; }
  .header-logo-text { font-size: 17px; }
  html { scroll-padding-top: 64px; }
}
