/* =============================================================================
   NOBITEC — styles.css
   1. Tokens  2. Reset & base  3. Utilities  4. Typography  5. Components
   6. Sections  7. Effects  8. Responsive  9. Reduced-motion
   ============================================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
@property --thickness {
  syntax: "<length>";
  inherits: false;
  initial-value: 3px;
}

@property --cross-scale {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

@property --mesh-x {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 30%;
}

@property --mesh-y {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 40%;
}

:root {
  /* palette */
  --bg: #0a1210;
  --bg-1: #0d1815;
  --bg-2: #12211d;
  --bg-3: #172925;
  --ink: #eef5f2;
  --ink-soft: #cddad5;
  --ink-mute: #8fa9a2;
  --ink-dim: #5f7873;
  --accent: #6ab99b;
  --accent-2: #2d78b6;
  --accent-rgb: 106, 185, 155;
  --accent-2-rgb: 45, 120, 182;
  --line: rgba(238, 245, 242, 0.12);
  --line-strong: rgba(238, 245, 242, 0.24);
  --shadow-1: 0 20px 60px -20px rgba(0, 0, 0, 0.55);
  --shadow-2: 0 40px 100px -30px rgba(0, 0, 0, 0.7);

  /* type */
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* easings */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 84px;
  --container: 1280px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

/* Component classes like .btn set their own `display`, which otherwise wins
   over the UA stylesheet's `[hidden] { display: none }` by specificity and
   leaves "hidden" elements visible. Restore the native behavior. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink-soft);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

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

p {
  text-wrap: pretty;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* View transitions */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .5s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

::view-transition-old(root) {
  animation-name: fadeOutUp;
}

::view-transition-new(root) {
  animation-name: fadeInUp;
}

@keyframes fadeOutUp {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 720px) {
  .container {
    padding-inline: 2rem;
  }
}

@media (min-width: 1280px) {
  .container {
    padding-inline: 2.5rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: .7rem 1.1rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 600;
  transition: top .3s var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex-shrink: 0;
}

.section {
  position: relative;
  padding-block: clamp(4rem, 9vw, 8rem);
}

.section-alt {
  background: var(--bg-1);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.reveal[data-split] {
  opacity: 1;
  transform: none;
}

/* =============================================================
   4. Typography
   ============================================================= */
.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

.h1-xl {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  max-width: 20ch;
}

.h2-lg {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  max-width: 22ch;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-mute);
  max-width: 62ch;
}

.gradient-text {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =============================================================
   5. Components
   ============================================================= */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  white-space: nowrap;
  box-shadow: var(--shadow-1);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .3s var(--ease-out), color .3s var(--ease-out);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(-1px);
  transition-duration: .12s;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #071310;
}

.btn-primary:hover {
  box-shadow: 0 26px 60px -18px rgba(var(--accent-rgb), .55), var(--shadow-1);
}

/* Soft breathing glow in Nobifeed orange, used on standout CTAs that point
   to Nobifeed — draws the eye without touching the button's own colors. */
.btn-cta-glow {
  animation: ctaGlowBreathe 2.6s ease-in-out infinite;
}

.btn-cta-glow:hover,
.btn-cta-glow:focus-visible {
  animation-play-state: paused;
}

@keyframes ctaGlowBreathe {

  0%,
  100% {
    box-shadow: var(--shadow-1), 0 0 0 0 rgba(255, 138, 61, .5);
  }

  50% {
    box-shadow: var(--shadow-1), 0 0 32px 10px rgba(255, 138, 61, .6);
  }
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-icon {
  transition: transform .35s var(--ease-out);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* --- Header / nav --- */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 500;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(10, 18, 16, .85), transparent);
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(10, 18, 16, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

.brand img {
  width: 75px;
}

/* Hidden by default only when JS confirms this page hands off from a hero
   logo (see initHeroBrandHandoff); without JS, or on pages with no hero
   logo, the header brand stays visible as normal. */
.brand.brand-handoff {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-soft);
  pointer-events: none;
}

.brand.brand-handoff.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.brand-mark path {
  stroke: var(--accent);
}

.brand-mark path.b {
  stroke: var(--accent-2);
}

.brand-mark circle {
  fill: var(--ink);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2.1rem;
}

@media (min-width: 960px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  position: relative;
  padding: .3rem 0;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .3s var(--ease-out);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: none;
  border: 0;
  font: inherit;
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 500;
  padding: .3rem 0;
  cursor: pointer;
}

.nav-dropdown-trigger:hover {
  color: var(--ink);
}

.nav-dropdown-caret {
  width: 9px;
  height: 9px;
  transition: transform .3s var(--ease-out);
}

.nav-dropdown.is-open .nav-dropdown-caret {
  transform: rotate(180deg);
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, -8px);
  min-width: 220px;
  padding: .6rem;
  border-radius: 14px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility .3s;
}

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

.nav-dropdown-link {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .7rem .8rem;
  border-radius: 9px;
  color: var(--ink-soft);
  transition: background .25s var(--ease-out), color .25s var(--ease-out);
}

.nav-dropdown-link:hover {
  background: rgba(var(--accent-rgb), .1);
  color: var(--ink);
}

.nav-dropdown-link strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: .95rem;
}

.nav-dropdown-link span {
  font-size: .8rem;
  color: var(--ink-mute);
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(238, 245, 242, .06);
  border: 1px solid var(--line);
}

/* Below the nav-links breakpoint the header would otherwise show this
   language switch AND the one inside the mobile menu at the same time.
   Hide the header's copy (the mobile menu's own .nav-mobile-lang stays
   untouched) until the screen is wide enough for the desktop nav. */
.lang-switch:not(.nav-mobile-lang) {
  display: none;
}

@media (min-width: 960px) {
  .lang-switch:not(.nav-mobile-lang) {
    display: inline-flex;
  }
}

.lang-btn {
  padding: .4rem .75rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--ink-mute);
  transition: background .3s var(--ease-out), color .3s var(--ease-out);
}

.lang-btn[aria-pressed="true"] {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #071310;
  font-weight: 700;
}

.nav-burger {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
}

@media (min-width: 960px) {
  .nav-burger {
    display: none;
  }
}

.nav-burger-lines {
  position: relative;
  width: 18px;
  height: 12px;
}

.nav-burger-lines span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
}

.nav-burger-lines span:nth-child(1) {
  top: 0;
}

.nav-burger-lines span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.nav-burger-lines span:nth-child(3) {
  bottom: 0;
}

.nav-burger[aria-expanded="true"] .nav-burger-lines span:nth-child(1) {
  transform: translateY(5.25px) rotate(45deg);
}

.nav-burger[aria-expanded="true"] .nav-burger-lines span:nth-child(2) {
  opacity: 0;
}

.nav-burger[aria-expanded="true"] .nav-burger-lines span:nth-child(3) {
  transform: translateY(-5.25px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 490;
  background: var(--bg-1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1.5rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}

.nav-mobile[data-open="true"] {
  clip-path: inset(0 0 0 0);
}

.nav-mobile-link {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--ink);
  text-align: left;
}

/* "Soluciones" toggle — same typography as every other mobile-nav item, so
   it reads as an equal-weight menu entry rather than a lesser sub-heading. */
.nav-mobile-toggle {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: none;
  border: 0;
  padding: 0;
  width: 100%;
}

.nav-mobile-toggle .nav-dropdown-caret {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--ink-mute);
  transition: transform .3s var(--ease-out);
}

.nav-mobile-toggle[aria-expanded="true"] .nav-dropdown-caret {
  transform: rotate(180deg);
}

.nav-mobile-sub {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding-left: 1.4rem;
  margin-top: .9rem;
  border-left: 1px solid var(--line-strong);
}

.nav-mobile-lang {
  display: flex;
  gap: .6rem;
  margin-top: 1rem;
  align-self: flex-start;
  width: fit-content;
}

/* --- Cards --- */
.card {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.75rem;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft), border-color .35s var(--ease-out), box-shadow .55s var(--ease-soft);
  isolation: isolate;
  overflow: hidden;
}

.card:hover {
  transition-duration: .15s;
  border-color: rgba(var(--accent-rgb), .4);
  box-shadow: 0 40px 90px -30px rgba(var(--accent-2-rgb), .35);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), .16), transparent 60%);
  transition: opacity .4s var(--ease-out);
}

.card:hover::before {
  opacity: 1;
}

/* --- Placeholder media block --- */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle, #033d14 0%, #000000 100%);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  color: var(--ink-dim);
  overflow: hidden;
}

.ph-icon {
  width: 15%;
  max-width: 44px;
  opacity: .55;
}

.ph-label {
  position: absolute;
  bottom: .7rem;
  left: .9rem;
  right: .9rem;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--ink-dim);
  text-align: left;
}

/* --- Footer --- */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 2.25rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
}

.footer-top p {
  color: var(--ink-mute);
  max-width: 34ch;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 719px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 34ch;
}

.footer-col h3 {
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-weight: 500;
  margin-bottom: 1.1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.footer-col a,
.footer-col p {
  color: var(--ink-soft);
  font-size: .95rem;
}

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

.footer-social {
  display: flex;
  gap: .75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .3s var(--ease-out), color .3s var(--ease-out), transform .3s var(--ease-soft);
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 17px;
  height: 17px;
}

.mini-footer {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.6rem;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--ink-dim);
}

.mini-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
}

.mini-footer-links a {
  color: var(--ink-dim);
}

.mini-footer-links a:hover {
  color: var(--accent);
}

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Hero (signature effect: animated node network) --- */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + 1.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
  background: radial-gradient(ellipse 90% 70% at 50% 20%, var(--bg-2), var(--bg) 60%);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(38% 42% at var(--mesh-x) var(--mesh-y), rgba(var(--accent-rgb), .24), transparent 65%),
    radial-gradient(30% 34% at calc(100% - var(--mesh-x)) calc(100% - var(--mesh-y)), rgba(var(--accent-2-rgb), .18), transparent 65%);
  filter: blur(90px);
  animation: meshDrift 26s ease-in-out infinite;
  pointer-events: none;
}

.hero-network {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  opacity: .85;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--hx, 50%) var(--hy, 40%), rgba(var(--accent-rgb), .16), transparent 68%);
  transition: opacity .5s var(--ease-out);
}

.hero.has-pointer .hero-glow { opacity: 1; }

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(10, 18, 16, .92) 0%, rgba(10, 18, 16, .55) 55%, rgba(10, 18, 16, .05) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  padding-inline: 1.25rem;
}

.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
}

.hero-logo img {
  width: clamp(240px, min(46vw, 50vh), 620px);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, .5));
}

.hero-logo-mark {
  width: clamp(56px, 9vw, 84px);
  height: clamp(56px, 9vw, 84px);
}

.hero-logo-word {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 6rem);
  letter-spacing: -.02em;
  color: var(--ink);
  text-shadow: 0 2px 40px rgba(0, 0, 0, .6);
}

.hero-slogan {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: var(--ink-soft);
  max-width: 34ch;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: .5rem;
}

.hero-scrolldown {
  /* Flows normally right after the CTAs (see .hero-content) instead of
     being pinned to the bottom of the section — a tall logo/heading can
     push the section past 100vh, and a bottom-pinned indicator would then
     land on top of whatever comes after the hero instead of staying under
     the buttons. */
  position: relative;
  margin-top: .75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.hero-scrolldown-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  50.01% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* --- About / pillars --- */
.about-head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 6vw, 0rem);
}

@media (min-width: 720px) {
  .pillars {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: 1.9rem;
  border-radius: 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.pillar-n {
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--accent);
  letter-spacing: .1em;
}

.pillar h3 {
  font-size: 1.15rem;
}

.pillar p {
  color: var(--ink-mute);
  font-size: .95rem;
}

/* --- Nobifeed banner --- */
.banner {
  position: relative;
  border-radius: 28px;
  overflow: clip;
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.5rem, 6vw, 4rem);
  background: linear-gradient(135deg, #332100, #021000 60%);
  border: 1px solid var(--line);
  isolation: isolate;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft), border-color .5s var(--ease-out);
}

.banner:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--accent-2-rgb), .4);
  box-shadow: 0 50px 110px -30px rgba(var(--accent-2-rgb), .35);
}

/* Bridges the two brands: Nobitec green stays --accent, Nobifeed orange
   takes over --accent-2, so every shared component (kicker dot, button
   gradient, mesh) re-themes automatically for this teaser only. */
.banner-nobifeed {
  --accent-2: #ff8a3d;
  --accent-2-rgb: 255, 138, 61;
}

/* Nobiwind already lives on the site's default green/blue palette, so this
   variant only needs its own background tint — no accent override. */
.banner-nobiwind {
  background: linear-gradient(135deg, #06283f, #021000 60%);
}

.banner::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(45% 55% at var(--mesh-x) var(--mesh-y), rgba(var(--accent-rgb), .28), transparent 65%),
    radial-gradient(35% 45% at calc(100% - var(--mesh-x)) calc(100% - var(--mesh-y)), rgba(var(--accent-2-rgb), .26), transparent 65%);
  filter: blur(70px);
  animation: meshDrift 24s ease-in-out infinite;
}

.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  width: fit-content;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: rgba(var(--accent-2-rgb), .14);
  border: 1px solid rgba(var(--accent-2-rgb), .35);
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .3rem;
}

@keyframes meshDrift {

  0%,
  100% {
    --mesh-x: 20%;
    --mesh-y: 30%;
  }

  50% {
    --mesh-x: 70%;
    --mesh-y: 65%;
  }
}

.banner-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .banner-grid {
    grid-template-columns: 1.1fr .9fr;
  }
}

.banner-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.banner-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 1.5rem);
}

.banner-visual::before {
  content: "";
  position: absolute;
  inset: 6%;
  z-index: -1;
  background: radial-gradient(circle, rgba(var(--accent-2-rgb), .4), transparent 70%);
  filter: blur(60px);
}

.banner-visual-card {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12%;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-2);
  overflow: clip;
  transition: transform .5s var(--ease-soft);
}

.banner:hover .banner-visual-card {
  transform: scale(1.03);
}

.banner-visual-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, .5));
}

.banner-visual-icon {
  width: 55%;
  height: 55%;
  color: var(--accent-2);
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, .5));
}

/* --- Contact teaser (home) --- */
.contact-teaser {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  max-width: 40rem;
  margin-inline: auto;
}

/* --- Catalog --- */
.catalog-head {
  max-width: 50rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.product-ph {
  aspect-ratio: 4 / 3;
}

.product-category {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.product-card h3 {
  font-size: 1.15rem;
}

.product-card p {
  color: var(--ink-mute);
  font-size: .92rem;
  flex-grow: 1;
}

.product-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: .2rem;
}

.product-cta svg {
  width: 14px;
  height: 14px;
  transition: transform .3s var(--ease-out);
}

.product-card:hover .product-cta svg {
  transform: translateX(4px);
}

/* --- Contact page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: .85fr 1.15fr;
  }
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: 1.6rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), .12);
  color: var(--accent);
}

.contact-info-icon svg {
  width: 19px;
  height: 19px;
}

.contact-info-item h3 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-weight: 500;
  margin-bottom: .3rem;
}

.contact-info-item p,
.contact-info-item a {
  font-size: 1rem;
  color: var(--ink);
}

.contact-map {
  margin-top: 2rem;
  border-radius: 18px;
  overflow: clip;
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.form-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
}

.field {
  position: relative;
  margin-bottom: 1.35rem;
}

.field label {
  display: block;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: .5rem;
  font-family: var(--mono);
}

.field input,
.field textarea {
  width: 100%;
  padding: .85rem 1rem;
  border-radius: 10px;
  background: rgba(238, 245, 242, .04);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: rgba(238, 245, 242, .06);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field-error {
  display: none;
  font-size: .8rem;
  color: #ff9d8a;
  margin-top: .4rem;
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: #d9614f;
}

.field.is-invalid .field-error {
  display: block;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 560px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
  }
}

.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-bottom: 1.5rem;
}

.field-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: .15rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.field-checkbox label {
  font-size: .88rem;
  color: var(--ink-mute);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--sans);
  margin: 0;
}

.form-submit {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.form-submit-label,
.form-submit-spinner {
  transition: opacity .25s var(--ease-out);
}

.form-submit-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.form-submit-spinner::after {
  content: "";
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid rgba(7, 19, 16, .35);
  border-top-color: #071310;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-card.is-sending .form-submit-label {
  opacity: 0;
}

.form-card.is-sending .form-submit-spinner {
  opacity: 1;
}

.form-success {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .7rem;
  padding: 2rem;
  border-radius: 22px;
  background: var(--bg-3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-soft);
}

.form-success.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.form-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #071310;
}

.form-success-icon svg {
  width: 26px;
  height: 26px;
}

/* --- Nobifeed teaser page --- */
.solo-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 3rem) 1.25rem 4rem;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, var(--bg-2), var(--bg));
  position: relative;
  overflow: clip;
}

.solo-hero::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: 0;
  background: radial-gradient(40% 40% at var(--mesh-x) var(--mesh-y), rgba(var(--accent-2-rgb), .22), transparent 70%);
  filter: blur(90px);
  animation: meshDrift 20s ease-in-out infinite;
}

.solo-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  max-width: 46rem;
}

.solo-logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 7vw, 4rem);
}

.solo-logo .dot {
  color: var(--accent-2);
}

/* --- Legal pages --- */
.legal-main {
  padding-top: calc(var(--nav-h) + 3rem);
  max-width: 46rem;
  margin-inline: auto;
  padding-bottom: 6rem;
}

.legal-main h1 {
  margin-bottom: .5rem;
}

.legal-main .eyebrow {
  display: block;
  margin-bottom: 2rem;
}

.legal-main h2 {
  font-size: 1.3rem;
  margin-top: 2.2rem;
  margin-bottom: .7rem;
}

.legal-main p {
  color: var(--ink-mute);
  margin-bottom: .5rem;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 2rem;
  color: var(--ink-mute);
  font-size: .92rem;
}

.legal-back:hover {
  color: var(--accent);
}

/* =============================================================
   7. Effects (cursor-independent micro-interactions)
   ============================================================= */
.tilt-target {
  will-change: transform;
}

/* =============================================================
   8. Responsive breakpoints (reference — most rules inline above)
   ============================================================= */
@media (min-width: 540px) {
  .h1-xl {
    max-width: 22ch;
  }
}

@media (min-width: 1600px) {
  .container {
    max-width: 1400px;
  }
}

/* =============================================================
   9. Reduced motion — only intrusive/ambient loops
   ============================================================= */
@media (prefers-reduced-motion: reduce) {

  .hero::before,
  .banner::before,
  .solo-hero::before {
    animation: none;
  }

  .hero-scrolldown-line {
    animation: none;
  }

  .btn-cta-glow {
    animation: none;
    box-shadow: var(--shadow-1), 0 0 20px 4px rgba(255, 138, 61, .45);
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* =============================================================================
   NOBIFEED — landing page (dark green + orange, scoped to .nb-page)
   Redefines the shared tokens locally so every existing component
   (.section, .card, .btn-primary, .kicker, .pillar…) re-themes automatically
   inside <main class="nb-page">. Header and footer stay outside this scope,
   so they keep the site-wide green/blue palette untouched.
   ============================================================================= */
.nb-page {
  --bg: #04140d;
  --bg-1: #071f15;
  --bg-2: #0b2c1d;
  --bg-3: #103a26;
  --ink: #f4f0e8;
  --ink-soft: #dfe9e0;
  --ink-mute: #93b09d;
  --ink-dim: #5c7568;
  --accent: #ff8a3d;
  --accent-2: #ffb37a;
  --accent-rgb: 255, 138, 61;
  --accent-2-rgb: 255, 179, 122;
  --line: rgba(244, 240, 232, 0.12);
  --line-strong: rgba(244, 240, 232, 0.24);
  background: var(--bg);
}

.nb-credit {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--ink-dim);
  margin-top: .6rem;
}

.nb-credit a { color: var(--ink-dim); text-decoration: underline; }
.nb-credit a:hover { color: var(--accent); }

/* --- Hero --- */
.nb-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
  background: radial-gradient(ellipse 90% 70% at 50% 15%, var(--bg-2), var(--bg) 62%);
}

.nb-hero::before {
  content: "";
  position: absolute;
  inset: -15%;
  z-index: 0;
  background: radial-gradient(40% 35% at var(--mesh-x) var(--mesh-y), rgba(var(--accent-rgb), .30), transparent 68%),
    radial-gradient(30% 30% at calc(100% - var(--mesh-x)) calc(100% - var(--mesh-y)), rgba(var(--accent-2-rgb), .18), transparent 68%);
  filter: blur(80px);
  animation: meshDrift 22s ease-in-out infinite;
}

.nb-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding-block: calc(var(--nav-h) + 2rem) 3rem;
}

.nb-hero-logo {
  width: clamp(160px, 24vw, 260px);
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, .5));
}

.nb-hero-title {
  max-width: 18ch;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .5);
}

.nb-hero-lead {
  max-width: 46ch;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .4);
}

/* --- Video --- */
.nb-video-frame {
  position: relative;
  border-radius: 24px;
  overflow: clip;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--shadow-2);
  margin-top: clamp(2rem, 5vw, 3rem);
}

.nb-video-frame video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

/* --- Descubre Nobifeed --- */
.nb-discover-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 960px) {
  .nb-discover-grid { grid-template-columns: 1fr 1fr; }
  .nb-discover-grid.is-reverse .nb-discover-media { order: 2; }
}

.nb-discover-media img {
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.nb-discover-text { display: flex; flex-direction: column; gap: 1.1rem; }

/* --- Benefits --- */
.nb-benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 720px) { .nb-benefits-grid { grid-template-columns: repeat(2, 1fr); } }

.nb-benefit-block h3 {
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: .65rem;
}

.nb-benefit-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), .14);
  color: var(--accent);
}

.nb-benefit-icon svg { width: 19px; height: 19px; }

.nb-benefit-list { display: flex; flex-direction: column; gap: .8rem; }

.nb-benefit-list li {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: .95rem;
}

.nb-benefit-list svg {
  width: 16px;
  height: 16px;
  margin-top: .2rem;
  flex-shrink: 0;
  color: var(--accent);
}

/* --- Plataforma multidispositivo --- */
.nb-platform {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.nb-platform-copy .lead { margin-top: 1.1rem; }

.nb-platform-features {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-top: 1.8rem;
}

.nb-platform-features li {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: .95rem;
}

.nb-platform-features svg {
  width: 16px;
  height: 16px;
  margin-top: .2rem;
  flex-shrink: 0;
  color: var(--accent);
}

.nb-platform-devices {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nb-platform-mockup {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
}

@media (max-width: 899px) {
  .nb-platform {
    grid-template-columns: 1fr;
  }

  .nb-platform-devices {
    margin-top: .5rem;
  }
}

/* --- 360° product viewer --- */
.nb-360 {
  position: relative;
  margin-top: clamp(2rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--bg-2), var(--bg-1));
}

.nb-360-stage {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 10;
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.nb-360.is-dragging .nb-360-stage {
  cursor: grabbing;
}

.nb-360-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 30px 55px rgba(0, 0, 0, .5));
}

.nb-360-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  border-radius: 18px;
  opacity: 1;
  transition: opacity .4s var(--ease-out);
  pointer-events: none;
}

.nb-360.is-ready .nb-360-loading {
  opacity: 0;
}

.nb-360-loading span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--line-strong);
  border-top-color: var(--accent);
  animation: nb360Spin .8s linear infinite;
}

@keyframes nb360Spin {
  to { transform: rotate(360deg); }
}

.nb-360-hint {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  opacity: 1;
  transition: opacity .4s var(--ease-out);
}

.nb-360-hint svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
  animation: nb360HintNudge 1.8s ease-in-out infinite;
}

@keyframes nb360HintNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

.nb-360.is-dragged .nb-360-hint {
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .nb-360-hint svg { animation: none; }
}

/* --- Savings calculator --- */
.nb-calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 960px) { .nb-calc-grid { grid-template-columns: 1fr 1fr; } }

.nb-calc-group h3 {
  font-size: 1.05rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-mute);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.nb-calc-group .field { margin-bottom: 1.5rem; }
.nb-calc-group .field select {
  width: 100%;
  padding: .85rem 1rem;
  border-radius: 10px;
  background: rgba(244, 240, 232, .04);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  color-scheme: dark;
}

.nb-calc-group .field select option {
  background: var(--bg);
  color: var(--ink);
}

.nb-slider { margin-bottom: 1.6rem; }

.nb-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: .6rem;
}

.nb-slider-head label {
  font-size: .82rem;
  color: var(--ink-mute);
}

.nb-slider-head output {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.nb-slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) var(--fill, 50%), var(--line-strong) var(--fill, 50%), var(--line-strong) 100%);
  outline: none;
}

.nb-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--accent);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
  transition: transform .2s var(--ease-out);
}

.nb-slider input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }

.nb-slider input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--accent);
  cursor: pointer;
}

.nb-calc-submit { display: flex; justify-content: center; margin-top: 2.5rem; }

.nb-calc-results {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease-soft), transform .7s var(--ease-soft);
}

.nb-calc-results.is-visible { opacity: 1; transform: none; }
.nb-calc-results[aria-hidden="true"] { display: none; }

.nb-results-head { text-align: center; margin-bottom: 2.5rem; }

.nb-results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 720px) { .nb-results-grid { grid-template-columns: repeat(2, 1fr); } }

.nb-result-block h3 {
  font-size: .82rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-mute);
  font-weight: 500;
  margin-bottom: 1.3rem;
}

.nb-result-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .6rem;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}

.nb-result-row:last-of-type { border-bottom: 0; }
.nb-result-row span:first-child { color: var(--ink-mute); }
.nb-result-row span:last-child { font-family: var(--mono); font-weight: 600; color: var(--ink); }

.nb-result-row.is-total {
  margin-top: .4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-strong);
  border-bottom: 0;
}

.nb-result-row.is-total span:first-child { color: var(--ink); font-weight: 600; }
.nb-result-row.is-total span:last-child { font-size: 1.3rem; color: var(--accent); }

.nb-chart-legend {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: .8rem;
  color: var(--ink-mute);
}

.nb-chart-legend span { display: inline-flex; align-items: center; gap: .45rem; }

.nb-chart-swatch { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.nb-chart-swatch.is-savings { background: var(--accent); }
.nb-chart-swatch.is-investment { background: var(--ink-mute); }

.nb-chart-wrap { width: 100%; }
.nb-chart-wrap canvas { width: 100%; height: 260px; display: block; }

/* --- Modal (name/email gate) --- */
.nb-modal {
  /* The global reset's `* { margin: 0 }` strips out the `margin: auto`
     that <dialog> normally uses to self-center, so it's pinned explicitly
     here instead of relying on the UA default. */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0;
  background: var(--bg-3);
  color: var(--ink-soft);
  max-width: 30rem;
  width: calc(100% - 2.5rem);
  max-height: calc(100% - 3rem);
  overflow-y: auto;
}

.nb-modal::backdrop { background: rgba(2, 8, 5, .72); backdrop-filter: blur(4px); }

.nb-modal-form { padding: clamp(1.5rem, 4vw, 2.25rem); }
.nb-modal-form h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.nb-modal-form > p { color: var(--ink-mute); font-size: .92rem; margin-bottom: 1.5rem; }

.nb-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: .8rem;
  margin-top: .5rem;
}

.nb-modal-cancel {
  padding: .8rem 1.2rem;
  color: var(--ink-mute);
  font-weight: 500;
}

.nb-modal-cancel:hover { color: var(--ink); }

.nb-modal-submit { position: relative; overflow: hidden; }
.nb-modal-form.is-sending .form-submit-label { opacity: 0; }
.nb-modal-form.is-sending .form-submit-spinner { opacity: 1; }

.nb-modal-error {
  display: none;
  font-size: .85rem;
  color: #ff9d8a;
  margin-top: 1rem;
}

.nb-modal-error.is-visible { display: block; }

@media (prefers-reduced-motion: reduce) {
  .nb-hero::before { animation: none; }
}

/* =============================================================================
   NOBIWIND — product landing page (uses the default green/blue palette,
   no scoped theme override like .nb-page)
   ============================================================================= */
.nw-hero {
  position: relative;
  overflow: clip;
  padding-block: calc(var(--nav-h) + 4rem) clamp(3rem, 6vw, 5rem);
  background: radial-gradient(ellipse 90% 60% at 50% 0%, var(--bg-2), var(--bg) 65%);
}

.nw-hero::before {
  content: "";
  position: absolute;
  inset: -15%;
  z-index: 0;
  background: radial-gradient(40% 35% at var(--mesh-x) var(--mesh-y), rgba(var(--accent-rgb), .26), transparent 68%),
    radial-gradient(30% 30% at calc(100% - var(--mesh-x)) calc(100% - var(--mesh-y)), rgba(var(--accent-2-rgb), .22), transparent 68%);
  filter: blur(80px);
  animation: meshDrift 22s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .nw-hero::before { animation: none; }
}

.nw-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.nw-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: .5rem;
}

.nw-stat-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

@media (min-width: 720px) {
  .nw-stat-strip { grid-template-columns: repeat(4, 1fr); }
}

.nw-stat {
  background: var(--bg-2);
  padding: 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.nw-stat-value {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: var(--ink);
}

.nw-stat-label {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* --- Spec list --- */
.nw-spec-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-2);
  margin-top: clamp(2rem, 5vw, 3rem);
}

.nw-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.4rem;
}

.nw-spec-row:nth-child(even) {
  background: rgba(255, 255, 255, .02);
}

.nw-spec-row + .nw-spec-row {
  border-top: 1px solid var(--line);
}

.nw-spec-label {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .92rem;
  color: var(--ink-soft);
}

.nw-spec-label svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--accent);
}

.nw-spec-value {
  font-family: var(--mono);
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}

/* --- Reusable icon-card grid (tech features & benefits) --- */
.nw-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 720px) { .nw-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .nw-card-grid { grid-template-columns: repeat(3, 1fr); } }

.nw-card { display: flex; flex-direction: column; gap: .9rem; }

.nw-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), .14);
  color: var(--accent);
}

.nw-card-icon svg { width: 22px; height: 22px; }

.nw-card h3 { font-size: 1.05rem; }
.nw-card p { font-size: .92rem; color: var(--ink-mute); }

/* --- Applications --- */
.nw-apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 640px) { .nw-apps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .nw-apps-grid { grid-template-columns: repeat(3, 1fr); } }

.nw-app-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: .92rem;
  color: var(--ink-soft);
}

.nw-app-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent-2);
}

/* --- Components --- */
.nw-components-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 640px) { .nw-components-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .nw-components-grid { grid-template-columns: repeat(3, 1fr); } }

.nw-component-card { display: flex; flex-direction: column; gap: 1.1rem; }

.nw-component-ph { aspect-ratio: 4 / 3; }

.nw-component-n {
  position: absolute;
  top: .9rem;
  left: .9rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: .78rem;
  background: var(--accent);
  color: var(--bg);
  z-index: 1;
}

.nw-component-card h3 { font-size: 1.05rem; }
.nw-component-card p { font-size: .88rem; color: var(--ink-mute); }

/* --- Certification strip --- */
.nw-cert-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem 2.5rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: 1.75rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.nw-cert-badge {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  flex: 1 1 220px;
}

.nw-cert-badge svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: .1rem;
}

.nw-cert-badge h3 { font-size: .98rem; margin-bottom: .2rem; }
.nw-cert-badge p { font-size: .85rem; color: var(--ink-mute); }

/* =============================================================================
   GATE — "Próximamente" password screen (standalone, no header/footer)
   Reuses the banner's animated mesh treatment full-screen.
   ============================================================================= */
.gate {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
  background: radial-gradient(ellipse 90% 70% at 50% 20%, var(--bg-2), var(--bg) 60%);
  isolation: isolate;
  padding: 2rem 1.25rem;
}

.gate::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(45% 55% at var(--mesh-x) var(--mesh-y), rgba(var(--accent-rgb), .28), transparent 65%),
    radial-gradient(35% 45% at calc(100% - var(--mesh-x)) calc(100% - var(--mesh-y)), rgba(var(--accent-2-rgb), .26), transparent 65%);
  filter: blur(80px);
  animation: meshDrift 24s ease-in-out infinite;
}

.gate-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.4rem;
  max-width: 30rem;
}

.gate-logo {
  width: clamp(120px, 16vw, 180px);
  height: auto;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, .5));
}

.gate-title {
  max-width: 16ch;
}

.gate-lead {
  max-width: 40ch;
}

.gate-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  margin-top: .5rem;
}

.gate-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 22rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-2);
}

.gate-form[hidden] {
  display: none;
}

.gate-form .field {
  text-align: left;
}

@media (prefers-reduced-motion: reduce) {
  .gate::before { animation: none; }
}