:root {
  color-scheme: light;
  --ink: #101f36;
  --muted: #465773;
  --navy: #0c1d35;
  --blue: #184fc8;
  --cyan: #87e7f0;
  --paper: #f2f5fa;
  --rule: #d7e0ed;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #fff; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #007990; outline-offset: 4px; }
.hero :focus-visible, header :focus-visible { outline-color: var(--cyan); }
.container { width: min(1160px, calc(100% - 56px)); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: 10px; left: 10px; padding: 10px 18px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
header { background: #080f21; color: white; border-bottom: 1px solid #293d59; }
.nav, .brand, .navlinks, .actions, .about-links { display: flex; align-items: center; }
.nav { min-height: 77px; justify-content: space-between; gap: 20px; }
.brand { gap: 11px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.brand-icon { width: 35px; height: auto; }
.navlinks { gap: clamp(14px, 2.4vw, 32px); }
.navlinks a:not(.button) { font-size: .89rem; color: #e8effd; text-decoration: none; }
.navlinks a:not(.button):hover { text-decoration: underline; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 10px 18px; border-radius: 8px; border: 1px solid transparent;
  background: var(--blue); color: white; text-decoration: none;
  font: inherit; font-weight: 650; font-size: .9rem; text-align: center; cursor: pointer;
}
.button:hover { background: #123fa4; }
.button.secondary { background: transparent; color: var(--blue); border-color: #aebfda; }
.button.secondary:hover { background: #e9f0fb; }
header .button { background: transparent; border-color: #758fb8; }
/* Portada y gráfico de marca */
.hero {
  background:
    radial-gradient(ellipse at 75% 100%, #183964 0%, transparent 60%),
    linear-gradient(128deg, #080f21 12%, #112b50 100%);
  color: #f4f7ff;
  padding-block: clamp(66px, 9vw, 130px);
  border-bottom: 1px solid #35578a;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 75px);
  align-items: center;
}
.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.7rem, 5.25vw, 5.1rem);
  font-weight: 720;
  line-height: .99;
  letter-spacing: -.074em;
  text-wrap: balance;
}
.hero h1 span { display: block; color: #a8cbff; }
.lead { max-width: 49ch; margin-top: 22px; color: #cddcf4; font-size: clamp(1rem, 1.5vw, 1.14rem); }
.actions, .about-links { gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .button:not(.secondary) { gap: 10px; background: #c1f5fa; color: #0a2d44; }
.hero .button:not(.secondary):hover { background: #e3fbfd; }
.hero .button.secondary { color: #eef4ff; border-color: #8199be; }
.hero .button.secondary:hover { background: #243e64; }
.hero-panel {
  overflow: hidden;
  border: 1px solid #668bc088;
  border-radius: 18px;
  background: #0e2140;
  box-shadow: 0 22px 60px #02091966;
}
.circuit {
  --circuit-line: #7cdfff76;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 300px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 55%, #143e7e88, transparent 78%),
    linear-gradient(#86abec22 1px, transparent 1px) center / 22px 22px,
    linear-gradient(90deg, #86abec22 1px, transparent 1px) center / 22px 22px,
    #0a1830;
}
.circuit::before, .circuit::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 66%;
  pointer-events: none;
  border: 1px solid var(--circuit-line);
  border-radius: 14px;
}
.circuit::after { width: 80%; height: 44%; transform: rotate(-14deg); border-color: #87a8ff52; }
.circuit-core {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42%;
  max-width: 182px;
  aspect-ratio: 1.15;
  padding: clamp(13px, 3vw, 34px);
  border: 1px solid #9feeffb8;
  border-radius: 15px;
  background: linear-gradient(145deg, #253e6a 0%, #0b1731 85%);
  box-shadow: 0 0 0 7px #102744, 0 0 0 8px #8bbaff63, 0 0 48px #41b7ff66;
}
.circuit-core img { width: 100%; height: auto; }
.junction { position: absolute; z-index: 1; width: 7px; height: 7px; border-radius: 50%; background: #adf3ff; box-shadow: 0 0 12px #55d7ff; }
.junction-a { top: 17%; left: 26%; transform: translateY(-50%); }
.junction-b { top: 32%; right: 15%; transform: translateX(50%); }
.junction-c { bottom: 17%; right: 26%; transform: translateY(50%); }
.junction-d { bottom: 32%; left: 15%; transform: translateX(-50%); }
.panel-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #668bc088; }
.panel-links a { min-height: 46px; display: grid; place-content: center; grid-auto-flow: column; gap: 4px; padding: 7px; color: #e4eeff; text-align: center; font-size: .77rem; text-decoration: none; }
.panel-links a + a { border-left: 1px solid #668bc066; }
.panel-links a:hover { background: #1b355b; }
.panel-links a:focus-visible { outline-offset: -4px; }
.panel-links a span { color: var(--cyan); }
.section { padding-block: clamp(56px, 7vw, 100px); }
.alt { background: var(--paper); }
.eyebrow { color: var(--blue); font-size: .76rem; font-weight: 750; text-transform: uppercase; letter-spacing: .11em; }
.hero .eyebrow { color: var(--cyan); }
.heading { max-width: 760px; margin-bottom: 30px; }
.eyebrow + .heading, .heading .eyebrow + h2 { margin-top: 10px; }
h2 { font-size: clamp(1.9rem, 3.7vw, 3.45rem); letter-spacing: -.05em; line-height: 1.08; text-wrap: balance; }
.heading > p:not(.eyebrow), .bodycopy, .card p, .method-step p, .contact-intro > p:not(.eyebrow) { color: var(--muted); }
.heading > p:not(.eyebrow) { margin-top: 13px; max-width: 65ch; }
.grid3, .split, .contact-grid, .case, .method { display: grid; gap: 20px; }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { min-width: 0; padding: clamp(21px, 3vw, 34px); border: 1px solid var(--rule); border-radius: 12px; background: linear-gradient(155deg, #f3f7ff, #fff 90%); }
.number { color: var(--blue); font-size: .75rem; font-weight: 750; letter-spacing: .08em; }
h3 { font-size: clamp(1.12rem, 2vw, 1.45rem); line-height: 1.18; letter-spacing: -.025em; }
.card h3 { margin: 14px 0 10px; }
.split, .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(30px, 6vw, 84px); }
.bodycopy p + p { margin-top: 12px; }
.case { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; border-radius: 16px; padding: clamp(24px, 5vw, 56px); gap: clamp(26px, 5vw, 60px); background: #102746; color: #fff; }
.case h3 { margin-top: 10px; font-size: clamp(1.5rem, 3vw, 2.6rem); }
.case p, .case li { color: #dae5f8; }
.case p { margin-top: 12px; }
.case-aside { padding-left: clamp(20px, 4vw, 44px); border-left: 1px solid #597297; }
.case-aside ul { margin: 10px 0 0; padding-left: 20px; }
.case-aside li + li { margin-top: 6px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.case-tags span { padding: 4px 9px; border: 1px solid #637ea4; border-radius: 5px; font-size: .75rem; }
.method { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.method-step { padding-top: 16px; border-top: 1px solid #9fb2ce; }
.step-no { display: block; margin-bottom: 10px; color: var(--blue); font-weight: 750; font-size: .85rem; }
.method-step p { margin-top: 8px; }
.credentials { margin-top: 10px; border-top: 1px solid var(--rule); }
.credential { display: grid; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.credential span { color: var(--muted); font-size: .92rem; }
.contact-link { display: block; width: fit-content; margin-top: 10px; color: var(--blue); font-weight: 650; overflow-wrap: anywhere; }
.form { background: white; border: 1px solid var(--rule); border-radius: 14px; padding: clamp(18px, 4vw, 34px); }
.field { display: grid; gap: 5px; margin-bottom: 14px; }
label { font-size: .9rem; font-weight: 700; }
input, select, textarea { width: 100%; min-width: 0; min-height: 44px; padding: 9px 11px; border: 1px solid #9cabc1; border-radius: 7px; background: white; color: var(--ink); font: inherit; }
textarea { min-height: 115px; resize: vertical; }
.full { width: 100%; }
button:disabled { opacity: .7; cursor: wait; }
small { display: block; margin-top: 10px; color: var(--muted); }
.form-status { margin-top: 12px; font-weight: 650; color: #14613a; }
.form-status:empty { margin: 0; }
.form-status.error { color: #9d2222; }
.wa { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); display: grid; width: 50px; height: 50px; place-items: center; border-radius: 50%; background: #25d366; color: white; box-shadow: 0 4px 18px #12213b35; z-index: 2; }
.wa:hover { background: #1fbd5b; }
.wa svg { width: 26px; height: 26px; fill: currentColor; }
footer { padding: 25px 0 62px; background: var(--navy); color: #dae5f8; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 22px; font-size: .83rem; }
#ia {
  background: linear-gradient(120deg, #0b1930, #142c4c);
  color: #f4f7ff;
}
.ai-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(26px, 6vw, 80px);
  align-items: start;
}
.ai-intro .eyebrow { color: var(--cyan); margin-bottom: 11px; }
.ai-intro p:last-child, .ai-examples p { color: #ccdbf3; margin-top: 12px; }
.ai-examples { border-top: 1px solid #6884aa; }
.ai-examples article { padding: 18px 0; border-bottom: 1px solid #6884aa; }
.ai-examples h3 { color: #c5dbff; }
@media (max-width: 880px) {
  .method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: clamp(2.45rem, 6.4vw, 4rem); }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 36px); }
  .nav { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0; padding-top: 12px; }
  .navlinks { display: contents; }
  .navlinks .button { grid-row: 1; grid-column: 2; }
  .navlinks .nav-sections { grid-column: 1 / -1; display: flex; justify-content: center; gap: 10px 18px; flex-wrap: wrap; padding: 12px 0; }
  .hero-inner, .grid3, .split, .contact-grid, .case { grid-template-columns: 1fr; }
  .hero { padding-block: 50px; }
  .hero h1 { font-size: clamp(2.75rem, 11.5vw, 4rem); }
  .hero-copy, .section .heading, .ai-intro, .contact-intro { text-align: center; }
  .hero .lead, .section .heading, .heading > p:not(.eyebrow) { margin-inline: auto; }
  .actions, .about-links, .footer-inner { justify-content: center; }
  #sobre-mi .split > div:first-child > .eyebrow { text-align: center; }
  .contact-link { margin-inline: auto; }
  .footer-inner { text-align: center; }
  .circuit { min-height: clamp(160px, 55vw, 280px); }
  .circuit-core { padding: clamp(12px, 5vw, 24px); }
  .ai-grid { grid-template-columns: 1fr; }
  .case-aside { padding: 18px 0 0; border-left: 0; border-top: 1px solid #597297; }
  .form { margin-bottom: 26px; }
  .contact-intro .heading > p:not(.eyebrow),
  .contact-intro > p:not(.eyebrow) {
  text-align: left;
  margin-inline: 0;
}
}
@media (max-width: 380px) {
  .hero .actions .button { width: 100%; }
  .method { grid-template-columns: 1fr; }
}
@media (min-width: 761px) {
  .nav-sections { display: flex; gap: clamp(14px, 2.4vw, 32px); }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
