/* ==========================================================================
   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%),
    #151423;
}

.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;
}
