/* =========================================================
   NEXARA — Estudio de producto
   Design system · v2
   ========================================================= */

:root {
  --bg: #F9F7F2;
  --surface: #FFFEFA;
  --surface-secondary: #F0EDE7;
  --text: #131315;
  --muted: #625E5B;
  --line: #E3DDD5;

  --carbon: #131315;
  --graphite: #3E3C3E;
  --copper: #C86D2A;
  --fire: #E59832;
  --ivory: #F9F7F2;

  --shadow-sm: 0 1px 2px #13131508, 0 2px 8px #13131506;
  --shadow-md: 0 8px 24px #1313150E, 0 2px 6px #13131508;
  --shadow-lg: 0 24px 60px #13131514, 0 6px 18px #1313150A;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.28s;
  --dur-slow: 0.55s;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11", "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: #C86D2A33; color: var(--carbon); }

a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease); }
button { font: inherit; color: inherit; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 16px;
  background: var(--carbon);
  color: var(--ivory);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  z-index: 100;
}
.skip-link:focus { left: 16px; }

.root {
  min-height: 100vh;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}

.container {
  width: min(1200px, calc(100% - 44px));
  margin: auto;
}

/* =========================================================
   NAV
   ========================================================= */

.nav {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 3;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--carbon);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.brand-text small {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 3px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--carbon);
  color: var(--ivory);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  box-shadow: var(--shadow-sm);
}

.brand:hover .brand-mark {
  transform: translateY(-1px) rotate(-3deg);
  box-shadow: var(--shadow-md);
}

.brand-mark svg { width: 22px; }

.navlinks {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.navlinks a {
  position: relative;
  padding: 6px 0;
  transition: color var(--dur) var(--ease);
}

.navlinks a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease);
}

.navlinks a:hover { color: var(--carbon); }
.navlinks a.is-active { color: var(--carbon); }
.navlinks a.is-active:not(.nav-cta)::after,
.navlinks a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.nav-cta,
.btn-primary {
  background: var(--carbon);
  color: var(--ivory);
  box-shadow: 0 1px 0 #FFFFFF14 inset, 0 4px 14px #1313151A;
}

.nav-cta:hover,
.btn-primary:hover {
  background: var(--copper);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 #FFFFFF1A inset, 0 8px 22px #C86D2A33;
}

.btn-secondary {
  background: transparent;
  border-color: #CFC5BA;
  color: var(--carbon);
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--carbon);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.menu-toggle {
  display: none;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.menu-toggle:hover { border-color: var(--copper); background: var(--surface); }

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  padding: 100px 0 90px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -260px;
  right: -220px;
  width: 780px;
  height: 780px;
  background: radial-gradient(circle, #C86D2A18 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 70px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 0 #C86D2A66;
  animation: pulse-ring 2.4s var(--ease) infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 #C86D2A66; }
  70% { box-shadow: 0 0 0 10px #C86D2A00; }
  100% { box-shadow: 0 0 0 0 #C86D2A00; }
}

h1 {
  max-width: 640px;
  margin: 26px 0 26px;
  font-size: clamp(2.9rem, 5.6vw, 5.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--copper);
  letter-spacing: -0.02em;
  padding-right: 0.08em;
}

.hero-copy {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
  margin: 46px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}

.hero-stats dt {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 6px;
}

.hero-stats dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* =========================================================
   DASHBOARD
   ========================================================= */

.hero-visual { position: relative; min-width: 0; }

.dashboard {
  position: relative;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--carbon);
  color: var(--ivory);
  box-shadow:
    0 0 0 1px #FFFFFF0A inset,
    0 0 0 1px #000000 inset,
    0 30px 70px #13131526,
    0 8px 20px #1313151A;
  transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease);
}

.dashboard:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px #FFFFFF0A inset,
    0 0 0 1px #000000 inset,
    0 40px 90px #1313152E,
    0 12px 28px #13131520;
}

.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 16px;
  border-bottom: 1px solid #FFFFFF0F;
  font-size: 0.78rem;
}

.dash-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: #E8E2DA;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.dash-title .dash-sep { color: #6A6460; }
.dash-title .dash-muted { color: #8A847E; }

.mini-logo {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--copper);
  color: var(--ivory);
  font-weight: 800;
  font-size: 0.72rem;
  box-shadow: 0 0 0 1px #FFFFFF1A inset, 0 4px 12px #C86D2A55;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fire);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fire);
  animation: blink 1.8s var(--ease) infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.dash-body {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding-top: 16px;
}

.dash-side { display: flex; flex-direction: column; gap: 4px; }

.side-item {
  padding: 9px 10px;
  border-radius: 6px;
  color: #9C968F;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.side-item:hover { background: #FFFFFF0A; color: var(--ivory); }

.side-item.active {
  background: #C86D2A1F;
  color: var(--fire);
  box-shadow: 0 0 0 1px #C86D2A40 inset;
}

.dash-main { min-width: 0; }

.dash-greeting {
  color: var(--ivory);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.dash-sub {
  margin-top: 3px;
  color: #9C968F;
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.stat {
  padding: 12px 11px;
  border-radius: 7px;
  background: #1A191B;
  box-shadow: 0 0 0 1px #FFFFFF0A inset;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.stat:hover {
  background: #1F1E20;
  box-shadow: 0 0 0 1px #C86D2A40 inset;
}

.stat small {
  display: block;
  color: #9C968F;
  font-size: 0.62rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 6px;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.stat em {
  display: block;
  margin-top: 3px;
  color: var(--fire);
  font-size: 0.62rem;
  font-style: normal;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.panel {
  margin-top: 10px;
  padding: 13px;
  border-radius: 8px;
  background: #1A191B;
  box-shadow: 0 0 0 1px #FFFFFF0A inset;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--ivory);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.panel-head small {
  color: var(--fire);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.access-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid #FFFFFF0A;
  transition: background var(--dur) var(--ease);
}

.access-row:hover { background: #FFFFFF06; }

.avatar {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #262528;
  color: #D6D0C8;
  font-size: 0.62rem;
  font-weight: 600;
  font-family: var(--font-mono);
  box-shadow: 0 0 0 1px #FFFFFF0F inset;
}

.person {
  color: var(--ivory);
  font-size: 0.7rem;
  font-weight: 500;
}

.role {
  color: #9C968F;
  font-size: 0.62rem;
  font-family: var(--font-mono);
}

.pill {
  padding: 4px 8px;
  border-radius: 4px;
  background: #C86D2A1F;
  color: #F5C18A;
  font-size: 0.58rem;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pill.blue {
  background: #FFFFFF0F;
  color: #D6D0C8;
}

/* Floating card */
.floating-card {
  position: absolute;
  right: -22px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.floating-card:hover {
  animation-play-state: paused;
  transform: translateY(-4px);
}

.floating-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #F4E8DB;
  color: var(--copper);
  font-weight: 700;
}

.floating-card b { display: block; font-size: 0.8rem; font-weight: 600; }
.floating-card small { color: var(--muted); font-size: 0.7rem; font-family: var(--font-mono); }

/* =========================================================
   MARQUEE
   ========================================================= */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-secondary);
  padding: 20px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.marquee-track span:nth-child(even) { color: var(--copper); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   SECCIONES
   ========================================================= */

.section { padding: 110px 0; }

.section-head {
  max-width: 720px;
  margin-bottom: 60px;
}

.kicker {
  display: inline-block;
  color: var(--copper);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 18px;
}

.section h2 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-head p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  text-wrap: pretty;
}

/* =========================================================
   FEATURES
   ========================================================= */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature {
  position: relative;
  padding: 32px 28px 34px;
  background: var(--surface);
  transition: background var(--dur) var(--ease);
  min-height: 190px;
  display: flex;
  flex-direction: column;
}

.feature:hover { background: #FFFFFF; }

.feature-num {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  margin-bottom: 44px;
  transition: color var(--dur) var(--ease);
}

.feature:hover .feature-num { color: var(--copper); }

.feature h3 {
  margin: 0 0 10px;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  text-wrap: pretty;
}

/* =========================================================
   PORTAFOLIO
   ========================================================= */

.portfolio-list {
  border-top: 1px solid var(--line);
}

.portfolio-item {
  display: grid;
  grid-template-columns: 60px 1fr auto 40px;
  align-items: center;
  gap: 24px;
  padding: 30px 8px;
  border-bottom: 1px solid var(--line);
  transition: padding var(--dur) var(--ease), background var(--dur) var(--ease);
  position: relative;
}

.portfolio-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #C86D2A0A 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}

.portfolio-item:hover { padding-left: 20px; padding-right: 20px; }
.portfolio-item:hover::before { opacity: 1; }

.portfolio-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}

.portfolio-item:hover .portfolio-num { color: var(--copper); }

.portfolio-body { min-width: 0; }

.portfolio-body h3 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  transition: color var(--dur) var(--ease);
}

.portfolio-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 560px;
}

.portfolio-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.portfolio-tags .pill {
  background: var(--surface-secondary);
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 5px 10px;
  font-size: 0.64rem;
}

.portfolio-tags .pill.blue {
  background: #F4E8DB;
  color: #A9551F;
  border-color: #E6C8AD;
}

.portfolio-arrow {
  font-size: 1.4rem;
  color: var(--muted);
  text-align: right;
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.portfolio-item:hover .portfolio-arrow {
  transform: translate(4px, -4px);
  color: var(--copper);
}

.portfolio-note {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  font-family: var(--font-serif);
  letter-spacing: 0.01em;
}

/* =========================================================
   PLATAFORMA
   ========================================================= */

.platform {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-secondary);
}

.platform-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 80px;
}

.platform-copy h2 { margin-top: 0; }
.platform-copy p { color: var(--muted); text-wrap: pretty; }

.checklist {
  display: grid;
  gap: 14px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--muted);
  font-size: 0.94rem;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.checklist li:last-child { border-bottom: 0; padding-bottom: 0; }

.checklist li b { color: var(--text); font-weight: 600; }

.checkmark {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 5px;
  background: var(--carbon);
  color: var(--ivory);
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 1px;
}

.architecture {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease);
}

.architecture:hover { box-shadow: var(--shadow-md); }

.architecture-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.architecture h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.architecture-badge {
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--surface-secondary);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.62rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.arch-flow {
  display: grid;
  grid-template-columns: 1fr 34px 1fr;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
}

.arch-node {
  padding: 22px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-secondary);
  text-align: center;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.arch-node:hover { border-color: var(--copper); background: #FFFFFF; }

.arch-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #F4E8DB;
  color: var(--copper);
}

.arch-icon svg { width: 18px; height: 18px; }

.arch-node b { display: block; font-size: 0.9rem; font-weight: 600; letter-spacing: -0.01em; }

.arch-node small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  font-family: var(--font-mono);
}

.arch-arrow {
  display: grid;
  place-items: center;
  color: var(--copper);
  transition: transform var(--dur) var(--ease);
}

.arch-arrow svg { width: 20px; height: 20px; }
.arch-flow:hover .arch-arrow { transform: translateX(3px); }

.data-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.data-chip {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  transition: border-color var(--dur) var(--ease);
}

.data-chip:hover { border-color: var(--copper); }

.data-chip b { display: block; font-size: 0.82rem; font-weight: 600; }

.data-chip small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-family: var(--font-mono);
}

.architecture-note {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

/* =========================================================
   SEGURIDAD
   ========================================================= */

.security-band { padding: 30px 0; }

.security-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px 38px;
  border: 1px solid #E6C8AD;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #F7EFE5 0%, #F4E9DD 100%);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.security-inner:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.security-text {
  display: flex;
  align-items: center;
  gap: 20px;
}

.security-symbol {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: #FFFFFF;
  color: #A9551F;
  box-shadow: 0 0 0 1px #E6C8AD inset, var(--shadow-sm);
}

.security-symbol svg { width: 24px; height: 24px; }

.security-text h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.security-text p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 560px;
}

.security-tag {
  padding: 8px 14px;
  border: 1px solid #D9B18E;
  border-radius: 5px;
  color: #A9551F;
  font-size: 0.68rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.security-tag:hover { background: #A9551F; color: var(--ivory); }

/* =========================================================
   CTA
   ========================================================= */

.cta { padding: 110px 0; }

.cta-card {
  position: relative;
  overflow: hidden;
  padding: 90px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.cta-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, #C86D2A10 0%, transparent 62%);
  pointer-events: none;
}

.cta-card > * { position: relative; }

.cta-card h2 {
  max-width: 780px;
  margin: 16px auto 22px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.cta-card h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--copper);
  letter-spacing: -0.02em;
}

.cta-card p {
  max-width: 540px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 1.02rem;
  text-wrap: pretty;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  padding: 34px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--surface-secondary);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-links a {
  position: relative;
  transition: color var(--dur) var(--ease);
}

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

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease);
}

.footer-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* =========================================================
   CONTACTO / BOTONES
   ========================================================= */

.contact-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-buttons .btn {
  min-height: 48px;
  padding: 13px 24px;
  font-size: 0.92rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--surface);
  color: var(--carbon);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.btn-whatsapp:hover {
  border-color: var(--carbon);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* =========================================================
   TOAST
   ========================================================= */

.toast {
  position: fixed;
  z-index: 50;
  bottom: 26px;
  left: 50%;
  max-width: calc(100% - 32px);
  padding: 13px 20px;
  transform: translate(-50%, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--carbon);
  color: var(--ivory);
  box-shadow: var(--shadow-lg);
  font-size: 0.86rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #D6CFC5;
  border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--copper); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { max-width: 640px; margin: auto; width: 100%; }
  .platform-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .navlinks { gap: 20px; }
  .hero-stats { gap: 28px; }
}

@media (max-width: 680px) {
  .container { width: calc(100% - 32px); }
  .nav { height: 72px; }
  .brand-text small { display: none; }

  .menu-toggle { display: block; }

  .navlinks {
    position: absolute;
    z-index: 4;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
  }

  .navlinks.open { display: flex; animation: slide-down 0.22s var(--ease); }

  @keyframes slide-down {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .navlinks a { padding: 10px 12px; border-radius: 6px; }
  .navlinks a:hover { background: var(--surface-secondary); }
  .navlinks a::after { display: none; }

  .hero { padding: 60px 0 60px; }
  h1 { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .hero-actions .btn { width: 100%; }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
  }

  .dashboard { padding: 14px; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .floating-card { right: 0; bottom: -20px; padding: 11px; animation: none; }

  .section { padding: 70px 0; }
  .section-head { margin-bottom: 40px; }

  .feature-grid { grid-template-columns: 1fr; }

  .portfolio-item {
    grid-template-columns: 44px 1fr;
    row-gap: 12px;
    padding: 24px 4px;
  }
  .portfolio-tags { grid-column: 2; }
  .portfolio-arrow { display: none; }
  .portfolio-body h3 { font-size: 1.2rem; }

  .arch-flow { grid-template-columns: 1fr; gap: 10px; }
  .arch-arrow { transform: rotate(90deg); }

  .data-row { grid-template-columns: 1fr; }

  .security-inner { flex-direction: column; align-items: flex-start; padding: 26px; }
  .security-text { align-items: flex-start; }

  .cta { padding: 70px 0; }
  .cta-card { padding: 56px 24px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .contact-buttons { flex-direction: column; align-items: stretch; }
  .contact-buttons .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* =========================================================
   LOGO — reemplazo de las "N" por imagen real
   ========================================================= */

/* Contenedor del logo (header + footer) */
.brand-logo {
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow:
    0 0 0 1px #FFFFFF inset,
    var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  image-rendering: -webkit-optimize-contrast;
}

.brand:hover .brand-logo {
  transform: translateY(-1px) rotate(-2deg);
  box-shadow:
    0 0 0 1px #FFFFFF inset,
    var(--shadow-md);
}

.brand:hover .brand-logo img {
  transform: scale(1.06);
  transition: transform var(--dur) var(--ease);
}

/* Mini-logo del dashboard (fondo oscuro) */
.mini-logo-img {
  padding: 0;
  overflow: hidden;
  background: var(--carbon);
  box-shadow:
    0 0 0 1px #FFFFFF1A inset,
    0 4px 12px #C86D2A44;
}

.mini-logo-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

/* Ajuste en móvil */
@media (max-width: 680px) {
  .brand-logo {
    width: 34px;
    height: 34px;
  }
}

/* =========================================================
   CASO DESTACADO (portafolio)
   ========================================================= */

.case {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 56px;
  align-items: center;
  padding: 44px;
  margin-bottom: 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.case::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(closest-side, #C86D2A14, transparent);
  pointer-events: none;
}

.case > * { position: relative; }

.case-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 14px;
}

.case-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.case-copy > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.case-points {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.case-points li {
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--graphite);
}

.case-points li span { color: var(--copper); font-weight: 600; }

.case-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}

.case-stack span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-secondary);
  border: 1px solid var(--line);
  color: var(--muted);
}

.case-shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--carbon);
  box-shadow: var(--shadow-lg), 0 0 0 1px #13131514;
  transform: perspective(1600px) rotateY(-4deg) rotateX(1.5deg);
  transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease);
}

.case:hover .case-shot {
  transform: perspective(1600px) rotateY(0deg) rotateX(0deg) translateY(-4px);
}

.case-browser {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #1D1D20;
  border-bottom: 1px solid #FFFFFF10;
}

.case-browser span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3E3C3E;
}

.case-browser span:first-child { background: var(--copper); }

.case-browser em {
  margin-left: 10px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #9A9590;
}

.case-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.case-repos {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.case-repos a {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  transition: background var(--dur) var(--ease);
}

.case-repos a + a { border-top: 1px solid var(--line); }
.case-repos a:hover { background: #FFFFFF; }

.case-repo-kind {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}

.case-repo-name {
  display: flex;
  flex-direction: column;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.case-repo-name small {
  font-weight: 400;
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0;
}

.case-repo-arrow {
  color: var(--muted);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.case-repos a:hover .case-repo-arrow {
  transform: translate(3px, -3px);
  color: var(--copper);
}

@media (max-width: 960px) {
  .case { grid-template-columns: 1fr; gap: 36px; padding: 32px; }
  .case-shot { transform: none; }
  .case:hover .case-shot { transform: translateY(-2px); }
}

@media (max-width: 680px) {
  .case { padding: 22px; margin-bottom: 40px; }
  .case-repos a { grid-template-columns: 52px 1fr auto; gap: 10px; padding: 12px; }
}