/* ==========================================================================
   CAPA 1: ESTILOS GENERALES (BASE) — Renzo Zamora
   Tokens, reset, contenedores, columnas, encabezados, textos, botones,
   breadcrumbs, acordeones/FAQ, header, footer y motor BorderGlow compartido.
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #11111b;
  --bg-alt: #161523;
  --panel: #191827;
  --panel-2: #201e30;
  --text: #f5f3fa;
  --muted: #c2bece;
  --line: rgba(255, 255, 255, 0.13);
  --cyan: #43d8d1;
  --cyan-bright: #48d8d1;
  --purple: #8b59ed;
  --magenta: #ee35a7;
  --pink: #f41463;
  --page-bg: #11111b;
  --page-panel: #191827;
  --page-panel-2: #201e30;
  --page-text: #f5f3fa;
  --page-muted: #c5c1cf;
  --page-line: rgba(255, 255, 255, 0.14);
  --page-pink: #f41463;
  --page-cyan: #43d8d1;
  --page-max: 1160px;
  --sans: 'Inter', Arial, sans-serif;
  --display: 'Jost', Arial, sans-serif;
  --max: 1160px;
  --radius: 18px;
}

/* Reset & Base Typography */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.68 var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* Prevent long text or unspaced URLs from pushing viewport */
p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
a,
figcaption {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Fluid responsive media & embeds */
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

/* Preformatted blocks and tables must scroll internally, never spill */
pre,
code,
kbd,
samp {
  max-width: 100%;
  overflow-x: auto;
}

table {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  max-width: 100%;
}

/* Containers & Structural Wrappers */
main,
section,
article,
header,
footer,
.wrap,
.page-wrap {
  max-width: 100%;
  box-sizing: border-box;
}

.wrap,
.page-wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 60;
  top: -70px;
  left: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: #11111b;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.section-pad {
  padding: 96px 0;
  position: relative;
}

.section-tinted {
  background: rgba(25, 24, 39, 0.45);
  border-block: 1px solid var(--line);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

/* Announcement Bar */
.announcement {
  position: relative;
  z-index: 35;
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: linear-gradient(100deg, #cd1049, #a20e58);
  color: #fff;
  text-align: center;
  font: 700 clamp(10px, 1vw, 12px)/1.35 var(--display);
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-wrap: balance;
}

.announcement b {
  color: #ffe7a6;
  font-weight: 700;
}

/* Header & Main Navigation */
.header,
.site-header,
.page-header {
  position: fixed;
  z-index: 30;
  top: 46px;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: top 0.28s ease, background 0.28s ease, backdrop-filter 0.28s ease,
    border-color 0.28s ease, box-shadow 0.28s ease;
}

.header.scrolled,
.site-header.scrolled,
.page-header.scrolled {
  top: 0;
  background: rgba(20, 19, 32, 0.84);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 28px rgba(5, 4, 14, 0.22);
}

.nav,
.page-nav {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo,
.page-brand img,
.site-header .logo img {
  display: block;
  width: 160px;
  height: auto;
  filter: brightness(0) invert(1);
}

.nav-links,
.page-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #eeeaf5;
  font-size: 16px;
  font-weight: 500;
}

.nav-links > a,
.page-nav-links > a {
  white-space: nowrap;
}

.nav-links > a:not(.button):hover,
.nav-links > a[aria-current="page"],
.page-nav-links > a:not(.page-cta):hover,
.page-nav-links > a[aria-current="page"] {
  color: var(--cyan);
}

.mobile-toggle,
.page-menu {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  padding: 0;
}

.mobile-toggle svg,
.page-menu svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Headings & Canonical Eyebrow */
.eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f41463;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.eyebrow::before,
.section-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.section-head {
  margin-bottom: 44px;
}

.section-head h2 {
  margin: 0 0 12px;
  font: 600 clamp(32px, 4.4vw, 52px)/1.08 var(--display);
  letter-spacing: -0.035em;
  max-width: 840px;
  color: #fff;
}

.section-head h2 em {
  font-style: normal;
  color: var(--cyan);
}

.section-head p:not(.eyebrow):not(.section-eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 680px;
}

/* Buttons & CTAs */
.button,
.cta-button,
.page-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid rgba(244, 20, 99, 0.45);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(244, 20, 99, 0.22) 0%, rgba(238, 53, 167, 0.1) 100%);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(244, 20, 99, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.button:hover,
.cta-button:hover,
.page-cta:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #f41463 0%, #ee35a7 100%);
  border-color: #f41463;
  box-shadow: 0 12px 32px rgba(244, 20, 99, 0.42), 0 0 22px rgba(238, 53, 167, 0.35);
  color: #fff;
}

.button svg,
.cta-button svg,
.page-cta svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.button:hover svg,
.cta-button:hover svg,
.page-cta:hover svg {
  transform: translate(3px, -3px);
}

.btn-secondary,
.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid rgba(72, 216, 209, 0.38);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(72, 216, 209, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #edf9f8;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.btn-secondary:hover,
.button-outline:hover {
  transform: translateY(-2px);
  border-color: rgba(72, 216, 209, 0.82);
  background: linear-gradient(135deg, rgba(72, 216, 209, 0.22) 0%, rgba(72, 216, 209, 0.08) 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(45, 217, 206, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-secondary svg,
.button-outline svg {
  width: 18px;
  height: 18px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease, stroke 0.25s ease;
}

.btn-secondary:hover svg,
.button-outline:hover svg {
  stroke: #fff;
  transform: translate(3px, -3px);
}

/* Breadcrumbs */
.breadcrumbs,
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs span,
.breadcrumb span {
  color: rgba(255, 255, 255, 0.36);
}

.breadcrumbs a:hover,
.breadcrumb a:hover {
  color: var(--cyan);
}

/* ==========================================================================
   Standardized Glassmorphism Accordions (Base Normalization)
   Estilo visual unificado idéntico a Términos y Condiciones.
   Aplica a: .legal-content, .faq-list, .faq-layout, .accordion-list
   ========================================================================== */

/* Layout con aside (preguntas frecuentes con columna lateral izquierda) */
.faq-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.faq-aside {
  position: sticky;
  top: 120px;
}

.faq-aside strong {
  display: block;
  font: 600 28px/1.2 var(--display);
  color: #fff;
  margin-bottom: 12px;
}

.faq-aside p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 24px;
}

/* Contenedor del acordeón */
.legal-content,
.faq-list,
.accordion-list,
.faq-layout > .faq-list,
.faq-layout:not(:has(.faq-aside)) {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 16px;
}

/* Glow ambiental degradado suave de fondo */
.legal-content::before,
.faq-list::before,
.accordion-list::before {
  content: "";
  position: absolute;
  inset: -32px -36px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 42% at 14% 22%, rgba(45, 217, 206, 0.16), transparent 72%),
    radial-gradient(ellipse 48% 44% at 88% 48%, rgba(139, 89, 237, 0.18), transparent 72%),
    radial-gradient(ellipse 42% 38% at 38% 92%, rgba(244, 20, 99, 0.11), transparent 72%);
  filter: blur(26px);
}

/* Tarjeta <details> con Glassmorphism */
.legal-content details,
.faq-list details,
.accordion-list details,
.faq-layout details,
details.faq-item,
details.accordion-item {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.085) 0%, rgba(255, 255, 255, 0.025) 100%);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 32px rgba(5, 4, 14, 0.3);
  scroll-margin-top: 120px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.legal-content details:last-child,
.faq-list details:last-child,
.accordion-list details:last-child,
.faq-layout details:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.legal-content details:hover,
.faq-list details:hover,
.accordion-list details:hover,
.faq-layout details:hover,
details.faq-item:hover,
details.accordion-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.26);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.035) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 16px 36px rgba(5, 4, 14, 0.38);
}

.legal-content details[open],
.legal-content details[open]:last-child,
.faq-list details[open],
.faq-list details[open]:last-child,
.accordion-list details[open],
.accordion-list details[open]:last-child,
.faq-layout details[open],
.faq-layout details[open]:last-child,
details.faq-item[open],
details.accordion-item[open] {
  border-color: rgba(72, 216, 209, 0.52);
  background: linear-gradient(135deg, rgba(72, 216, 209, 0.14) 0%, rgba(139, 89, 237, 0.08) 54%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 16px 40px rgba(45, 217, 206, 0.14), 0 10px 28px rgba(5, 4, 14, 0.36);
}

/* Cabecera interactiva <summary> */
.legal-content summary,
.faq-list summary,
.accordion-list summary,
.faq-layout summary,
details.faq-item > summary,
details.accordion-item > summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 24px;
  list-style: none;
  cursor: pointer;
  color: #ffffff;
  font: 600 19px/1.35 var(--display);
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.legal-content summary::-webkit-details-marker,
.faq-list summary::-webkit-details-marker,
.accordion-list summary::-webkit-details-marker,
.faq-layout summary::-webkit-details-marker,
details.faq-item > summary::-webkit-details-marker,
details.accordion-item > summary::-webkit-details-marker {
  display: none;
}

.legal-content summary:hover,
.faq-list summary:hover,
.accordion-list summary:hover,
.faq-layout summary:hover,
details.faq-item > summary:hover,
details.accordion-item > summary:hover {
  color: var(--page-cyan, var(--cyan, #43d8d1));
}

/* Insignia circular de cristal con Chevron (Toggle Icon) */
.legal-toggle-icon,
.faq-toggle-icon,
.accordion-toggle-icon,
.faq-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  font-size: 0;
  line-height: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  color: var(--page-cyan, var(--cyan, #43d8d1));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

/* Chevron mediante pseudoelemento ::before */
.legal-toggle-icon::before,
.faq-toggle-icon::before,
.accordion-toggle-icon::before,
.faq-icon::before {
  content: "";
  position: static;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: transparent;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s ease;
}

.legal-toggle-icon::after,
.faq-toggle-icon::after,
.accordion-toggle-icon::after,
.faq-icon::after {
  content: none !important;
}

/* Ocultar cualquier SVG heredado dentro de .faq-icon para unificar en el chevron CSS */
.faq-icon svg,
.legal-toggle-icon svg {
  display: none !important;
}

/* Hover sobre summary anima el toggle icon */
summary:hover .legal-toggle-icon,
summary:hover .faq-toggle-icon,
summary:hover .accordion-toggle-icon,
summary:hover .faq-icon {
  transform: none;
  border-color: rgba(72, 216, 209, 0.55);
  background: linear-gradient(135deg, rgba(72, 216, 209, 0.2) 0%, rgba(72, 216, 209, 0.06) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36), 0 0 14px rgba(45, 217, 206, 0.22);
}

/* Estado abierto de details: rotación a 180deg y brillo cian */
details[open] .legal-toggle-icon,
details[open] .faq-toggle-icon,
details[open] .accordion-toggle-icon,
details[open] .faq-icon,
details[open] summary:hover .legal-toggle-icon,
details[open] summary:hover .faq-toggle-icon,
details[open] summary:hover .accordion-toggle-icon,
details[open] summary:hover .faq-icon {
  transform: rotate(180deg);
  color: var(--page-cyan, var(--cyan, #43d8d1));
  border-color: rgba(72, 216, 209, 0.6);
  background: linear-gradient(135deg, rgba(72, 216, 209, 0.28) 0%, rgba(72, 216, 209, 0.1) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 16px rgba(45, 217, 206, 0.3);
}

/* Cuerpo desplegable con animación */
.legal-copy,
.faq-answer,
.accordion-body,
.legal-content details > div:not(.legal-copy),
.faq-list details > div:not(.faq-answer),
.accordion-list details > div:not(.accordion-body) {
  max-width: 100%;
  padding: 0 24px 22px;
  color: #d6d2e4;
  font-size: 15.5px;
  line-height: 1.75;
  animation: legal-panel-in 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes legal-panel-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.legal-copy > :first-child,
.faq-answer > :first-child,
.accordion-body > :first-child,
.faq-answer [itemprop="text"] > :first-child {
  margin-top: 0;
}

.legal-copy > :last-child,
.faq-answer > :last-child,
.accordion-body > :last-child,
.faq-answer [itemprop="text"] > :last-child {
  margin-bottom: 0;
}

.legal-copy p,
.faq-answer p,
.accordion-body p {
  margin: 0 0 14px;
}

.legal-copy strong,
.faq-answer strong,
.accordion-body strong {
  color: #ffffff;
}

.legal-copy a,
.faq-answer a,
.accordion-body a {
  color: var(--page-cyan, var(--cyan, #43d8d1));
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 680px) {
  .legal-content summary,
  .faq-list summary,
  .accordion-list summary,
  .faq-layout summary,
  details.faq-item > summary,
  details.accordion-item > summary {
    padding: 18px 18px;
    font-size: 18px;
  }
  .legal-copy,
  .faq-answer,
  .accordion-body,
  .legal-content details > div:not(.legal-copy),
  .faq-list details > div:not(.faq-answer),
  .accordion-list details > div:not(.accordion-body) {
    padding: 0 18px 18px;
  }
}

/* Shared React Bits BorderGlow Engine */
.glow-card,
.feature-card,
.highlight-banner,
.portfolio-cta,
.project-type-card,
.related-project-card,
.project-card,
.service-card {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --edge-sensitivity: 28;
  --color-sensitivity: calc(var(--edge-sensitivity) + 20);
  --border-radius: 18px;
  --glow-padding: 36px;
  --cone-spread: 25;
  --card-bg: #151423;
  --glow-color: hsl(176deg 85% 76% / 100%);
  --glow-color-60: hsl(176deg 85% 76% / 60%);
  --glow-color-50: hsl(176deg 85% 76% / 50%);
  --glow-color-30: hsl(176deg 85% 76% / 30%);
  --glow-color-20: hsl(176deg 85% 76% / 20%);
  --gradient-one: radial-gradient(at 80% 55%, #8b59ed 0, transparent 50%);
  --gradient-two: radial-gradient(at 69% 34%, #ee35a7 0, transparent 50%);
  --gradient-three: radial-gradient(at 8% 6%, #2dd9ce 0, transparent 50%);
  --gradient-four: radial-gradient(at 41% 38%, #8b59ed 0, transparent 50%);
  --gradient-five: radial-gradient(at 86% 85%, #ee35a7 0, transparent 50%);
  --gradient-six: radial-gradient(at 82% 18%, #2dd9ce 0, transparent 50%);
  --gradient-seven: radial-gradient(at 51% 4%, #f41463 0, transparent 50%);
  --gradient-base: linear-gradient(135deg, #2dd9ce 0%, #8b59ed 50%, #f41463 100%);

  position: relative;
  isolation: isolate;
  overflow: visible;
  transform: translate3d(0, 0, 0.01px);
  border-radius: var(--border-radius);
}

.highlight-banner,
.portfolio-cta {
  --glow-color: hsl(336deg 92% 65% / 100%);
  --glow-color-60: hsl(336deg 92% 65% / 60%);
  --glow-color-50: hsl(336deg 92% 65% / 50%);
  --glow-color-30: hsl(336deg 92% 65% / 30%);
  --glow-color-20: hsl(336deg 92% 65% / 20%);
}

.glow-card > :not(.edge-light),
.feature-card > :not(.edge-light),
.highlight-banner > :not(.edge-light),
.portfolio-cta > :not(.edge-light),
.project-type-card > :not(.edge-light),
.related-project-card > :not(.edge-light),
.project-card > :not(.edge-light),
.service-card > :not(.edge-light) {
  position: relative;
  z-index: 2;
}

.glow-card::before,
.glow-card > .edge-light,
.feature-card::before,
.feature-card > .edge-light,
.highlight-banner::before,
.highlight-banner > .edge-light,
.portfolio-cta::before,
.portfolio-cta > .edge-light,
.project-type-card::before,
.project-type-card > .edge-light,
.related-project-card::before,
.related-project-card > .edge-light,
.project-card::before,
.project-card > .edge-light,
.service-card::before,
.service-card > .edge-light {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}

.glow-card::before,
.feature-card::before,
.highlight-banner::before,
.portfolio-cta::before,
.project-type-card::before,
.related-project-card::before,
.project-card::before,
.service-card::before {
  z-index: 1;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--card-bg) 0 100%) padding-box,
    linear-gradient(rgba(255, 255, 255, 0) 0 100%) border-box,
    var(--gradient-one) border-box,
    var(--gradient-two) border-box,
    var(--gradient-three) border-box,
    var(--gradient-four) border-box,
    var(--gradient-five) border-box,
    var(--gradient-six) border-box,
    var(--gradient-seven) border-box,
    var(--gradient-base) border-box;
  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  -webkit-mask-image: conic-gradient(from var(--cursor-angle) at center,
    black calc(var(--cone-spread) * 1%),
    transparent calc((var(--cone-spread) + 15) * 1%),
    transparent calc((100 - var(--cone-spread) - 15) * 1%),
    black calc((100 - var(--cone-spread)) * 1%));
  mask-image: conic-gradient(from var(--cursor-angle) at center,
    black calc(var(--cone-spread) * 1%),
    transparent calc((var(--cone-spread) + 15) * 1%),
    transparent calc((100 - var(--cone-spread) - 15) * 1%),
    black calc((100 - var(--cone-spread)) * 1%));
}

.glow-card > .edge-light,
.feature-card > .edge-light,
.highlight-banner > .edge-light,
.portfolio-cta > .edge-light,
.project-type-card > .edge-light,
.related-project-card > .edge-light,
.project-card > .edge-light,
.service-card > .edge-light {
  inset: calc(var(--glow-padding) * -1);
  z-index: 3;
  border-radius: calc(var(--border-radius) + var(--glow-padding));
  -webkit-mask-image: conic-gradient(from var(--cursor-angle) at center,
    black 2.5%, transparent 10%, transparent 90%, black 97.5%);
  mask-image: conic-gradient(from var(--cursor-angle) at center,
    black 2.5%, transparent 10%, transparent 90%, black 97.5%);
  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  mix-blend-mode: plus-lighter;
}

.glow-card > .edge-light::before,
.feature-card > .edge-light::before,
.highlight-banner > .edge-light::before,
.portfolio-cta > .edge-light::before,
.project-type-card > .edge-light::before,
.related-project-card > .edge-light::before,
.project-card > .edge-light::before,
.service-card > .edge-light::before {
  content: "";
  position: absolute;
  inset: var(--glow-padding);
  border-radius: var(--border-radius);
  box-shadow:
    inset 0 0 0 1px var(--glow-color),
    inset 0 0 2px 0 var(--glow-color-60),
    inset 0 0 5px 0 var(--glow-color-50),
    inset 0 0 14px 0 var(--glow-color-30),
    0 0 2px 0 var(--glow-color-60),
    0 0 5px 0 var(--glow-color-50),
    0 0 15px 0 var(--glow-color-30),
    0 0 35px 2px var(--glow-color-20);
}

.glow-card:not(:hover)::before,
.glow-card:not(:hover) > .edge-light,
.feature-card:not(:hover)::before,
.feature-card:not(:hover) > .edge-light,
.highlight-banner:not(:hover)::before,
.highlight-banner:not(:hover) > .edge-light,
.portfolio-cta:not(:hover)::before,
.portfolio-cta:not(:hover) > .edge-light,
.project-type-card:not(:hover)::before,
.project-type-card:not(:hover) > .edge-light,
.related-project-card:not(:hover)::before,
.related-project-card:not(:hover) > .edge-light,
.project-card:not(:hover)::before,
.project-card:not(:hover) > .edge-light,
.service-card:not(:hover)::before,
.service-card:not(:hover) > .edge-light {
  opacity: 0;
  transition: opacity 0.65s ease;
}

/* Shared Bottom CTA Banner */
.portfolio-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 44px 48px;
  margin-block: 48px 96px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(244, 20, 99, 0.16), transparent 65%),
    radial-gradient(ellipse 55% 80% at 0% 100%, rgba(45, 217, 206, 0.12), transparent 65%),
    rgba(21, 20, 35, 0.78);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.portfolio-cta h2 {
  margin: 0;
  font: 600 clamp(28px, 3.6vw, 42px)/1.1 var(--display);
  letter-spacing: -0.03em;
  color: #fff;
}

.portfolio-cta h2 em {
  font-style: normal;
  color: var(--cyan);
}

.portfolio-cta p {
  margin: 10px 0 0;
  color: #c8c5d1;
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 600px;
}

.cta-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cta-kicker svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Shared Footer */
.footer {
  padding: 68px 0 34px;
  border-top: 1px solid var(--line);
  background: #0d0d16;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 42px;
}

.footer-brand p {
  max-width: 300px;
  margin: 18px 0 0;
  color: #c5c2ce;
  font-size: 15px;
  line-height: 1.65;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, auto));
  gap: 48px;
}

.footer-col h4 {
  margin: 0 0 14px;
  font: 600 13px/1.2 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f8a9f;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: #dedbe8;
  font-size: 15px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #938fa3;
  font-size: 14px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal a:hover {
  color: var(--cyan);
}

/* Base Responsive */
@media (max-width: 960px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .faq-aside {
    position: static;
  }
  .portfolio-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 34px 28px;
  }
}

@media (max-width: 820px) {
  .wrap,
  .page-wrap {
    width: min(var(--max), calc(100% - 36px));
    max-width: 100%;
  }
  .mobile-toggle,
  .page-menu {
    display: grid;
  }
  .nav-links,
  .page-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(20, 19, 32, 0.98);
    backdrop-filter: blur(18px);
    overflow-x: hidden;
  }
  .nav-links.open,
  .page-nav-links.open {
    display: flex;
  }
  .nav-links > a:not(.button),
  .page-nav-links > a:not(.page-cta) {
    padding: 12px 4px;
    max-width: 100%;
    overflow-wrap: break-word;
  }
  .nav-links .button,
  .page-nav-links .page-cta {
    margin-top: 10px;
    width: 100%;
    max-width: 100%;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .grid-2 > *,
  .grid-3 > *,
  .grid-4 > * {
    min-width: 0;
  }
  .footer-top {
    flex-direction: column;
    gap: 32px;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .wrap,
  .page-wrap {
    width: calc(100% - 32px);
    max-width: 100%;
  }
  .announcement {
    min-height: 42px;
    padding: 8px 12px;
    font-size: 10px;
    max-width: 100%;
  }
  .header,
  .site-header,
  .page-header {
    top: 42px;
    max-width: 100%;
  }
  .header.scrolled,
  .site-header.scrolled,
  .page-header.scrolled {
    top: 0;
  }
  .section-pad {
    padding: 68px 0;
  }
  .button,
  .cta-button,
  .page-cta {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .wrap,
  .page-wrap {
    width: calc(100% - 24px);
    max-width: 100%;
  }
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}


/* ==========================================================================
   Servicios Mega-Menu (Glassmorphism + Lucide Inline SVGs)
   ========================================================================== */
.nav-mega {
  position: static;
  display: inline-flex;
  align-items: center;
}

.nav-mega > .mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  cursor: pointer;
}

.mega-chevron {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.8;
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease, color 0.2s ease;
}

.nav-mega.is-open > .mega-trigger,
.nav-mega:hover > .mega-trigger,
.nav-mega:focus-within > .mega-trigger {
  color: #43d8d1;
}

.nav-mega.is-open .mega-chevron,
.nav-mega:hover .mega-chevron,
.nav-mega:focus-within .mega-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Desktop mega panel: anchored directly below header.page-header */
.mega-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  width: 980px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  z-index: 45;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(ellipse 55% 65% at 8% 0%, rgba(45, 217, 206, 0.12), transparent 65%),
    radial-gradient(ellipse 50% 60% at 96% 100%, rgba(244, 20, 99, 0.12), transparent 65%),
    rgba(19, 18, 32, 0.94);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    0 28px 70px rgba(4, 3, 12, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition:
    opacity 0.2s ease,
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.2s ease;
}

/* Hover bridge: keeps hover intact across the 6px separation */
.mega-panel::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-mega.is-open > .mega-panel,
.nav-mega:hover > .mega-panel,
.nav-mega:focus-within > .mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega-inner {
  display: grid;
  grid-template-columns: 500px minmax(370px, 1fr);
  gap: 24px;
  padding: 22px 24px;
  box-sizing: border-box;
}

@media (max-width: 1040px) and (min-width: 821px) {
  .mega-panel {
    width: min(980px, calc(100% - 32px));
    max-width: calc(100% - 32px);
  }
  .mega-inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(330px, 1fr);
    gap: 18px;
    padding: 20px;
  }
}

.mega-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #43d8d1;
  font: 700 11px/1.2 'Jost', Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mega-heading svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mega-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mega-service-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mega-service-item:hover {
  transform: translateY(-1px);
  border-color: rgba(67, 216, 209, 0.42);
  background: linear-gradient(135deg, rgba(45, 217, 206, 0.11) 0%, rgba(139, 89, 237, 0.07) 100%);
  box-shadow: 0 8px 22px rgba(5, 4, 14, 0.3);
}

.mega-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(67, 216, 209, 0.28);
  background: linear-gradient(135deg, rgba(45, 217, 206, 0.16) 0%, rgba(45, 217, 206, 0.04) 100%);
  color: #43d8d1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mega-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mega-service-item:hover .mega-icon {
  border-color: rgba(67, 216, 209, 0.72);
  background: linear-gradient(135deg, rgba(45, 217, 206, 0.3) 0%, rgba(45, 217, 206, 0.1) 100%);
  color: #ffffff;
}

.mega-service-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mega-service-copy strong {
  color: #ffffff;
  font: 600 14px/1.25 'Jost', Arial, sans-serif;
  letter-spacing: -0.01em;
}

.mega-service-copy small {
  color: #aea9be;
  font: 400 12.5px/1.4 'Inter', Arial, sans-serif;
}

.mega-col-sectors {
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 0;
}

.mega-sectors-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.mega-sector-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.035);
  color: #dcd8e8;
  font: 500 12px/1.2 'Inter', Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.mega-sector-pill svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.65;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mega-sector-pill:hover {
  border-color: rgba(67, 216, 209, 0.62);
  background: rgba(67, 216, 209, 0.1);
  color: #43d8d1;
}

.mega-sector-pill:hover svg {
  opacity: 1;
  transform: translate(1.5px, -1.5px);
}

.mega-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 0 22px 22px;
  color: #a9a4b8;
  font: 400 13px/1.4 'Inter', Arial, sans-serif;
}

.mega-all-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #43d8d1;
  font: 600 13.5px/1.2 'Inter', Arial, sans-serif;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.mega-all-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.mega-all-link:hover {
  color: #ffffff;
}

.mega-all-link:hover svg {
  transform: translateX(3px);
}

/* Mobile Mega-Menu Accordion */
@media (max-width: 820px) {
  .nav-mega {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .nav-mega > .mega-trigger {
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 4px;
  }

  .mega-panel {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    max-height: 0;
    overflow: hidden;
    border-radius: 14px;
    border-width: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    box-shadow: none;
    transition: max-height 0.3s ease, opacity 0.22s ease, margin 0.22s ease;
  }

  .mega-panel::before {
    display: none;
  }

  .nav-mega.is-open > .mega-panel {
    max-height: 75vh;
    overflow-y: auto;
    border-width: 1px;
    margin: 4px 0 10px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .mega-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .mega-services-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    min-width: 0;
  }

  .mega-col-sectors {
    padding-left: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 0;
  }

  .mega-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
    gap: 8px;
    min-width: 0;
  }
}

/* ==========================================================================
   WordPress & Global Mobile Overflow Prevention Guards
   ========================================================================== */
body.admin-bar {
  max-width: 100%;
  overflow-x: hidden;
}

#wpadminbar {
  max-width: 100%;
}

.wp-site-blocks,
.entry-content,
.post-content,
.page-content,
.site-main,
#main-content {
  max-width: 100%;
  overflow-x: clip;
}

/* CAPA 3 (PÁGINA): DETALLE DE PROYECTO (proyecto.html) */
:root {
      color-scheme: dark;
      --bg: #11111b;
      --card-bg: #151423;
      --panel: rgba(25, 24, 39, 0.72);
      --text: #f5f3fa;
      --muted: #b9b6c5;
      --line: rgba(255, 255, 255, 0.13);
      --cyan: #48d8d1;
      --cyan-bright: #2dd9ce;
      --pink: #f41463;
      --magenta: #ee35a7;
      --purple: #8b59ed;
      --max: 1160px;
      --sans: 'Inter', Arial, sans-serif;
      --display: 'Jost', Arial, sans-serif;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; scroll-padding-top: 110px; }
    body {
      margin: 0;
      min-width: 320px;
      overflow-x: clip;
      background:
        radial-gradient(ellipse 52% 38% at 8% 8%, rgba(45, 217, 206, 0.12), transparent 70%),
        radial-gradient(ellipse 48% 36% at 92% 28%, rgba(139, 89, 237, 0.15), transparent 70%),
        radial-gradient(ellipse 46% 32% at 50% 86%, rgba(244, 20, 99, 0.09), transparent 72%),
        var(--bg);
      color: var(--text);
      font: 400 16px/1.65 var(--sans);
      -webkit-font-smoothing: antialiased;
    }
    a { color: inherit; text-decoration: none; }
    button { font: inherit; }
    .wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

    .skip-link {
      position: fixed;
      z-index: 60;
      top: -70px;
      left: 16px;
      padding: 10px 14px;
      border-radius: 8px;
      background: #fff;
      color: #11111b;
      font-weight: 700;
      transition: top 0.2s ease;
    }
    .skip-link:focus { top: 12px; }

    /* Announcement & Header */
    .announcement {
      display: flex;
      min-height: 46px;
      align-items: center;
      justify-content: center;
      padding: 9px 18px;
      background: linear-gradient(100deg, #cd1049, #a20e58);
      color: #fff;
      text-align: center;
      font: 700 12px/1.35 var(--display);
      letter-spacing: 0.035em;
      text-transform: uppercase;
      text-wrap: balance;
    }
    .announcement b { color: #ffe7a6; font-weight: 700; }

    .header {
      position: fixed;
      z-index: 30;
      top: 46px;
      left: 0;
      right: 0;
      width: 100%;
      background: transparent;
      border-bottom: 1px solid transparent;
      transition: top 0.28s ease, background 0.28s ease, backdrop-filter 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
    }
    .header.scrolled {
      top: 0;
      background: rgba(20, 19, 32, 0.82);
      backdrop-filter: blur(18px) saturate(145%);
      -webkit-backdrop-filter: blur(18px) saturate(145%);
      border-bottom: 1px solid rgba(255, 255, 255, 0.12);
      box-shadow: 0 8px 28px rgba(5, 4, 14, 0.24);
    }
    .nav {
      height: 90px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }
    .brand { display: inline-flex; align-items: center; gap: 10px; }
    .brand-logo { display: block; width: 158px; height: auto; filter: brightness(0) invert(1); }
    .mobile-toggle {
      display: none;
      width: 44px;
      height: 44px;
      place-items: center;
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.05);
      color: #fff;
      cursor: pointer;
    }
    .nav-links {
      display: flex;
      align-items: center;
      gap: 30px;
      font: 500 15px var(--sans);
    }
    .nav-links > a:not(.button) {
      color: #e6e2f0;
      transition: color 0.2s ease;
    }
    .nav-links > a:not(.button):hover,
    .nav-links > a[aria-current="page"] { color: var(--cyan); }

    /* Standardized Glassmorphism Buttons (Primary Magenta & Secondary Cyan) */
    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-height: 48px;
      padding: 12px 24px;
      border: 1px solid rgba(244, 20, 99, 0.5);
      border-radius: 12px;
      background: linear-gradient(135deg, rgba(244, 20, 99, 0.26) 0%, rgba(238, 53, 167, 0.12) 100%);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      color: #fff;
      font: 700 15px/1.2 var(--sans);
      white-space: nowrap;
      box-shadow: 0 8px 24px rgba(244, 20, 99, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.28);
      transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    }
    .button:hover {
      transform: translateY(-2px);
      background: linear-gradient(135deg, #f41463 0%, #ee35a7 100%);
      border-color: #f41463;
      box-shadow: 0 14px 32px rgba(244, 20, 99, 0.44), 0 0 22px rgba(238, 53, 167, 0.35);
    }
    .button svg {
      width: 18px;
      height: 18px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
      transition: transform 0.25s ease;
    }
    .button:hover svg { transform: translate(3px, -3px); }

    .btn-glass {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-height: 48px;
      padding: 12px 22px;
      border: 1px solid rgba(72, 216, 209, 0.38);
      border-radius: 12px;
      background: linear-gradient(135deg, rgba(72, 216, 209, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      color: #edf9f8;
      font: 600 15px/1.2 var(--sans);
      white-space: nowrap;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
      transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
    }
    .btn-glass:hover {
      transform: translateY(-2px);
      border-color: rgba(72, 216, 209, 0.82);
      background: linear-gradient(135deg, rgba(72, 216, 209, 0.22) 0%, rgba(72, 216, 209, 0.08) 100%);
      color: #fff;
      box-shadow: 0 10px 26px rgba(45, 217, 206, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    }
    .btn-glass svg {
      width: 18px;
      height: 18px;
      fill: none;
      stroke: var(--cyan);
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
      transition: transform 0.25s ease, stroke 0.25s ease;
    }
    .btn-glass:hover svg { stroke: #fff; }

    /* ==========================================================================
       React Bits BorderGlow + Glassmorphism Card System
       ========================================================================== */
    .glow-card {
      --edge-proximity: 0;
      --cursor-angle: 45deg;
      --edge-sensitivity: 30;
      --color-sensitivity: calc(var(--edge-sensitivity) + 20);
      --border-radius: 20px;
      --glow-padding: 36px;
      --cone-spread: 25;
      --card-fill: rgba(21, 20, 35, 0.78);
      --glow-color: hsl(176deg 85% 76% / 100%);
      --glow-color-60: hsl(176deg 85% 76% / 60%);
      --glow-color-50: hsl(176deg 85% 76% / 50%);
      --glow-color-30: hsl(176deg 85% 76% / 30%);
      --glow-color-20: hsl(176deg 85% 76% / 20%);
      --gradient-one: radial-gradient(at 80% 55%, #8b59ed 0, transparent 50%);
      --gradient-two: radial-gradient(at 69% 34%, #ee35a7 0, transparent 50%);
      --gradient-three: radial-gradient(at 8% 6%, #2dd9ce 0, transparent 50%);
      --gradient-four: radial-gradient(at 41% 38%, #8b59ed 0, transparent 50%);
      --gradient-five: radial-gradient(at 86% 85%, #ee35a7 0, transparent 50%);
      --gradient-six: radial-gradient(at 82% 18%, #2dd9ce 0, transparent 50%);
      --gradient-seven: radial-gradient(at 51% 4%, #ee35a7 0, transparent 50%);
      --gradient-base: linear-gradient(135deg, #2dd9ce 0%, #8b59ed 50%, #ee35a7 100%);

      position: relative;
      isolation: isolate;
      overflow: visible;
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: var(--border-radius);
      background: var(--card-fill);
      backdrop-filter: blur(20px) saturate(150%);
      -webkit-backdrop-filter: blur(20px) saturate(150%);
      box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.18);
      transform: translate3d(0, 0, 0.01px);
      transition: transform 0.28s ease, box-shadow 0.28s ease;
    }
    .glow-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 24px 54px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.24);
    }
    .glow-card > :not(.edge-light) { position: relative; z-index: 2; }
    .glow-card::before,
    .glow-card > .edge-light {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      pointer-events: none;
      transition: opacity 0.25s ease-out;
    }
    .glow-card::before {
      z-index: 1;
      border: 1.5px solid transparent;
      background:
        linear-gradient(var(--card-bg) 0 100%) padding-box,
        linear-gradient(rgba(255, 255, 255, 0) 0 100%) border-box,
        var(--gradient-one) border-box,
        var(--gradient-two) border-box,
        var(--gradient-three) border-box,
        var(--gradient-four) border-box,
        var(--gradient-five) border-box,
        var(--gradient-six) border-box,
        var(--gradient-seven) border-box,
        var(--gradient-base) border-box;
      opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
      -webkit-mask-image: conic-gradient(from var(--cursor-angle) at center,
        black calc(var(--cone-spread) * 1%),
        transparent calc((var(--cone-spread) + 15) * 1%),
        transparent calc((100 - var(--cone-spread) - 15) * 1%),
        black calc((100 - var(--cone-spread)) * 1%));
      mask-image: conic-gradient(from var(--cursor-angle) at center,
        black calc(var(--cone-spread) * 1%),
        transparent calc((var(--cone-spread) + 15) * 1%),
        transparent calc((100 - var(--cone-spread) - 15) * 1%),
        black calc((100 - var(--cone-spread)) * 1%));
    }
    .glow-card > .edge-light {
      inset: calc(var(--glow-padding) * -1);
      z-index: 3;
      border-radius: calc(var(--border-radius) + var(--glow-padding));
      -webkit-mask-image: conic-gradient(from var(--cursor-angle) at center,
        black 2.5%, transparent 10%, transparent 90%, black 97.5%);
      mask-image: conic-gradient(from var(--cursor-angle) at center,
        black 2.5%, transparent 10%, transparent 90%, black 97.5%);
      opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
      mix-blend-mode: plus-lighter;
    }
    .glow-card > .edge-light::before {
      content: "";
      position: absolute;
      inset: var(--glow-padding);
      border-radius: var(--border-radius);
      box-shadow:
        inset 0 0 0 1px var(--glow-color),
        inset 0 0 2px 0 var(--glow-color-60),
        inset 0 0 5px 0 var(--glow-color-50),
        inset 0 0 14px 0 var(--glow-color-30),
        0 0 2px 0 var(--glow-color-60),
        0 0 5px 0 var(--glow-color-50),
        0 0 15px 0 var(--glow-color-30),
        0 0 35px 2px var(--glow-color-20);
    }
    .glow-card:not(:hover)::before,
    .glow-card:not(:hover) > .edge-light {
      opacity: 0;
      transition: opacity 0.65s ease;
    }

    /* Magenta Glow Variant */
    .glow-card.glow-magenta {
      --glow-color: hsl(332deg 94% 62% / 100%);
      --glow-color-60: hsl(332deg 94% 62% / 65%);
      --glow-color-50: hsl(332deg 94% 62% / 52%);
      --glow-color-30: hsl(332deg 94% 62% / 32%);
      --glow-color-20: hsl(332deg 94% 62% / 22%);
      --gradient-one: radial-gradient(at 80% 55%, #f41463 0, transparent 52%);
      --gradient-two: radial-gradient(at 69% 34%, #ee35a7 0, transparent 52%);
      --gradient-three: radial-gradient(at 8% 6%, #c04bf2 0, transparent 52%);
      --gradient-four: radial-gradient(at 41% 38%, #f41463 0, transparent 52%);
      --gradient-five: radial-gradient(at 86% 85%, #ee35a7 0, transparent 52%);
      --gradient-six: radial-gradient(at 82% 18%, #ff5ca8 0, transparent 52%);
      --gradient-seven: radial-gradient(at 51% 4%, #ee35a7 0, transparent 52%);
      --gradient-base: linear-gradient(135deg, #f41463 0%, #ee35a7 55%, #a855f7 100%);
    }

    /* Breadcrumbs & Eyebrow */
    .breadcrumbs {
      display: inline-flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 9px;
      margin-bottom: 24px;
      color: #a9a4b8;
      font-size: 13.5px;
      font-weight: 500;
    }
    .breadcrumbs a { transition: color 0.2s ease; }
    .breadcrumbs a:hover { color: var(--cyan); }
    .breadcrumbs .sep { opacity: 0.45; }
    .breadcrumbs .current { color: #e8e5f2; }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin: 0 0 14px;
      color: var(--pink);
      font: 700 13.5px/1.2 var(--sans);
      letter-spacing: 0.15em;
      text-transform: uppercase;
    }
    .eyebrow::before {
      content: "";
      width: 24px;
      height: 1px;
      background: currentColor;
      flex-shrink: 0;
    }

    /* Hero */
    .project-hero {
      position: relative;
      padding: 160px 0 64px;
      overflow: hidden;
    }
    .hero-top {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 32px;
      flex-wrap: wrap;
    }
    .hero-copy { max-width: 760px; }
    .project-title {
      margin: 8px 0 18px;
      font: 700 clamp(46px, 7vw, 84px)/0.98 var(--display);
      letter-spacing: -0.045em;
      color: #fff;
    }
    .project-title em {
      font-style: normal;
      background: linear-gradient(95deg, #2dd9ce 8%, #8b59ed 56%, #ee35a7 96%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
    .project-lede {
      margin: 0;
      max-width: 680px;
      color: #d0ccd9;
      font-size: clamp(17px, 1.9vw, 20px);
      line-height: 1.7;
    }
    .project-facts {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 26px;
    }
    .fact {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 38px;
      padding: 7px 14px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.16);
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.025) 100%);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
      color: #ece9f5;
      font-size: 13.5px;
      font-weight: 500;
    }
    .fact svg {
      width: 15px;
      height: 15px;
      fill: none;
      stroke: var(--cyan);
      stroke-width: 2.2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 28px;
    }

    /* Glassmorphism Browser Showcase with BorderGlow */
    .showcase {
      margin-top: 48px;
      padding: 16px;
      --border-radius: 22px;
      background: linear-gradient(145deg, rgba(255, 255, 255, 0.085) 0%, rgba(255, 255, 255, 0.025) 100%);
    }
    .showcase:hover { transform: translateY(-2px); }
    .showcase-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 2px 6px 14px;
    }
    .showcase-dots { display: flex; gap: 7px; }
    .showcase-dots i {
      display: block;
      width: 10px;
      height: 10px;
      border-radius: 50%;
    }
    .showcase-dots i:nth-child(1) { background: #f41463; }
    .showcase-dots i:nth-child(2) { background: #ffbd59; }
    .showcase-dots i:nth-child(3) { background: #2dd9ce; }
    .showcase-pill {
      padding: 4px 12px;
      border-radius: 999px;
      border: 1px solid rgba(72, 216, 209, 0.35);
      background: rgba(72, 216, 209, 0.12);
      color: var(--cyan);
      font: 700 11px/1.2 var(--display);
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }
    .showcase-inner {
      position: relative;
      overflow: hidden;
      min-height: 360px;
      max-height: 680px;
      border-radius: 14px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: #171625;
    }
    .showcase-inner::after {
      content: "";
      position: absolute;
      inset: 55% 0 0;
      background: linear-gradient(transparent, rgba(11, 10, 20, 0.65));
      pointer-events: none;
    }
    .showcase img {
      display: block;
      width: 100%;
      height: min(60vw, 640px);
      min-height: 360px;
      object-fit: cover;
      object-position: center 12%;
      transition: transform 0.6s ease;
    }
    .showcase:hover img { transform: scale(1.015); }
    .showcase-caption {
      position: absolute;
      z-index: 2;
      left: 20px;
      bottom: 20px;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 9px 16px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      background: rgba(17, 17, 27, 0.68);
      backdrop-filter: blur(16px) saturate(150%);
      -webkit-backdrop-filter: blur(16px) saturate(150%);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 24px rgba(0, 0, 0, 0.35);
      color: #fff;
      font-size: 13.5px;
      font-weight: 600;
    }
    .caption-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--cyan-bright);
      box-shadow: 0 0 14px var(--cyan-bright);
    }

    /* Overview + Specs Grid */
    .content-section { padding: 72px 0 88px; }
    .overview-grid {
      display: grid;
      grid-template-columns: 1.25fr 0.75fr;
      gap: 36px;
      align-items: start;
    }
    .section-title {
      margin: 0 0 18px;
      font: 600 clamp(32px, 4.4vw, 50px)/1.06 var(--display);
      letter-spacing: -0.035em;
      color: #fff;
    }
    .section-title em { color: var(--cyan); font-style: normal; }
    .section-copy {
      max-width: 680px;
      color: #d2cedb;
      font-size: 17.5px;
      line-height: 1.78;
    }
    .section-copy p { margin: 0 0 16px; }
    .section-copy p:last-child { margin-bottom: 0; }

    /* Glass Specs Card */
    .spec-card {
      padding: 26px 28px;
      --border-radius: 18px;
      background: linear-gradient(145deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.02) 100%);
    }
    .spec-card-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-bottom: 14px;
      margin-bottom: 16px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      color: var(--cyan);
      font: 700 12px/1 var(--display);
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }
    .spec-list {
      margin: 0;
      padding: 0;
      list-style: none;
      display: grid;
      gap: 14px;
    }
    .spec-list li {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 14px;
      padding-bottom: 12px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.07);
      font-size: 14.5px;
    }
    .spec-list li:last-child { border-bottom: 0; padding-bottom: 0; }
    .spec-list span { color: var(--muted); }
    .spec-list strong { color: #fff; font-weight: 600; text-align: right; }

    /* Focus Cards with BorderGlow + Glassmorphism */
    .focus-head {
      margin-top: 76px;
      margin-bottom: 28px;
    }
    .focus-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 22px;
    }
    .focus-card {
      padding: 28px;
      --border-radius: 18px;
      background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.025) 100%);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 16px;
    }
    .focus-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
    }
    .focus-index {
      color: var(--cyan);
      font: 700 12px/1 var(--display);
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }
    .glass-icon {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      background: linear-gradient(135deg, rgba(72, 216, 209, 0.2) 0%, rgba(139, 89, 237, 0.1) 100%);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(72, 216, 209, 0.36);
      color: var(--cyan);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 18px rgba(0, 0, 0, 0.22);
    }
    .glass-icon svg {
      width: 20px;
      height: 20px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.9;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .focus-card h3 {
      margin: 0 0 10px;
      font: 600 23px/1.2 var(--display);
      color: #fff;
    }
    .focus-card p {
      margin: 0;
      color: var(--muted);
      font-size: 15.5px;
      line-height: 1.66;
    }

    /* Project Navigation Strip (Glassmorphism + BorderGlow) */
    .project-nav-section { padding: 0 0 56px; }
    .project-nav-grid {
      display: grid;
      grid-template-columns: auto 1fr;
      align-items: center;
      gap: 24px;
    }
    .next-project {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      padding: 18px 22px;
      --border-radius: 18px;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.02) 100%);
    }
    .next-project-left {
      display: flex;
      align-items: center;
      gap: 18px;
      min-width: 0;
    }
    .next-thumb {
      width: 84px;
      height: 60px;
      border-radius: 10px;
      object-fit: cover;
      object-position: top center;
      border: 1px solid rgba(255, 255, 255, 0.16);
      flex-shrink: 0;
    }
    .next-project small {
      display: block;
      color: var(--cyan);
      font: 700 11px/1.2 var(--display);
      letter-spacing: 0.14em;
      text-transform: uppercase;
      margin-bottom: 4px;
    }
    .next-project strong {
      display: block;
      font: 600 22px/1.15 var(--display);
      color: #fff;
    }
    .next-project span.next-cat {
      display: block;
      margin-top: 2px;
      color: var(--muted);
      font-size: 13.5px;
    }
    .next-arrow {
      flex: 0 0 44px;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      border: 1px solid rgba(72, 216, 209, 0.45);
      background: linear-gradient(135deg, rgba(72, 216, 209, 0.22) 0%, rgba(72, 216, 209, 0.06) 100%);
      color: var(--cyan-bright);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
      transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    }
    .next-arrow svg {
      width: 18px;
      height: 18px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .next-project:hover .next-arrow {
      transform: translateX(4px);
      background: linear-gradient(135deg, rgba(72, 216, 209, 0.42) 0%, rgba(72, 216, 209, 0.16) 100%);
      color: #fff;
      box-shadow: 0 0 22px rgba(45, 217, 206, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }

    /* Final CTA with Magenta BorderGlow & Glassmorphism */
    .cta-section { padding: 12px 0 92px; }
    .portfolio-cta {
      padding: clamp(32px, 5vw, 52px);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 32px;
      border-color: rgba(238, 53, 167, 0.28);
      background:
        radial-gradient(ellipse 56% 110% at 96% 10%, rgba(244, 20, 99, 0.22), transparent 68%),
        radial-gradient(ellipse 46% 90% at 6% 92%, rgba(139, 89, 237, 0.18), transparent 66%),
        linear-gradient(135deg, rgba(34, 24, 56, 0.88) 0%, rgba(21, 19, 36, 0.92) 56%, rgba(52, 18, 46, 0.86) 100%);
    }
    .cta-kicker {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 14px;
      padding: 6px 14px;
      border-radius: 999px;
      background: rgba(244, 20, 99, 0.14);
      border: 1px solid rgba(244, 20, 99, 0.38);
      color: #ff7fb0;
      font: 700 11px/1.2 var(--display);
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }
    .cta-kicker svg {
      width: 14px;
      height: 14px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
    }
    .portfolio-cta h2 {
      margin: 0 0 12px;
      max-width: 620px;
      font: 700 clamp(28px, 3.8vw, 42px)/1.08 var(--display);
      letter-spacing: -0.03em;
      color: #fff;
    }
    .portfolio-cta h2 em { font-style: normal; color: var(--magenta); }
    .portfolio-cta p {
      margin: 0;
      max-width: 540px;
      color: #d2cee0;
      font-size: 16px;
      line-height: 1.68;
    }
    .cta-actions {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 12px;
      flex-shrink: 0;
    }

    /* Footer */
    .footer {
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      background: #0d0d16;
      padding: 56px 0 28px;
    }
    .footer-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 40px;
      padding-bottom: 36px;
    }
    .footer-brand p {
      margin: 14px 0 0;
      max-width: 300px;
      color: var(--muted);
      font-size: 14.5px;
      line-height: 1.65;
    }
    .footer-links { display: flex; gap: 56px; }
    .footer-col { display: grid; gap: 10px; font-size: 14.5px; color: #cbc7d8; }
    .footer-col strong {
      margin-bottom: 4px;
      color: var(--cyan);
      font: 700 11px/1.2 var(--display);
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }
    .footer-col a:hover { color: #fff; }
    .footer-bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      padding-top: 22px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      color: #9e99ae;
      font-size: 13.5px;
    }
    .footer-bottom nav { display: flex; gap: 20px; }
    .footer-bottom a:hover { color: var(--cyan); }

    /* Responsive */
    @media (max-width: 960px) {
      .overview-grid { grid-template-columns: 1fr; }
      .focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .project-nav-grid { grid-template-columns: 1fr; }
      .portfolio-cta { flex-direction: column; align-items: flex-start; }
      .cta-actions { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
    }
    @media (max-width: 720px) {
      .wrap { width: calc(100% - 34px); }
      .nav { height: 74px; }
      .brand-logo { width: 132px; }
      .mobile-toggle { display: grid; }
      .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 14px 18px 20px;
        background: rgba(18, 17, 30, 0.97);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
      }
      .nav-links.open { display: flex; }
      .nav-links > a:not(.button) { padding: 10px 4px; }
      .project-hero { padding: 134px 0 48px; }
      .showcase { margin-top: 34px; padding: 12px; }
      .showcase-inner, .showcase img { min-height: 270px; height: 70vw; }
      .showcase-caption { left: 14px; bottom: 14px; font-size: 12.5px; }
      .focus-grid { grid-template-columns: 1fr; }
      .next-thumb { width: 68px; height: 50px; }
      .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
      .footer-links { flex-wrap: wrap; gap: 30px; }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { transition: none !important; animation: none !important; }
    }

/* ==========================================================================
   WordPress Chrome & Compatibility Layer — Renzo Zamora
   Loaded LAST on all templates (after base -> types -> pages).
   Ensures uniform Header, Navigation (including wp_nav_menu <li>), Footer,
   WP Admin Bar offset, Featured Post radius, BorderGlow safeguards, and Prism.js.
   ========================================================================== */

/* 1. Announcement Bar */
aside.announcement,
.announcement {
  position: relative;
  z-index: 35;
  display: flex;
  min-height: 46px;
  height: auto;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  background: linear-gradient(100deg, #cd1049, #a20e58);
  color: #ffffff;
  text-align: center;
  font: 700 12px/1.35 'Jost', Arial, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: normal;
  text-wrap: balance;
}
aside.announcement b,
.announcement b {
  color: #ffe7a6;
  font-weight: 700;
}

/* 2. Standardized Fixed Header & Navigation */
header.header.page-header {
  position: fixed;
  z-index: 30;
  top: 46px;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent;
  border-top: 0;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transition:
    top 0.28s ease,
    background 0.28s ease,
    backdrop-filter 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

header.header.page-header.scrolled {
  top: 0;
  background: rgba(20, 19, 32, 0.84);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 28px rgba(5, 4, 14, 0.24);
}

/* WordPress Admin Bar Offset */
body.admin-bar header.header.page-header {
  top: 78px;
}
body.admin-bar header.header.page-header.scrolled {
  top: 32px;
}

header.header.page-header .nav.page-nav {
  width: min(1160px, calc(100% - 48px));
  max-width: 1160px;
  height: 92px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

header.header.page-header .brand.page-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

header.header.page-header .brand-logo.page-logo,
header.header.page-header .brand.page-brand img {
  display: block;
  width: 158px;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

header.header.page-header .nav-links.page-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 500 15.5px/1.2 'Inter', Arial, sans-serif;
  color: #e6e2f0;
}

header.header.page-header .nav-links.page-nav-links .menu-item {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

@media (min-width: 769px) {
  header.header.page-header .nav-links.page-nav-links .menu-item.nav-mega,
  header.header.page-header .nav-links.page-nav-links .nav-mega {
    position: static;
  }
}

header.header.page-header .nav-links.page-nav-links > a:not(.button):not(.page-cta),
header.header.page-header .nav-links.page-nav-links .menu-item > a:not(.button):not(.page-cta),
header.header.page-header .nav-links.page-nav-links .nav-mega > a.mega-trigger {
  display: inline-flex;
  align-items: center;
  color: #e6e2f0;
  font: 500 15.5px/1.2 'Inter', Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

header.header.page-header .nav-links.page-nav-links > a:not(.button):not(.page-cta):hover,
header.header.page-header .nav-links.page-nav-links .menu-item > a:not(.button):not(.page-cta):hover,
header.header.page-header .nav-links.page-nav-links .nav-mega > a.mega-trigger:hover,
header.header.page-header .nav-links.page-nav-links .nav-mega.is-open > a.mega-trigger,
header.header.page-header .nav-links.page-nav-links > a[aria-current="page"]:not(.button):not(.page-cta),
header.header.page-header .nav-links.page-nav-links .nav-mega > a[aria-current="page"],
header.header.page-header .nav-links.page-nav-links .current-menu-item > a:not(.button):not(.page-cta),
header.header.page-header .nav-links.page-nav-links .current-menu-ancestor > a:not(.button):not(.page-cta) {
  color: #43d8d1;
}

header.header.page-header .nav-links.page-nav-links a.page-cta,
header.header.page-header .nav-links.page-nav-links a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid rgba(244, 20, 99, 0.48);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(244, 20, 99, 0.24) 0%, rgba(238, 53, 167, 0.11) 100%);
  color: #ffffff;
  font: 700 15px/1.2 'Inter', Arial, sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
  text-decoration: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 8px 24px rgba(244, 20, 99, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

header.header.page-header .nav-links.page-nav-links a.page-cta:hover,
header.header.page-header .nav-links.page-nav-links a.button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #f41463 0%, #ee35a7 100%);
  border-color: #f41463;
  box-shadow:
    0 12px 32px rgba(244, 20, 99, 0.42),
    0 0 20px rgba(238, 53, 167, 0.34);
  color: #ffffff;
}

header.header.page-header .nav-links.page-nav-links a.page-cta svg,
header.header.page-header .nav-links.page-nav-links a.button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

header.header.page-header .nav-links.page-nav-links a.page-cta:hover svg,
header.header.page-header .nav-links.page-nav-links a.button:hover svg {
  transform: translate(3px, -3px);
}

header.header.page-header .mobile-toggle.page-menu {
  display: none !important;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
  cursor: pointer;
  outline: none;
  box-shadow: none;
}

header.header.page-header .mobile-toggle.page-menu svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 2.1 Standardized Mega-Menu (Consistent layout across Home and Inner templates) */
@media (min-width: 821px) {
  header.header.page-header .mega-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translate(-50%, 0);
    width: 980px;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    z-index: 50;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
      radial-gradient(ellipse 55% 65% at 8% 0%, rgba(45, 217, 206, 0.12), transparent 65%),
      radial-gradient(ellipse 50% 60% at 96% 100%, rgba(244, 20, 99, 0.12), transparent 65%),
      rgba(19, 18, 32, 0.96);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    box-shadow:
      0 28px 70px rgba(4, 3, 12, 0.62),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  header.header.page-header .mega-inner {
    display: grid;
    grid-template-columns: 500px minmax(370px, 1fr);
    gap: 24px;
    padding: 22px 24px;
    box-sizing: border-box;
  }

  header.header.page-header .mega-col-services {
    min-width: 0;
  }

  header.header.page-header .mega-services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  header.header.page-header .mega-service-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 13px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
    text-decoration: none;
    min-width: 0;
  }

  header.header.page-header .mega-col-sectors {
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 0;
  }

  header.header.page-header .mega-sectors-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    min-width: 0;
  }

  header.header.page-header .mega-sector-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.035);
    color: #dcd8e8;
    font: 500 12px/1.2 'Inter', Arial, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  }

  header.header.page-header .mega-sector-pill svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }
}

@media (max-width: 1040px) and (min-width: 821px) {
  header.header.page-header .mega-panel {
    width: min(980px, calc(100% - 32px));
    max-width: calc(100% - 32px);
  }
  header.header.page-header .mega-inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(330px, 1fr);
    gap: 18px;
    padding: 20px;
  }
  header.header.page-header .mega-col-sectors {
    padding-left: 16px;
  }
  header.header.page-header .mega-sector-pill {
    padding: 4px 8px;
    font-size: 11.5px;
  }
}

/* 3. Standardized Footer */
footer.footer.page-footer {
  padding: 54px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #0e0e17;
  color: #f5f3fa;
  font-family: 'Inter', Arial, sans-serif;
}

footer.footer.page-footer .wrap.page-wrap {
  width: min(1160px, calc(100% - 48px));
  max-width: 1160px;
  margin-inline: auto;
}

footer.footer.page-footer .footer-top.page-footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 38px;
}

footer.footer.page-footer .footer-brand.page-footer-brand {
  max-width: 340px;
}

footer.footer.page-footer .footer-brand.page-footer-brand .brand.page-brand {
  display: inline-flex;
  align-items: center;
}

footer.footer.page-footer .footer-brand.page-footer-brand img.brand-logo.page-logo {
  display: block;
  width: 155px;
  height: auto;
  filter: brightness(0) invert(1);
}

footer.footer.page-footer .footer-brand.page-footer-brand p {
  max-width: 320px;
  margin: 16px 0 0;
  color: #c5c2ce;
  font-size: 15px;
  line-height: 1.65;
}

footer.footer.page-footer .footer-meta-legal {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #9e99ae;
}

footer.footer.page-footer .footer-links.page-footer-links {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 52px;
  margin: 0;
}

footer.footer.page-footer .footer-col.page-footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
  color: #d1cdd9;
}

footer.footer.page-footer .footer-col.page-footer-col strong {
  margin-bottom: 4px;
  color: #43d8d1;
  font: 700 12px/1.2 'Jost', Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

footer.footer.page-footer .footer-col.page-footer-col a {
  color: #d1cdd9;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer.footer.page-footer .footer-col.page-footer-col a:hover {
  color: #ffffff;
}

footer.footer.page-footer .footer-col.page-footer-col .complaint-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

footer.footer.page-footer .footer-col.page-footer-col .complaint-link svg {
  width: 17px;
  height: 17px;
  color: #f41463;
  flex-shrink: 0;
}

footer.footer.page-footer .footer-bottom.page-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9e99ae;
  font-size: 14px;
  letter-spacing: 0;
}

/* 4. Responsive Header & Footer */
@media (max-width: 960px) {
  header.header.page-header .nav.page-nav {
    height: 82px;
    gap: 18px;
  }
  header.header.page-header .brand-logo.page-logo,
  header.header.page-header .brand.page-brand img {
    width: 140px;
  }
  header.header.page-header .nav-links.page-nav-links {
    gap: 18px;
    font-size: 15px;
  }
  header.header.page-header .nav-links.page-nav-links a.page-cta,
  header.header.page-header .nav-links.page-nav-links a.button {
    padding: 10px 16px;
    font-size: 14px;
  }
  footer.footer.page-footer .footer-links.page-footer-links {
    gap: 32px;
  }
}

@media (max-width: 782px) {
  body.admin-bar header.header.page-header {
    top: 88px;
  }
  body.admin-bar header.header.page-header.scrolled {
    top: 46px;
  }
}

@media (max-width: 820px) {
  aside.announcement,
  .announcement {
    min-height: 42px;
    padding: 8px 12px;
    font-size: 10.5px;
    letter-spacing: 0.025em;
  }
  header.header.page-header {
    top: 42px;
  }
  header.header.page-header.scrolled {
    top: 0;
  }
  header.header.page-header .nav.page-nav {
    width: calc(100% - 36px);
    height: 72px;
  }
  header.header.page-header .brand-logo.page-logo,
  header.header.page-header .brand.page-brand img {
    width: 130px;
  }
  header.header.page-header .mobile-toggle.page-menu {
    display: grid !important;
  }
  header.header.page-header .nav-links.page-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 18px 20px;
    background: rgba(18, 17, 30, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
    max-height: calc(100dvh - 72px);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  header.header.page-header .nav-links.page-nav-links.open {
    display: flex;
  }
  header.header.page-header .nav-links.page-nav-links .menu-item {
    width: 100%;
  }
  header.header.page-header .nav-links.page-nav-links > a:not(.button):not(.page-cta),
  header.header.page-header .nav-links.page-nav-links .menu-item > a:not(.button):not(.page-cta) {
    width: 100%;
    padding: 12px 4px;
    font-size: 16px;
  }
  header.header.page-header .nav-links.page-nav-links a.page-cta,
  header.header.page-header .nav-links.page-nav-links a.button {
    width: 100%;
    margin-top: 10px;
  }

  /* Mobile Mega-Menu Accordion */
  header.header.page-header .nav-links.page-nav-links .menu-item.nav-mega,
  header.header.page-header .nav-links.page-nav-links .nav-mega {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    list-style: none;
  }

  header.header.page-header .nav-links.page-nav-links .nav-mega > a.mega-trigger,
  header.header.page-header .nav-links.page-nav-links .menu-item.nav-mega > a.mega-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 4px;
    color: #e6e2f0;
    font: 500 16px/1.2 'Inter', Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
  }

  header.header.page-header .nav-links.page-nav-links .nav-mega > a.mega-trigger:hover,
  header.header.page-header .nav-links.page-nav-links .nav-mega.is-open > a.mega-trigger,
  header.header.page-header .nav-links.page-nav-links .menu-item.nav-mega.is-open > a.mega-trigger {
    color: #43d8d1;
  }

  header.header.page-header .mega-chevron {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    transition: transform 0.25s ease;
    flex-shrink: 0;
  }

  header.header.page-header .nav-mega.is-open .mega-chevron,
  header.header.page-header .menu-item.nav-mega.is-open .mega-chevron {
    transform: rotate(180deg);
  }

  header.header.page-header .nav-links.page-nav-links .mega-panel {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    max-height: 0;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid transparent;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: none;
    background: rgba(15, 14, 25, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease, border-color 0.25s ease;
  }

  header.header.page-header .nav-links.page-nav-links .mega-panel::before {
    display: none !important;
  }

  header.header.page-header .nav-links.page-nav-links .nav-mega.is-open > .mega-panel,
  header.header.page-header .nav-links.page-nav-links .menu-item.nav-mega.is-open > .mega-panel {
    max-height: 2500px;
    overflow: visible;
    border-color: rgba(255, 255, 255, 0.12);
    margin: 4px 0 12px;
    padding: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }

  header.header.page-header .nav-links.page-nav-links .mega-inner {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 14px 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  header.header.page-header .nav-links.page-nav-links .mega-col-services {
    width: 100%;
    min-width: 0;
  }

  header.header.page-header .nav-links.page-nav-links .mega-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--cyan, #43d8d1);
    font: 600 11.5px/1.2 'Jost', Arial, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  header.header.page-header .nav-links.page-nav-links .mega-heading svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    flex-shrink: 0;
  }

  header.header.page-header .nav-links.page-nav-links .mega-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  header.header.page-header .nav-links.page-nav-links .mega-service-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  header.header.page-header .nav-links.page-nav-links .mega-service-item:hover {
    background: rgba(67, 216, 209, 0.08);
    border-color: rgba(67, 216, 209, 0.3);
  }

  header.header.page-header .nav-links.page-nav-links .mega-service-item .mega-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(67, 216, 209, 0.12);
    border: 1px solid rgba(67, 216, 209, 0.24);
    color: var(--cyan, #43d8d1);
    flex-shrink: 0;
  }

  header.header.page-header .nav-links.page-nav-links .mega-service-item .mega-icon svg {
    width: 16px;
    height: 16px;
  }

  header.header.page-header .nav-links.page-nav-links .mega-service-copy strong {
    display: block;
    font: 600 13.5px/1.3 'Jost', Arial, sans-serif;
    color: #ffffff;
  }

  header.header.page-header .nav-links.page-nav-links .mega-service-copy small {
    display: block;
    margin-top: 2px;
    font: 400 11.5px/1.35 'Inter', Arial, sans-serif;
    color: #a7a3b3;
  }

  header.header.page-header .nav-links.page-nav-links .mega-col-sectors {
    padding-left: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    min-width: 0;
  }

  header.header.page-header .nav-links.page-nav-links .mega-sectors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }

  header.header.page-header .nav-links.page-nav-links .mega-sector-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.035);
    color: #dcd8e8;
    font: 500 11.5px/1.2 'Inter', Arial, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
  }

  header.header.page-header .nav-links.page-nav-links .mega-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.015);
  }

  header.header.page-header .nav-links.page-nav-links .mega-footer span {
    font: 400 11.5px/1.3 'Inter', Arial, sans-serif;
    color: #9d99a9;
  }

  header.header.page-header .nav-links.page-nav-links .mega-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cyan, #43d8d1);
    font: 600 12.5px/1.2 'Inter', Arial, sans-serif;
    text-decoration: none;
  }

  footer.footer.page-footer {
    padding: 44px 0 24px;
  }
  footer.footer.page-footer .wrap.page-wrap {
    width: calc(100% - 36px);
  }
  footer.footer.page-footer .footer-top.page-footer-top {
    flex-direction: column;
    gap: 32px;
    padding-bottom: 30px;
  }
  footer.footer.page-footer .footer-links.page-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    width: 100%;
  }
  footer.footer.page-footer .footer-bottom.page-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  body.admin-bar header.header.page-header.scrolled {
    top: 0;
  }
}

/* 5. Featured Post Radius & BorderGlow Safeguards */
.featured-post > .featured-art {
  border-radius: 15px 0 0 15px;
  overflow: hidden;
}
@media (max-width: 680px) {
  .featured-post > .featured-art {
    border-radius: 15px 15px 0 0;
  }
}

.glow-card,
.service-card,
.project-card,
.portfolio-cta,
.feature-card,
.highlight-banner,
.project-type-card,
.related-project-card,
.journal-card,
.featured-post,
.plugin-card,
.principle-card,
#servicios .service,
#proyectos .project,
.services-bridge .bridge-inner {
  isolation: isolate;
  overflow: visible !important;
}

.glow-card > .edge-light,
.service-card > .edge-light,
.project-card > .edge-light,
.portfolio-cta > .edge-light,
.feature-card > .edge-light,
.highlight-banner > .edge-light,
.project-type-card > .edge-light,
.related-project-card > .edge-light,
.journal-card > .edge-light,
.featured-post > .edge-light,
.plugin-card > .edge-light,
.principle-card > .edge-light {
  pointer-events: none;
  mix-blend-mode: plus-lighter;
}

.all-projects-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.all-projects-link:hover svg {
  transform: translate(2px, -2px);
}

@media (prefers-reduced-motion: reduce) {
  header.header.page-header {
    transition: none;
  }
}

