/* ═══════════════════════════════════════════════════════════
   PDP POLISH — UX/UI refinement layer (loads last)
   Luxury dark editorial · neon accent · spatial clarity
   ═══════════════════════════════════════════════════════════ */

:root {
  --pdp-polish-neon: #60ff01;
  --pdp-polish-text: #f4f6f4;
  --pdp-polish-muted: #a8b0a8;
  --pdp-polish-surface: #060806;
  --pdp-polish-border: rgba(255, 255, 255, 0.09);
  --pdp-shell-top: 0px;
  --pdp-z-header: 99990;
  --pdp-z-fab: 99980;
  --pdp-z-cookie: 99970;
}

/* ─── Sticky shell: topbar + header as one unit ─── */
.pdp-sticky-shell {
  position: sticky;
  top: 0;
  z-index: var(--pdp-z-header, 99990);
  background: rgba(3, 4, 3, 0.96);
}

body.pdp-unified-shell .pdp-sticky-shell .topbar,
body.pdp-unified-shell .pdp-sticky-shell .header,
body.pdp-unified-shell .pdp-sticky-shell .pdp-unified-header {
  position: relative !important;
  top: auto !important;
}

body.pdp-unified-shell {
  overflow-x: clip;
}

body.pdp-unified-shell.bg-black,
body.pdp-unified-shell.overflow-x-hidden {
  overflow-x: clip !important;
}

/* ─── Shell: topbar + header rhythm ─── */
body.pdp-unified-shell {
  --pdp-header-h: 72px;
  --pdp-shell-top: var(--pdp-topbar-h, 34px);
  --pdp-header-stack: calc(var(--pdp-shell-top) + var(--pdp-header-h));
}

/* Ocultar restos de topbar legacy (spans naranjas, etc.) en desktop y mobile */
body.pdp-unified-shell .topbar__inner > span:not(.ecosystem-nav__sep) {
  display: none !important;
}

body.pdp-unified-shell .header__inner,
body.pdp-unified-shell .pdp-unified-header .header__inner {
  min-height: var(--pdp-header-h) !important;
  height: auto !important;
  max-height: none !important;
}

body.pdp-unified-shell .topbar {
  position: sticky;
  top: 0;
  z-index: calc(var(--pdp-z-header) + 1);
  background: rgba(3, 4, 3, 0.96);
  border-bottom: 1px solid var(--pdp-polish-border);
}

body.pdp-unified-shell .topbar__ecosystem {
  min-height: 34px;
  padding: 0 clamp(16px, 3vw, 32px);
}

body.pdp-unified-shell .ecosystem-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  padding-bottom: 1px;
}

body.pdp-unified-shell .ecosystem-nav::-webkit-scrollbar {
  display: none;
}

body.pdp-unified-shell .ecosystem-nav__link {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a928a;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s ease;
}

body.pdp-unified-shell .ecosystem-nav__link:hover,
body.pdp-unified-shell .ecosystem-nav__link--active {
  color: var(--pdp-polish-neon);
}

body.pdp-unified-shell .ecosystem-nav__sep {
  flex-shrink: 0;
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.22);
  font-size: 0.65rem;
}

body.pdp-unified-shell .pdp-unified-header {
  top: var(--pdp-shell-top);
}

@media (max-width: 720px) {
  body.pdp-unified-shell {
    --pdp-shell-top: var(--pdp-topbar-h, 30px);
  }

  body.pdp-unified-shell .topbar__ecosystem {
    min-height: 30px;
  }

  body.pdp-unified-shell .ecosystem-nav__link {
    font-size: 0.62rem;
  }

  body.pdp-unified-shell .ecosystem-nav__sep {
    margin: 0 6px;
  }
}

/* ─── Home hero: coherent dark premium (resolve white-hero conflict) ─── */
body.home-page #inicio.hero {
  background:
    radial-gradient(circle at 72% 22%, rgba(17, 67, 0, 0.28), transparent 32%),
    linear-gradient(155deg, #000000 0%, #030503 58%, #061008 100%) !important;
  color: var(--pdp-polish-text) !important;
  min-height: calc(100vh - var(--pdp-header-stack, 110px));
  padding-top: clamp(32px, 5vw, 56px) !important;
  padding-bottom: clamp(24px, 4vw, 48px) !important;
}

body.home-page #inicio .hero__grid,
body.home-page #inicio .hero__orb {
  display: block !important;
  opacity: 0.22;
}

body.home-page #inicio .hero__copy h1 {
  color: var(--pdp-polish-text) !important;
  font-size: clamp(2.35rem, 5.2vw, 5.4rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.04em !important;
  margin-top: 0 !important;
  margin-bottom: 24px !important;
  max-width: 18ch;
}

body.home-page #inicio .hero__copy > p {
  color: var(--pdp-polish-muted) !important;
  font-size: clamp(0.98rem, 1.4vw, 1.1rem) !important;
  line-height: 1.65 !important;
  max-width: 38rem !important;
}

body.home-page #inicio .eyebrow {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px !important;
  max-width: min(100%, 520px);
  font-size: clamp(0.62rem, 1.1vw, 0.72rem) !important;
  letter-spacing: 0.12em !important;
  line-height: 1.4 !important;
  color: var(--pdp-polish-neon) !important;
}

body.home-page #inicio .hero__proof {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 12px;
  padding-top: 8px;
  border-top: 1px solid var(--pdp-polish-border);
  margin-top: 8px;
}

body.home-page #inicio .hero__proof strong {
  color: var(--pdp-polish-neon) !important;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem) !important;
  line-height: 1.1;
}

body.home-page #inicio .hero__proof small {
  color: #7d857d !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.08em !important;
  line-height: 1.35;
  text-transform: uppercase;
}

body.home-page #inicio .hero__actions {
  margin-bottom: 28px !important;
  gap: 10px !important;
}

body.home-page #inicio .hero__layout {
  gap: clamp(28px, 4vw, 56px) !important;
  align-items: center !important;
}

body.home-page #inicio .hero__copy {
  padding-bottom: 24px !important;
}

@media (max-width: 900px) {
  body.home-page #inicio .hero__layout {
    grid-template-columns: 1fr !important;
  }

  body.home-page #inicio .hero__copy h1 {
    max-width: 100%;
  }

  body.home-page #inicio .hero-collage {
    min-height: 380px !important;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  body.home-page #inicio .hero__proof {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 10px;
  }

  body.home-page #inicio .hero__actions {
    display: flex !important;
    flex-direction: column;
  }

  body.home-page #inicio .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Trust strip under hero */
.trust-strip {
  background: #050605;
  border-top: 1px solid var(--pdp-polish-border);
  border-bottom: 1px solid var(--pdp-polish-border);
  padding: 18px 0;
}

.trust-strip__inner {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  text-align: center;
}

.trust-strip__inner strong {
  display: block;
  color: var(--pdp-polish-neon);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.5rem;
  line-height: 1.1;
}

.trust-strip__inner span {
  display: block;
  margin-top: 4px;
  color: #7d857d;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
}

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

/* ─── Service pages: forzar topbar unificado (anula estilos legacy cyan/naranja) ─── */
body.pdp-unified-shell .topbar.topbar__ecosystem,
body.pdp-unified-shell .topbar:has(.topbar__ecosystem) {
  background: rgba(3, 4, 3, 0.96) !important;
  border-bottom: 1px solid var(--pdp-polish-border) !important;
}

body.pdp-unified-shell .topbar .topbar__ecosystem,
body.pdp-unified-shell .topbar.topbar__ecosystem .topbar__inner {
  min-height: 30px !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 clamp(16px, 3vw, 32px) !important;
  color: inherit !important;
  font-size: inherit !important;
  letter-spacing: normal !important;
  font-weight: normal !important;
  justify-content: flex-start !important;
}

body.pdp-unified-shell .topbar .ecosystem-nav__link {
  color: #8a928a !important;
  text-transform: uppercase !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-decoration: none !important;
}

body.pdp-unified-shell .topbar .ecosystem-nav__link:hover {
  color: var(--pdp-polish-neon) !important;
}

body.pdp-unified-shell .topbar .ecosystem-nav__sep {
  color: rgba(255, 255, 255, 0.22) !important;
}

/* ─── Cookie bar + widgets: estándar bottom bar, widgets arriba ─── */
:root {
  --pdp-cookie-offset: 0px;
}

body.pdp-assistant-open .pdp-cookie-banner {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.pdp-assistant-open {
  --pdp-cookie-offset: 0px;
}

.pdp-assistant-backdrop {
  z-index: 99996 !important;
}

.pdp-assistant-launcher {
  z-index: var(--pdp-z-fab) !important;
}

.pdp-assistant-panel {
  z-index: 99999 !important;
}

.whatsapp-float {
  z-index: calc(var(--pdp-z-fab) - 2) !important;
  bottom: calc(18px + var(--pdp-cookie-offset, 0px)) !important;
  transition: bottom 0.3s ease;
}

@media (max-width: 720px) {
  .pdp-cookie-banner h2 {
    font-size: 1rem !important;
  }

  .pdp-cookie-banner p {
    font-size: 0.82rem !important;
  }
}

/* ─── Marketing service page hero balance ─── */
body[data-pdp-page="marketing"] main > section:first-of-type {
  min-height: auto !important;
  padding-top: clamp(24px, 4vw, 40px) !important;
  padding-bottom: clamp(32px, 5vw, 48px) !important;
}

body[data-pdp-page="marketing"] main > section:first-of-type > .grid,
body[data-pdp-page="marketing"] main > section:first-of-type .grid.grid-cols-1 {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: clamp(28px, 4vw, 48px) !important;
  align-items: center !important;
}

@media (min-width: 1024px) {
  body[data-pdp-page="marketing"] main > section:first-of-type > .grid,
  body[data-pdp-page="marketing"] main > section:first-of-type .grid.grid-cols-1 {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) !important;
  }
}

body[data-pdp-page="marketing"] main > section:first-of-type .lg\\:col-span-7 {
  grid-column: 1 !important;
}

body[data-pdp-page="marketing"] main > section:first-of-type .lg\\:col-span-5 {
  grid-column: 1 !important;
}

@media (min-width: 1024px) {
  body[data-pdp-page="marketing"] main > section:first-of-type .lg\\:col-span-7 {
    grid-column: 1 !important;
  }

  body[data-pdp-page="marketing"] main > section:first-of-type .lg\\:col-span-5 {
    grid-column: 2 !important;
  }
}

body[data-pdp-page="marketing"] main > section:first-of-type h1 {
  font-family: "Space Grotesk", system-ui, sans-serif !important;
  font-size: clamp(2.5rem, 6vw, 5rem) !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin-bottom: 1rem !important;
}

body[data-pdp-page="marketing"] .text-gradient-orange {
  color: #ff6600 !important;
}

body[data-pdp-page="marketing"] main > section:first-of-type .flex.flex-wrap.gap-5 {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

body[data-pdp-page="marketing"] main > section:first-of-type a.bg-electric-orange,
body[data-pdp-page="marketing"] main > section:first-of-type a[class*="bg-electric-orange"] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 14px 22px !important;
  background: #ff4500 !important;
  color: #000 !important;
  font-weight: 800 !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  box-shadow: 0 0 28px rgba(255, 69, 0, 0.35) !important;
}

body[data-pdp-page="marketing"] main > section:first-of-type a.service-card-orange {
  display: inline-flex !important;
  align-items: center !important;
  padding: 14px 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

body[data-pdp-page="marketing"] .pdp-hero-stats {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px 12px !important;
  margin-top: 28px !important;
  padding-top: 24px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

@media (min-width: 640px) {
  body[data-pdp-page="marketing"] .pdp-hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

body[data-pdp-page="marketing"] .pdp-hero-stats > div {
  min-width: 0;
}

body[data-pdp-page="marketing"] .material-symbols-outlined {
  font-family: "Material Symbols Outlined" !important;
  font-size: 1.1rem !important;
  line-height: 1 !important;
  vertical-align: middle;
}

body[data-pdp-page="marketing"] .floating-hero-3d {
  max-width: 520px;
  margin-inline: auto;
  width: 100%;
}

body[data-pdp-page="marketing"] #threejs-container-ANIMATION_19 {
  min-height: 280px;
}

/* ─── Focus & interaction polish ─── */
.pdp-lang-toggle:focus-visible,
.pdp-unified-header .menu-toggle:focus-visible {
  outline: 2px solid var(--pdp-polish-neon);
  outline-offset: 2px;
}

.btn:focus-visible,
.pdp-cookie-btn:focus-visible {
  outline: 2px solid rgba(96, 255, 1, 0.5);
  outline-offset: 2px;
}

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  .hero-ticker__track,
  .hero-collage__badge,
  .floating-hero-3d {
    animation: none !important;
  }
}

/* ─── Global overflow containment ─── */
html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
  max-width: 100%;
}

main,
.hero,
.hero-ticker,
.services-ticker-slider,
.tech-ticker-slider,
.infinite-scroll,
[class*="ticker"] {
  max-width: 100%;
}

.hero-ticker,
.services-ticker-slider,
.tech-ticker-slider {
  overflow: hidden !important;
}

.portfolio-filters {
  max-width: 100% !important;
  overflow-x: auto !important;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.cursor-glow {
  pointer-events: none;
}

/* Logo header — símbolo transparente + wordmark (evita PNG horizontal opaco) */
.pdp-unified-header .brand--composite {
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.pdp-unified-header .logo-pdp-symbol,
header .brand--composite .logo-pdp-symbol,
.blog-logo.brand--composite .logo-pdp-symbol {
  height: 40px !important;
  width: 40px !important;
  flex-shrink: 0;
  object-fit: contain !important;
  background: transparent !important;
  mix-blend-mode: normal !important;
  filter: none !important;
}

.pdp-unified-header .logo-pdp-wordmark,
header .brand--composite .logo-pdp-wordmark,
.blog-logo.brand--composite .logo-pdp-wordmark {
  font-family: var(--font-heading, "Space Grotesk", system-ui, sans-serif);
  font-weight: 700;
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: #f4f6f4;
  white-space: nowrap;
}

img.logo-pdp,
.pdp-unified-header .logo-pdp,
.pdp-unified-header .brand img:not(.logo-pdp-symbol),
header .brand img:not(.logo-pdp-symbol),
.blog-logo img:not(.logo-pdp-symbol) {
  mix-blend-mode: normal !important;
  filter: none !important;
  background: transparent !important;
  object-fit: contain !important;
}

/* Footer brand — símbolo transparente + wordmark (sin PNG con fondo negro) */
.brand--footer.brand--composite,
.blog-footer__brand > a.brand--composite {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  max-width: 100%;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0;
}

.footer-brand__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.brand--footer.brand--composite .logo-pdp-symbol,
.blog-footer__brand .brand--composite .logo-pdp-symbol {
  width: 52px !important;
  height: 52px !important;
  flex-shrink: 0;
  object-fit: contain !important;
  background: transparent !important;
}

.brand--footer.brand--composite .logo-pdp-wordmark,
.blog-footer__brand .brand--composite .logo-pdp-wordmark {
  font-family: var(--font-heading, "Space Grotesk", system-ui, sans-serif);
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #f4f6f4;
  white-space: nowrap;
}

.footer-brand__tagline {
  font-family: var(--font-body, "Inter", system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--green-neon, #60ff01);
}

body.juan-manuel-page .header .logo-pdp,
body.nosotros-page .header .logo-pdp {
  height: 44px !important;
  width: auto !important;
  max-width: min(220px, 40vw) !important;
}

/* ─── Header: no duplicate CTAs, compact height ─── */
.pdp-unified-header .header__actions > a.btn--primary:not(.pdp-header-cta),
.pdp-unified-header .header__actions > a.pdp-header-cta ~ a.btn--primary {
  display: none !important;
}

.pdp-unified-header .blog-menu-button,
.pdp-unified-header #blogMenuButton,
.pdp-unified-header #articleMenuButton {
  display: none !important;
}

body.pdp-unified-shell .topbar__ecosystem {
  min-height: var(--pdp-topbar-h, 34px);
}

/* ─── Blog / artículo header alignment (mismo shell que home) ─── */
body.pdp-unified-shell.blog-page header.pdp-unified-header,
body.pdp-unified-shell.article-page header.pdp-unified-header {
  top: var(--pdp-shell-top);
}

header.pdp-unified-header .blog-header__content,
header.pdp-unified-header .blog-container.blog-header__content {
  min-height: var(--pdp-header-h) !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: clamp(12px, 2vw, 24px) !important;
  width: 100% !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 clamp(16px, 3vw, 32px) !important;
  box-sizing: border-box !important;
}

header.pdp-unified-header .blog-logo,
header.pdp-unified-header .blog-logo.brand--composite {
  grid-column: 1;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: 48px !important;
  flex-shrink: 0;
}

header.pdp-unified-header .blog-logo .footer-brand__tagline,
header.pdp-unified-header .blog-logo .footer-brand__text {
  display: none !important;
}

header.pdp-unified-header .blog-logo img,
header.pdp-unified-header .blog-logo__image,
header.pdp-unified-header .blog-logo .logo-pdp-symbol {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  object-fit: contain !important;
}

header.pdp-unified-header .blog-logo .logo-pdp-wordmark {
  font-size: clamp(0.92rem, 1.4vw, 1.05rem) !important;
  white-space: nowrap;
}

header.pdp-unified-header .nav,
header.pdp-unified-header .blog-navigation {
  grid-column: 2;
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  display: flex !important;
  flex: 1 1 auto;
  justify-content: center;
  align-items: center;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

header.pdp-unified-header .header__actions {
  grid-column: 3;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

/* Blog/artículo: anular color blanco y font:inherit del shell del blog */
body.blog-page header.pdp-unified-header .header__actions,
body.article-page header.pdp-unified-header .header__actions {
  color: #a1a1aa !important;
}

body.blog-page header.pdp-unified-header .header__actions .pdp-lang-toggle,
body.article-page header.pdp-unified-header .header__actions .pdp-lang-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #a1a1aa !important;
  font-family: var(--font-body, "Inter", system-ui, sans-serif) !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

body.blog-page header.pdp-unified-header .header__actions .pdp-lang-toggle span,
body.article-page header.pdp-unified-header .header__actions .pdp-lang-toggle span {
  display: inline !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  color: inherit !important;
}

body.blog-page header.pdp-unified-header .header__actions .pdp-lang-toggle.is-es .pdp-lang-toggle__es,
body.article-page header.pdp-unified-header .header__actions .pdp-lang-toggle.is-es .pdp-lang-toggle__es,
body.blog-page header.pdp-unified-header .header__actions .pdp-lang-toggle.is-en .pdp-lang-toggle__en,
body.article-page header.pdp-unified-header .header__actions .pdp-lang-toggle.is-en .pdp-lang-toggle__en {
  color: var(--pdp-nav-accent, var(--green-neon, #60ff01)) !important;
}

body.blog-page header.pdp-unified-header .header__actions .pdp-header-cta,
body.article-page header.pdp-unified-header .header__actions .pdp-header-cta {
  color: #000 !important;
  background: var(--green-neon, #60ff01) !important;
  border: none !important;
  box-shadow: 0 12px 36px rgba(96, 255, 1, 0.16) !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  padding: 10px 16px !important;
  white-space: nowrap !important;
}

body.blog-page header.pdp-unified-header .header__actions .pdp-header-cta:hover,
body.article-page header.pdp-unified-header .header__actions .pdp-header-cta:hover {
  color: #000 !important;
  background: #fff !important;
  box-shadow: 0 18px 42px rgba(96, 255, 1, 0.25) !important;
}

@media (min-width: 901px) {
  header.pdp-unified-header .blog-menu-button,
  header.pdp-unified-header #blogMenuButton,
  header.pdp-unified-header #articleMenuButton {
    display: none !important;
  }
}

body.blog-page .pdp-unified-header .nav > a.is-active,
body.article-page .pdp-unified-header .nav > a[href*="blog"] {
  color: var(--pdp-polish-neon) !important;
}

@media (max-width: 1050px) {
  body.pdp-unified-shell header.pdp-unified-header .blog-header__content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    grid-template-columns: unset !important;
  }

  body.pdp-unified-shell header.pdp-unified-header .nav,
  body.pdp-unified-shell header.pdp-unified-header .blog-navigation {
    grid-column: unset !important;
  }

  body.pdp-unified-shell header.pdp-unified-header .header__actions {
    grid-column: unset !important;
  }
}

/* ─── Ecosystem bar mobile trim ─── */
@media (max-width: 520px) {
  .ecosystem-nav a[href="juan-manuel.html"] ~ .ecosystem-nav__sep,
  .ecosystem-nav a[href="juan-manuel.html"] ~ a {
    display: none !important;
  }
}

/* ─── Home hero CTA row ─── */
body.home-page #inicio .hero__actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
}

body.home-page #inicio .hero__actions .btn {
  flex: 0 1 auto !important;
  width: auto !important;
}

@media (min-width: 901px) {
  body.home-page #inicio .hero__actions .btn--large {
    padding: 14px 20px !important;
    font-size: 0.92rem !important;
  }
}

/* ─── Service pages: desarrollo hero grid ─── */
body[data-pdp-page="desarrollo"] #hero-section .grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: clamp(28px, 4vw, 48px) !important;
  align-items: center !important;
}

@media (min-width: 1024px) {
  body[data-pdp-page="desarrollo"] #hero-section .grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
}

body[data-pdp-page="desarrollo"] .pdp-hero-stats {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px 12px !important;
}

@media (min-width: 640px) {
  body[data-pdp-page="desarrollo"] .pdp-hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

body[data-pdp-page="desarrollo"] .pdp-hero-stats > div {
  min-width: 0;
}

body[data-pdp-page="desarrollo"] .material-symbols-outlined {
  font-family: "Material Symbols Outlined" !important;
}

/* ─── Service pages: audiovisual stats ─── */
body[data-pdp-page="audiovisual"] .pdp-hero-stats {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px 12px !important;
  width: 100% !important;
}

@media (min-width: 640px) {
  body[data-pdp-page="audiovisual"] .pdp-hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* ─── Ticker marquees: clip overflow without breaking scrollWidth audit ─── */
body.pdp-unified-shell {
  overflow-x: clip;
}

section.overflow-hidden,
[class*="ticker"],
.hero-ticker {
  contain: layout;
}

/* ─── Home header logo (override legacy scale) ─── */
body.home-page.pdp-unified-shell .header .brand {
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
}

body.home-page.pdp-unified-shell .header .logo-pdp-symbol {
  height: 40px !important;
  width: 40px !important;
}

body.home-page.pdp-unified-shell .header .logo-pdp-wordmark {
  font-size: clamp(0.88rem, 1.3vw, 1rem);
}

@media (max-width: 420px) {
  .pdp-unified-header .logo-pdp-wordmark {
    display: none;
  }
}

body.home-page.pdp-unified-shell .header__inner {
  min-height: 72px !important;
  max-height: 78px !important;
}

@media (min-width: 1100px) {
  body.home-page #inicio .hero__actions {
    flex-wrap: nowrap !important;
  }
}

/* ─── Desarrollo: bento + ticker without Tailwind dependency ─── */
body[data-pdp-page="desarrollo"] .pdp-tech-ticker-wrap {
  overflow: hidden !important;
  max-width: 100% !important;
}

body[data-pdp-page="desarrollo"] .bento-grid .bento-card {
  grid-column: span 12;
}

@media (min-width: 1024px) {
  body[data-pdp-page="desarrollo"] #card-sitios-web {
    grid-column: span 8;
  }

  body[data-pdp-page="desarrollo"] #card-uiux,
  body[data-pdp-page="desarrollo"] #card-ecommerce,
  body[data-pdp-page="desarrollo"] #card-saas,
  body[data-pdp-page="desarrollo"] #card-apis,
  body[data-pdp-page="desarrollo"] #card-mantenimiento {
    grid-column: span 4;
  }
}

body[data-pdp-page="desarrollo"] .pdp-dev-capabilities {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 48px !important;
  max-width: 80rem !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
}

@media (min-width: 768px) {
  body[data-pdp-page="desarrollo"] .pdp-dev-capabilities {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
}

body[data-pdp-page="desarrollo"] .pdp-dev-capabilities > div {
  flex: 0 0 auto;
  width: 300px;
  max-width: 100%;
}

body[data-pdp-page="marketing"] .services-ticker-slider,
body[data-pdp-page="marketing"] [class*="ticker-slider"] {
  overflow: hidden;
}

body[data-pdp-page="marketing"] .services-ticker-slider {
  max-width: 100vw;
}

/* ═══════════════════════════════════════════════════════════
   PORTFOLIO PAGES — mismo shell que home (marketing/desarrollo/av)
   Anula CSS legacy inline de cada página de servicio
   ═══════════════════════════════════════════════════════════ */

body.pdp-unified-shell[data-pdp-page="marketing"],
body.pdp-unified-shell[data-pdp-page="desarrollo"],
body.pdp-unified-shell[data-pdp-page="audiovisual"] {
  --pdp-portfolio-accent: var(--pdp-polish-neon, #60ff01);
}

/* Topbar + header unificados */
body.pdp-unified-shell[data-pdp-page="marketing"] .topbar,
body.pdp-unified-shell[data-pdp-page="desarrollo"] .topbar,
body.pdp-unified-shell[data-pdp-page="audiovisual"] .topbar {
  background: rgba(3, 4, 3, 0.96) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
  font-size: inherit !important;
  letter-spacing: normal !important;
}

body.pdp-unified-shell[data-pdp-page="marketing"] .topbar .topbar__inner,
body.pdp-unified-shell[data-pdp-page="desarrollo"] .topbar .topbar__inner,
body.pdp-unified-shell[data-pdp-page="audiovisual"] .topbar .topbar__inner {
  color: inherit !important;
  font-weight: normal !important;
  letter-spacing: normal !important;
  justify-content: flex-start !important;
}

body.pdp-unified-shell[data-pdp-page="marketing"] .topbar a:not(.ecosystem-nav__link),
body.pdp-unified-shell[data-pdp-page="desarrollo"] .topbar a:not(.ecosystem-nav__link),
body.pdp-unified-shell[data-pdp-page="audiovisual"] .topbar a:not(.ecosystem-nav__link) {
  display: none !important;
}

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

@media (max-width: 900px) {
  body.pdp-unified-shell .pdp-sticky-shell .nav.is-open,
  body.pdp-unified-shell .pdp-sticky-shell .nav.open {
    top: calc(100% + 8px) !important;
    inset: auto 12px auto 12px !important;
  }
}

body.pdp-unified-shell[data-pdp-page="marketing"] .header,
body.pdp-unified-shell[data-pdp-page="desarrollo"] .header,
body.pdp-unified-shell[data-pdp-page="audiovisual"] .header {
  background: rgba(4, 6, 4, 0.92) !important;
  backdrop-filter: blur(20px) saturate(1.2) !important;
  border-bottom: 1px solid rgba(96, 255, 1, 0.12) !important;
  overflow: visible !important;
}

body.pdp-unified-shell[data-pdp-page="marketing"] .header__inner,
body.pdp-unified-shell[data-pdp-page="desarrollo"] .header__inner,
body.pdp-unified-shell[data-pdp-page="audiovisual"] .header__inner {
  min-height: var(--pdp-header-h, 72px) !important;
  height: auto !important;
  max-width: 1280px !important;
  padding: 0 clamp(16px, 3vw, 32px) !important;
}

body.pdp-unified-shell[data-pdp-page="marketing"] .nav > a,
body.pdp-unified-shell[data-pdp-page="marketing"] .nav-dropdown__trigger,
body.pdp-unified-shell[data-pdp-page="desarrollo"] .nav > a,
body.pdp-unified-shell[data-pdp-page="desarrollo"] .nav-dropdown__trigger,
body.pdp-unified-shell[data-pdp-page="audiovisual"] .nav > a,
body.pdp-unified-shell[data-pdp-page="audiovisual"] .nav-dropdown__trigger {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #d4d4d8 !important;
  padding-bottom: 0 !important;
  transform: none !important;
}

body.pdp-unified-shell[data-pdp-page="marketing"] .nav > a:hover,
body.pdp-unified-shell[data-pdp-page="marketing"] .nav-dropdown__trigger:hover,
body.pdp-unified-shell[data-pdp-page="desarrollo"] .nav > a:hover,
body.pdp-unified-shell[data-pdp-page="desarrollo"] .nav-dropdown__trigger:hover,
body.pdp-unified-shell[data-pdp-page="audiovisual"] .nav > a:hover,
body.pdp-unified-shell[data-pdp-page="audiovisual"] .nav-dropdown__trigger:hover {
  color: var(--pdp-portfolio-accent) !important;
  transform: none !important;
}

body.pdp-unified-shell[data-pdp-page="marketing"] .nav > a::after,
body.pdp-unified-shell[data-pdp-page="marketing"] .nav-dropdown__trigger::after,
body.pdp-unified-shell[data-pdp-page="desarrollo"] .nav > a::after,
body.pdp-unified-shell[data-pdp-page="desarrollo"] .nav-dropdown__trigger::after,
body.pdp-unified-shell[data-pdp-page="audiovisual"] .nav > a::after,
body.pdp-unified-shell[data-pdp-page="audiovisual"] .nav-dropdown__trigger::after {
  display: none !important;
}

body.pdp-unified-shell[data-pdp-page="marketing"] .nav a.is-active,
body.pdp-unified-shell[data-pdp-page="marketing"] .nav a.active-link,
body.pdp-unified-shell[data-pdp-page="desarrollo"] .nav a.is-active,
body.pdp-unified-shell[data-pdp-page="desarrollo"] .nav a.active-link,
body.pdp-unified-shell[data-pdp-page="audiovisual"] .nav a.is-active,
body.pdp-unified-shell[data-pdp-page="audiovisual"] .nav a.active-link {
  color: var(--pdp-portfolio-accent) !important;
}

body.pdp-unified-shell[data-pdp-page="marketing"] .logo-text-border,
body.pdp-unified-shell[data-pdp-page="desarrollo"] .logo-text-border,
body.pdp-unified-shell[data-pdp-page="audiovisual"] .logo-text-border {
  display: none !important;
}

body.pdp-unified-shell[data-pdp-page="marketing"] .brand img:not(.logo-pdp-symbol),
body.pdp-unified-shell[data-pdp-page="desarrollo"] .brand img:not(.logo-pdp-symbol),
body.pdp-unified-shell[data-pdp-page="audiovisual"] .brand img:not(.logo-pdp-symbol) {
  height: 40px !important;
  width: 40px !important;
  filter: none !important;
}

/* Hero — más aire, menos amontonado */
body.pdp-unified-shell[data-pdp-page="marketing"] main > section:first-of-type,
body.pdp-unified-shell[data-pdp-page="desarrollo"] #hero-section,
body.pdp-unified-shell[data-pdp-page="audiovisual"] main > section:first-of-type {
  min-height: auto !important;
  padding-top: clamp(48px, 7vw, 72px) !important;
  padding-bottom: clamp(40px, 6vw, 56px) !important;
}

body.pdp-unified-shell[data-pdp-page="marketing"] .pdp-hero-stats,
body.pdp-unified-shell[data-pdp-page="desarrollo"] .pdp-hero-stats,
body.pdp-unified-shell[data-pdp-page="audiovisual"] .pdp-hero-stats {
  margin-top: 36px !important;
  padding-top: 28px !important;
  gap: 20px 16px !important;
}

/* Ticker de servicios — separado del hero */
body.pdp-unified-shell .pdp-portfolio-ticker {
  margin-top: 8px !important;
  margin-bottom: 32px !important;
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

/* Conector 3D redundante entre ticker y catálogo */
body.pdp-unified-shell .pdp-portfolio-connector {
  display: none !important;
}

body.pdp-unified-shell[data-pdp-page="marketing"] .floating-hero-3d {
  max-width: 460px !important;
  margin-inline: auto !important;
}

body.pdp-unified-shell[data-pdp-page="marketing"] #threejs-container-ANIMATION_19 {
  min-height: 260px !important;
  max-height: 320px !important;
}

@media (max-width: 1024px) {
  body.pdp-unified-shell[data-pdp-page="marketing"] .floating-hero-3d,
  body.pdp-unified-shell[data-pdp-page="desarrollo"] .floating-hero-3d,
  body.pdp-unified-shell[data-pdp-page="audiovisual"] .floating-hero-3d {
    max-width: 100% !important;
    margin-top: 24px !important;
  }
}

