/* Andes Sigma — estilo corporativo */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff2") format("woff2"); }

:root {
  --navy: #08161d;
  --navy-2: #0e2630;
  --petrol: #12404d;
  --gold: #c39a3e;
  --gold-soft: #d8b25a;
  --teal: #2aa59d;
  --text: #16232a;
  --muted: #5d6b72;
  --line: #e2e6e8;
  --bg-alt: #f5f6f7;
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 500; line-height: 1.12; letter-spacing: -.025em; color: var(--navy); text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
h3 { font-size: 1.3rem; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: #c3d0d4; }
.section--dark h2, .section--dark h3 { color: #fff; }
.kicker { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.4rem; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.55; color: var(--muted); max-width: 54ch; }
.section--dark .lead { color: #9fb2b8; }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.head h2 { margin: 0; max-width: 16ch; }
.head .lead { margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .75rem; padding: 1rem 1.6rem; font: 500 .95rem/1 var(--font); letter-spacing: .01em; text-decoration: none; border: 1px solid transparent; border-radius: 2px; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn::after { content: "→"; transition: transform .25s; }
.btn:hover::after { transform: translateX(4px); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--petrol); }
.btn--line { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--line:hover { background: #fff; color: var(--navy); }
.btn--line-dark { border-color: var(--navy); color: var(--navy); }
.btn--line-dark:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.5rem; }
.textlink { display: inline-flex; gap: .6rem; align-items: center; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .25rem; }
.textlink::after { content: "→"; transition: transform .25s; }
.textlink:hover::after { transform: translateX(4px); }

/* Header */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; color: #fff; }
.page-plain .site-header { position: sticky; background: #fff; color: var(--navy); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; }
.brand img { width: 50px; }
.brand span { font-weight: 600; letter-spacing: .2em; font-size: .95rem; }
.nav { display: flex; align-items: center; gap: 2.4rem; }
.nav ul { display: flex; gap: 2.2rem; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: .95rem; font-weight: 500; color: inherit; opacity: .92; padding-block: .3rem; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--gold); }
.lang { display: flex; gap: .6rem; font-size: .82rem; font-weight: 600; letter-spacing: .08em; }
.lang a, .lang span { text-decoration: none; border: 0 !important; }
.lang a { opacity: .6; }
.lang span { color: var(--gold); }
.nav .btn { padding: .8rem 1.3rem; font-size: .88rem; border-bottom: 1px solid transparent; }
.nav .btn--gold { color: var(--navy); opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; color: inherit; padding: .4rem; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }
.skip { position: absolute; left: -9999px; top: .5rem; z-index: 100; background: var(--navy); color: #fff; padding: .6rem 1rem; }
.skip:focus { left: 1rem; }

/* Hero */
.hero { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: var(--navy); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,22,29,.55) 0%, rgba(8,22,29,.25) 35%, rgba(8,22,29,.85) 100%); }
.hero .container { padding-block: 10rem clamp(4rem, 9vw, 7rem); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: #d6e0e3; margin-top: 1.6rem; }
.hero--short { min-height: 78vh; }
.hero--health { background: radial-gradient(80% 90% at 85% 15%, #164f59 0%, #0c2b35 45%, #08161d 100%); }
.hero--health::after { background: linear-gradient(180deg, rgba(8,22,29,0) 40%, rgba(8,22,29,.6) 100%); }
.hero__ecg { position: absolute; left: 0; right: 0; top: 26%; height: 30%; z-index: -1; opacity: .5; }
.hero__ecg svg { width: 100%; height: 100%; }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 2.5rem; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); writing-mode: vertical-rl; }

/* Capabilities */
.caps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.cap { padding: 2.4rem 2rem 0 0; }
.cap + .cap { padding-left: 2rem; border-left: 1px solid var(--line); }
.cap__n { font-size: .8rem; color: var(--gold); font-weight: 600; letter-spacing: .12em; display: block; margin-bottom: 2.2rem; }
.cap h3 { margin-bottom: .6rem; }
.cap p { color: var(--muted); margin: 0; font-size: 1rem; }
.section--dark .caps { border-top-color: rgba(255,255,255,.14); }
.section--dark .cap + .cap { border-left-color: rgba(255,255,255,.14); }
.section--dark .cap p { color: #9fb2b8; }

/* Industries */
.industries { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.industry { position: relative; isolation: isolate; overflow: hidden; min-height: 620px; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(2rem, 4vw, 3.25rem); color: #fff; text-decoration: none; background: var(--navy); }
.industry__media { position: absolute; inset: 0; z-index: -2; }
.industry__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.industry:hover .industry__media img { transform: scale(1.04); }
.industry::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,22,29,.05) 30%, rgba(8,22,29,.9) 100%); }
.industry--health { background: radial-gradient(90% 80% at 80% 10%, #164f59 0%, #0c2b35 50%, #08161d 100%); }
.industry__ecg { position: absolute; left: 0; right: 0; top: 18%; height: 26%; z-index: -1; opacity: .8; }
.industry__ecg svg { width: 100%; height: 100%; }
.industry .kicker { margin-bottom: 1rem; }
.industry h3 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 14ch; margin-bottom: 1rem; }
.industry p { color: #c9d6da; max-width: 40ch; margin-bottom: 1.8rem; }
.industry .textlink { color: #fff; align-self: flex-start; }

/* Statement band */
.statement { font-size: clamp(1.8rem, 3.8vw, 3.2rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 500; color: #fff; max-width: 22ch; margin: 0; }
.statement em { font-style: normal; color: var(--gold-soft); }

/* Split image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Solutions list */
.solutions { border-top: 1px solid var(--line); }
.solution { display: grid; grid-template-columns: 80px 1fr 1.3fr; gap: 2rem; padding: 2.6rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.solution__n { color: var(--gold); font-weight: 600; font-size: .85rem; letter-spacing: .12em; }
.solution h3 { margin: 0; font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
.solution p { margin: 0; color: var(--muted); }

/* Experience (small photos) */
.works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.work figure { margin: 0; }
.work__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy); }
.work__img img, .work__img svg { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform .8s ease; }
.work:hover .work__img img { transform: scale(1.04); }
.work__tag { display: block; margin-top: 1.1rem; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.work h3 { font-size: 1.08rem; margin: .4rem 0 0; }

/* CTA */
.cta-band { background: var(--navy); color: #fff; }
.cta-band .container { padding-block: clamp(4.5rem, 9vw, 7.5rem); display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: end; }
.cta-band h2 { color: #fff; margin: 0; max-width: 18ch; }
.cta-band p { color: #9fb2b8; margin: 1rem 0 0; }

/* Contact */
.page-head { padding-block: clamp(4rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: 16ch; }
.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(3rem, 7vw, 7rem); }
.form { display: grid; gap: 1.4rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.form label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.form input, .form select, .form textarea { width: 100%; font: inherit; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid #b9c3c7; border-radius: 0; padding: .7rem 0; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--gold); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status-msg { padding: 1rem 1.2rem; background: var(--bg-alt); border-left: 2px solid var(--gold); }
.contact-info h3 { font-size: 1.6rem; }
.contact-info a { text-decoration: none; border-bottom: 1px solid var(--gold); }
.contact-info .kicker { margin-bottom: .8rem; }
.contact-info > div + div { margin-top: 2.5rem; }

/* Footer */
.site-footer { background: var(--navy); color: #8fa3a9; font-size: .92rem; border-top: 1px solid rgba(255,255,255,.08); }
.site-footer .container { padding-block: 4rem 2.5rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; color: #fff; font-weight: 600; letter-spacing: .2em; margin-bottom: 1.2rem; }
.footer-brand img { width: 46px; }
.site-footer h4 { color: #fff; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin: 0 0 1.2rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { color: #c9d6da; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-bottom { margin-top: 3.5rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .8rem; }

/* ECG animation */
.ecg-path { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: ecg-draw 3.5s ease-out forwards; }
@keyframes ecg-draw { to { stroke-dashoffset: 0; } }

/* Responsive */
@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 84px; left: 0; right: 0; background: var(--navy); color: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem var(--gutter) 2rem; display: none; }
  .page-plain .nav { background: #fff; color: var(--navy); border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 1rem 0; border-bottom: 1px solid rgba(127,127,127,.25); }
  .nav .lang { margin: 1.2rem 0; }
  .caps, .works { grid-template-columns: 1fr 1fr; }
  .cap:nth-child(3) { padding-left: 0; border-left: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .head, .industries, .split, .contact, .cta-band .container, .form .row { grid-template-columns: 1fr; }
  .industry { min-height: 480px; }
  .solution { grid-template-columns: 1fr; gap: .6rem; }
  .hero { min-height: 92svh; }
  .hero__ecg { top: 18%; height: 22%; opacity: .35; }
  .scroll-cue { display: none; }
}
@media (max-width: 520px) {
  .caps, .works, .footer-top { grid-template-columns: 1fr; }
  .cap, .cap + .cap { padding: 2rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .section--dark .cap { border-bottom-color: rgba(255,255,255,.14); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.lang { align-items: center; }
.nav .lang a, .lang span { padding: 0; }
.cta-band { background: var(--bg-alt); color: var(--text); }
.cta-band h2 { color: var(--navy); }
.cta-band p { color: var(--muted); }
.industry::after { background: linear-gradient(180deg, rgba(8,22,29,.1) 20%, rgba(8,22,29,.55) 55%, rgba(8,22,29,.92) 100%); }
.hero--health .hero__ecg { top: auto; bottom: 6%; height: 22%; opacity: .45; }

/* Showcase de plataforma */
.showcase__main { margin: 0; }
.showcase__main img { width: 100%; border: 1px solid rgba(255,255,255,.1); }
.showcase figcaption { font-size: .82rem; letter-spacing: .04em; color: #9fb2b8; margin-top: .9rem; }
.showcase__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.showcase__grid figure { margin: 0; }
.showcase__grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid rgba(255,255,255,.1); }
.showcase__note { margin: 2.5rem 0 0; font-size: .8rem; color: #6f8389; }
.caps--teal .cap__n { color: var(--teal); }
@media (max-width: 1040px) { .showcase__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .showcase__grid { grid-template-columns: 1fr; } }

/* Formulario: consentimiento */
.consent { display: flex; gap: .8rem; align-items: flex-start; font-size: .92rem; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.consent input { width: 18px; height: 18px; margin-top: .2rem; flex: none; accent-color: var(--navy); border: 1px solid #b9c3c7; }
.consent a { color: var(--navy); }
.status-msg[data-state="error"] { border-left-color: #b4483c; }

/* Páginas legales */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin: 2.4rem 0 .8rem; }
.prose p, .prose li { color: #33434a; }
.prose ul { padding-left: 1.2rem; }
.prose a { color: var(--navy); text-decoration-color: var(--gold); }
