/* Azimutha.com — identidad aprobada (PR #562 / feat/brand-lia)
   Paleta: navy #17133F · morado #6C35E8 · blanco. Tipografía: Plus Jakarta Sans.
   Reconstrucción del sitio estático (source perdido del build Astro) — ver BRAND.md. */

/* ---------- Tipografía de marca (self-hosted, variable) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+2C60-2C7F, U+FEFF, U+FFFD;
}

/* ---------- Reset mínimo ---------- */
*, :after, :before, ::backdrop { box-sizing: border-box; border: 0 solid; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; line-height: 1.5; }
body { margin: 0; }
img, svg, video, canvas { vertical-align: middle; display: block; }
img, video { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; background-color: transparent; border-radius: 0; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
ol, ul, menu { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
hr { height: 0; color: inherit; border-top-width: 1px; }
::placeholder { opacity: 1; }

/* ---------- Tokens de identidad ---------- */
:root {
  --navy: #17133F;            /* marino de marca (antes #0F2A4A) */
  --deep: #0E0B2B;            /* marino más oscuro para profundidad (derivado) */
  --accent: #6C35E8;          /* primario morado (antes azul #1D4E89 / ámbar #F2870C) */
  --accent-mid: #8D54F3;      /* morado medio (decorativo) */
  --accent-light: #C4B3F7;    /* lavanda claro — texto/íconos sobre navy */
  --paper: #FAF9FC;           /* fondo (gray-soft) */
  --paper-soft: #EDEBF7;      /* fondo alterno (navy-soft) */
  --ink: #18162D;             /* texto principal (foreground) */
  --muted: #66627A;           /* texto secundario (muted-foreground) */
  --line: rgba(24, 22, 45, 0.16); /* borde (ink al 16%) */
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
}
body:before {
  content: "";
  pointer-events: none;
  opacity: .025;
  z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  position: fixed;
  inset: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
section[id] { scroll-margin-top: 5rem; }
.shell { width: min(1180px, 100% - 40px); margin-inline: auto; }
.section { padding: 92px 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--navy); color: #fff; }

.eyebrow {
  color: var(--accent);
  letter-spacing: .17em;
  text-transform: uppercase;
  margin: 0 0 22px;
  font-size: .73rem;
  font-weight: 700;
}
.eyebrow-light { color: var(--accent-light); }
.eyebrow-blue { color: var(--accent-light); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; }
h2 { letter-spacing: -.045em; margin-bottom: 0; font-size: clamp(2.25rem, 5vw, 4.35rem); line-height: 1.02; }

.lead { color: var(--muted); font-size: 1.12rem; line-height: 1.75; }
.button {
  min-height: 52px;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  font-size: .92rem;
  transition: transform .2s, background-color .2s, color .2s;
  display: inline-flex;
}
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 42px; padding: 0 18px; font-size: .82rem; }
.button-amber { background: var(--accent); color: #fff; }
.button-blue { color: var(--navy); background: #fff; }
.text-link {
  font-weight: 700;
  border-bottom: 1px solid;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  font-size: .9rem;
  display: inline-flex;
}
.text-link-light { color: #fff; }

/* ---------- Nav ---------- */
.site-nav {
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(250, 249, 252, .94);
  border-bottom: 1px solid rgba(23, 19, 63, .10);
  position: sticky;
  top: 0;
}
.nav-inner { justify-content: space-between; align-items: center; gap: 24px; min-height: 74px; display: flex; }
.brand-link { flex: none; }
.lockup { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: auto; flex: none; }
.brand-word { font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; color: var(--navy); }
.brand-word-light { color: #fff; }
.lockup-link { display: inline-flex; }
.nav-actions, .nav-links { align-items: center; display: flex; }
.nav-actions { gap: 18px; }
.nav-links { gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav-links a { color: var(--muted); font-size: .83rem; font-weight: 600; }
.nav-links a:hover { color: var(--accent); }
.language {
  border: 1px solid var(--line);
  width: 38px;
  height: 38px;
  place-items: center;
  font-size: .7rem;
  font-weight: 700;
  display: grid;
}
.nav-cta { background: var(--navy); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 82% 20%, #3A2A7A 0, transparent 34%),
              linear-gradient(135deg, var(--deep), var(--navy));
  padding: 112px 0 0;
  position: relative;
  overflow: hidden;
}
.hero:before {
  content: "";
  opacity: .2;
  background: linear-gradient(115deg, transparent 0 55%, rgba(255,255,255,.07) 55.1%, transparent 55.4%);
  position: absolute;
  inset: 0;
}
.hero-horizon {
  border-top: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  width: 650px;
  height: 250px;
  position: absolute;
  top: 65px;
  right: -90px;
  transform: rotate(-10deg);
}
.hero-mark {
  opacity: .08;
  width: 440px;
  height: auto;
  position: absolute;
  top: 35px;
  right: -45px;
}
.hero-grid {
  grid-template-columns: minmax(0,1.4fr) minmax(300px,.6fr);
  align-items: end;
  gap: 90px;
  display: grid;
  position: relative;
}
.hero-copy { padding-bottom: 94px; }
.hero h1 {
  letter-spacing: -.045em;
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.35rem, 7vw, 6.7rem);
  line-height: .95;
}
.hero h1 span { color: var(--accent-light); }
.hero-body { color: rgba(250, 249, 252, .76); max-width: 710px; margin: 34px 0 0; font-size: 1.15rem; line-height: 1.75; }
.button-row { flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 38px; display: flex; }

.signal-card {
  backdrop-filter: blur(10px);
  background: rgba(14, 11, 43, .65);
  border: 1px solid rgba(255,255,255,.16);
  border-bottom: 0;
  min-height: 410px;
  padding: 32px;
  position: relative;
}
.signal-index { letter-spacing: .14em; color: var(--accent-light); font-size: .68rem; font-weight: 700; }
.signal-arc { width: 190px; height: 90px; margin: 35px auto 24px; overflow: hidden; }
.signal-arc:before { content: ""; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; width: 188px; height: 188px; display: block; }
.signal-arc span {
  transform-origin: 100%;
  background: linear-gradient(90deg, var(--accent), #B368F7);
  width: 120px;
  height: 4px;
  margin: -132px auto 0;
  display: block;
  transform: rotate(-20deg);
}
.signal-card h2 { letter-spacing: -.03em; font-size: 1.7rem; }
.signal-card p { color: rgba(250, 249, 252, .7); line-height: 1.65; }
.signal-line { gap: 6px; margin-top: 30px; display: flex; }
.signal-line span { background: var(--accent-mid); flex: 1; height: 3px; }
.signal-line span:nth-child(n+4) { background: rgba(255,255,255,.14); }

.hero-sector {
  color: rgba(250, 249, 252, .56);
  border-top: 1px solid rgba(255,255,255,.12);
  align-items: center;
  gap: 25px;
  min-height: 72px;
  font-size: .84rem;
  display: flex;
  position: relative;
}
.hero-sector span { color: var(--accent-light); letter-spacing: .12em; font-size: .68rem; font-weight: 700; }
.hero-sector p { margin: 0; }

/* ---------- Método O2D ---------- */
.section-intro { max-width: 820px; }
.split-intro { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 90px; max-width: none; display: grid; }
.split-intro .lead { margin: 0 0 20px; }
.principle { border-left: 3px solid var(--accent); color: var(--navy); margin: 0; padding-left: 20px; font-weight: 600; line-height: 1.55; }
.method-steps { grid-template-columns: repeat(4,1fr); margin: 74px 0 0; padding: 0; list-style: none; display: grid; }
.method-steps li { border-top: 1px solid rgba(23, 19, 63, .24); padding: 0 25px 0 0; position: relative; }
.step-number { color: var(--accent); margin-top: 18px; font-size: .7rem; font-weight: 700; display: block; }
.step-node { background: var(--accent); width: 9px; height: 9px; box-shadow: 0 0 0 5px var(--paper); border-radius: 50%; position: absolute; top: -5px; left: 0; }
.method-steps h3 { margin: 23px 0 12px; font-size: 1.5rem; }
.method-steps p { color: var(--muted); line-height: 1.65; }
.dimensions-panel { border: 1px solid var(--line); background: #fff; grid-template-columns: 190px 1fr; gap: 30px 50px; margin-top: 70px; padding: 35px; display: grid; }
.panel-label { letter-spacing: .13em; text-transform: uppercase; color: var(--accent); font-size: .7rem; font-weight: 700; }
.dimensions-panel ul { grid-template-columns: repeat(5,1fr); gap: 0; margin: 0; padding: 0; list-style: none; display: grid; }
.dimensions-panel li { border-left: 1px solid var(--line); padding: 0 16px; font-size: .88rem; font-weight: 600; }
.dimensions-panel li span { color: var(--accent); margin-bottom: 8px; font-size: .65rem; font-weight: 700; display: block; }
.method-outcome { color: var(--navy); grid-column: 2; margin: 0; font-size: 1.15rem; font-weight: 800; }

/* ---------- Producto / Orderafy ---------- */
.product-section {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), #4A2A9E);
  position: relative;
  overflow: hidden;
}
.product-trajectory {
  border-top: 2px solid rgba(196, 179, 247, .3);
  border-radius: 50%;
  width: 900px;
  height: 430px;
  position: absolute;
  top: 20px;
  right: -210px;
  transform: rotate(-12deg);
}
.product-head { grid-template-columns: 1.05fr .95fr; gap: 90px; display: grid; position: relative; }
.product-head .lead { color: rgba(250, 249, 252, .74); }
.product-head .button { margin-top: 15px; }
.product-note { letter-spacing: .06em; color: var(--accent-light); margin: 18px 0 0; font-size: .7rem; font-weight: 600; }
.product-flow { background: rgba(14, 11, 43, .3); border: 1px solid rgba(255,255,255,.16); margin-top: 70px; padding: 25px 30px; position: relative; }
.product-flow > p { color: var(--accent-light); letter-spacing: .14em; text-transform: uppercase; font-size: .67rem; font-weight: 700; }
.product-flow ol { grid-template-columns: repeat(5,1fr); margin: 0; padding: 0; list-style: none; display: grid; }
.product-flow li { border-top: 1px solid rgba(255,255,255,.3); padding-top: 16px; font-weight: 700; position: relative; }
.product-flow li:before { content: ""; background: var(--accent-light); border-radius: 50%; width: 7px; height: 7px; position: absolute; top: -4px; left: 0; }
.product-flow li span { color: var(--accent-light); margin-bottom: 8px; font-size: .62rem; font-weight: 700; display: block; }
.feature-grid { border: 1px solid rgba(255,255,255,.16); grid-template-columns: repeat(2,1fr); margin-top: 22px; display: grid; position: relative; }
.feature-grid article { border-bottom: 1px solid rgba(255,255,255,.16); border-right: 1px solid rgba(255,255,255,.16); min-height: 220px; padding: 32px; }
.feature-grid article:nth-child(2n) { border-right: 0; }
.feature-grid article:nth-child(n+3) { border-bottom: 0; }
.feature-code { color: var(--accent-light); letter-spacing: .14em; font-size: .66rem; font-weight: 700; }
.feature-grid h3 { margin: 24px 0 10px; font-size: 1.45rem; }
.feature-grid article > p:last-child { color: rgba(250, 249, 252, .68); max-width: 480px; margin: 0; line-height: 1.65; }

/* ---------- Evidencia ---------- */
.case-list { border-top: 1px solid var(--line); margin-top: 70px; }
.case-study { border-bottom: 1px solid var(--line); grid-template-columns: .75fr 1.25fr; gap: 70px; padding: 58px 0; display: grid; }
.case-label { color: var(--accent); letter-spacing: .12em; text-transform: uppercase; font-size: .69rem; font-weight: 700; }
.case-heading h3 { letter-spacing: -.03em; max-width: 490px; font-size: 2rem; line-height: 1.15; }
.case-body dl { margin: 0; }
.case-body dl > div { grid-template-columns: 130px 1fr; gap: 25px; margin-bottom: 22px; display: grid; }
.case-body dt { color: var(--accent); letter-spacing: .1em; text-transform: uppercase; font-size: .68rem; font-weight: 700; }
.case-body dd { color: var(--muted); margin: 0; line-height: 1.65; }
.case-impact { background: #fff; padding: 20px; }
.case-impact dd { font-weight: 600; color: var(--navy) !important; }
.case-body ul { flex-wrap: wrap; gap: 9px; margin: 28px 0 0; padding: 0; list-style: none; display: flex; }
.case-body li { border: 1px solid var(--line); padding: 9px 12px; font-size: .74rem; font-weight: 600; }
.case-body li span { color: var(--accent); margin-right: 8px; font-size: .5rem; }

/* ---------- Fundador ---------- */
.founder-section { background: linear-gradient(145deg, var(--deep), var(--navy)); }
.founder-grid { grid-template-columns: .8fr 1.2fr; align-items: center; gap: 100px; display: grid; }
.portrait-wrap { max-width: 480px; position: relative; }
.portrait-frame { border: 1px solid rgba(255,255,255,.16); padding: 12px; position: relative; }
.portrait-frame:before { content: ""; border-top: 3px solid var(--accent); border-left: 3px solid var(--accent); width: 70px; height: 70px; position: absolute; inset: -10px auto auto -10px; }
.portrait-frame img { aspect-ratio: 1; object-fit: cover; filter: saturate(.82) contrast(1.03); }
.portrait-logo { opacity: .9; width: 190px; margin: 28px auto 0; }
.founder-copy h2 { max-width: 650px; }
.founder-copy blockquote {
  border-left: 3px solid var(--accent);
  color: var(--accent-light);
  margin: 38px 0 25px;
  padding-left: 25px;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.45;
}
.founder-bio { color: rgba(250, 249, 252, .72); max-width: 710px; line-height: 1.75; }
.founder-name { margin: 30px 0 2px; font-weight: 800; }
.founder-role { color: rgba(250, 249, 252, .52); font-size: .7rem; }
.credential-list { border-top: 1px solid rgba(255,255,255,.14); grid-template-columns: repeat(2,1fr); gap: 0; margin: 30px 0; padding: 0; list-style: none; display: grid; }
.credential-list li { color: rgba(250, 249, 252, .72); border-bottom: 1px solid rgba(255,255,255,.14); padding: 13px 12px 13px 0; font-size: .82rem; }

/* ---------- Contacto ---------- */
.contact-section { background: var(--paper-soft); }
.contact-grid { grid-template-columns: .9fr 1.1fr; align-items: start; gap: 100px; display: grid; }
.contact-grid h2 { max-width: 550px; }
.contact-grid .lead { max-width: 580px; margin-top: 30px; }
.direct-contact { margin-top: 45px; font-size: .75rem; }
.direct-contact span { color: var(--muted); margin-bottom: 8px; display: block; }
.direct-contact a { color: var(--accent); font-size: .9rem; font-weight: 700; }
.contact-form { background: var(--navy); color: #fff; padding: 38px; border-radius: 12px; }
.contact-form label { color: var(--accent-light); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 22px; font-size: .68rem; font-weight: 700; display: block; }
.form-row { grid-template-columns: 1fr 1fr; gap: 18px; display: grid; }
.contact-form input, .contact-form textarea {
  color: #fff;
  width: 100%;
  letter-spacing: 0;
  text-transform: none;
  background: rgba(14, 11, 43, .6);
  border: 1px solid rgba(255,255,255,.19);
  border-radius: 0;
  outline: none;
  margin-top: 9px;
  padding: 14px 15px;
  font-size: .95rem;
  display: block;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent-light); }
.contact-form ::placeholder { color: rgba(255,255,255,.38); }
.form-note { color: rgba(255,255,255,.5); margin-left: 18px; font-size: .7rem; display: inline; }

/* ---------- Footer ---------- */
.footer { background: var(--deep); padding: 58px 0 22px; }
.footer-main { grid-template-columns: 1.2fr .8fr .5fr; align-items: start; gap: 70px; display: grid; }
.footer-main > div p { color: rgba(250, 249, 252, .52); max-width: 390px; margin: 18px 0 0; font-size: .85rem; line-height: 1.6; }
.footer-tagline { color: var(--accent-light); font-size: 1.35rem; font-weight: 600; }
.footer nav { flex-direction: column; gap: 13px; font-size: .8rem; display: flex; }
.footer nav a:hover { color: var(--accent-light); }
.footer-bottom {
  color: rgba(250, 249, 252, .4);
  border-top: 1px solid rgba(255,255,255,.1);
  justify-content: space-between;
  margin-top: 50px;
  padding-top: 20px;
  font-size: .64rem;
  display: flex;
}

/* ---------- Responsive ---------- */
@media (width <= 900px) {
  .nav-links { display: none; }
  .hero { padding-top: 85px; }
  .hero-grid, .split-intro, .product-head, .founder-grid, .contact-grid { grid-template-columns: 1fr; gap: 55px; }
  .hero-copy { padding-bottom: 0; }
  .signal-card { max-width: 520px; min-height: 330px; }
  .method-steps { grid-template-columns: repeat(2,1fr); gap: 45px 0; }
  .dimensions-panel { grid-template-columns: 1fr; }
  .dimensions-panel ul { grid-template-columns: repeat(2,1fr); gap: 20px 0; }
  .method-outcome { grid-column: 1; }
  .case-study { grid-template-columns: 1fr; gap: 25px; }
  .founder-grid { grid-template-columns: .75fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (width <= 620px) {
  .shell { width: min(100% - 32px, 1180px); }
  .section { padding: 72px 0; }
  .nav-inner { min-height: 67px; }
  .brand-word { font-size: 1.15rem; }
  .brand-mark { width: 26px; }
  .nav-cta { display: none; }
  .nav-actions { gap: 10px; }
  .hero { padding-top: 72px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.8rem); }
  .hero-body { font-size: 1.02rem; }
  .button-row { flex-direction: column; align-items: flex-start; }
  .signal-card { margin-inline: -16px; padding: 28px 24px; }
  .hero-sector { flex-direction: column; align-items: flex-start; gap: 8px; padding-block: 20px; }
  .method-steps { grid-template-columns: 1fr; gap: 35px; }
  .dimensions-panel { padding: 25px 20px; }
  .dimensions-panel ul { grid-template-columns: 1fr; }
  .dimensions-panel li { padding: 12px 0 12px 15px; }
  .product-flow { padding: 23px 20px; }
  .product-flow ol { grid-template-columns: 1fr; }
  .product-flow li { border-top: 0; border-left: 1px solid rgba(255,255,255,.3); padding: 12px 0 12px 20px; }
  .product-flow li:before { top: 18px; left: -4px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article, .feature-grid article:nth-child(2n), .feature-grid article:nth-child(n+3) { border-bottom: 1px solid rgba(255,255,255,.16); border-right: 0; }
  .feature-grid article:last-child { border-bottom: 0; }
  .case-body dl > div { grid-template-columns: 1fr; gap: 8px; }
  .founder-grid { grid-template-columns: 1fr; }
  .portrait-logo { width: 170px; }
  .credential-list { grid-template-columns: 1fr; }
  .contact-form { margin-inline: -16px; padding: 26px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form .button { width: 100%; }
  .form-note { text-align: center; margin: 14px 0 0; display: block; }
  .footer-main { grid-template-columns: 1fr; gap: 35px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, :before, :after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
