/* AR Digital Investments Corp — colores tomados del logotipo:
   azul marino #24346c (AR + línea de circuito) y negro (DIGITAL / INVESTMENTS CORP). */

:root {
  --navy: #24346c;
  --orange-soft: #ffb27d;  /* naranja claro del marco de Presupuestalo.net */
  --orange-ink: #b84500;   /* naranja oscuro legible sobre blanco */
  --navy-deep: #172250;
  --ink: #111111;
  --sky: #8ea6ee;          /* el azul marino aclarado, para fondos oscuros */
  --paper: #f3f5fa;
  --white: #ffffff;
  --muted: #4a5068;
  --line: rgba(36, 52, 108, 0.22);


  --font-display: "Chakra Petch", "Segoe UI", sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; max-width: 64ch; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--navy); }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 6px;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: block; line-height: 0; }
.logo { display: block; width: 190px; height: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.97rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.01em;
  color: var(--white); background: var(--navy);
  border: 2px solid var(--navy); border-radius: 4px;
  padding: 13px 24px; line-height: 1.2;
  transition: background-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-small { padding: 9px 16px; font-size: 0.92rem; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-light:hover { background: var(--paper); color: var(--navy-deep); border-color: var(--paper); }

/* ---------- Hero ---------- */
.hero { background: var(--paper); padding: clamp(48px, 8vw, 104px) 0; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 80px); align-items: center;
}
.hero h1 {
  font-weight: 600; font-size: clamp(2.7rem, 6.2vw, 4.9rem);
  line-height: 1; letter-spacing: -0.015em; color: var(--navy);
  margin-bottom: 0.4em; max-width: 9ch;
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--ink); max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.8em 0 2.2em; }
.presence { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Esquema de circuito */
.net { margin: 0; }
.net svg { display: block; width: 100%; height: auto; overflow: visible; }
.traces path {
  stroke: var(--navy);
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.1s cubic-bezier(.5, 0, .2, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.core circle { fill: var(--navy); }
.core text { fill: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 22px; }

.node { cursor: pointer; }
.node circle { fill: var(--paper); stroke: var(--navy); stroke-width: 2; transition: fill 0.15s; }
.node text {
  fill: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 17px;
  opacity: 0; animation: show 0.4s ease forwards 1.2s;
}
.node:hover circle, .node:focus-visible circle { fill: var(--navy); }
.node:hover text, .node:focus-visible text { fill: var(--navy); text-decoration: underline; }
.node:focus-visible { outline: none; }
.node:focus-visible circle { stroke-width: 4; }
@keyframes show { to { opacity: 1; } }

/* ---------- Servicios ---------- */
.services { padding: clamp(56px, 9vw, 112px) 0; }
.services h2, .about h2, .contact h2, .presupuestalo h2 {
  font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -0.01em;
}
.services > .wrap > h2 { margin-bottom: clamp(28px, 4vw, 48px); color: var(--navy); }

.service {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 3px solid var(--navy);
}
.service + .service { margin-top: 0; }
.service-head h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 600; margin-bottom: 0.7em; }
.service-head p { color: var(--muted); font-size: 1rem; }
.service-body {
  display: grid; gap: 28px clamp(24px, 4vw, 48px);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.service-body h4 { font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-bottom: 0.7em; }
.service-body li {
  position: relative; padding-left: 20px; margin-bottom: 0.65em; font-size: 0.98rem; line-height: 1.5;
}
.service-body li::before {
  content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 2px; background: var(--navy);
}

/* ---------- Presupuestalo.net ---------- */
.presupuestalo { background: var(--white); color: var(--ink); padding: 0 0 clamp(56px, 9vw, 112px); }
.pres-grid {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(24px, 5vw, 72px); align-items: start;
  border: 3px solid var(--orange-soft); border-radius: 4px;
  padding: clamp(24px, 4vw, 52px);
}
.pres-logo { grid-column: 1 / -1; display: block; line-height: 0; width: 100%; max-width: 460px; }
.pres-logo img { display: block; width: 100%; height: auto; }
.pres-grid h2 { color: var(--navy); }
.pres-sub { margin: 0.8em 0 0; color: var(--orange-ink); font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; max-width: 32ch; }
.pres-body p { font-size: 1.1rem; margin-bottom: 1.6em; }

/* ---------- Quiénes somos ---------- */
.about { background: var(--paper); padding: clamp(56px, 9vw, 112px) 0; }
.about h2 { color: var(--navy); margin-bottom: 0.6em; }
.about-intro { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.5; max-width: 52ch; margin-bottom: clamp(36px, 6vw, 72px); }
.about-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 80px); }
.about-cols h3 { font-size: 1.6rem; font-weight: 600; color: var(--navy); padding-top: 18px; border-top: 3px solid var(--navy); margin-bottom: 0.8em; }
.vision-line { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.3; color: var(--ink); }
.about dl { margin: 2em 0 0; }
.about dt { font-weight: 700; margin-top: 1.3em; line-height: 1.35; }
.about dd { margin: 0.3em 0 0; color: var(--muted); max-width: 60ch; }

/* ---------- Contacto ---------- */
.contact { padding: clamp(56px, 9vw, 112px) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact h2 { color: var(--navy); margin-bottom: 0.5em; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px clamp(24px, 4vw, 48px); }
.facts > div { border-top: 3px solid var(--navy); padding-top: 16px; min-width: 0; }
.facts dt { font-weight: 700; margin-bottom: 8px; }
.facts dd { margin: 0; color: var(--muted); }
.facts .mail { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--navy); overflow-wrap: anywhere; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-deep); color: var(--white); padding: 48px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1fr auto; gap: 28px 56px; align-items: start; }
.logo-foot { width: 220px; height: auto; }
.foot-note { margin: 14px 0 0; color: #c2cae8; font-size: 0.95rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: flex-end; }
.site-footer nav a { color: var(--white); text-decoration: none; font-weight: 500; }
.site-footer nav a:hover { text-decoration: underline; }
.copy { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.18); color: #c2cae8; font-size: 0.9rem; max-width: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .service, .pres-grid, .about-cols, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: none; }
  .nav { display: none; }
  .btn-small { margin-left: auto; }
}
@media (max-width: 560px) {
  .logo { width: 150px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer nav { justify-content: flex-start; }
  .node text { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .traces path { animation: none; stroke-dashoffset: 0; }
  .node text { animation: none; opacity: 1; }
}
