@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");
/* 1. Paleta, estilos globales y tipografía */
:root {
  --bg: #f4f2ec;
  --panel: #ffffff;
  --ink: #222b29;
  --muted: #66716b;
  --accent: #294c43;
  --border: #d7dcd5;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #74adff;
  outline-offset: 6px;
}
/* 2. Navegación, botones y enlaces */
header {
  height: 86px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  background: #080e1ce8;
  backdrop-filter: blur(18px);
}
.logo {
  display: flex;
  gap: 3px;
  font-weight: 800;
  font-size: 30px;
  color: var(--accent);
  align-items: center;
}
.logo > span {
  color: #91b5ff;
}
.logo small {
  font-size: 16px;
  color: var(--ink);
  margin-left: 12px;
  letter-spacing: -0.7px;
}
.logo small span {
  color: var(--muted);
}
nav {
  display: flex;
  gap: 32px;
  font-size: 13px;
}
nav a:hover {
  color: var(--accent);
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  background: var(--accent);
  color: white;
  border: 1px solid #448cff;
  border-radius: 5px;
  padding: 17px 23px;
  font-size: 14px;
  font-weight: 600;
  transition:
    transform 0.25s,
    background 0.25s;
  box-shadow: 0 8px 35px #005fff14;
}
.button:hover {
  transform: translateY(-3px);
  background: #438dff;
}
.button span {
  font-size: 21px;
}
.button.small {
  padding: 10px 19px;
  font-size: 12px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  background: none;
  border: 0;
  color: var(--ink);
  padding: 12px 0;
}
.text-link:hover {
  color: var(--accent);
}
/* 3. Presentación principal */
.hero {
  max-width: 1600px;
  margin: auto;
  min-height: 780px;
  height: calc(100svh - 86px);
  max-height: 980px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 60px 5% 45px;
  position: relative;
}
.hero-copy {
  z-index: 3;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.5px;
  font-weight: 700;
  color: #77aaff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #68e6a8;
  box-shadow: 0 0 9px #68e6a85c;
}
.hero h1 {
  font-family: Manrope, sans-serif;
  font-size: clamp(45px, 4.6vw, 76px);
  font-weight: 800;
  letter-spacing: -3.8px;
  line-height: 1.07;
  margin: 0 0 28px;
}
.hero h1 span,
h2 > span {
  color: var(--accent);
}
.lead {
  color: #b8c3d5;
  line-height: 1.7;
  font-size: 17px;
}
.actions {
  display: flex;
  gap: 30px;
  margin-top: 35px;
  align-items: center;
}
.hero-note {
  position: absolute;
  bottom: 35px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.6px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.hero-note span {
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding: 12px;
}
/* 4. Paneles del inicio: perspectiva, editor, dashboard y página de café */
.scene {
  height: 650px;
  position: relative;
  perspective: 1100px;
  transform: translateX(-2%);
}
/* Entrada con Anime.js. translate y scale independientes conservan el scroll. */
.hero-copy > .eyebrow,
.hero-copy > h1,
.hero-copy > .lead,
.hero-copy > .actions,
.scene .float-panel {
  translate: 0 var(--intro-y, 0px);
  scale: var(--intro-scale, 1);
}
.anime-grid {
  position: absolute;
  right: -2%;
  top: -20px;
  width: 220px;
  height: 165px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 15px;
  pointer-events: none;
}
.anime-grid i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #77aaff;
  opacity: 0.18;
}
.replay-intro {
  display: block;
  margin-top: 24px;
  padding: 8px 0;
  background: none;
  border: 0;
  color: #93a8c9;
  font-size: 11px;
}
.replay-intro[hidden] {
  display: none;
}
.replay-intro:hover {
  color: #77aaff;
}
.orbit {
  position: absolute;
  width: 120%;
  height: 100%;
  left: -13%;
  top: 4%;
  overflow: visible;
}
.orbit path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  stroke-dasharray: 1600;
  animation: orbit 8s linear infinite;
  opacity: 0.65;
}
.float-panel {
  position: absolute;
  border: 1px solid #33445d;
  border-radius: 10px;
  background: #101c2e;
  box-shadow: 0 30px 60px #0006;
  overflow: hidden;
  transition: box-shadow 0.3s;
  will-change: transform;
}
.dashboard {
  width: 95%;
  right: -2%;
  top: 25px;
  transform: rotateY(-14deg) rotateZ(8deg);
  z-index: 1;
}
.windowbar {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid #243148;
  padding: 0 12px;
  background: #152135;
}
.windowbar i {
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: #6f849f;
}
.windowbar span {
  font-size: 8px;
  color: #8fabc7;
  margin-left: 12px;
}
.dash-body {
  display: flex;
  min-height: 290px;
}
.dash-body aside {
  width: 50px;
  padding: 20px 10px;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  gap: 25px;
  border-right: 1px solid #213049;
}
.dash-main {
  flex: 1;
  padding: 25px 20px;
}
.dash-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}
.muted {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 18px 0;
}
.metrics > div {
  background: #14233a;
  border: 1px solid #20334b;
  border-radius: 5px;
  padding: 10px;
  color: #9faec3;
  font-size: 9px;
}
.metrics strong {
  display: block;
  color: #e6edf8;
  font-size: 22px;
  margin: 5px 0;
}
.metrics small {
  font-size: 7px;
}
.chart-title {
  font-size: 9px;
  display: flex;
  justify-content: space-between;
}
.chart-title span {
  color: var(--muted);
  font-size: 7px;
}
.chart {
  width: 100%;
  height: 110px;
  margin: 8px 0;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 26px, #ffffff06 27px);
}
.chart .area {
  fill: url(#fill);
}
.chart .line {
  fill: none;
  stroke: #3d8cff;
  stroke-width: 2;
}
.task {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #ffffff08;
  color: #aebdd1;
}
.task b {
  margin-left: auto;
  font-size: 7px;
  font-weight: 400;
}
.code {
  width: 65%;
  left: -12%;
  top: 280px;
  transform: rotateY(12deg) rotateZ(-8deg);
  z-index: 2;
}
.code pre {
  font:
    11px/1.9 Consolas,
    monospace;
  padding: 15px 22px;
  color: #c2d3ef;
}
.purple {
  color: #ba94eb;
}
.green {
  color: #b2d8aa;
}
.blue {
  color: #73b1ff;
}
.code-status {
  font-size: 8px;
  display: flex;
  gap: 8px;
  border-top: 1px solid #243148;
  padding: 8px 15px;
}
.cafe {
  width: 75%;
  right: -3%;
  top: 330px;
  background: #efe7d7;
  color: #332c23;
  transform: rotateY(-14deg) rotateZ(7deg);
  z-index: 4;
  border: 5px solid #233247;
}
.cafe-nav {
  padding: 17px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cafe-nav b {
  font:
    bold 20px Georgia,
    serif;
}
.cafe-nav span {
  font-size: 7px;
}
.cafe-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 210px;
  padding: 10px 20px;
}
.cafe-content small {
  font-size: 6px;
  letter-spacing: 1px;
}
.cafe-content h2 {
  font:
    30px/1.05 Georgia,
    serif;
  letter-spacing: -1px;
  margin: 12px 0 20px;
}
.cafe-button {
  font-size: 7px;
  padding-bottom: 5px;
  border-bottom: 1px solid #847c6f;
}
.coffee-art {
  position: relative;
  background: radial-gradient(ellipse at 50% 50%, #b79b71, #75664c);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.saucer {
  width: 130px;
  height: 130px;
  background: #efebe0;
  border-radius: 50%;
  box-shadow:
    5px 16px 20px #20130988,
    inset -5px -6px 8px #b7a994;
  display: grid;
  place-items: center;
  transform: rotateX(20deg);
}
.cup {
  width: 94px;
  height: 94px;
  background: #f5f0e4;
  box-shadow:
    3px 5px 7px #56422160,
    inset -3px -3px 6px #b0a58d;
  border-radius: 50%;
  padding: 7px;
  position: relative;
}
.cup:after {
  content: "";
  position: absolute;
  right: -19px;
  top: 30px;
  width: 25px;
  height: 21px;
  border: 7px solid #e9e4d6;
  border-radius: 7px;
  z-index: -1;
}
.coffee {
  height: 100%;
  background: radial-gradient(circle, #c6985a 45%, #7e4627 76%);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.coffee span {
  font-size: 65px;
  color: #f8e5c3;
  line-height: 1;
}
.cafe-footer {
  font-size: 7px;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
}
.scene-tag {
  position: absolute;
  bottom: -10px;
  right: 25px;
  font-size: 8px;
  letter-spacing: 2px;
  color: #94a7c3;
}
.scene-tag span {
  color: var(--accent);
  margin-left: 30px;
}
/* 5. Banda de servicios en movimiento */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 19px 0;
  color: #b3bfd4;
  font-size: 11px;
  letter-spacing: 3px;
}
.ticker > div {
  white-space: nowrap;
  width: max-content;
  animation: ticker 35s linear infinite;
}
.ticker span {
  color: var(--accent);
  padding: 0 45px;
  font-size: 17px;
}
/* 6. Secciones y tarjetas de proyectos */
.section {
  padding: 110px 5%;
  max-width: 1600px;
  margin: auto;
  scroll-margin-top: 40px;
}
h2 {
  font-family: Manrope, sans-serif;
  font-size: clamp(34px, 4vw, 59px);
  line-height: 1.12;
  letter-spacing: -2.5px;
  margin: 0;
}
h3 {
  font-family: Manrope, sans-serif;
  letter-spacing: -0.7px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 50px;
}
.section-heading > p {
  font-size: 13px;
  color: #b1bdd1;
  line-height: 1.8;
}
.section-heading small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 15px;
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.project {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  background: linear-gradient(145deg, #101a2a77, transparent);
}
.project-preview {
  width: 100%;
  height: 350px;
  border: 0;
  text-align: left;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  padding: 0;
  transition: transform 0.5s;
}
.project-preview:hover {
  transform: scale(0.98);
}
.preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 20px;
}
.preview-top span {
  font-size: 8px;
}
.cafe-preview {
  background: #e9e1d2;
  color: #332c23;
  font-family: Georgia, serif;
}
.preview-cafe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 15px 25px;
  height: 230px;
}
.preview-cafe small {
  font:
    7px "DM Sans",
    sans-serif;
  letter-spacing: 1px;
}
.preview-cafe h3 {
  font:
    35px/1.03 Georgia,
    serif;
  margin: 18px 0;
}
.preview-cafe span {
  font:
    8px "DM Sans",
    sans-serif;
  border-bottom: 1px solid #665a47;
  padding-bottom: 5px;
}
.preview-cup {
  font-size: 100px;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 80%, #cbb188, #857355);
  text-shadow: 10px 15px 10px #0004;
  transition: transform 0.6s;
}
.preview-cafe .preview-cup {
  transform: rotate(-5deg);
}
.project-preview:hover .preview-cup {
  transform: rotate(5deg) scale(1.08);
}
.preview-bottom {
  padding: 20px 25px;
  font-size: 9px;
  display: flex;
  justify-content: space-between;
}
.preview-overlay {
  position: absolute;
  inset: auto 10px 10px auto;
  background: #080e1ce8;
  color: white;
  padding: 12px 18px;
  font:
    11px "DM Sans",
    sans-serif;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.25s;
}
.project-preview:hover .preview-overlay,
.project-preview:focus-visible .preview-overlay {
  opacity: 1;
  transform: none;
}
.project-info {
  padding: 22px 15px 8px;
}
.project-number {
  font-size: 9px;
  letter-spacing: 2px;
  color: #74aaff;
}
.project-info h3 {
  font-size: 25px;
  margin: 15px 0 12px;
}
.project-info p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  max-width: 440px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 10px;
}
.tags span {
  font-size: 10px;
  border: 1px solid #26364f;
  border-radius: 20px;
  padding: 7px 12px;
  color: #b7c4d8;
}
.project-info .text-link {
  color: #6aa5ff;
  font-size: 12px;
}
.system-preview {
  background: #0e192b;
  color: #e5edfc;
}
.system-preview .preview-top {
  font-size: 13px;
  border-bottom: 1px solid #243148;
  padding: 17px;
}
.system-preview .preview-top span {
  color: #7f93ae;
}
.system-inner {
  display: flex;
}
.system-sidebar {
  width: 48px;
  text-align: center;
  line-height: 50px;
  font-size: 15px;
  color: #718cba;
  border-right: 1px solid #243148;
}
.system-content {
  flex: 1;
  padding: 10px 20px;
}
.system-content h3 {
  font-size: 17px;
  margin: 10px 0 5px;
}
.system-content p {
  font-size: 8px;
  color: var(--muted);
  margin: 0;
}
.system-content .metrics {
  margin: 14px 0;
}
.bar-chart {
  height: 95px;
  display: flex;
  align-items: end;
  justify-content: space-around;
  border-bottom: 1px solid #274264;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 23px, #ffffff07 24px);
}
.bar-chart i {
  display: block;
  width: 6%;
  height: var(--h);
  background: linear-gradient(#438fff, #1753a3);
  border-radius: 3px 3px 0 0;
  transform-origin: bottom;
  animation: bars 4s ease-in-out infinite alternate;
}
.bar-chart i:nth-child(2n) {
  animation-delay: -2s;
}
/* 7. Servicios */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.services .lead {
  font-size: 14px;
  margin-top: 28px;
}
.service-list article {
  display: flex;
  gap: 25px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}
.service-list article:first-child {
  padding-top: 0;
}
.service-list article > span {
  font-size: 10px;
  color: #6096ec;
  padding-top: 10px;
}
.service-list h3 {
  font-size: 24px;
  margin: 0 0 15px;
}
.service-list p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}
.service-list b {
  color: var(--accent);
  font-size: 25px;
}
/* 8. Proceso y línea SVG */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 45px;
  position: relative;
  margin-top: 65px;
}
.steps svg {
  position: absolute;
  top: -10px;
  width: 100%;
  height: 80px;
  overflow: visible;
  pointer-events: none;
}
.steps path {
  stroke: #287bff;
  stroke-width: 1.25;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  fill: none;
  stroke-dasharray: 1100;
  stroke-dashoffset: var(--path-offset, 1100);
}

.step-icon {
  width: 60px;
  height: 60px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--bg);
  position: relative;
  margin-bottom: 22px;
}
.steps small {
  color: #8297b7;
  font-size: 10px;
}
.steps h3 {
  font-size: 20px;
  margin: 10px 0;
}
.steps p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
/* 9. Contacto y pie de página */
.contact {
  padding-top: 20px;
}
.contact-box {
  position: relative;
  border: 1px solid #294161;
  border-radius: 10px;
  padding: 60px;
  background: radial-gradient(ellipse at 95% 15%, #16498b33, transparent 65%);
  overflow: hidden;
}
.contact-box:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(#3d619633 1px, transparent 1px),
    linear-gradient(90deg, #3d619633 1px, transparent 1px);
  background-size: 50px 50px;
}
.contact h2 {
  font-size: clamp(50px, 6vw, 90px);
}
.contact-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  gap: 30px;
  position: relative;
}
.contact-bottom p {
  font-size: 15px;
  line-height: 1.8;
  color: #b7c4d7;
}
.contact-note {
  font-size: 10px;
  color: #7f91ac;
  max-width: 540px;
  line-height: 1.7;
  margin-top: 28px;
}
footer {
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 5%;
  font-size: 11px;
  color: var(--muted);
}
footer .logo {
  font-size: 23px;
}
footer .logo small {
  font-size: 13px;
}
/* 10. Ventanas de demos y formulario */
dialog {
  background: #101b2e;
  color: var(--ink);
  border: 1px solid #344e70;
  border-radius: 12px;
  padding: 45px;
  width: min(600px, calc(100% - 30px));
  max-height: 85svh;
}
dialog::backdrop {
  background: #020711d9;
  backdrop-filter: blur(7px);
}
dialog h2 {
  font-size: 34px;
  margin-bottom: 20px;
}
dialog p {
  line-height: 1.8;
  color: #acbdd5;
  font-size: 14px;
}
.dialog-close {
  position: absolute;
  right: 15px;
  top: 10px;
  color: #b6c6dc;
  background: none;
  border: 0;
  font-size: 30px;
}
dialog label {
  display: block;
  margin: 20px 0;
  font-size: 12px;
  color: #c4d0e3;
}
textarea,
select {
  display: block;
  width: 100%;
  background: #080e1c;
  color: #e9f0fc;
  border: 1px solid #314660;
  border-radius: 5px;
  padding: 13px;
  margin-top: 10px;
  resize: vertical;
}
dialog .button {
  font-size: 12px;
}
.demo-task {
  padding: 15px;
  background: #17263b;
  margin: 10px 0;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.demo-task input {
  accent-color: var(--accent);
}
.demo-task label {
  margin: 0;
}
.demo-task.done label {
  text-decoration: line-through;
  color: #8195af;
}
.demo-web {
  background: #ece4d5;
  padding: 30px;
  color: #332b22;
  border-radius: 5px;
  font-family: Georgia, serif;
}
.demo-web h3 {
  font-size: 30px;
  margin: 10px 0;
}
.demo-web p {
  color: #665a49;
}
/* 11. Aparición de secciones y animaciones continuas */
.reveal {
  opacity: 1;
}
.js-motion .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js-motion .reveal.visible {
  opacity: 1;
  transform: none;
}
.project:nth-child(2) {
  transition-delay: 0.12s;
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}
@keyframes orbit {
  to {
    stroke-dashoffset: -1600;
  }
}
@keyframes bars {
  from {
    transform: scaleY(0.75);
  }
  to {
    transform: scaleY(1);
  }
}
/* 12. Adaptación a pantallas grandes, tablets y celulares */
@media (min-width: 1500px) {
  .scene {
    height: 720px;
  }
  .cafe {
    top: 370px;
  }
  .code {
    top: 330px;
  }
}
@media (max-width: 1050px) {
  .hero {
    min-height: 700px;
    height: auto;
  }
  .hero h1 {
    font-size: 51px;
    letter-spacing: -2.7px;
  }
  .scene {
    height: 570px;
    transform: scale(0.88);
    transform-origin: center right;
  }
  .dashboard {
    width: 110%;
  }
  .code {
    left: -20%;
    width: 85%;
    top: 270px;
  }
  .cafe {
    width: 100%;
    top: 320px;
  }
  .scene-tag {
    bottom: -30px;
  }
  .hero-note {
    font-size: 8px;
  }
  .project-preview {
    height: 320px;
  }
  .preview-cafe h3 {
    font-size: 28px;
  }
  .preview-cup {
    font-size: 80px;
  }
  .services {
    gap: 5%;
  }
  .steps {
    gap: 25px;
  }
  .contact-box {
    padding: 40px;
  }
}
@media (max-width: 760px) {
  header {
    height: 70px;
    padding: 0 6%;
  }
  header nav {
    display: none;
  }
  .logo small {
    font-size: 13px;
  }
  .button.small {
    padding: 8px 12px;
  }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 65px 6% 40px;
    min-height: auto;
  }
  .hero h1 {
    font-size: clamp(42px, 9vw, 68px);
    letter-spacing: -2.7px;
  }
  .desktop {
    display: none;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .lead {
    font-size: 15px;
  }
  .actions {
    gap: 20px;
  }
  .actions .button {
    font-size: 12px;
    padding: 14px 17px;
    gap: 15px;
  }
  .actions .text-link {
    font-size: 12px;
  }
  .scene {
    height: 520px;
    width: 94%;
    margin: 25px 0 0;
    transform: scale(0.87);
    transform-origin: center center;
  }
  .dashboard {
    width: 95%;
    top: 0;
    right: -4%;
  }
  .code {
    width: 70%;
    left: -1%;
    top: 200px;
  }
  .code pre {
    font-size: 9px;
    padding: 10px;
  }
  .cafe {
    width: 80%;
    top: 250px;
    right: -7%;
  }
  .cafe-content {
    padding: 10px 15px;
    min-height: 185px;
  }
  .cafe-content h2 {
    font-size: 26px;
  }
  .saucer {
    width: 100px;
    height: 100px;
  }
  .cup {
    width: 75px;
    height: 75px;
  }
  .coffee span {
    font-size: 48px;
  }
  .scene-tag {
    bottom: 10px;
  }
  .hero-note {
    position: static;
    margin: 0;
  }
  .ticker {
    font-size: 9px;
  }
  .section {
    padding: 75px 6%;
  }
  h2 {
    font-size: 39px;
    letter-spacing: -1.8px;
  }
  .section-heading {
    display: block;
  }
  .section-heading > p {
    margin-top: 25px;
    font-size: 12px;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .project-preview {
    height: 350px;
  }
  .preview-cafe h3 {
    font-size: 33px;
  }
  .preview-cup {
    font-size: 100px;
  }
  .services {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .service-list article {
    gap: 20px;
  }
  .service-list h3 {
    font-size: 22px;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 35px 25px;
    margin-top: 40px;
  }
  .steps svg {
    display: none;
  }
  .steps p {
    font-size: 12px;
  }
  .contact {
    padding-top: 0;
  }
  .contact-box {
    padding: 30px 24px;
  }
  .contact h2 {
    font-size: 54px;
  }
  .contact-bottom {
    display: block;
  }
  .contact-bottom p {
    font-size: 13px;
  }
  .contact-bottom .button {
    margin-top: 15px;
  }
  .contact-note {
    font-size: 9px;
  }
  footer {
    padding: 25px 6%;
    flex-wrap: wrap;
    gap: 20px;
  }
  footer p {
    order: 3;
    width: 100%;
    font-size: 10px;
    margin: 0;
  }
  dialog {
    padding: 35px 25px;
  }
  .project:nth-child(2) {
    transition-delay: 0;
  }
}
@media (max-width: 380px) {
  .hero h1 {
    font-size: 39px;
  }
  .scene {
    height: 450px;
  }
  .cafe {
    top: 220px;
  }
  .cafe-content h2 {
    font-size: 22px;
  }
  .hero .actions {
    gap: 12px;
  }
  .system-content {
    padding: 10px;
  }
  .metrics > div {
    padding: 8px;
  }
  .preview-cafe {
    padding: 15px;
  }
  .preview-cafe h3 {
    font-size: 28px;
  }
}
/* Accesibilidad: respetar la preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .js-motion .reveal {
    opacity: 1;
    transform: none;
  }
  .float-panel {
    will-change: auto;
  }
}
@media (max-width: 760px) {
  .hero {
    overflow: clip;
  }
}
.project-grid,
.project,
.project-preview,
.system-content {
  min-width: 0;
}
.project-preview {
  max-width: 100%;
}

/* Mazo de proyectos: mejora progresiva; sin JS se muestran las dos tarjetas. */
.deck-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 35px;
}
.deck-controls[hidden] {
  display: none;
}
.deck-controls p {
  display: flex;
  gap: 25px;
  color: var(--muted);
  font-size: 11px;
}
#deck-count {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.deck-controls > div {
  display: flex;
  gap: 10px;
}
.deck-controls button {
  border: 1px solid #bcc7b9;
  background: transparent;
  color: var(--ink);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 20px;
}
.deck-controls button:hover {
  background: #dce4d7;
}
.project-grid.is-deck {
  display: grid;
  grid-template-columns: 1fr;
  perspective: 1200px;
  touch-action: pan-y;
  padding-bottom: 20px;
}
.is-deck .project {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: center;
  padding: 25px;
  box-shadow: 0 16px 30px #27392c0d;
  transition: none;
  transform-origin: center 75%;
  cursor: grab;
  backface-visibility: hidden;
  user-select: none;
}
.is-deck .project-preview {
  height: 350px;
}
.is-deck .project-info {
  padding: 20px 30px;
}
.is-deck .project-info h3 {
  font-size: 34px;
  font-weight: 500;
}
.is-deck .project-info p {
  font-size: 15px;
}
.is-deck .project[data-active="false"] {
  pointer-events: none;
}
@media (max-width: 760px) {
  .hero h1 {
    font-size: clamp(40px, 9vw, 65px);
    letter-spacing: -2px;
  }
  .is-deck .project {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }
  .is-deck .project-preview {
    height: 320px;
  }
  .is-deck .project-info {
    padding: 20px 10px;
  }
  .is-deck .project-info h3 {
    font-size: 26px;
  }
  .is-deck .project-info p {
    font-size: 13px;
  }
  .deck-controls p {
    gap: 12px;
    font-size: 9px;
  }
}
/* 13. Identidad JPNatMed: los mismos tonos y tipografías de la página principal. */
:root {
  --bg: #f6f7f2;
  --panel: #ffffff;
  --ink: #102f48;
  --muted: #5f717a;
  --accent: #07897e;
  --border: #dbe3dc;
}

/* Red de conexiones detrás del contenido, sin capturar el puntero. */
body {
  position: relative;
  isolation: isolate;
}
.connection-network {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
main,
footer {
  position: relative;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .connection-network {
    display: none;
  }
}
body {
  background: var(--bg);
  color: var(--ink);
}
header {
  background: #f6f7f2ed;
  border-color: var(--border);
}
.logo img {
  display: block;
  width: 210px;
  height: auto;
  max-height: 52px;
}
footer .logo img {
  width: 180px;
}
.back-link {
  display: inline-block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 34px;
}
.back-link:hover {
  color: var(--accent);
}
nav a:hover,
.eyebrow,
.project-number,
.project-info .text-link,
.service-list article > span {
  color: var(--accent);
}
.button {
  background: #052d5b;
  border-color: #052d5b;
  color: white;
  border-radius: 30px;
  box-shadow: none;
}
.button:hover {
  background: #104776;
}
.button.small {
  background: transparent;
  color: #102f48;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-color: var(--accent);
}
.hero {
  min-height: 760px;
  height: calc(100svh - 86px);
  grid-template-columns: 1fr 1.1fr;
  padding-top: 40px;
  overflow: clip;
}
.hero h1 {
  font-size: clamp(42px, 4.25vw, 68px);
  font-family: Manrope, sans-serif;
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 1.08;
}
.hero h1 span,
h2 > span {
  color: var(--accent);
  font-family: inherit;
  font-style: normal;
}
.hero-copy .lead {
  font-size: 15px;
  max-width: 420px;
  color: var(--muted);
}
.hero .actions {
  gap: 23px;
}
.hero .actions .button {
  font-size: 12px;
  gap: 20px;
}
.hero-note {
  color: var(--muted);
}
.hero-note span {
  color: var(--accent);
  border-color: var(--accent);
}
h2 {
  font-weight: 650;
}
.lead,
.section-heading > p,
.contact-bottom p,
.contact-note {
  color: var(--muted);
}
.dot {
  background: #20b5a2;
  box-shadow: none;
}
.scene {
  height: 610px;
  transform: translateX(0);
}
.scene:before {
  content: "";
  position: absolute;
  inset: 0 0 20px 20px;
  border-radius: 220px 220px 20px 20px;
  background: #e8efea;
  transform: rotate(-5deg);
}
.orbit {
  z-index: 0;
}
.orbit path {
  stroke: #07897e;
  opacity: 0.35;
  stroke-width: 1;
  animation-duration: 18s;
}
.anime-grid i {
  background: #20a999;
}
.scene-tag {
  bottom: -15px;
  left: 30px;
  right: auto;
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 1.6px;
  border-left: 2px solid var(--accent);
  padding: 8px 15px;
}
.replay-intro {
  display: block;
  margin-top: 22px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 0;
  font-size: 10px;
}
.replay-intro[hidden] {
  display: none;
}
.replay-intro:hover {
  color: var(--accent);
}
.float-panel {
  border-color: #bfcfd0;
  box-shadow: 0 25px 55px #052d5b16;
}
.dashboard {
  top: 20px;
  right: 0;
  width: 90%;
  background: #fff;
  color: #102f48;
}
.dashboard .windowbar {
  background: #052d5b;
  border-color: #052d5b;
}
.dashboard .windowbar span {
  color: #e2eee9;
}
.dashboard .dash-body aside {
  color: #07897e;
  background: #edf4ef;
  border-color: #d5e3d9;
}
.dashboard .dash-title {
  color: #102f48;
}
.dashboard .muted {
  color: #6a8082;
}
.dashboard .metrics > div {
  background: #edf4ef;
  border-color: #d8e5db;
  color: #637a7d;
}
.dashboard .metrics strong {
  color: #052d5b;
}
.dashboard .chart-title {
  color: #102f48;
}
.dashboard .chart-title span {
  color: #6d8283;
}
.dashboard .chart {
  background: repeating-linear-gradient(0deg, transparent 0, transparent 26px, #052d5b08 27px);
}
.dashboard .chart .line {
  stroke: #07897e;
}
.dashboard .task {
  color: #5f717a;
  border-color: #dbe4dd;
}
.code {
  left: 0;
  top: 275px;
  width: 57%;
  background: #0c304c;
  color: #e4efed;
}
.code .windowbar {
  background: #123e59;
}
.code .windowbar span,
.code-status {
  color: #d2e4e3;
}
.code pre {
  font-size: 10px;
  color: #cee4e1;
}
.purple {
  color: #92cfc3;
}
.green {
  color: #c0ddb0;
}
.blue {
  color: #97c6dc;
}
.cafe {
  top: 300px;
  right: -2%;
  width: 70%;
  border-color: #b8c9c8;
  background: #f0eadc;
  color: #332c23;
}
.cafe-content h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #332c23;
}
.ticker {
  background: #052d5b;
  border-color: #052d5b;
  color: #d4e6e9;
}
.ticker span {
  color: #27b5a5;
}
.project {
  background: #ffffff;
  border-color: #d2dfd5;
  color: var(--ink);
}
.project-info p {
  color: var(--muted);
}
.tags span {
  border-color: #d0ddd5;
  color: #5f717a;
}
.deck-controls button {
  color: #102f48;
  border-color: #bbcdd0;
}
.deck-controls button:hover {
  background: #e3eee7;
}
.is-deck .project {
  box-shadow: 0 18px 40px #052d5b0d;
  background: #fff;
  border-color: #d2dfd5;
}
.system-preview {
  background: #10334b;
  color: #e6f1ef;
}
.system-preview .metrics > div {
  background: #214b5e;
  border-color: #386573;
  color: #b6d4d3;
}
.system-preview .metrics strong {
  color: #f1f7ef;
}
.system-sidebar {
  color: #81bcb9;
}
.bar-chart i {
  background: linear-gradient(#2db8a8, #087e79);
}
.services {
  border-color: var(--border);
}
.step-icon {
  background: var(--bg);
  border-color: #07897e;
}
.steps path {
  stroke: #07897e;
}
.steps small {
  color: #728b8f;
}
.contact-box {
  background: #e8f0e9;
  border-color: #cfdfd3;
}
.contact-box:before {
  background-image: none;
}
.contact h2 {
  color: #102f48;
}
.contact-box .text-link {
  color: #07897e;
  font-size: 12px;
}
footer {
  border-color: var(--border);
}
dialog {
  background: #f6f7f2;
  color: var(--ink);
  border-color: #a7c5bf;
}
dialog p,
dialog label,
.dialog-close {
  color: #5f717a;
}
textarea,
select {
  background: #fff;
  color: #102f48;
  border-color: #bdd2cb;
}
.demo-task {
  background: #e8f0e9;
}
.demo-task input {
  accent-color: #07897e;
}
.preview-overlay {
  background: #052d5bed;
}
@media (max-width: 1050px) {
  .hero {
    min-height: 740px;
    height: auto;
  }
  .scene {
    transform: scale(0.9);
    transform-origin: center right;
  }
  .hero h1 {
    font-size: 47px;
  }
}
@media (max-width: 760px) {
  .logo img {
    width: 160px;
  }
  .hero {
    display: flex;
    min-height: auto;
    height: auto;
    padding: 35px 6% 40px;
  }
  .back-link {
    margin-bottom: 28px;
  }
  .hero h1 {
    font-size: clamp(41px, 9vw, 62px);
    letter-spacing: -2.5px;
  }
  .hero h1 .desktop {
    display: none;
  }
  .hero-note {
    margin-top: 30px;
  }
  .hero .actions {
    flex-wrap: wrap;
  }
  .scene {
    height: 510px;
    width: 100%;
    margin-top: 20px;
    transform: scale(0.9);
    transform-origin: center;
  }
  .scene:before {
    inset: 0 0 20px;
  }
  .dashboard {
    top: 10px;
    width: 95%;
  }
  .code {
    top: 215px;
    left: -3%;
    width: 63%;
  }
  .cafe {
    top: 250px;
    right: -2%;
    width: 76%;
  }
  .scene-tag {
    left: 0;
    bottom: -5px;
    font-size: 8px;
  }
  .is-deck .project-preview {
    height: 320px;
  }
  .contact-box .text-link {
    text-align: left;
    font-size: 11px;
  }
}
.scene:before {
  opacity: 0.65;
}

.skip-link {position:absolute;left:-9999px;top:12px;z-index:100;background:#fff;color:#102f48;padding:12px 18px;border-radius:8px;}
.skip-link:focus {left:12px;}
.preview-cup svg {filter:drop-shadow(8px 14px 9px #0003);}
