/* Fuentes self-hosted (subset latin, variable) */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(../assets/fonts/hanken-grotesk.woff2) format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/fonts/jetbrains-mono.woff2) format("woff2");
}


:root {
  color-scheme: dark;
  --canvas: #07090d;
  --surface: #0e1118;
  --surface-raised: #121722;
  --surface-soft: #171c26;
  --text: #f4f7fb;
  --text-secondary: #b8c0cf;
  --text-tertiary: #758092;
  --line: #202838;
  --line-strong: #334054;
  --blue: #0a84ff;
  --iris: #8b5cf6;
  --amber: #f59e0b;
  --green: #30d158;
  --radius: 10px;
  --shadow: 0 26px 78px rgb(0 0 0 / 42%);
  --page-width: min(1120px, calc(100% - 48px));
  --section-title: clamp(2rem, 3vw, 2.9rem);
  --section-lead: clamp(0.98rem, 1.15vw, 1.08rem);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgb(51 64 84 / 32%) 1px, transparent 1px 128px),
    linear-gradient(180deg, rgb(51 64 84 / 28%) 1px, transparent 1px 96px),
    radial-gradient(circle at 65% 18%, rgb(10 132 255 / 20%), transparent 22%),
    radial-gradient(circle at 86% 42%, rgb(245 158 11 / 9%), transparent 24%),
    radial-gradient(circle at 74% 78%, rgb(139 92 246 / 10%), transparent 26%),
    linear-gradient(180deg, #07090d 0%, #090c11 48%, #06080b 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgb(255 255 255 / 4%), transparent 26%),
    radial-gradient(circle at 50% 0%, rgb(255 255 255 / 5%), transparent 38%);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

button {
  font: inherit;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  letter-spacing: -0.025em;
}

#principios, #modelo, #contacto {
  scroll-margin-top: 92px;
}

.site-header, .hero, .section, .site-footer {
  width: var(--page-width);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 66px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 11px 0 12px;
  isolation: isolate;
}

.site-header::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 118px;
  z-index: -2;
  content: "";
  background:
    linear-gradient(180deg, rgb(7 9 13 / 78%) 0%, rgb(7 9 13 / 58%) 42%, rgb(7 9 13 / 24%) 70%, rgb(7 9 13 / 0%) 100%),
    radial-gradient(520px 120px at 50% 0%, rgb(10 132 255 / 10%), transparent 70%);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  mask-image: linear-gradient(180deg, #000 0%, #000 56%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 56%, transparent 100%);
}

.site-header::after {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: var(--page-width);
  height: 1px;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, transparent, rgb(51 64 84 / 42%), transparent);
  transform: translateX(-50%);
}

.brand-link, .site-nav {
  border: 1px solid rgb(73 87 110 / 42%);
  background: linear-gradient(180deg, rgb(28 34 46 / 72%), rgb(14 17 24 / 54%));
  box-shadow: 0 12px 36px rgb(0 0 0 / 22%), inset 0 1px 0 rgb(255 255 255 / 8%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand-link {
  width: 148px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
}

.brand-link img {
  width: 100%;
  height: auto;
  display: block;
}

.site-nav {
  justify-self: center;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 2px;
  border-radius: 20px;
  padding: 4px;
}

.site-nav a, .button, .footer-brand, .site-footer nav a {
  text-decoration: none;
}

.site-nav a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 560;
}

.site-nav a:hover {
  background: rgb(255 255 255 / 6%);
  color: var(--text);
}

.nav-toggle, .nav-toggle-button {
  display: none;
}

.route-title {
  width: max-content;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 850;
}

.route-title::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--blue), transparent);
}

.section-copy h2, .model-header h2 {
  margin: 12px 0 0;
  font-size: var(--section-title);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.section-copy p, .model-header p {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--text-secondary);
  font-size: var(--section-lead);
  line-height: 1.58;
}

/* Hero */
.hero {
  min-height: calc(94vh - 62px);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(440px, 0.96fr);
  align-items: center;
  gap: clamp(40px, 6vw, 84px);
  padding: clamp(54px, 8vh, 92px) 0 68px;
}

.hero-copy {
  max-width: 620px;
}

h1 {
  max-width: 12.5ch;
  margin: 14px 0 18px;
  font-size: clamp(3rem, 5.1vw, 4.85rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 520px;
  margin-bottom: 24px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.52;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 0 16px;
  font-size: 0.94rem;
  font-weight: 720;
}

.button.primary {
  border-color: rgb(10 132 255 / 58%);
  background: linear-gradient(180deg, #1990ff, #0870df);
  color: #fff;
  box-shadow: 0 16px 40px rgb(10 132 255 / 28%);
}

.system-card button {
  border: 1px solid var(--line-strong);
  background: rgb(255 255 255 / 5%);
  color: var(--text-tertiary);
  display: grid;
  place-items: center;
}

/* Sections */
.section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(390px, 0.92fr);
  gap: clamp(36px, 6vw, 76px);
  padding: clamp(58px, 9vh, 104px) 0;
  border-top: 1px solid var(--line);
}

.system-section .section-copy {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  max-width: 520px;
}

.system-section .system-grid {
  grid-column: 1;
  grid-row: 1;
}

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

.system-card {
  min-height: 188px;
  position: relative;
  border: 1px solid rgb(73 87 110 / 42%);
  border-radius: 10px;
  background: radial-gradient(circle at 18% 12%, rgb(10 132 255 / 10%), transparent 34%), linear-gradient(180deg, rgb(18 23 34 / 78%), rgb(8 11 16 / 90%));
  padding: 22px;
  box-shadow: 0 18px 55px rgb(0 0 0 / 20%), inset 0 1px 0 rgb(255 255 255 / 5%);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.system-card::before {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  height: 1px;
  content: "";
  opacity: 0.42;
  background: linear-gradient(90deg, rgb(10 132 255 / 72%), rgb(139 92 246 / 34%), transparent);
}

.system-card:hover {
  transform: translateY(-4px);
  border-color: rgb(10 132 255 / 42%);
  background: radial-gradient(circle at 18% 12%, rgb(10 132 255 / 16%), transparent 38%), linear-gradient(180deg, rgb(22 29 43 / 88%), rgb(8 11 16 / 92%));
}

.system-card.active, .system-card.active-soft {
  border-color: rgb(77 126 185 / 50%);
  box-shadow: 0 0 50px rgb(10 132 255 / 12%), 0 18px 55px rgb(0 0 0 / 22%);
}

.card-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgb(73 87 110 / 62%);
  border-radius: 9px;
  background: rgb(255 255 255 / 5%);
  color: #8ec8ff;
}

.system-card button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 28px;
  height: 24px;
  border-radius: 6px;
}

.system-card h3 {
  margin: 0 0 8px;
  font-size: clamp(1.18rem, 1.45vw, 1.42rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.system-card p {
  max-width: 27ch;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.48;
}

/* Modelo */
.model-section {
  grid-template-columns: 1fr;
  gap: clamp(34px, 5vw, 54px);
}

.model-header {
  max-width: 760px;
}

.model-header h2 {
  max-width: 620px;
}

.model-header p {
  max-width: 680px;
}

.model-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 160px);
  justify-content: center;
  gap: 22px;
  padding-top: 26px;
  margin-inline: auto;
}

.model-timeline::before {
  position: absolute;
  top: 40px;
  left: calc(50% - 535px);
  width: 1070px;
  height: 1px;
  content: "";
  background: linear-gradient(
    90deg,
    rgb(10 132 255 / 0%),
    rgb(10 132 255 / 70%),
    rgb(139 92 246 / 50%),
    rgb(255 255 255 / 10%),
    rgb(255 255 255 / 0%)
  );
}

.timeline-step {
  position: relative;
  min-width: 0;
  padding-right: 0;
}

.timeline-number {
  display: block;
  margin-bottom: 10px;
  color: #8ea0b8;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid rgb(73 87 110 / 78%);
  border-radius: 999px;
  background: #080b12;
  color: #8ec8ff;
  box-shadow: 0 0 0 6px rgb(8 11 18), 0 0 28px rgb(10 132 255 / 16%);
}

.timeline-copy {
  max-width: none;
}

.timeline-copy strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.timeline-copy p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.5;
}

.timeline-step:hover .timeline-dot {
  border-color: rgb(10 132 255 / 70%);
  color: #dbeafe;
  box-shadow: 0 0 0 6px rgb(8 11 18), 0 0 34px rgb(10 132 255 / 34%);
}

/* Contact */
.contact-section {
  grid-template-columns: 1fr;
}

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 34px 0 26px;
  color: var(--text-tertiary);
}

.footer-brand {
  width: 150px;
  display: inline-flex;
  align-items: center;
}

.footer-brand img {
  width: 100%;
  height: auto;
  display: block;
}

.site-footer nav {
  justify-self: end;
  display: flex;
  gap: 22px;
  font-size: 0.84rem;
}

.footer-meta {
  grid-column: 1 / -1;
  justify-self: center;
  border-top: 1px solid var(--line);
  width: 100%;
  padding-top: 22px;
  text-align: center;
  font-size: 0.8rem;
}

.message {
  margin-top: clamp(54px, 10vh, 100px);
}

.status {
  margin: 0 0 14px;
  color: var(--text-tertiary);
  font-size: 0.82rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.message h1 {
  max-width: 11.5ch;
  margin: 0 0 22px;
  font-size: clamp(3rem, 5.8vw, 5.6rem);
  line-height: 0.94;
}

/* Icons */
[data-lucide], svg[data-lucide] {
  width: 1em;
  height: 1em;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-icon [data-lucide], .timeline-dot [data-lucide] {
  width: 15px;
  height: 15px;
}

.system-card button [data-lucide] {
  width: 12px;
  height: 12px;
}

/* Responsive */
@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 0.86fr) minmax(410px, 0.9fr);
    gap: clamp(32px, 5vw, 64px);
  }

  .os-card {
    width: min(500px, 100%);
  }

  .model-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 24px;
  }

  .model-timeline::before {
    display: none;
  }

  .timeline-step {
    width: auto;
    padding-right: 0;
    border-top: 1px solid rgb(51 64 84 / 72%);
    padding-top: 18px;
  }

  .timeline-copy {
    max-width: 260px;
  }
}

@media (max-width: 980px) {
body {
    overflow-x: hidden;
  }

.hero, .section {
    grid-template-columns: 1fr;
  }

.hero {
    min-height: auto;
    align-items: start;
    gap: 34px;
    padding-bottom: 58px;
  }

.section {
    gap: 30px;
    padding-block: 56px;
  }

.hero-copy, .section-copy, .model-header {
    max-width: 680px;
    justify-self: stretch;
    text-align: left;
  }

.system-section .section-copy, .system-section .system-grid {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
  }

.site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

.brand-link {
    justify-self: start;
  }

.nav-toggle-button {
    display: grid;
    place-items: center;
    justify-self: end;
    width: 40px;
    height: 40px;
    border: 1px solid rgb(73 87 110 / 42%);
    border-radius: 999px;
    background: linear-gradient(180deg, rgb(28 34 46 / 72%), rgb(14 17 24 / 54%));
    color: var(--text);
    box-shadow: 0 12px 36px rgb(0 0 0 / 22%), inset 0 1px 0 rgb(255 255 255 / 8%);
    cursor: pointer;
  }

.nav-toggle-button [data-lucide], .nav-toggle-button svg {
    width: 18px;
    height: 18px;
  }

.site-nav {
    display: none;
    order: 3;
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    margin-top: 10px;
    padding: 6px;
    overflow: hidden;
  }

.nav-toggle:checked ~ .site-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

.site-nav a {
    justify-content: center;
    min-height: 38px;
    width: 100%;
  }

.route-title {
    margin-inline: 0;
  }

.site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

.footer-brand {
    justify-content: center;
  }

.site-footer nav {
    justify-self: center;
    justify-content: center;
    flex-wrap: wrap;
  }

}

@media (max-width: 760px) {
h1 {
    font-size: clamp(2.75rem, 10vw, 4rem);
  }

.section-copy h2, .model-header h2 {
    font-size: clamp(1.85rem, 8vw, 2.45rem);
  }

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

.system-card {
    min-height: auto;
  }

.system-card p {
    max-width: none;
  }

.model-timeline {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0;
    padding-left: 26px;
  }

.model-timeline::before {
    display: block;
    top: 0;
    bottom: 0;
    left: 8px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, rgb(10 132 255 / 70%), rgb(139 92 246 / 46%), rgb(255 255 255 / 0%));
  }

.timeline-step {
    width: auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 14px;
    border-top: 0;
    padding: 0 0 28px;
  }

.timeline-number {
    grid-column: 2;
    margin: 0 0 4px;
  }

.timeline-dot {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 30px;
    height: 30px;
    margin: 0;
    transform: translateX(-33px);
  }

.timeline-copy {
    grid-column: 2;
    max-width: none;
  }

.site-header, .hero, .section, .site-footer {
    width: var(--page-width);
  }

.hero-copy, .section-copy, .model-header {
    max-width: none;
  }

.section-copy h2, .model-header h2 {
    max-width: none;
  }

}

@media (max-width: 640px) {
:root {
    --page-width: min(100% - 28px, 1120px);
  }

.brand-link {
    width: 136px;
  }

.hero, .section {
    padding-block: 42px;
  }

.hero {
    padding-top: 30px;
  }

.hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

.hero-actions .button {
    width: 100%;
    justify-content: center;
  }

.site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
  }

.site-footer nav {
    justify-self: center;
    flex-wrap: wrap;
  }

.footer-meta {
    justify-self: center;
  }

.message h1 {
    font-size: clamp(2.25rem, 11vw, 3rem);
  }

}

@media (max-width: 390px) {
:root {
    --page-width: min(100% - 22px, 1120px);
  }

h1 {
    font-size: clamp(2.25rem, 11vw, 2.85rem);
  }

.system-card {
    padding: 16px;
  }

}

/* ============================================================
   SIDE PREVIEW — componentes Stitch adoptados (console hero, trabajos, partners, terminal CTA, formulario de contacto).
   Se carga DESPUÉS de styles.css y solo desde index-side.html.
   ============================================================ */

:root {
  --side-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --side-head: "Hanken Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  --side-line: rgb(148 170 205 / 16%);
  --side-panel: linear-gradient(180deg, rgb(16 22 33 / 92%), rgb(9 12 19 / 92%));
  --side-blue: #2792ff;
  --side-muted: #8fa1bd;
}

h1, h2, h3 {
  font-family: var(--side-head);
  letter-spacing: -0.02em;
}

.mono-label {
  font-family: var(--side-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--side-muted);
}

/* ============ 0. HEADER TERMINAL BAR ============ */
.site-header {
  border-bottom: 1px solid var(--side-line);
  padding: 14px 0 15px;
}

/* Sin cápsulas: se anulan bordes/fondos del theme original */
.brand-link, .site-nav {
  border: none;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header::after {
  width: 100vw;
  background: var(--side-line);
}

.site-nav {
  gap: 6px;
  padding: 0;
}

.site-nav a {
  font-family: var(--side-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--side-muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a::before {
  content: "/";
  opacity: 0.5;
  margin-right: 1px;
}

.site-nav a:hover {
  color: #eaf1fd;
  background: rgb(148 170 205 / 8%);
}

.site-nav a[aria-current="page"] {
  color: #dbe9ff;
  background: rgb(39 146 255 / 16%);
}

.side-nav-cta {
  font-family: var(--side-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 10px 16px;
  border: 1px solid var(--side-line);
  border-radius: 4px;
  color: #eaf1fd;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.side-nav-cta:hover {
  border-color: var(--side-blue);
  background: rgb(39 146 255 / 12%);
}

/* ============ 0b. LENGUAJE COMÚN (rutas, cards, footer) ============ */
.route-title {
  font-family: var(--side-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--side-blue);
}

.system-card {
  position: relative;
  border: 1px solid var(--side-line);
  border-radius: 12px;
  background: var(--side-panel);
  box-shadow: none;
}

.system-card .card-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  margin: 0;
}

.system-card .side-num {
  display: block;
  font-family: var(--side-mono);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: rgb(148 170 205 / 14%);
  margin-bottom: 10px;
  user-select: none;
}

.system-card.active .side-num, .system-card:hover .side-num {
  color: rgb(39 146 255 / 45%);
}

.hero-actions .side-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-footer {
  border-top: 1px solid var(--side-line);
  padding-top: 26px;
}

.site-footer nav a {
  font-family: var(--side-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--side-muted);
}

.site-footer nav a::before {
  content: "/";
  opacity: 0.5;
  margin-right: 1px;
}

.site-footer nav a:hover {
  color: #eaf1fd;
}

.footer-meta {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-meta span {
  font-family: var(--side-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--side-muted);
}

/* ============ 1. HERO CONSOLE (image2) ============ */
.side-console {
  border: 1px solid var(--side-line);
  border-radius: 14px;
  background: var(--side-panel);
  overflow: hidden;
  box-shadow: 0 24px 60px rgb(0 0 0 / 45%);
}

.side-console-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--side-line);
  background: rgb(7 10 16 / 85%);
}

.side-console-dots {
  display: flex;
  gap: 6px;
}

.side-console-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgb(148 170 205 / 25%);
}

.side-console-dots span:first-child { background: rgb(255 105 97 / 55%); }

.side-console-dots span:nth-child(2) { background: rgb(255 200 87 / 45%); }

.side-console-title {
  flex: 1;
  text-align: center;
}

.side-console-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 14px;
  padding: 16px;
}

.side-console-main {
  border: 1px solid var(--side-line);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgb(10 14 22 / 65%);
}

.side-active-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.side-active-head h2 {
  margin: 4px 0 0;
  font-size: 1.6rem;
}

.side-progress-pct {
  text-align: right;
}

.side-progress-pct strong {
  display: block;
  font-size: 1.5rem;
  color: #eaf1fd;
}

.side-progress-bar {
  height: 4px;
  border-radius: 999px;
  background: rgb(148 170 205 / 15%);
  overflow: hidden;
}

.side-progress-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--side-blue), #7cc0ff);
  border-radius: inherit;
}

.side-stat-row {
  display: flex;
  gap: 10px;
}

.side-stat {
  border: 1px solid var(--side-line);
  border-radius: 8px;
  padding: 12px 10px;
  background: rgb(7 10 16 / 55%);
  flex: 1 1 0;
  min-width: max-content;
}

.side-stat .mono-label {
  white-space: nowrap;
  display: block;
  font-size: clamp(0.48rem, 0.4vw + 0.34rem, 0.6rem);
  letter-spacing: 0.05em;
}

.side-stat strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(0.6rem, 0.65vw + 0.38rem, 0.88rem);
  color: #eaf1fd;
  white-space: nowrap;
  letter-spacing: 0;
}

.side-console-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-venture {
  border: 1px solid var(--side-line);
  border-radius: 10px;
  padding: 12px 14px;
  background: rgb(10 14 22 / 65%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-venture header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--side-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #dfe8f7;
}

.side-venture .side-progress-bar { height: 3px; }

.side-new-venture {
  margin-top: auto;
  border: 1px dashed rgb(148 170 205 / 35%);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  font-family: var(--side-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--side-muted);
}

/* ============ 2. TRABAJOS (image4) ============ */

/* El .section del theme original impone grilla de 2 columnas;
   las secciones con componentes nuevos fluyen en bloque. */
.section:has(.side-works-list), .section:has(.side-clients-grid), .section:has(.side-feedback-grid), .section:has(.side-contact-grid), .section:has(.side-terminal-cta), .section:has(.services-grid) {
  display: block;
}

/* En secciones de bloque, el encabezado necesita aire antes del contenido */
.section:has(.services-grid) .section-copy, .section:has(.side-contact-grid) .section-copy {
  margin-bottom: 34px;
}

.side-works-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 22px;
}

.side-works-head h2 { margin: 6px 0 0; }

.side-works-stats {
  display: flex;
  gap: 26px;
  text-align: right;
}

.side-works-stats strong {
  display: block;
  font-size: 1.25rem;
  color: #eaf1fd;
}

.side-works-list {
  display: grid;
  gap: 14px;
}

.side-work {
  border: 1px solid var(--side-line);
  border-radius: 12px;
  background: var(--side-panel);
  transition: border-color 0.2s ease;
}

.side-work:hover, .side-work[open] {
  border-color: rgb(39 146 255 / 55%);
}

.side-work-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 96px 48px;
  gap: 34px;
  align-items: center;
  padding: 26px 32px;
  cursor: pointer;
  list-style: none;
}

.side-work-summary::-webkit-details-marker {
  display: none;
}

.side-work-chevron {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--side-line);
  border-radius: 8px;
  color: #dfe8f7;
  background: rgb(7 10 16 / 55%);
  transition: border-color 0.2s ease;
}

.side-work-summary:hover .side-work-chevron {
  border-color: var(--side-blue);
}

/* Crossfade +/× al expandir */
.side-work-chevron i, .side-work-chevron svg {
  position: absolute;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.side-work-chevron .icon-close {
  opacity: 0;
  transform: scale(0.6);
}

.side-work[open] .side-work-chevron .icon-open {
  opacity: 0;
  transform: scale(0.6);
}

.side-work[open] .side-work-chevron .icon-close {
  opacity: 1;
  transform: scale(1);
}

.side-work-body {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr);
  gap: 30px;
  align-items: start;
  padding: 22px 32px 28px;
  border-top: 1px solid var(--side-line);
}

.side-work-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* Thumbnail del sitio con marco de mini-navegador */
.side-work-preview {
  display: block;
  border: 1px solid var(--side-line);
  border-radius: 10px;
  overflow: hidden;
  background: rgb(7 10 16 / 65%);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.side-work-preview:hover {
  border-color: rgb(39 146 255 / 55%);
  transform: translateY(-2px);
}

.side-work-preview .preview-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--side-line);
}

.side-work-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.side-work-body .side-work-desc {
  max-width: 70ch;
}

.side-work-deliverables {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-work-deliverables .side-work-tags {
  margin-top: 0;
  flex-wrap: wrap;
}

.side-work-id {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.side-work-brand {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid var(--side-line);
  border-radius: 12px;
  background: rgb(7 10 16 / 65%);
  overflow: hidden;
}

/* Logo del cliente: asset ya monocromatizado en blanco con tonos.
   max-width/height absolutos: cualquier proporción cabe completa, sin estirarse ni recortarse (los % fallan en grid items). */
.side-work-brand img {
  width: auto;
  height: auto;
  max-width: 62px;
  max-height: 62px;
}

/* Fallback: monograma cuando no hay logo */
.side-work-brand span {
  font-family: var(--side-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: rgb(234 241 253 / 85%);
}

.side-work-brand img + span {
  display: none;
}

.side-work-id h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.side-work-tags {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.side-work-tags span {
  font-family: var(--side-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--side-line);
  border-radius: 4px;
  color: var(--side-muted);
  background: rgb(7 10 16 / 55%);
}

.side-work-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--side-muted);
  text-wrap: pretty;
}

/* Justificado solo donde la columna es ancha (cuerpo del acordeón) */
.side-work-body .side-work-desc {
  text-align: justify;
}

.side-work-metric { text-align: center; }

.side-work-metric strong {
  display: block;
  font-size: 1.3rem;
  color: #eaf1fd;
  margin-bottom: 4px;
}

/* ============ 2b. CLIENTES (home) ============ */
.side-clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.side-client {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 24px 28px;
  border: 1px solid var(--side-line);
  border-radius: 12px;
  background: var(--side-panel);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.side-client:hover {
  border-color: rgb(39 146 255 / 55%);
  transform: translateY(-2px);
}

.side-client img {
  width: auto;
  height: auto;
  max-width: 160px;
  max-height: 34px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.side-client:hover img {
  opacity: 1;
}

/* ============ 3. PARTNERS / FEEDBACK LOGS (image3) ============ */
.side-feedback-head {
  text-align: center;
  margin-bottom: 26px;
}

.side-feedback-head .mono-label { color: var(--side-blue); }

.side-feedback-head h2 { margin: 10px 0 0; }

.side-feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.side-feedback-card {
  border: 1px solid var(--side-line);
  border-radius: 10px;
  padding: 26px 24px;
  background: var(--side-panel);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-feedback-card.highlight { border-color: rgb(39 146 255 / 55%); }

.side-rating {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.side-rating .stars {
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: var(--side-blue);
  text-shadow: 0 0 12px rgb(39 146 255 / 45%);
}

.side-rating .mono-label {
  color: #dbe9ff;
}

.side-feedback-card blockquote {
  margin: 0;
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.65;
  color: #cdd9ec;
}

.side-feedback-card footer strong {
  display: block;
  font-family: var(--side-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: #eaf1fd;
  margin-bottom: 4px;
}

.side-feedback-card footer span {
  font-family: var(--side-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--side-muted);
}

/* ============ 4. TERMINAL CTA (image1) ============ */
.side-terminal-cta {
  border: 1px solid var(--side-line);
  border-radius: 12px;
  background: #04060a;
  padding: 30px 34px;
  font-family: var(--side-mono);
}

.side-terminal-cta p {
  margin: 0 0 10px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: #9fb4d4;
}

.side-terminal-cta p.side-prompt {
  margin: 22px 0 26px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #eaf1fd;
}

.side-terminal-cta .ok { color: #7ee787; }

.side-terminal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.side-btn {
  font-family: var(--side-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 12px 22px;
  border-radius: 6px;
  border: 1px solid var(--side-line);
  color: #eaf1fd;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.side-btn.primary {
  background: #a9ccff;
  border-color: #a9ccff;
  color: #071528;
}

.side-btn.primary:hover { background: #c4dcff; }

.side-btn:hover { border-color: var(--side-blue); }

/* ============ 5. FORMULARIO DE CONTACTO (image5) ============ */
.side-contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  align-items: start;
}

.side-form {
  border: 1px solid var(--side-line);
  border-radius: 12px;
  background: var(--side-panel);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-form-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--side-line);
}

.side-form-topbar .status { color: var(--side-blue); }

.side-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.side-field input, .side-field select, .side-field textarea {
  font-family: var(--side-mono);
  font-size: 0.82rem;
  color: #eaf1fd;
  background: rgb(7 10 16 / 70%);
  border: 1px solid var(--side-line);
  border-radius: 6px;
  padding: 12px 14px;
  outline: none;
  resize: vertical;
}

.side-field input:focus, .side-field select:focus, .side-field textarea:focus {
  border-color: var(--side-blue);
}

.side-field textarea { min-height: 120px; }

.side-form .side-btn.primary {
  width: 100%;
  text-align: center;
  font-size: 0.82rem;
  padding: 15px;
  background: var(--side-blue);
  border-color: var(--side-blue);
  color: #fff;
}

.side-form .side-btn.primary:hover { background: #4aa5ff; }

.side-contact-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-info-card {
  border: 1px solid var(--side-line);
  border-radius: 12px;
  background: var(--side-panel);
  padding: 22px 24px;
}

.side-info-card header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--side-muted);
}

.side-info-rows {
  display: grid;
  gap: 10px;
}

.side-info-rows div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--side-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.side-info-rows dt { color: var(--side-muted); text-transform: uppercase; }

.side-info-rows dd { margin: 0; color: #eaf1fd; text-align: right; }

.side-info-card .metric-bar {
  height: 2px;
  background: rgb(148 170 205 / 15%);
  border-radius: 999px;
  margin: 6px 0 14px;
  overflow: hidden;
}

.side-info-card .metric-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--side-blue), #00f0ff);
}

.side-info-card blockquote {
  margin: 14px 0 0;
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.6;
  color: #cdd9ec;
}

/* ============ 6. MODAL DE SERVICIO (terminal) ============ */
.service-card {
  cursor: pointer;
}

.service-card:hover {
  border-color: rgb(39 146 255 / 55%);
  transform: translateY(-2px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.side-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgb(3 5 9 / 72%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Patrón scroll-seguro: el centrado vive en un hijo, no junto al overflow */
.side-modal-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  display: block;
  padding: 40px 20px;
}

.side-modal {
  max-width: 620px;
  margin: 0 auto;
  border: 1px solid rgb(39 146 255 / 35%);
  border-radius: 14px;
  background: linear-gradient(180deg, #10161f, #090c13);
  box-shadow: 0 40px 120px rgb(0 0 0 / 60%);
  overflow: hidden;
}

.side-modal-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--side-line);
  background: rgb(7 10 16 / 85%);
}

.side-modal-topbar .mono-label {
  flex: 1;
  text-align: center;
}

.side-modal-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--side-line);
  border-radius: 6px;
  background: transparent;
  color: #dfe8f7;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.side-modal-close:hover {
  border-color: rgb(255 105 97 / 65%);
  background: rgb(255 105 97 / 10%);
}

.side-modal-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 30px 30px;
}

.side-modal-body h3 {
  margin: 0;
  font-size: 1.5rem;
}

.side-modal-body > .mono-label {
  color: var(--side-blue);
}

.side-modal-body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #cdd9ec;
}

.side-modal-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.side-modal-block .side-modal-list {
  width: 100%;
}

.side-modal-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
}

.side-modal-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #cdd9ec;
}

.side-modal-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  font-family: var(--side-mono);
  color: #7ee787;
}

.side-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.side-btn:disabled:hover {
  border-color: var(--side-line);
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .side-console-body,
  .side-contact-grid { grid-template-columns: 1fr; }

  .side-work-summary {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 18px 44px;
    padding: 24px;
  }

  .side-work-id { flex: 1 1 100%; }

  /* Justificado solo en desktop: en columnas angostas abre ríos */
  .side-work-desc { text-align: left; }

  /* El chevron ancla arriba a la derecha */
  .side-work-chevron {
    position: absolute;
    top: 24px;
    right: 24px;
  }

  .side-work-metric { text-align: left; }

  .side-work-body {
    grid-template-columns: 1fr;
    padding: 20px 24px 24px;
  }

  .side-feedback-grid { grid-template-columns: 1fr; }

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

  .side-works-head { flex-direction: column; align-items: flex-start; gap: 14px; }

  .side-works-stats { text-align: left; }
}

/* Header compacto: cuando la nav colapsa a hamburguesa, el CTA
   se oculta (vive en los cierres de cada página) */
@media (max-width: 980px) {
  .side-nav-cta { display: none; }
}

/* ============ 7. PÁGINAS DE ESTADO (404, construcción, mantención) ============ */
.side-status-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 24px;
}

.side-status-panel {
  width: 100%;
  max-width: 560px;
}

.side-terminal-cta .err {
  color: #ff6961;
}

.side-status-code {
  font-family: var(--side-mono);
  font-size: 4.5rem;
  font-weight: 700;
  margin: 10px 0 0 !important;
  color: rgb(148 170 205 / 14%) !important;
  line-height: 1;
  user-select: none;
}

.side-status-brand {
  height: 30px;
  width: auto;
  opacity: 0.7;
}

@media (max-width: 560px) {
.side-modal-list {
    grid-template-columns: 1fr;
  }

}


/* ============ Tabs del modal + lista de adicionales ============ */
.side-modal-tabs {
  display: flex;
  gap: 8px;
}

/* display:flex le ganaría al atributo hidden — forzar ocultamiento */
.side-modal-tabs[hidden] {
  display: none;
}

.side-modal-tab {
  font-family: var(--side-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  border: 1px solid var(--side-line);
  border-radius: 6px;
  background: transparent;
  color: var(--side-muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.side-modal-tab:hover {
  color: #eaf1fd;
  border-color: rgb(39 146 255 / 45%);
}

.side-modal-tab.active {
  color: #dbe9ff;
  background: rgb(39 146 255 / 16%);
  border-color: rgb(39 146 255 / 55%);
}

.section:has(.side-addons-grid) {
  display: block;
}

.section:has(.side-addons-grid) .section-copy {
  margin-bottom: 30px;
}

.side-addons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.side-addon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 24px 16px 20px;
  border: 1px solid var(--side-line);
  border-radius: 12px;
  background: var(--side-panel);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.side-addon:hover {
  border-color: rgb(39 146 255 / 55%);
  transform: translateY(-2px);
}

.side-addon .card-icon {
  margin-bottom: 10px;
}

.side-addon:hover .card-icon {
  border-color: rgb(39 146 255 / 55%);
  color: #8ec8ff;
}

.side-addon strong {
  font-family: var(--side-head);
  font-size: 0.98rem;
  color: #eaf1fd;
}

.side-addon small {
  font-size: 0.78rem;
  color: var(--side-muted);
}

@media (max-width: 980px) {
  .side-addons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .side-addons-grid {
    grid-template-columns: 1fr;
  }
}

.side-modal-note {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px dashed rgb(148 170 205 / 28%);
  border-radius: 8px;
}

.side-modal-note p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--side-muted);
}

/* Cards de servicio: número correlativo + ícono en la esquina (patrón /Principios) */
.services-grid .side-feedback-card {
  position: relative;
}

.services-grid .card-icon {
  position: absolute;
  top: 22px;
  right: 22px;
  margin: 0;
}

.side-feedback-card .side-num {
  display: block;
  font-family: var(--side-mono);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: rgb(148 170 205 / 14%);
  user-select: none;
}

.service-card:hover .side-num,
.side-feedback-card.highlight .side-num {
  color: rgb(39 146 255 / 45%);
}

/* ============ Footer bottom (patrón EngInnova) + privacidad ============ */
.footer-bottom {
  grid-column: 1 / -1;
  width: 100%;
  padding-top: 22px;
  border-top: 1px solid var(--side-line);
  font-family: var(--side-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--side-muted);
}

.footer-bottom-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-bottom a {
  color: var(--side-muted);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #eaf1fd;
}

.footer-credit-row {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-credit a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #dbe9ff;
  font-weight: 700;
}

.nalaw-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

@media (max-width: 940px) {
  .footer-bottom-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-bottom-row > :first-child {
    order: 2;
  }

  .footer-bottom-row > :last-child {
    order: 1;
  }
}

.section:has(.side-prose) {
  display: block;
}

.section:has(.side-prose) .section-copy {
  margin-bottom: 34px;
}

.side-prose {
  max-width: 72ch;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-prose h3 {
  margin: 18px 0 0;
  color: var(--side-blue);
}

.side-prose p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #cdd9ec;
}

.side-prose a {
  color: #8ec8ff;
}

/* ============ Banner de cookies ============ */
.side-cookie-notice {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(16px);
  z-index: 70;
  width: min(680px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid rgb(39 146 255 / 35%);
  border-radius: 12px;
  background: linear-gradient(180deg, #10161f, #090c13);
  box-shadow: 0 24px 70px rgb(0 0 0 / 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.side-cookie-notice.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.side-cookie-notice p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #cdd9ec;
}

.side-cookie-notice a {
  color: #8ec8ff;
}

.side-cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.link-button {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--side-muted);
  cursor: pointer;
}

.link-button:hover {
  color: #eaf1fd;
}

@media (max-width: 640px) {
  .side-cookie-notice {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .side-cookie-actions {
    justify-content: center;
  }
}

/* ============ Hub legal: tabs de navegación ============ */
.side-legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}

.side-legal-tabs a,
.side-legal-tab-soon {
  font-family: var(--side-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  border: 1px solid var(--side-line);
  border-radius: 6px;
  color: var(--side-muted);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.side-legal-tabs a:hover {
  color: #eaf1fd;
  border-color: rgb(39 146 255 / 45%);
}

.side-legal-tabs a.active {
  color: #dbe9ff;
  background: rgb(39 146 255 / 16%);
  border-color: rgb(39 146 255 / 55%);
}

.side-legal-tab-soon {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Cierre del banner de cookies */
.side-cookie-notice {
  padding-right: 46px;
}

.side-cookie-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: none;
  background: none;
  color: var(--side-muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.side-cookie-close:hover {
  color: #eaf1fd;
}

/* Panel de gestión de consentimiento (cookies.html) */
.side-consent-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--side-line);
  border-radius: 10px;
  background: rgb(7 10 16 / 55%);
}

.side-consent-panel #consent-status {
  color: #dbe9ff;
}

/* hidden debe ganar siempre, también en botones con display propio */
.side-btn[hidden] {
  display: none;
}

/* ============ Skip-link + loader de página ============ */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--side-blue);
  color: #fff;
  font-family: var(--side-mono);
  font-size: 0.72rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

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

#page-loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: #07090d;
  opacity: 1;
  transition: opacity 0.35s ease;
}

#page-loader.done {
  opacity: 0;
  pointer-events: none;
}

.loader-terminal {
  width: min(340px, calc(100% - 48px));
  border: 1px solid rgb(39 146 255 / 30%);
  border-radius: 12px;
  background: linear-gradient(180deg, #10161f, #090c13);
  box-shadow: 0 24px 80px rgb(0 0 0 / 55%), 0 0 40px rgb(39 146 255 / 8%);
  overflow: hidden;
}

.loader-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid rgb(148 170 205 / 16%);
  background: rgb(7 10 16 / 85%);
}

.loader-title {
  flex: 1;
  text-align: center;
  font-family: var(--side-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: #8fa1bd;
}

.loader-body {
  padding: 18px 20px 20px;
}

.loader-line {
  margin: 0 0 8px;
  font-family: var(--side-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: #9fb4d4;
  opacity: 0;
  animation: loader-line-in 0.01s linear forwards;
}

.loader-line .ok {
  color: #7ee787;
}

.loader-line.l1 { animation-delay: 0.1s; }
.loader-line.l2 { animation-delay: 0.4s; }
.loader-line.l3 {
  animation-delay: 1.3s;
  color: #eaf1fd;
  font-weight: 700;
}

/* Barra de progreso del boot */
.loader-progress {
  position: relative;
  height: 5px;
  margin: 12px 0 14px;
  border-radius: 999px;
  background: rgb(148 170 205 / 14%);
  overflow: visible;
  opacity: 0;
  animation: loader-line-in 0.01s linear forwards;
  animation-delay: 0.6s;
}

.loader-progress i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2792ff, #7cc0ff);
  box-shadow: 0 0 14px rgb(39 146 255 / 55%);
  animation: loader-fill 0.7s cubic-bezier(0.2, 0.6, 0.3, 1) forwards;
  animation-delay: 0.62s;
}

@keyframes loader-fill {
  0% { width: 0; }
  55% { width: 62%; }
  75% { width: 71%; }
  100% { width: 100%; }
}

@keyframes loader-line-in {
  to { opacity: 1; }
}

/* puntos suspensivos que van apareciendo */
.loader-dots::after {
  content: "";
  animation: loader-dots 0.9s steps(4, end) infinite;
}

@keyframes loader-dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75%, 100% { content: "..."; }
}

.loader-cursor {
  margin-left: 4px;
  color: #2792ff;
  animation: loader-blink 0.75s steps(1) infinite;
}

@keyframes loader-blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .loader-line { opacity: 1; animation: none; }
  .loader-dots::after { content: "..."; animation: none; }
  .loader-cursor { animation: none; }
  .loader-progress { opacity: 1; animation: none; }
  .loader-progress i { width: 100%; animation: none; }
}

/* ============ Animaciones de scroll (scroll-fx.js) ============ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-in {
  opacity: 1;
  transform: none;
}

/* Barras de la console del hero: parten vacías y crecen al arrancar */
.side-progress-bar i {
  width: 0;
  transition: width 0.9s cubic-bezier(0.2, 0.6, 0.3, 1);
}

/* Mockup móvil flotante sobre el thumbnail desktop */
.side-work-preview {
  position: relative;
}

.preview-phone {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 21%;
  max-width: 96px;
  border: 2px solid rgb(148 170 205 / 40%);
  border-radius: 12px;
  overflow: hidden;
  background: #07090d;
  box-shadow: 0 14px 34px rgb(0 0 0 / 55%);
}

.preview-phone::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 26%;
  height: 3px;
  border-radius: 999px;
  background: rgb(148 170 205 / 45%);
  z-index: 1;
}

.preview-phone img {
  display: block;
  width: 100%;
  height: auto;
}

/* Redes sociales del proyecto (junto a VISITAR_SITIO) */
.side-work-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.side-social {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--side-line);
  border-radius: 6px;
  color: var(--side-muted);
  background: rgb(7 10 16 / 55%);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.side-social:hover {
  border-color: rgb(39 146 255 / 55%);
  color: #8ec8ff;
}

.side-social svg {
  width: 18px;
  height: 18px;
}

/* Contacto: chrome de terminal y nota del formulario */
.side-form-topbar .side-console-dots {
  display: flex;
  gap: 6px;
}

.side-form-topbar > .mono-label:not(.status) {
  flex: 1;
  text-align: center;
}

.side-form-hint {
  margin: 0;
  text-transform: none;
  letter-spacing: 0.04em;
}

.side-form-hint a {
  color: #8ec8ff;
  text-decoration: none;
}

.side-form-hint a:hover {
  text-decoration: underline;
}

/* h1 de subpáginas: hereda el estilo del título de sección, no del hero */
h1.page-title {
  max-width: none;
  margin: 12px 0 0;
  font-size: var(--section-title);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h1.side-prompt {
  max-width: none;
  margin: 22px 0 26px;
  font-size: 0.95rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* Overlay de transmisión del formulario + honeypot */
.tx-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgb(3 5 9 / 78%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tx-overlay[hidden] {
  display: none;
}

.tx-overlay .err {
  color: #ff6961;
}

.tx-overlay a {
  color: #8ec8ff;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
