/* APRI Control · web v3 (diseño Claude Design "Home v2", textos propios) */
/* Fuentes Red Hat (antes en fonts.css con @import: una petición encadenada que retrasaba el primer pintado) */
/* latin-ext */
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/redhatdisplay-1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/redhatdisplay-2.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+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/redhatdisplay-1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/redhatdisplay-2.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+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/redhatdisplay-1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/redhatdisplay-2.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+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/redhatdisplay-1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/redhatdisplay-2.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+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Red Hat Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/redhatmono-1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Red Hat Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/redhatmono-2.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+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Red Hat Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/redhatmono-1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Red Hat Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/redhatmono-2.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+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Red Hat Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/redhattext-1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Red Hat Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/redhattext-2.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+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Red Hat Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/redhattext-1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Red Hat Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/redhattext-2.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+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Red Hat Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/redhattext-1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Red Hat Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/redhattext-2.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+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Red Hat Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/redhattext-1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Red Hat Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/redhattext-2.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+FEFF, U+FFFD;
}

:root {
  --bg: #0E0F11; --card: #1E1F22; --card-2: #26282C; --chip: #2C2E33;
  --ink: #EEF0F2; --ink-2: #C8CCD1; --ink-3: #A7ACB3; --ink-4: #8B9097;
  --line: rgba(238, 240, 242, .12);
  --y: #FAD726; --y-hover: #FFE04D;
  --l-bg: #EEF0F2; --l-card: #FFFFFF; --l-ink: #1E1F22; --l-2: #33383F; --l-3: #6B7078; --l-line: #D9DCE1; --l-y: #8B6B00;
  --display: 'Red Hat Display', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text: 'Red Hat Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Red Hat Mono', ui-monospace, Consolas, monospace;
  --gutter: 56px; --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); -webkit-font-smoothing: antialiased; line-height: 1.5; }
img, video { max-width: 100%; display: block; }
a { color: var(--y); }
a:hover { color: var(--y-hover); }
:focus-visible { outline: 2px solid var(--y); outline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2, h3, .h2, .kicker, .btn, .nav, .pillar b, .prow b, .svc-list a, .svc-panel .body b, .tcard .verb, .tcard .what, .case h3, .case .kick, .tabs button,
.clients .box > span, .about .pts b, .about .more, .qa summary, .form-card .ttl, .fld > span, .tile span:last-child, .sent b, .nl .t b, .nl .t span,
.ft-col .h, .hdr-top .pill, .langs, .hero-copy .chip, .fab .acts a, .fab .acts button, .fab .tog, .ck button, .twin3d .scn button, .preview-bar { font-family: var(--display); }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
section[id] { scroll-margin-top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* etiquetas de sección con el isotipo */
.kicker { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 700; color: var(--ink-3); }
.kicker img { width: 14px; height: auto; }
.light .kicker { color: var(--l-3); }
.h2 { font-size: clamp(34px, 3.8vw, 54px); line-height: 1.04; font-weight: 800; letter-spacing: -.03em; }
.lead { font-size: 17px; line-height: 1.65; color: var(--ink-3); font-family: var(--text); }
.light .lead { color: var(--l-3); }

.btn { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 28px; border-radius: 6px; background: var(--y); color: var(--bg); text-decoration: none; font-weight: 800; font-size: 16px; border: none; cursor: pointer; font-family: var(--display); transition: background .15s; }
.btn:hover { background: var(--y-hover); color: var(--bg); }
.btn .arr { font-size: 19px; transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }
.link-y { color: var(--y); font-weight: 700; font-size: 15px; text-decoration: none; }

.light { background: var(--l-bg); color: var(--l-ink); }

/* hueco de foto (PhotoB del diseño) y foto real */
.photo { position: relative; width: 100%; height: 100%; min-height: 160px; border-radius: 10px; overflow: hidden; background-color: var(--chip); background-image: repeating-linear-gradient(115deg, rgba(238,240,242,.05) 0 2px, transparent 2px 14px); }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(22,24,27,0) 30%, rgba(14,15,17,.75) 100%); }
.photo .cap { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.5; color: var(--ink-2); font-family: var(--text); }
.photo .cap b { flex: none; padding: 3px 9px; border-radius: 20px; background: rgba(238,240,242,.14); font-size: 11px; letter-spacing: .04em; color: var(--ink); font-family: var(--display); }
.pic { position: relative; width: 100%; height: 100%; border-radius: 10px; overflow: hidden; background: #fff; }
.pic img, .pic video { width: 100%; height: 100%; object-fit: cover; }
.pcloud { position: relative; width: 100%; height: 100%; border-radius: 10px; overflow: hidden; background: #101215; }
.pcloud canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pcloud .src { position: absolute; left: 14px; bottom: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; padding: 5px 9px; border-radius: 6px; background: rgba(14,15,17,.82); color: var(--ink); }
.pic .src { position: absolute; left: 14px; bottom: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; padding: 5px 9px; border-radius: 6px; background: rgba(14,15,17,.82); color: var(--ink); }

/* ============ HEADER ============ */
.hdr { position: relative; z-index: 30; background: var(--bg); }
/* aviso de idioma (v3.js): discreto, fijo arriba, sin redirigir ni mover la página */
.lang-hint { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 8px 48px 8px 16px; position: fixed; top: 0; left: 0; right: 0; z-index: 60; background: var(--card); color: var(--ink); font-size: 13px; border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.35); } /* fija: no empuja la página (sin CLS) */
.lang-hint a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--y); text-underline-offset: 3px; }
.lang-hint button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 4px; background: transparent; color: var(--ink-3); font-size: 20px; line-height: 1; cursor: pointer; }
.lang-hint button:hover { color: var(--ink); }
.hdr-top { padding-top: 12px; }
.hdr-top .bar { height: 42px; padding: 0 6px 0 8px; border-radius: 6px; background: var(--card); display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--ink-3); }
.hdr-top .left { display: flex; align-items: center; gap: 14px; }
.hdr-top .pill { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 10px; border-radius: 15px; background: var(--chip); color: var(--ink); font-weight: 700; }
.hdr-top .pill img { width: 12px; }
.hdr-top .right { display: flex; align-items: center; gap: 16px; }
.hdr-top .li { display: flex; gap: 6px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 600; }
.hdr-top .li span { color: var(--y); }
.hdr-top .li:hover { color: var(--y); }
.langs { display: flex; align-items: center; gap: 2px; height: 30px; padding: 0 3px; border-radius: 4px; background: var(--bg); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.langs a { height: 24px; padding: 0 9px; border-radius: 3px; display: flex; align-items: center; color: var(--ink-3); text-decoration: none; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current="true"] { background: var(--y); color: var(--bg); }
.hdr-main { position: relative; height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hdr-main .logo img { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; font-size: 15.5px; font-weight: 600; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 16px; border-radius: 6px; }
.nav a:hover { background: var(--card-2); color: var(--ink); }
.hdr-cta { height: 48px; padding: 0 24px; font-size: 15px; font-weight: 700; }
.burger { display: none; width: 46px; height: 46px; border-radius: 6px; background: var(--card); border: none; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); }

/* ============ HERO ============ */
.hero-box { position: relative; height: clamp(560px, 78vh, 780px); border-radius: var(--radius); overflow: hidden; background: #1A1D21; }
.hero-box video, .hero-box .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-box video[data-hero] { opacity: 0; transition: opacity .5s; }
.hero-box video[data-hero].on { opacity: 1; }
.hero-box .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,15,17,.95) 0%, rgba(14,15,17,.82) 42%, rgba(14,15,17,.2) 82%); }
.hero-box .mark { position: absolute; right: -60px; top: -40px; width: 560px; opacity: .08; pointer-events: none; }
.hero-copy { position: absolute; left: 64px; right: 64px; bottom: 72px; max-width: 820px; display: flex; flex-direction: column; gap: 28px; }
.hero-copy .chip { align-self: flex-start; display: flex; gap: 10px; align-items: center; padding: 7px 14px 7px 10px; border-radius: 20px; background: rgba(238,240,242,.1); font-size: 13.5px; font-weight: 600; }
.hero-copy .chip img { width: 14px; }
.hero-copy h1 { font-size: clamp(40px, 5.2vw, 80px); line-height: 1; font-weight: 800; letter-spacing: -.035em; }
.hero-copy h1 em { font-style: normal; color: var(--y); }
.hero-copy p { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 640px; font-family: var(--text); }
.hero-label { position: absolute; right: 20px; bottom: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: rgba(238,240,242,.6); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.pillar { background: var(--card); border-radius: 10px; padding: 28px 30px; display: flex; gap: 18px; align-items: flex-start; }
.pillar img { width: 22px; margin-top: 4px; flex: none; }
.pillar b { display: block; font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.pillar span { font-size: 14.5px; line-height: 1.55; color: var(--ink-3); font-family: var(--text); }

/* ============ PROBLEMA ============ */
.problem { margin-top: 120px; }
.problem .grid { padding-block: 120px; display: grid; grid-template-columns: 5fr 7fr; gap: 80px; }
.problem .side { position: sticky; top: 40px; align-self: start; display: flex; flex-direction: column; gap: 24px; }
.problem .side .lead { max-width: 440px; }
.prow { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 36px 0; border-top: 1px solid var(--l-line); }
.prow:last-child { border-bottom: 1px solid var(--l-line); }
.prow .k { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.prow .k.now { color: var(--l-y); }
.prow .k.apri { color: var(--l-3); }
.prow b { font-size: 24px; line-height: 1.25; font-weight: 700; }
.prow p { font-size: 17px; line-height: 1.6; color: var(--l-2); font-family: var(--text); }

/* ============ SERVICIOS ============ */
.services { padding-block: 130px 110px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.sec-head > div:not(.tabs) { display: flex; flex-direction: column; gap: 22px; }
.sec-head .h2 { max-width: 780px; }
.sec-head .lead { max-width: 420px; }
.svc-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; margin-top: 64px; align-items: start; }
.svc-list a { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.svc-list a:last-child { border-bottom: 1px solid var(--line); }
.svc-list a span:first-child { font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; letter-spacing: -.02em; }
.svc-list a .ar { font-size: 22px; color: var(--y); opacity: 0; transition: opacity .15s, transform .15s; }
.svc-list a.on, .svc-list a:hover { color: var(--y); }
.svc-list a.on .ar { opacity: 1; transform: translateX(4px); }
.svc-panel { position: sticky; top: 40px; display: flex; flex-direction: column; gap: 20px; background: var(--card); border-radius: var(--radius); padding: 14px 14px 30px; }
.svc-panel .media { height: 300px; }
.svc-panel .body { padding: 0 18px; display: flex; flex-direction: column; gap: 14px; }
.svc-panel .body b { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.svc-panel .body p { font-size: 16px; line-height: 1.6; color: var(--ink-2); font-family: var(--text); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 6px 12px; border-radius: 20px; background: var(--chip); font-size: 13px; font-weight: 600; color: var(--ink); }

/* ============ TECNOLOGÍA ============ */
.tech .in { padding-block: 120px; }
.tech .top { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: end; }
.tech .top > div { display: flex; flex-direction: column; gap: 22px; }
.tech-row { display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr; margin-top: 64px; }
.tech-row .arrow { display: flex; align-items: center; justify-content: center; font-size: 24px; color: #8A9098; }
.tcard { background: var(--l-card); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.tcard .verb { font-size: 44px; font-weight: 800; letter-spacing: -.03em; }
.tcard .what { font-size: 15px; font-weight: 700; color: var(--l-3); }
.tcard p { font-size: 15.5px; line-height: 1.6; color: var(--l-2); flex: 1; font-family: var(--text); }
.tcard .brands { display: flex; flex-direction: column; gap: 8px; }
.tcard .brand { height: 56px; border-radius: 6px; background: var(--l-bg); display: flex; align-items: center; justify-content: center; }
.tcard .brand i { display: block; width: 120px; height: 26px; background: var(--l-2); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.tcard .brand.txt { border: 1px dashed var(--l-line); background: transparent; font-size: 13px; font-weight: 600; color: var(--l-3); }
.tcard.dark { background: var(--card); color: var(--ink); }
.tcard.dark .verb { color: var(--y); }
.tcard.dark .what { color: var(--ink-3); }
.tcard.dark p { color: var(--ink-2); }
.tcard.dark .brand { background: var(--chip); }
.tcard.dark .brand i { background: var(--ink); }

/* ============ GEMELO DIGITAL ============ */
.twin { padding-block: 130px 40px; }
.twin .grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.twin .txt { display: flex; flex-direction: column; gap: 26px; }
.twin .txt > p { font-size: 17px; line-height: 1.65; color: var(--ink-2); font-family: var(--text); }
.facts div { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); font-family: var(--text); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts div b { font-family: var(--mono); font-weight: 500; color: var(--y); font-size: 13px; padding-top: 2px; }
.twin-media { height: 520px; }
.twin .try { font-size: 15px; color: var(--y); font-weight: 600; }
.twin3d { background: var(--card); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.twin3d .stage { position: relative; height: 520px; border-radius: 10px; overflow: hidden; background: #E9ECEF; }
.twin3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.twin3d .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: grayscale(.3); transition: opacity .4s; }
.twin3d .load { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: linear-gradient(180deg, rgba(14,15,17,.25), rgba(14,15,17,.6)); }
.twin3d .bar { display: none; width: 220px; height: 3px; border-radius: 2px; background: rgba(238,240,242,.25); overflow: hidden; }
.twin3d .bar i { display: block; width: 0; height: 100%; background: var(--y); transition: width .2s; }
.twin3d .mono { font-family: var(--mono); font-size: 12px; color: var(--ink); letter-spacing: .04em; }
.twin3d.loading .load .btn { display: none; }
.twin3d.loading .bar { display: block; }
.twin3d.ready .load, .twin3d.ready .poster { display: none; }
.twin3d .lbl, .twin3d .hint { position: absolute; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; padding: 5px 9px; border-radius: 6px; background: rgba(14,15,17,.82); color: var(--ink); pointer-events: none; }
.twin3d .lbl { left: 12px; top: 12px; }
.twin3d .hint { right: 12px; bottom: 12px; display: none; }
.twin3d.ready .hint { display: block; }
.twin3d.no-gl .load .btn, .twin3d.no-gl .bar { display: none; }
.twin3d .hmi { padding: 6px 8px 8px; display: flex; flex-direction: column; gap: 12px; }
.twin3d .status { font-family: var(--mono); font-size: 13px; padding: 10px 12px; border-radius: 4px; background: rgba(12,169,25,.14); color: #6FE07A; border-left: 3px solid #0CA919; }
.twin3d .status[data-level="fault"] { background: rgba(255,0,15,.14); color: #FF8A8F; border-left-color: #ff000f; }
.twin3d .status[data-level="reset"] { background: rgba(250,180,70,.16); color: #FAB446; border-left-color: #FAB446; }
.twin3d .scn { display: flex; flex-wrap: wrap; gap: 6px; }
.twin3d .scn button { height: 36px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--chip); color: var(--ink); font-family: var(--display); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.twin3d .scn button:hover { border-color: var(--ink-3); }
.twin3d .scn button[aria-pressed="true"] { background: var(--y); color: var(--bg); border-color: var(--y); }
.twin3d .legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12.5px; color: var(--ink-3); font-family: var(--text); }
.twin3d .legend .d { display: inline-block; width: 10px; height: 10px; border-radius: 5px; margin-right: -8px; }
.twin3d .legend .d.ok { background: #0CA919; } .twin3d .legend .d.reset { background: #FAB446; } .twin3d .legend .d.fault { background: #ff000f; }
/* gemelo en vídeo (sustituye al visor 3D): 16:9, la imagen fija queda debajo hasta que el vídeo arranca */
.twin3d.vid .stage { height: auto; aspect-ratio: 16 / 9; }
.twin3d.vid .still, .twin3d.vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.twin3d.vid video { opacity: 0; transition: opacity .3s ease; }   /* el vídeo solo se ve durante el vuelo de cámara; se funde con la imagen */
.twin3d.vid.moving video { opacity: 1; }
.twin3d.vid .tour { position: absolute; right: 12px; bottom: 12px; height: 34px; padding: 0 12px; border: 0; border-radius: 6px; background: rgba(14,15,17,.82); color: var(--ink); font-family: var(--display); font-size: 13px; font-weight: 600; cursor: pointer; }
.twin3d.vid .tour:hover { background: var(--y); color: var(--bg); }

/* ============ PROYECTOS ============ */
.projects { padding-block: 110px 100px; }
.tabs { flex: none; display: flex; gap: 6px; background: var(--card); border-radius: 10px; padding: 6px; }
.tabs button { height: 44px; padding: 0 18px; border: none; border-radius: 6px; background: transparent; color: var(--ink-2); font-family: var(--display); font-size: 14.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--card); }
.case { display: grid; grid-template-columns: 7fr 5fr; gap: 12px; margin-top: 48px; }
.case[hidden] { display: none; }
.case .media { height: 560px; }
.case .card { background: var(--card); border-radius: var(--radius); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.case .card > div { display: flex; flex-direction: column; gap: 18px; }
.case .kick { font-size: 14px; font-weight: 700; color: var(--y); }
.case h3 { font-size: clamp(30px, 3vw, 42px); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.case p { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); font-family: var(--text); }
.case .tl { font-size: 13px; font-weight: 700; color: var(--ink-3); margin-bottom: 12px; display: block; }

/* ============ CLIENTES ============ */
.clients { padding-bottom: 130px; }
.clients .box { background: var(--card); border-radius: var(--radius); padding: 36px 40px; display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.clients .box > span { font-size: 17px; line-height: 1.4; font-weight: 700; }
.logos { display: flex; flex-wrap: wrap; gap: 8px; }
.logos span { width: 220px; max-width: 100%; height: 88px; border-radius: 6px; background: var(--card-2); display: flex; align-items: center; justify-content: center; padding: 0 22px; }
.logos img { max-width: 100%; max-height: 38px; width: auto; height: auto; }
.logos img.mono-w { filter: brightness(0) invert(1); } /* logos oscuros: versión blanca sobre fondo oscuro */

/* ============ NOSOTROS ============ */
.about { padding-bottom: 130px; }
.about .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.about .media { grid-column: 1 / span 8; grid-row: 1; height: 640px; }
.about .card { position: relative; z-index: 2; grid-column: 7 / span 6; grid-row: 1; align-self: center; background: var(--l-bg); color: var(--l-ink); border-radius: var(--radius); padding: 52px; display: flex; flex-direction: column; gap: 24px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.about .card h2 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; font-weight: 800; letter-spacing: -.025em; }
.about .card > p { font-size: 16px; line-height: 1.65; color: var(--l-2); font-family: var(--text); }
.about .pts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; font-size: 15px; line-height: 1.55; color: var(--l-2); font-family: var(--text); }
.about .pts b { color: var(--l-ink); font-family: var(--display); }
.about .more { align-self: flex-start; color: var(--l-ink); font-weight: 800; font-size: 15px; text-decoration: none; border-bottom: 2px solid var(--y); padding-bottom: 4px; }

/* ============ FAQ ============ */
.faq .grid { padding-block: 120px; display: grid; grid-template-columns: 4fr 8fr; gap: 80px; }
.faq .side { display: flex; flex-direction: column; gap: 22px; }
.faq .side .h2 { font-size: clamp(32px, 3vw, 44px); }
.faq .side p { font-size: 16px; line-height: 1.6; color: var(--l-3); font-family: var(--text); }
.faq .side strong { color: var(--l-ink); }
.qa { display: flex; flex-direction: column; gap: 8px; }
.qa details { background: var(--l-card); border-radius: 10px; }
.qa summary { list-style: none; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 28px; cursor: pointer; font-size: 19px; font-weight: 700; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .pm { width: 32px; height: 32px; flex: none; border-radius: 4px; background: var(--l-bg); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.qa summary .pm::before { content: "+"; }
.qa details[open] summary .pm::before { content: "\2212"; }
.qa details p { padding: 0 80px 26px 28px; font-size: 16px; line-height: 1.65; color: var(--l-2); font-family: var(--text); }

/* ============ CONTACTO ============ */
.contact { padding-block: 130px 150px; display: grid; grid-template-columns: 5fr 7fr; gap: 72px; }
.contact .side { display: flex; flex-direction: column; gap: 28px; }
.contact .side .lead { max-width: 460px; }
.tiles { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.tile { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 20px 24px; border-radius: 10px; background: var(--card); color: var(--ink); text-decoration: none; }
.tile span:first-child { font-size: 14px; color: var(--ink-3); }
.tile span:last-child { font-size: 17px; font-weight: 700; text-align: right; }
a.tile:hover { background: var(--card-2); color: var(--ink); }
.form-card { background: var(--l-bg); color: var(--l-ink); border-radius: var(--radius); padding: 48px; min-height: 640px; display: flex; flex-direction: column; }
.form-card form { display: flex; flex-direction: column; gap: 20px; }
.form-card .ttl { font-size: 22px; font-weight: 800; }
.f2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fld { display: flex; flex-direction: column; gap: 8px; }
.fld > span { font-size: 13.5px; font-weight: 700; color: var(--l-2); }
.fld input, .fld textarea { height: 52px; padding: 0 16px; border-radius: 6px; background: var(--l-card); border: 1px solid var(--l-line); color: var(--l-ink); font-family: var(--display); font-size: 16px; outline: none; }
.fld textarea { height: 150px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.fld input:focus, .fld textarea:focus { border-color: var(--l-ink); }
.fld input::placeholder, .fld textarea::placeholder { color: #7A8088; }
.chk { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--l-2); cursor: pointer; }
.chk input { width: 20px; height: 20px; margin: 0; accent-color: #1E1F22; flex: none; }
.chk a { color: var(--l-ink); }
.fld.files > span em { font-style: normal; font-weight: 500; color: var(--l-3); }
.drop { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px dashed #A7ACB3; border-radius: 6px; background: var(--l-card); cursor: pointer; }
.drop:hover, .drop:focus-within { border-color: var(--l-ink); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop b { font-family: var(--display); font-size: 15px; color: var(--l-ink); }
.drop small { font-size: 13px; color: var(--l-3); }
.flist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.flist:empty { display: none; }
.flist li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; background: var(--l-card); border: 1px solid var(--l-line); border-radius: 4px; font-size: 14px; color: var(--l-2); }
.flist li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flist li em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--l-3); }
.flist li button { width: 28px; height: 28px; border: 0; border-radius: 3px; background: var(--l-bg); color: var(--l-ink); font-size: 18px; cursor: pointer; }
.flist li button:hover { background: var(--l-line); }
.form-err { display: none; padding: 14px 16px; border-radius: 4px; background: #FCE5E2; color: #8C2A1F; font-size: 14.5px; }
.form-card .send { align-self: flex-start; margin-top: 6px; background: var(--l-ink); color: var(--y); height: 58px; padding: 0 32px; }
.form-card .send:hover { background: #000; color: var(--y); }
.form-card .send[disabled] { background: var(--l-line); color: var(--l-3); cursor: default; }
.hp { position: absolute; left: -9999px; }
.sent { flex: 1; display: none; flex-direction: column; justify-content: center; gap: 22px; }
.form-card.is-sent form { display: none; }
.form-card.is-sent .sent { display: flex; }
.sent .ok { width: 72px; height: 72px; border-radius: 10px; background: var(--y); color: var(--l-ink); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; }
.sent b { font-size: 40px; line-height: 1.05; font-weight: 800; letter-spacing: -.025em; }
.sent p { font-size: 17px; line-height: 1.6; color: var(--l-2); max-width: 440px; font-family: var(--text); }

/* ============ FOOTER ============ */
.nl { position: relative; top: -1px; background: var(--l-bg); color: var(--l-ink); border-radius: 0 0 var(--radius) var(--radius); padding: 52px 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.nl .t { display: flex; flex-direction: column; gap: 12px; }
.nl .t span { font-size: 14px; font-weight: 700; color: var(--l-3); }
.nl .t b { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; max-width: 540px; }
.nl form { display: flex; flex-direction: column; gap: 14px; }
.nl .row { display: flex; gap: 8px; }
.nl input[type=email] { flex: 1; min-width: 0; height: 54px; border: 1px solid var(--l-line); border-radius: 6px; background: var(--l-card); padding: 0 18px; font-family: var(--display); font-size: 15px; color: var(--l-ink); outline: none; }
.nl button { height: 54px; border: none; border-radius: 6px; background: var(--l-ink); color: var(--y); padding: 0 26px; font-family: var(--display); font-weight: 700; font-size: 15px; cursor: pointer; }
.nl .chk { font-size: 13px; color: var(--l-3); }
.nl .nl-msg { margin: 0; padding: 12px 14px; border-radius: 4px; background: var(--l-card); border: 1px solid var(--l-line); font-size: 14px; line-height: 1.5; color: var(--l-ink); }
.nl .nl-msg.bad { background: #FCE5E2; border-color: #F3C9C3; color: #8C2A1F; }
.nl button:disabled { opacity: .6; cursor: wait; }
.ft-cols { padding-block: 80px 56px; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr .8fr .8fr; gap: 40px; }
.ft-cols .brand { display: flex; flex-direction: column; gap: 22px; }
.ft-cols .brand img { height: 56px; width: auto; align-self: flex-start; }
.ft-cols .brand p { font-size: 14.5px; line-height: 1.65; color: var(--ink-3); max-width: 320px; font-family: var(--text); }
.ft-col { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; line-height: 1.6; }
.ft-col .h { font-size: 13px; font-weight: 700; color: var(--y); margin-bottom: 6px; }
.ft-col a { color: var(--ink); text-decoration: none; }
.ft-col a:hover { color: var(--y); }
.ft-bottom { padding-block: 24px 32px; display: flex; justify-content: space-between; gap: 24px; font-size: 12.5px; color: var(--ink-4); border-top: 1px solid rgba(238,240,242,.08); }

/* FAB */
.fab { position: fixed; right: 28px; bottom: 28px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab .acts { display: none; flex-direction: column; gap: 6px; align-items: flex-end; }
.fab.open .acts { display: flex; }
.fab .acts a, .fab .acts button { display: flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 6px; background: var(--ink); color: var(--l-ink); text-decoration: none; font-size: 14px; font-weight: 700; border: none; cursor: pointer; font-family: var(--display); box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.fab .tog { width: 60px; height: 60px; border: none; border-radius: 10px; background: var(--y); color: var(--bg); font-size: 28px; cursor: pointer; box-shadow: 0 10px 24px rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; font-family: var(--display); }

/* Cookies */
.ck { position: fixed; left: 20px; bottom: 20px; z-index: 60; max-width: 520px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; display: none; flex-direction: column; gap: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.45); font-size: 14px; line-height: 1.55; color: var(--ink-2); font-family: var(--text); }
.ck.show { display: flex; }
.ck b { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--y); font-weight: 500; }
.ck .btns { display: flex; gap: 8px; justify-content: flex-end; }
.ck button { height: 40px; padding: 0 18px; border-radius: 6px; font-family: var(--display); font-weight: 700; font-size: 14px; cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--ink); }
.ck button.yes { background: var(--y); color: var(--bg); border-color: var(--y); }

.preview-bar { background: var(--y); color: var(--bg); font-size: 13px; font-weight: 700; text-align: center; padding: 8px 16px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: flex; }
  .hdr.menu-open .nav { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--card); border-radius: 10px; padding: 10px; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
  .tech-row { grid-template-columns: 1fr; gap: 12px; }
  .tech-row .arrow { display: none; }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --gutter: 20px; }
  .hdr-top .hide-m { display: none; }
  .hdr-cta { display: none; }
  .hdr-main { height: 84px; }
  .hdr-main .logo img { height: 44px; }
  .hero-copy { left: 24px; right: 24px; bottom: 36px; gap: 20px; }
  .hero-copy p { font-size: 17px; }
  .hero-box .shade { background: linear-gradient(0deg, rgba(14,15,17,.96) 20%, rgba(14,15,17,.6) 70%, rgba(14,15,17,.35) 100%); }
  .hero-box .mark, .hero-label { display: none; }
  .pillars, .problem .grid, .svc-grid, .tech .top, .twin .grid, .case, .clients .box, .faq .grid, .contact, .nl, .ft-cols { grid-template-columns: 1fr; }
  .problem { margin-top: 72px; }
  .problem .grid, .tech .in, .faq .grid { padding-block: 72px; gap: 40px; }
  .problem .side, .svc-panel { position: static; }
  .prow { grid-template-columns: 1fr; gap: 10px; }
  .services, .projects { padding-block: 80px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .tabs { overflow-x: auto; max-width: 100%; }
  .case .media { height: 300px; }
  .case .card { padding: 30px 24px; }
  .about .grid { display: flex; flex-direction: column; }
  .about .media { height: 320px; }
  .about .card { margin: -60px 12px 0; padding: 32px 24px; }
  .about .pts { grid-template-columns: 1fr; }
  .twin { padding-block: 80px 20px; }
  .twin-media { height: 300px; }
  .twin3d .stage { height: 360px; }
  .twin3d.vid .stage { height: auto; }
  .clients { padding-bottom: 80px; }
  .about { padding-bottom: 80px; }
  .contact { padding-block: 80px 100px; gap: 40px; }
  .form-card { padding: 28px 20px; min-height: 0; }
  .f2 { grid-template-columns: 1fr; }
  .qa summary { font-size: 17px; padding: 20px; }
  .qa details p { padding: 0 20px 22px; }
  .nl { padding: 36px 24px; gap: 28px; }
  .nl .row { flex-direction: column; }
  .ft-cols { gap: 32px; padding-block: 56px 40px; }
  .ft-bottom { flex-direction: column; gap: 6px; }
  .fab { right: 16px; bottom: 16px; }
  .ck { left: 12px; right: 12px; bottom: 12px; }
}
@media (max-width: 560px) {
  .langs a { padding: 0 6px; }
  .hdr-top .li { display: none; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-box video { display: none; }
}

/* ============ PÁGINAS INTERIORES (servicios y resto) ============ */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0 26px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--y); }
.crumbs [aria-current] { color: var(--ink); }
.sv-top { display: grid; grid-template-columns: 6fr 6fr; gap: 48px; align-items: center; }
.sv-copy { display: flex; flex-direction: column; gap: 24px; }
.sv-copy h1 { font-family: var(--display); font-size: clamp(38px, 4.4vw, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.sv-copy p { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 580px; }
.sv-copy .btn { align-self: flex-start; }
.sv-media { height: 440px; }
.sv-ficha { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 40px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.sv-ficha div { background: var(--bg); padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; }
.sv-ficha dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.sv-ficha dd { margin: 0; font-family: var(--display); font-size: 16.5px; font-weight: 700; }
.sv-extra { padding-block: 100px 90px; display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.sv-extra .lead { font-size: 18px; color: var(--ink-2); }
.sv-hero { padding-bottom: 20px; }
.sv-inc .in, .sv-need .in { padding-block: 110px; display: flex; flex-direction: column; gap: 22px; }
.sv-inc .h2 { max-width: 860px; }
.sv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.sv-item { background: var(--l-card); border-radius: 6px; padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.sv-item .code { font-family: var(--mono); font-size: 12px; color: var(--l-y); }
.sv-item h3 { font-family: var(--display); font-size: 20px; font-weight: 700; }
.sv-item p { font-size: 15.5px; line-height: 1.6; color: var(--l-2); }
.sv-proc { padding-block: 110px; display: flex; flex-direction: column; gap: 22px; }
.steps6 { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.steps6 li { background: var(--card); border-radius: 6px; padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.steps6 .num { font-family: var(--mono); font-size: 13px; color: var(--y); }
.steps6 h3 { font-family: var(--display); font-size: 20px; font-weight: 700; }
.steps6 p { font-size: 15px; line-height: 1.6; color: var(--ink-2); flex: 1; }
.steps6 .deliv { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 12px; }
.sv-two { display: grid !important; grid-template-columns: 1fr 1fr; gap: 64px; }
.sv-two > div { display: flex; flex-direction: column; gap: 20px; }
ul.sq { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
ul.sq li { position: relative; padding-left: 22px; font-size: 16.5px; line-height: 1.55; color: var(--l-2); }
ul.sq li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; background: var(--l-ink); }
.note { background: #FFF6CC; border-radius: 4px; padding: 14px 16px; font-size: 15px; color: var(--l-2); border-left: 3px solid var(--y); }
.tags-l span { background: var(--l-card); color: var(--l-ink); font-size: 14px; padding: 8px 14px; }
.sv-case { padding-block: 110px 40px; }
.sv-more { padding-block: 60px 20px; display: flex; flex-direction: column; gap: 22px; }
.sv-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.sv-links a { display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: var(--card); border-radius: 6px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 16px; }
.sv-links a:hover { background: var(--card-2); color: var(--y); }
.sv-links .code { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--ink-3); }
.sv-links .ar { margin-left: auto; color: var(--y); }
.sv-cta { padding-block: 60px 110px; }
.sv-cta .band { background: var(--card); border-radius: 10px; padding: 48px 52px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-left: 4px solid var(--y); }
.sv-cta h2 { font-family: var(--display); font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; font-weight: 800; letter-spacing: -.025em; max-width: 640px; }
.sv-cta p { color: var(--ink-2); margin-top: 10px; }
.sv-cta .btn { flex: none; }
@media (max-width: 960px) {
  .sv-top, .sv-extra, .sv-two { grid-template-columns: 1fr !important; gap: 32px; }
  .sv-media { height: 280px; }
  .sv-ficha { grid-template-columns: 1fr 1fr; }
  .sv-grid, .steps6 { grid-template-columns: 1fr; }
  .sv-extra, .sv-inc .in, .sv-need .in, .sv-proc, .sv-case { padding-block: 64px; }
  .sv-cta .band { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
}

/* ============ NAVEGACIÓN: página actual ============ */
.nav a[aria-current] { background: var(--card); box-shadow: inset 0 -2px 0 var(--y); }

/* ============ CABECERA SIN MEDIA ============ */
.pg-top { padding-bottom: 36px; }
.pg-top .sv-copy { max-width: 900px; }
.pg-top .sv-copy p { max-width: 720px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { padding: 10px 16px; border-radius: 6px; background: var(--card); color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 15px; }
.jump a:hover { background: var(--card-2); color: var(--y); }

/* listas y notas sobre fondo oscuro */
ul.sq.sq-dark li, .mk-sec:not(.light) ul.sq li { color: var(--ink-2); }
ul.sq.sq-dark li::before, .mk-sec:not(.light) ul.sq li::before { background: var(--y); }
.note-dark { background: var(--card); border-radius: 4px; padding: 14px 16px; font-size: 15px; color: var(--ink-2); border-left: 3px solid var(--y); }

/* ============ MARCAS ============ */
.mk-sec .in { padding-block: 110px; display: flex; flex-direction: column; gap: 22px; }
.mk-lead { max-width: 760px; }
.mk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.mk-card { background: var(--card); border-radius: 6px; padding: 30px 28px; display: flex; flex-direction: column; gap: 20px; color: var(--ink); }
.light .mk-card { background: var(--l-card); color: var(--l-ink); }
.mk-logo { height: 52px; display: flex; align-items: center; }
.mk-logo i { display: block; width: 150px; height: 36px; background: currentColor; -webkit-mask: var(--m) left center / contain no-repeat; mask: var(--m) left center / contain no-repeat; }
.mk-card dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.light .mk-card dl { background: var(--l-line); border-color: var(--l-line); }
.mk-card dl div { background: var(--card); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.light .mk-card dl div { background: var(--l-card); }
.mk-card dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.light .mk-card dt { color: var(--l-3); }
.mk-card dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 14.5px; }
.mk-card ul.sq { flex: 1; }
.mk-card ul.sq li { font-size: 15.5px; }
.mk-link { font-family: var(--display); font-weight: 700; font-size: 15px; text-decoration: none; color: var(--y); }
.light .mk-link { color: var(--l-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--y); text-decoration-thickness: 2px; }

/* ============ PROYECTOS ============ */
.pj .in { padding-block: 110px; display: flex; flex-direction: column; gap: 40px; }
.pj-top { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
.pj-media { height: 520px; }
.pj-txt { display: flex; flex-direction: column; gap: 20px; }
.pj-kick { font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--y); }
.light .pj-kick { color: var(--l-y); }
.pj-pts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pj-pts > div { background: var(--card); border-radius: 6px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.light .pj-pts > div { background: var(--l-card); }
.pj-pts .code { font-family: var(--mono); font-size: 12px; color: var(--y); }
.light .pj-pts .code { color: var(--l-y); }
.pj-pts h3 { font-family: var(--display); font-size: 19px; font-weight: 700; }
.pj-pts p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.light .pj-pts p { color: var(--l-2); }
.pj-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-3); }
.light .pj-links { color: var(--l-3); }
.pj-links a { font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: 0; text-decoration: none; color: var(--y); }
.light .pj-links a { color: var(--l-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--y); text-decoration-thickness: 2px; }

/* ============ NOSOTROS ============ */
ul.countries { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
ul.countries li { padding: 8px 14px; border-radius: 20px; background: var(--chip); font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--ink); }
.light-ficha { grid-template-columns: 1fr 1fr; background: var(--l-line); border-color: var(--l-line); margin-top: 8px; }
.light-ficha div { background: var(--l-card); }
.light-ficha dt { color: var(--l-3); }
.light-ficha dd { color: var(--l-ink); }

/* ============ GUÍAS ============ */
.guides-list { padding-block: 20px 60px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gcard { background: var(--card); border-radius: 6px; padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); border-top: 3px solid var(--y); transition: background .15s; }
a.gcard:hover { background: var(--card-2); color: var(--ink); }
.gcard .code { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--y); }
.gcard h2 { font-family: var(--display); font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.gcard p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); flex: 1; }
.gcard .go { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--y); }
.gcard.soon { border-top-color: var(--chip); }
.gcard.soon .code, .gcard.soon h2, .gcard.soon p { color: var(--ink-3); }

.guide { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 64px; padding-block: 30px 110px; align-items: start; }
.guide-body { display: flex; flex-direction: column; gap: 18px; max-width: 780px; }
.guide-body h2 { font-family: var(--display); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin-top: 34px; }
.guide-body h2:first-child { margin-top: 0; }
.guide-body > p { font-size: 17.5px; line-height: 1.7; color: var(--ink-2); }
.guide-body > p.src-note { font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--ink-3); border-left: 2px solid var(--line); padding-left: 12px; }
.src-note a { color: var(--ink-2); }
.guide-body > p.note-dark { font-size: 15px; }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tbl th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: var(--card); padding: 12px 18px; }
.tbl td { padding: 14px 18px; border-top: 1px solid var(--line); color: var(--ink-2); vertical-align: top; line-height: 1.5; }
.tbl td:first-child { font-family: var(--display); font-weight: 700; color: var(--ink); white-space: nowrap; }
.qa-dark details { background: var(--card); }
.qa-dark summary { color: var(--ink); font-size: 17px; }
.qa-dark summary .pm { background: var(--card-2); color: var(--ink); }
.qa-dark details p { color: var(--ink-2); }
.guide-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 12px; }
.side-card { background: var(--card); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.side-card b { font-family: var(--display); font-size: 21px; line-height: 1.2; }
.side-card p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.side-card .btn { align-self: flex-start; height: 48px; padding: 0 20px; font-size: 15px; }

/* ============ CALCULADORA ============ */
.calc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 12px; padding-block: 20px; align-items: start; }
.calc-in { background: var(--l-bg); color: var(--l-ink); border-radius: 10px; padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.calc-f small { font-size: 13px; line-height: 1.45; color: var(--l-3); }
.calc-row { display: flex; align-items: center; gap: 10px; }
.calc-row input { flex: 1; min-width: 0; font-family: var(--mono); }
.calc-row em { font-style: normal; font-family: var(--mono); font-size: 13px; color: var(--l-3); min-width: 56px; }
.calc-out { position: sticky; top: 24px; background: var(--card); border-radius: 10px; padding: 36px; display: flex; flex-direction: column; gap: 22px; border-top: 4px solid var(--y); }
.calc-big { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.calc-big b { font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; font-size: clamp(56px, 6vw, 84px); line-height: 1; color: var(--y); letter-spacing: -.03em; }
.calc-big span { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink-2); }
.calc-dl { margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.calc-dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.calc-dl dt { font-size: 14.5px; color: var(--ink-3); }
.calc-dl dd { margin: 0; font-family: var(--mono); font-size: 15px; color: var(--ink); white-space: nowrap; }
.calc-warn { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); background: var(--card-2); border-left: 3px solid var(--y); padding: 12px 14px; border-radius: 4px; }
.calc-warn[hidden] { display: none; }
.calc-note { font-size: 13px; line-height: 1.55; color: var(--ink-3); }
.calc .btn { align-self: flex-start; }
.calc-more { display: flex; flex-direction: column; gap: 24px; }

/* ============ LEGAL ============ */
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding-block: 20px 110px; align-items: start; }
.legal-nav { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 4px; }
.legal-nav a { padding: 10px 14px; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 15px; }
.legal-nav a:hover { background: var(--card); color: var(--ink); }
.legal-nav a[aria-current] { background: var(--card); color: var(--ink); box-shadow: inset 3px 0 0 var(--y); }
.legal-body { max-width: 820px; }
.legal-body h2 { font-family: var(--display); font-size: 22px; font-weight: 800; margin: 36px 0 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.legal-body p + p { margin-top: 12px; }
.legal-body ul { padding-left: 20px; margin: 10px 0; }
.legal-body b { color: var(--ink); }
.legal-body table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0; }
.legal-body th, .legal-body td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.legal-body th { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: var(--card); }
.legal-body code { font-family: var(--mono); font-size: 13px; background: var(--card); padding: 2px 6px; border-radius: 3px; }
.legal-body .btn { height: 48px; font-size: 15px; }

/* ============ ERROR (404 / 500) ============ */
.err { position: relative; min-height: calc(100vh - 140px); min-height: calc(100svh - 140px); display: flex; align-items: center; overflow: hidden; background: #1A1D21; }
.err-stage { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.err-stage.ready { opacity: 1; }
.err-stage canvas { display: block; width: 100%; height: 100%; }
.err::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(14,15,17,.6) 0%, rgba(14,15,17,0) 55%, rgba(14,15,17,.15) 100%), linear-gradient(180deg, rgba(14,15,17,0) 70%, rgba(14,15,17,.85) 100%); }
.err-in { position: relative; z-index: 2; width: 100%; display: flex; justify-content: flex-start; padding-block: 60px; }
.err-box { max-width: 520px; background: rgba(14,15,17,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 10px; padding: 36px 40px; display: flex; flex-direction: column; gap: 18px; }
.err-code { font-family: var(--mono); font-weight: 500; font-size: clamp(88px, 11vw, 140px); line-height: .9; letter-spacing: -.04em; color: var(--ink); }
.err-box .lead { color: var(--ink-2); }
.err-act { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(238,240,242,.3); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--y); color: var(--ink); background: transparent; }
.err-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--ink-3); }
.err-links a { color: var(--ink-2); font-weight: 600; }
.err-tag { position: absolute; right: var(--gutter); bottom: 22px; z-index: 2; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--ink-4); }

@media (max-width: 1100px) {
  .mk-grid, .guides-list { grid-template-columns: 1fr 1fr; }
  .pj-pts { grid-template-columns: 1fr 1fr; }
  .ft-cols { grid-template-columns: 1fr 1fr 1fr; }
  .ft-cols .brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .mk-sec .in, .pj .in { padding-block: 64px; }
  .pj-top, .guide, .calc, .legal { grid-template-columns: 1fr; gap: 32px; }
  .pj-media { height: 300px; }
  .guide-side, .calc-out, .legal-nav { position: static; }
  .legal-nav { flex-direction: row; flex-wrap: wrap; }
  .err, .err-in { align-items: flex-end; }
  .err-in { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .mk-grid, .guides-list, .pj-pts, .calc-in { grid-template-columns: 1fr; }
  .calc-in, .calc-out { padding: 24px 20px; }
  .err-box { padding: 26px 22px; }
  .tbl td:first-child { white-space: normal; }
}

/* botón del hero: ancho de su contenido */
.hero-copy .btn { align-self: flex-start; }

/* ============ CABECERA: desplegable de servicios ============ */
.nav-dd { position: relative; }
.nav-dd-btn { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.nav-dd-btn svg { width: 10px; height: 6px; transition: transform .15s; }
.nav-dd-btn:hover, .nav-dd.open .nav-dd-btn { background: var(--card-2); }
.nav-dd.current .nav-dd-btn { background: var(--card); box-shadow: inset 0 -2px 0 var(--y); }
.nav-dd.open .nav-dd-btn svg { transform: rotate(180deg); }
.nav-dd-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; min-width: 310px; flex-direction: column; gap: 2px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,.45); }
.nav-dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-dd.open .nav-dd-menu { display: flex; }
.nav .nav-dd-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; font-size: 15px; line-height: 1.3; }
.nav-dd-menu a .code { flex: none; min-width: 34px; }
#nav-dd-guias .nav-dd-menu { left: auto; right: 0; width: 360px; }
.nav-dd-menu a .code { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink-3); }
.nav .nav-dd-menu a[aria-current] { background: var(--card-2); box-shadow: inset 3px 0 0 var(--y); }
.nav .nav-dd-menu a.all { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; color: var(--y); }
@media (hover: hover) and (min-width: 961px) {
  .nav-dd:hover .nav-dd-menu { display: flex; }
  .nav-dd:hover .nav-dd-btn svg { transform: rotate(180deg); }
}
@media (max-width: 960px) {
  .nav-dd-btn { width: 100%; justify-content: space-between; }
  .nav-dd-menu { position: static; min-width: 0; margin: 2px 0 6px; padding: 4px 0 4px 10px; border: 0; border-left: 2px solid var(--line); border-radius: 0; box-shadow: none; background: none; }
  .nav-dd-menu::before { display: none; }
  #nav-dd-guias .nav-dd-menu { width: auto; }
}
