/* ==========================================================================
   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);
}

/* Accordions & FAQ */
.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;
}

.faq-list {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 16px;
}

.faq-list details {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(28, 27, 45, 0.72), rgba(18, 17, 30, 0.85));
  transition: border-color 0.25s ease, background 0.25s ease;
  overflow: hidden;
}

.faq-list details[open] {
  border-color: rgba(67, 216, 209, 0.45);
  background: linear-gradient(145deg, rgba(34, 33, 55, 0.85), rgba(20, 19, 34, 0.94));
}

.faq-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  cursor: pointer;
  color: #fff;
  font: 600 18px/1.35 var(--display);
  letter-spacing: -0.01em;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.legal-toggle-icon {
  position: relative;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.legal-toggle-icon::before,
.legal-toggle-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--cyan);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.legal-toggle-icon::before {
  width: 10px;
  height: 1.8px;
}

.legal-toggle-icon::after {
  width: 1.8px;
  height: 10px;
}

details[open] .legal-toggle-icon {
  border-color: var(--cyan);
  background: rgba(67, 216, 209, 0.14);
}

details[open] .legal-toggle-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  padding: 0 24px 24px;
  color: #cbc7d8;
  font-size: 15.5px;
  line-height: 1.72;
}

.faq-answer p {
  margin: 0 0 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* 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 2 (TIPO): LANDINGS DE DISEÑO WEB POR SECTOR

   Hero de sector, stats, tarjetas de características, banner diagnóstico,

   carrusel infinito de especialidades, proyectos relacionados y directorio.

   Requiere: assets/css/base.css

   ========================================================================== */


/* Hero Section (Base: Constructoras + Sector Background Image) */
.hero-sector {
  position: relative;
  overflow: hidden;
  padding: 176px 0 64px;
  background:
    radial-gradient(ellipse 55% 85% at 5% 15%, rgba(45, 217, 206, 0.12), transparent 70%),
    radial-gradient(ellipse 50% 80% at 95% 30%, rgba(139, 89, 237, 0.14), transparent 70%),
    var(--bg);
}
.hero-sector::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(90deg, rgba(17, 17, 27, 0.96) 0%, rgba(17, 17, 27, 0.78) 48%, rgba(17, 17, 27, 0.22) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 32%),
    var(--sector-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.78;
}
.hero-sector > .wrap { position: relative; z-index: 1; }


.hero-sector h1 {
  margin: 0 0 20px;
  font: 600 clamp(44px, 6.2vw, 76px) / 1.02 var(--display);
  letter-spacing: -0.04em;
  max-width: 980px;
  color: #fff;
}
.hero-sector h1 em {
  font-style: normal;
  background: linear-gradient(95deg, #2dd9ce 0%, #8b59ed 50%, #ee35a7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline;
}
.hero-sector p.lede {
  margin: 0 0 32px;
  color: #d4d0de;
  font-size: 18px;
  line-height: 1.7;
  max-width: 740px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}
.ghost-link {
  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;
  font-size: 15px;
  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;
}
.ghost-link: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: #ffffff;
  box-shadow: 0 10px 26px rgba(45, 217, 206, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.ghost-link svg {
  width: 18px;
  height: 18px;
  stroke: var(--cyan);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease, stroke 0.25s ease;
}
.ghost-link:hover svg {
  stroke: #ffffff;
}

/* Stats Strip (Glassmorphism) */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(18, 17, 30, 0.56);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.stat-card { padding: 4px 10px; }
.stat-number {
  display: block;
  font: 700 clamp(24px, 3vw, 34px)/1.05 var(--display);
  color: var(--cyan);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.stat-label {
  color: #c8c4d4;
  font-size: 14.5px;
  line-height: 1.45;
  margin: 0;
}


/* Grids & Feature Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.feature-card {
  position: relative;
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(25, 24, 39, 0.88), rgba(17, 17, 27, 0.94));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(67, 216, 209, 0.48);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35), 0 0 22px rgba(67, 216, 209, 0.14);
}
.card-icon {
  position: relative;
  isolation: isolate;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(67, 216, 209, 0.45);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(67, 216, 209, 0.2), rgba(20, 35, 52, 0.38));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: var(--cyan);
  margin-bottom: 22px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover .card-icon {
  border-color: rgba(67, 216, 209, 0.78);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), 0 0 24px rgba(67, 216, 209, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.card-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(67, 216, 209, 0.5));
}
.feature-card h3 {
  margin: 0 0 12px;
  font: 600 24px/1.2 var(--display);
  letter-spacing: -0.02em;
  color: #fff;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}
.feature-card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-card li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #d5d1df;
  font-size: 14.5px;
  line-height: 1.45;
}
.feature-card li svg {
  width: 17px;
  height: 17px;
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 2px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* Highlight Diagnostic CTA (Magenta BorderGlow + Glassmorphism) */
.highlight-banner {
  --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%);
  --gradient-one: radial-gradient(at 80% 55%, #f41463 0, transparent 50%);
  --gradient-two: radial-gradient(at 69% 34%, #ee35a7 0, transparent 50%);
  --gradient-three: radial-gradient(at 8% 6%, #8b59ed 0, transparent 50%);
  --gradient-four: radial-gradient(at 41% 38%, #f41463 0, transparent 50%);
  --gradient-five: radial-gradient(at 86% 85%, #ee35a7 0, transparent 50%);
  --gradient-six: radial-gradient(at 82% 18%, #8b59ed 0, transparent 50%);
  --gradient-seven: radial-gradient(at 51% 4%, #f41463 0, transparent 50%);
  --gradient-base: linear-gradient(135deg, #f41463 0%, #ee35a7 50%, #8b59ed 100%);
  margin-top: 48px;
  padding: 36px 40px;
  border: 1px solid rgba(244, 20, 99, 0.42);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(244, 20, 99, 0.22), transparent 58%),
    radial-gradient(ellipse at 0% 100%, rgba(139, 89, 237, 0.16), transparent 55%),
    rgba(23, 22, 37, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.highlight-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(67, 216, 209, 0.12);
  border: 1px solid rgba(67, 216, 209, 0.32);
  color: var(--cyan);
  font: 700 11px/1.2 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.highlight-banner h3 {
  margin: 0 0 8px;
  font: 600 clamp(22px, 2.5vw, 28px)/1.2 var(--display);
  color: #fff;
}
.highlight-banner p {
  margin: 0;
  color: #cbc7d5;
  font-size: 16px;
  max-width: 680px;
}

/* ==========================================================================
   Section Types / Infinite Carousel (Seamless Loop + Sector Background)
   ========================================================================== */
.section-types {
  position: relative;
  overflow: hidden;
  padding: 88px 0 100px;
}
.section-types::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 65% 55% at 50% 12%, rgba(45, 217, 206, 0.08), transparent 70%),
    radial-gradient(ellipse 60% 60% at 85% 85%, rgba(244, 20, 99, 0.08), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, rgba(17, 17, 27, 0.82) 25%, rgba(17, 17, 27, 0.9) 75%, var(--bg) 100%),
    var(--sector-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.52;
  filter: saturate(1.15) brightness(0.85);
  pointer-events: none;
}
.section-types .wrap {
  position: relative;
  z-index: 2;
}

/* Infinite Carousel Container */
.types-carousel {
  position: relative;
  z-index: 2;
  overflow: hidden;
  width: 100%;
  margin-top: 36px;
  padding: 16px 0 24px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
}
.types-carousel-track {
  display: flex;
  width: max-content;
  animation: infinite-carousel-scroll 42s linear infinite;
  will-change: transform;
}
.types-carousel:hover .types-carousel-track,
.types-carousel:focus-within .types-carousel-track {
  animation-play-state: paused;
}
.types-carousel-group {
  display: flex;
  gap: 20px;
  padding-right: 20px;
  flex-shrink: 0;
}
@keyframes infinite-carousel-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Visual Card with div > img Background and BorderGlow */
.project-type-card,
.project-type-pill {
  position: relative;
  isolation: isolate;
  flex: 0 0 340px;
  width: 340px;
  min-height: 350px;
  padding: 32px 24px 26px;
  border-radius: var(--border-radius, 18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(45, 217, 206, 0.08), transparent 60%),
    linear-gradient(155deg, rgba(30, 28, 48, 0.88) 0%, rgba(18, 17, 30, 0.96) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

/* Background container: div > img (position absolute, pointer-events none, object-fit cover) */
.project-type-card .card-bg,
.project-type-pill .card-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.project-type-card .card-bg img,
.project-type-pill .card-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  pointer-events: none;
  opacity: 0.65;
  filter: saturate(1.12) brightness(0.96);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.project-type-card .card-bg::after,
.project-type-pill .card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 15, 26, 0.02) 0%,
    rgba(16, 15, 26, 0.12) 36%,
    rgba(16, 15, 26, 0.72) 64%,
    rgba(16, 15, 26, 0.94) 88%,
    rgba(16, 15, 26, 0.98) 100%
  );
  pointer-events: none;
}

.project-type-card:hover .card-bg img,
.project-type-pill:hover .card-bg img {
  transform: scale(1.08);
  opacity: 0.85;
}

.project-type-card > :not(.card-bg):not(.edge-light),
.project-type-pill > :not(.card-bg):not(.edge-light) {
  position: relative;
  z-index: 2;
}

.project-type-card strong,
.project-type-pill strong {
  display: block;
  color: #ffffff;
  font: 600 19px/1.3 var(--display);
  margin-bottom: 8px;
  letter-spacing: -0.015em;
  transition: color 0.25s ease;
}

.project-type-card span,
.project-type-pill span {
  display: block;
  color: #cbc7d8;
  font-size: 13.5px;
  line-height: 1.55;
}

.project-type-card:hover,
.project-type-pill:hover {
  transform: translateY(-5px);
  border-color: rgba(67, 216, 209, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.48), 0 0 25px rgba(45, 217, 206, 0.2);
}
.project-type-card:hover strong,
.project-type-pill:hover strong {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(67, 216, 209, 0.4);
}

/* Fallback grid if used statically */
.project-types-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

/* ==========================================================================
   Sección de Proyectos Relacionados en Landings de Sector
   ========================================================================== */
.related-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.related-project-card {
  display: flex;
  flex-direction: column;
  background: rgba(22, 21, 35, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius, 18px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.3s ease;
}

.related-project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(67, 216, 209, 0.55);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 28px rgba(45, 217, 206, 0.18);
}

.related-project-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #151423;
}

.related-project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.related-project-card:hover .related-project-img img {
  transform: scale(1.05);
}

.related-project-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(45, 217, 206, 0.35);
  background: rgba(17, 17, 27, 0.84);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  letter-spacing: 0.02em;
}

.related-project-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.related-project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.related-project-body h3 {
  margin: 0;
  font: 700 24px/1.2 var(--display);
  color: #ffffff;
  letter-spacing: -0.015em;
  transition: color 0.25s ease;
}

.related-project-card:hover .related-project-body h3 {
  color: var(--cyan);
}

.related-project-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.related-project-card:hover .related-project-arrow {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #11111b;
  transform: translate(3px, -3px);
}

.related-project-arrow svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.related-project-body p {
  margin: 0;
  color: #cbc7d8;
  font-size: 14.5px;
  line-height: 1.6;
}

.portfolio-more-action {
  margin-top: 40px;
  text-align: center;
}

.button-outline {
  border: 1px solid rgba(72, 216, 209, 0.38);
  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;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.button-outline svg {
  stroke: var(--cyan);
}

.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: #ffffff;
  box-shadow: 0 10px 26px rgba(45, 217, 206, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.button-outline:hover svg {
  stroke: #ffffff;
}

@media (max-width: 768px) {
  .related-projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}



/* Sector Directory */
.sector-directory { padding: 42px 0 16px; }
.sector-directory-panel {
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(67, 216, 209, 0.36);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(25, 24, 39, 0.84), rgba(17, 17, 27, 0.92));
  box-shadow: 0 0 34px rgba(45, 217, 206, 0.1), inset 0 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.sector-directory-panel h2 {
  margin: 0 0 10px;
  font: 600 clamp(28px, 3.8vw, 42px)/1.08 var(--display);
  letter-spacing: -0.03em;
  color: #fff;
}
.sector-directory-panel > p {
  max-width: 720px;
  margin: 0 0 26px;
  color: var(--muted);
}
.sector-directory-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sector-directory-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 14px;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.sector-directory-links a:hover,
.sector-directory-links a[aria-current="page"] {
  border-color: var(--cyan);
  background: rgba(67, 216, 209, 0.09);
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(45, 217, 206, 0.22);
}
.sector-directory-links svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* Responsive */
@media (max-width: 960px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .project-types-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-aside { position: static; }
  .portfolio-cta { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
  .cta-button { width: 100%; justify-content: center; }
  .highlight-banner { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { flex-wrap: wrap; gap: 36px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 34px); }
  .nav { height: 74px; }
  .brand-logo { width: 136px; }
  .mobile-toggle { display: grid; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    align-items: stretch;
    gap: 0;
    padding: 14px 20px 22px;
    background: rgba(17, 17, 27, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }
  .nav-links.open { display: flex; flex-direction: column; }
  .nav-links > a:not(.button) { padding: 12px 0; }
  .nav-links .button { margin-top: 10px; width: 100%; }
  .hero-sector { padding: 144px 0 48px; }
  .hero-sector h1 { font-size: clamp(38px, 11vw, 56px); }
  .section-types { padding: 60px 0 72px; }
  .types-carousel { margin-top: 24px; }
  .project-type-card,
  .project-type-pill {
    flex: 0 0 290px;
    width: 290px;
    min-height: 310px;
    padding: 24px 20px 22px;
  }
  .stats-strip, .project-types-grid { grid-template-columns: 1fr; }
  .faq-answer { padding-right: 4px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .announcement { font-size: 10px; }
}
/* Sector item imagery */
.sector-segment {
  padding: 0;
  overflow: hidden;
}
.sector-segment-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  filter: saturate(0.92) contrast(1.03);
  transition: transform 0.45s cubic-bezier(0.2, 0.75, 0.25, 1), filter 0.3s ease;
}
.sector-segment-copy {
  padding: 20px 18px 22px;
}
.sector-segment:hover .sector-segment-image {
  transform: scale(1.035);
  filter: saturate(1.05) contrast(1.04);
}

@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;
  }
}

