/* ────────────────────────────────────────────────────────────
   BUNKER · site.css
   Capa compartida sobre los estilos inline de cada página.
   Se carga DESPUÉS del <style> embebido para overridear lo necesario.
   ──────────────────────────────────────────────────────────── */

/* ─── LIGHT MODE ─── */
html[data-theme="light"] {
  --bg: #f5f5f3;
  --fg: #0a0a0a;
  --muted: #888;
  --border: rgba(0,0,0,0.10);
}
html[data-theme="light"] body { background: var(--bg); color: var(--fg); }
html[data-theme="light"] body::before { opacity: 0.35; mix-blend-mode: multiply; }
html[data-theme="light"] nav.scrolled {
  background: rgba(245,245,243,0.92);
  border-bottom-color: rgba(0,0,0,0.08);
}
html[data-theme="light"] .nav-logo img,
html[data-theme="light"] .footer-logo img { filter: none; }
html[data-theme="light"] .client-item img {
  filter: brightness(0); opacity: 0.55;
}
html[data-theme="light"] .client-item:hover img { opacity: 1; filter: brightness(0); }
html[data-theme="light"] .client-item:hover { background: rgba(0,179,128,0.06); }
html[data-theme="light"] #proyectos,
html[data-theme="light"] #proceso { background: #efefec; }
html[data-theme="light"] .btn-ghost { border-color: rgba(0,0,0,0.25); color: var(--fg); }
html[data-theme="light"] .btn-primary { color: #fff; background: #00b380; }
html[data-theme="light"] .btn-primary:hover { background: #0a0a0a; color: #fff; }
html[data-theme="light"] .paso-num { color: rgba(0,0,0,0.06); }
html[data-theme="light"] .cursor { mix-blend-mode: multiply; }
html[data-theme="light"] .marquee-section,
html[data-theme="light"] footer { background: var(--bg); }
html[data-theme="light"] .marquee-item { color: #aaa; }
html[data-theme="light"] input, html[data-theme="light"] textarea, html[data-theme="light"] select {
  background: #fff !important; color: var(--fg) !important;
  border-color: rgba(0,0,0,0.15) !important;
}

/* ─── THEME TOGGLE BUTTON ─── */
.theme-toggle {
  background: none; border: 1px solid var(--border);
  color: var(--fg); width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: none; transition: border-color .2s, color .2s;
  padding: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ─── HAMBURGER + MOBILE MENU ─── */
.nav-hamburger {
  display: none; background: none; border: 0;
  width: 40px; height: 40px; cursor: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; padding: 0;
}
.nav-hamburger span {
  width: 22px; height: 1.5px; background: var(--fg);
  transition: transform .3s, opacity .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: 100px 32px 40px;
  transform: translateY(-100%); opacity: 0;
  transition: transform .35s ease, opacity .25s ease;
  pointer-events: none;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--bebas);
  font-size: 38px; letter-spacing: 2px;
  color: var(--fg); text-decoration: none;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  transition: color .2s, padding-left .3s;
}
.mobile-menu a:hover { color: var(--accent); padding-left: 8px; }
.mobile-menu .mobile-section {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin: 24px 0 8px; opacity: 0.7;
  font-family: var(--grotesk); border: 0;
}
.mobile-menu .mobile-actions {
  margin-top: 32px; display: flex; gap: 12px; align-items: center;
}

@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-links { display: none !important; }
  body { cursor: auto !important; }
  .cursor, .cursor-ring { display: none !important; }
  .nav-hamburger, .theme-toggle, .mobile-menu a, .nav-lang { cursor: pointer !important; }
  a, button { cursor: pointer !important; }
}

/* Touch devices: hide custom cursor regardless */
@media (hover: none) and (pointer: coarse) {
  body { cursor: auto !important; }
  .cursor, .cursor-ring { display: none !important; }
  a, button, .service-item, .proyecto-card { cursor: pointer !important; }
}

/* Body lock when mobile menu open */
body.menu-open { overflow: hidden; }

/* Smaller refinements */
.nav-lang { cursor: none; }
@media (max-width: 768px) { .nav-lang { cursor: pointer; } }

/* Skip-link a11y */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #060606;
  padding: 12px 20px; z-index: 999;
  font-weight: 700; letter-spacing: 1px;
}
.skip-link:focus { left: 0; }

/* Print */
@media print {
  nav, .mobile-menu, .marquee-section, .cursor, .cursor-ring, .hero-scroll { display: none !important; }
  body { color: #000 !important; background: #fff !important; }
}
