@import url("pdp-unified-footer.css");

:root {
  --pdp-nav-accent: var(--green-neon, #60ff01);
  --pdp-header-h: 72px;
  --pdp-topbar-h: 34px;
}

.pdp-unified-header,
.header.pdp-unified-header {
  position: sticky;
  top: var(--pdp-shell-top, var(--pdp-topbar-h, 34px));
  z-index: 99990;
  background: rgba(4, 6, 4, 0.92) !important;
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(96, 255, 1, 0.12) !important;
}

.pdp-unified-header .header__inner {
  min-height: var(--pdp-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}

.pdp-unified-header .brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.pdp-unified-header .logo-pdp,
.pdp-unified-header .logo-pdp-symbol {
  height: 40px !important;
  width: 40px !important;
  max-width: 40px;
  object-fit: contain !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.pdp-unified-header .logo-text-border {
  display: none !important;
}

.pdp-unified-header .nav,
.pdp-unified-header .blog-navigation {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 22px);
}

.pdp-unified-header .nav > a,
.pdp-unified-header .nav-dropdown > a,
.pdp-unified-header .blog-navigation > a:not(.blog-nav-cta) {
  color: #d4d4d8 !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}

.pdp-unified-header .nav > a::after,
.pdp-unified-header .nav-dropdown__trigger::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  bottom: -6px !important;
  width: 0 !important;
  height: 2px !important;
  background: var(--pdp-nav-accent) !important;
  transform: none !important;
  transition: width 0.25s ease !important;
}

.pdp-unified-header .nav > a:hover::after,
.pdp-unified-header .nav > a.is-active::after,
.pdp-unified-header .nav-dropdown__trigger:hover::after,
.pdp-unified-header .nav-dropdown__trigger.is-active::after {
  width: 100% !important;
}

.pdp-unified-header .nav > a.is-active,
.pdp-unified-header .nav-dropdown__trigger.is-active {
  color: #fff !important;
}

.pdp-unified-header .header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pdp-unified-header .pdp-header-cta {
  white-space: nowrap;
  font-size: 0.78rem !important;
  padding: 10px 16px !important;
}

.pdp-unified-header .blog-nav-cta {
  display: none !important;
}

.pdp-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #a1a1aa;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.pdp-lang-toggle.is-es .pdp-lang-toggle__es,
.pdp-lang-toggle.is-en .pdp-lang-toggle__en {
  color: var(--pdp-nav-accent);
}

body[data-pdp-page="marketing"] { --pdp-nav-accent: #ff6b2b; }
body[data-pdp-page="desarrollo"] { --pdp-nav-accent: #00e5ff; }
body[data-pdp-page="audiovisual"] { --pdp-nav-accent: #e879f9; }

@media (max-width: 900px) {
  .pdp-unified-header .nav,
  .pdp-unified-header .blog-navigation {
    position: fixed;
    inset: calc(var(--pdp-header-h) + 38px) 12px auto;
    display: grid;
    gap: 4px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(96, 255, 1, 0.15);
    background: rgba(6, 8, 6, 0.98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 0.25s ease;
    z-index: 99989;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }

  .pdp-unified-header .nav.is-open,
  .pdp-unified-header .blog-navigation.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .pdp-unified-header .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
  }

  .pdp-unified-header .menu-toggle .icon-close { display: none; }
  .pdp-unified-header .menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
  .pdp-unified-header .menu-toggle[aria-expanded="true"] .icon-close { display: block; }
}

@media (min-width: 901px) {
  .pdp-unified-header .menu-toggle { display: none !important; }
}

.portfolio-note { display: none !important; }

#portfolio-grid .project img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

@media (max-width: 640px) {
  .trust-strip__inner {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.5rem) !important;
  }
}
