/* Qualitec Perú — estilos del sitio (portado del diseño V5, sistema "Modernist"). */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/archivo-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-serif-display-latin-400-normal.woff2") format("woff2"); }

:root {
  --ink: #121419;
  --ink-2: #262a33;
  --muted: #4b5160;
  --muted-2: #5d6371;
  --muted-3: #6b7180;
  --bg: #F3F4F7;
  --white: #ffffff;
  --accent: #4A52D9;
  --accent-dark: #3C43C2;
  --accent-soft: #eceefe;
  --accent-hover: #f4f5ff;
  --line: #d8dbe2;
  --line-2: #e3e5eb;
  --font-heading: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --shadow-md: 0 3px 10px color-mix(in srgb, #2d2b2b 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);
  --gutter: clamp(20px, 5vw, 64px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; -webkit-text-size-adjust: 100%; scrollbar-color: #aab0bd var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.55; text-wrap: pretty; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent-dark); }
img, svg { display: block; }
button { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[tabindex="-1"]:focus-visible { outline: none; }
::selection { background: #c9ccff; color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--muted-3); }
[hidden] { display: none !important; }

@keyframes qpulse { 0%, 100% { opacity: 1 } 50% { opacity: .25 } }
@keyframes qblink { 0%, 100% { opacity: 1 } 50% { opacity: 0 } }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 14px; font-weight: 600; }
.skip-link:focus, .skip-link:hover { top: 12px; color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: 1320px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.band { background: var(--white); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }

/* — tipografía compartida — */
.h2 { font-size: clamp(32px, 3.8vw, 52px); line-height: 1.05; letter-spacing: -.025em; }
.lead { font-size: 17px; line-height: 1.6; color: var(--muted); }
.heading { font-family: var(--font-heading); font-weight: 800; }
/* El punto índigo del logo cierra cada titular: la firma de la marca en toda la página. */
.stop { color: var(--accent); }
/* El cuadrado índigo es la viñeta del sistema (mismo signo que el punto del logo). */
.caps > li::before, .why > li::before { content: ""; position: absolute; left: 0; width: 9px; height: 9px; background: var(--accent); }

/* — botones — */
.btn { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; cursor: pointer; border: 0; }
.btn-primary { background: var(--accent); color: var(--white); padding: 15px 20px; }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.btn-outline { border: 2px solid var(--ink); color: var(--ink); padding: 13px 20px; background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-arrow { justify-content: space-between; min-width: 230px; }

/* — cabecera — */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 2px solid var(--line); }
.header-row { height: 80px; display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { display: inline-flex; flex-direction: column; line-height: .9; font-size: 38px; }
.logo-mark .w { font-family: var(--font-heading); font-weight: 800; letter-spacing: -.045em; }
.logo-mark .dot { color: var(--accent); }
.logo-mark .sub { font-family: var(--font-heading); font-size: .3em; font-weight: 700; letter-spacing: .56em; margin-top: .32em; padding-left: .08em; }
.main-nav { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.main-nav a { font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--accent); }
.main-nav a.is-active { color: var(--accent-dark); border-bottom-color: var(--accent); }
.header-cta { background: var(--accent); color: var(--white); font-weight: 600; font-size: 15px; padding: 11px 18px; }
.header-cta:hover { background: var(--accent-dark); color: var(--white); }
.menu-btn { display: none; margin-left: auto; font-weight: 600; font-size: 15px; padding: 10px 16px; background: transparent; color: var(--ink); border: 2px solid var(--ink); cursor: pointer; }
.mobile-menu { border-top: 2px solid var(--line); padding: 8px var(--gutter) 24px; display: flex; flex-direction: column; background: var(--white); }
.mobile-menu a { font-family: var(--font-heading); font-weight: 800; font-size: 26px; padding: 12px 0; border-bottom: 2px solid var(--line-2); }
.mobile-menu .mobile-cta { margin-top: 20px; display: flex; justify-content: space-between; align-items: center; background: var(--accent); color: var(--white); font-family: var(--font-body); font-weight: 600; font-size: 15px; padding: 14px 18px; border: 0; }
.progress { position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 1079px) {
  .main-nav, .header-cta { display: none; }
  .menu-btn { display: block; }
}
@media (min-width: 1080px) { .mobile-menu { display: none !important; } }

/* — hero — */
.hero { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr)); gap: clamp(40px, 5vw, 64px); align-items: center; }
.hero > * { min-width: 0; }
.hero h1 { font-size: clamp(36px, 4.3vw, 62px); line-height: 1.04; letter-spacing: -.03em; }
.hero h1 > span { display: block; }
.hero h1 .typed { color: var(--accent); min-height: 1.03em; }
.caret { display: inline-block; width: .07em; height: .82em; background: var(--accent); margin-left: .05em; vertical-align: -.06em; animation: qblink 1s steps(1) infinite; }
.hero .intro { margin-top: 30px; font-size: 18px; line-height: 1.6; max-width: 50ch; color: var(--muted); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.hero-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; border-top: 2px solid var(--ink); }
.hero-points > div { padding: 18px 16px 0 0; }
.hero-points .t { font-family: var(--font-heading); font-weight: 800; font-size: 15px; }
.hero-points .d { margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.hero-visual { position: relative; height: clamp(320px, 46vw, 580px); overflow: hidden; cursor: crosshair; }
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* — secciones — */
.section { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(48px, 6vw, 80px); }
.section-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px 72px; align-items: end; margin-bottom: 48px; }
.section-head .lead { max-width: 52ch; }

.grid-cards { display: grid; gap: 2px; background: var(--line); border: 2px solid var(--line); }
/* — servicios: tarjetas de la V5 — */
.services { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.service { background: var(--white); padding: 32px 28px 36px; display: flex; flex-direction: column; gap: 14px; min-height: 300px; transition: background-color .25s; }
.service:hover { background: var(--accent-hover); }
.service .top { display: flex; justify-content: space-between; align-items: center; }
.service .ico { width: 44px; height: 44px; background: var(--accent-soft); display: grid; place-items: center; }
.service .num { font-family: var(--font-heading); font-weight: 800; font-size: 14px; color: var(--muted-3); font-feature-settings: "tnum" 1; }
.service h3 { margin-top: 18px; font-size: 25px; line-height: 1.12; letter-spacing: -.015em; }
.service p { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.service .tags { margin-top: auto; padding-top: 8px; }
.service-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; font-size: 15px; color: var(--accent-dark); }
.service-link:hover { color: var(--ink); }
/* Tarjeta entera como enlace ("Otros servicios" en las páginas de servicio). Flex en vez de grid para que la última fila
   se estire y no quede una celda vacía con 5 tarjetas. */
.others { display: flex; flex-wrap: wrap; }
.others > .service { flex: 1 1 210px; }
@media (max-width: 1099px) { .others > .service { flex-basis: 260px; } }
@media (max-width: 759px) { .others > .service { flex-basis: 100%; } }
.service.other { min-height: 0; color: var(--ink); }
.service.other .service-link { margin-top: auto; padding-top: 8px; }
.service.other:hover .service-link { color: var(--ink); }

/* — cinta de tecnologías de la V5 — */
.marquee { background: var(--white); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); overflow: hidden; }
.marquee ul { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: qmarquee 45s linear infinite; }
.marquee:hover ul { animation-play-state: paused; }
.marquee li { display: flex; align-items: center; gap: 20px; padding: 20px; font-family: var(--font-heading); font-weight: 800; font-size: 21px; white-space: nowrap; color: var(--ink-2); }
.marquee li::after { content: ""; width: 7px; height: 7px; background: var(--accent); display: block; }
@keyframes qmarquee { to { transform: translateX(-50%) } }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { font-size: 12px; font-weight: 600; padding: 5px 8px; border: 2px solid var(--line); color: var(--ink-2); }

/* — IA — */
.ia-grid { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(40px, 6vw, 88px); align-items: start; }
.ia-grid .lead { margin-top: 24px; max-width: 50ch; }
.caps { margin: 40px 0 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.caps > li { position: relative; padding: 18px 0 18px 26px; border-bottom: 2px solid var(--line-2); }
.caps > li::before { top: 25px; }
.caps h3 { font-size: 18px; line-height: 1.2; }
.caps p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--muted); }

.chat { border: 2px solid var(--ink); background: var(--white); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 2px solid var(--ink); }
.chat-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 800; font-size: 15px; }
.chat-title::before { content: ""; width: 9px; height: 9px; background: var(--accent); display: block; animation: qpulse 1.6s infinite; }
.chat-badge { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chat-log { height: 380px; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; background: #F7F8FA; }
.msg { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.msg .who { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.msg .bubble { max-width: 86%; padding: 12px 14px; font-size: 15px; line-height: 1.5; background: var(--white); color: var(--ink); border: 2px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me { align-items: flex-end; }
.msg.me .bubble { background: var(--accent); color: var(--white); border-color: var(--accent); }
.typing { display: flex; gap: 6px; padding: 8px 2px; }
.typing span { width: 8px; height: 8px; background: var(--accent); display: block; animation: qpulse 1s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px; border-top: 2px solid var(--line-2); }
.chat-suggest button { font-size: 13px; padding: 7px 10px; background: transparent; border: 2px solid var(--line); color: var(--ink-2); cursor: pointer; text-align: left; }
.chat-suggest button:hover { border-color: var(--accent); color: var(--accent-dark); }
.chat-form { display: flex; border-top: 2px solid var(--ink); }
.chat-form input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 16px 18px; border: 0; background: transparent; color: var(--ink); outline: none; }
.chat-form button { font-weight: 600; font-size: 15px; padding: 0 22px; border: 0; background: var(--accent); color: var(--white); cursor: pointer; }
.chat-form button:hover { background: var(--accent-dark); }

/* — proceso — */
.steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.step { text-align: left; cursor: pointer; border: 0; background: var(--white); color: var(--ink); padding: 24px 24px 28px; position: relative; display: flex; flex-direction: column; gap: 12px; }
.step:hover { background: var(--accent-hover); }
.step::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s; }
.step .n { font-size: 13px; font-feature-settings: "tnum" 1; font-weight: 700; color: var(--muted-2); }
.step .t { font-family: var(--font-heading); font-weight: 800; font-size: 24px; letter-spacing: -.01em; }
.step[aria-selected="true"] { background: var(--accent-soft); }
.step[aria-selected="true"]::before { transform: scaleX(1); }
.step[aria-selected="true"] .n { color: var(--accent-dark); }
.step-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px 72px; padding: 40px 0 48px; border-bottom: 2px solid var(--line); }
.step-panel h3 { font-size: 30px; line-height: 1.12; letter-spacing: -.02em; }
.step-panel .lead { margin-top: 16px; max-width: 52ch; }
.deliv-title { margin: 0 0 12px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.deliv { margin: 0; padding: 0; list-style: none; }
.deliv li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 2px solid var(--line); font-size: 16px; }

/* — proyectos — */
.projects-section { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(64px, 9vw, 120px); }
.projects-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.filters { display: flex; border: 2px solid var(--ink); flex-wrap: wrap; }
.filters button { font-size: 14px; font-weight: 600; padding: 10px 18px; border: 0; cursor: pointer; background: var(--white); color: var(--ink); }
.filters button:hover { box-shadow: inset 0 -3px 0 var(--accent); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 40px 32px; }
.project { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.project .shot { aspect-ratio: 4 / 3; margin-top: 16px; display: flex; overflow: hidden; font-family: "DM Sans", system-ui, sans-serif; line-height: 1.3; }
.project .meta { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 18px; }
.project .cat { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; background: #e8e9fc; color: #2c3299; }
.project .sector { font-size: 13px; color: var(--muted); }
.project h3 { margin-top: 14px; font-size: 22px; line-height: 1.15; letter-spacing: -.01em; }
.project .desc { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.project .stack { margin-top: 12px; font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--muted-2); }

/* — por qué — */
.why-section { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px 72px; align-items: start; }
.why-title { font-size: clamp(38px, 4.8vw, 68px); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.why { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.why > li { position: relative; padding: 24px 0 24px 26px; border-bottom: 2px solid var(--line); }
.why > li::before { top: 32px; }
.why h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.why p { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 52ch; }
@media (min-width: 900px) { .why-title { position: sticky; top: 128px; } }
@media (max-width: 899px) { .why-section { grid-template-columns: 1fr; } }

/* — FAQ — */
.faq-section { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 40px 72px; align-items: start; }
.faq-section .lead { margin-top: 24px; max-width: 40ch; }
.inline-link { color: var(--accent-dark); font-weight: 600; border-bottom: 2px solid currentColor; }
.faq { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 2px solid var(--line); }
.faq-item h3 { font-size: inherit; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; background: transparent; border: 0; cursor: pointer; text-align: left; color: var(--ink); }
.faq-q:hover { color: var(--accent-dark); }
.faq-q .q { font-family: var(--font-heading); font-weight: 800; font-size: 19px; line-height: 1.35; }
.faq-q .ico { flex: none; width: 28px; height: 28px; display: grid; place-items: center; background: transparent; color: var(--ink); border: 2px solid var(--ink); transition: transform .3s; }
.faq-q[aria-expanded="true"] .ico { background: var(--accent); color: var(--white); border-color: var(--accent); transform: rotate(45deg); }
.faq-a { padding: 0 48px 24px 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* — CTA — */
.cta { background: var(--accent); color: var(--white); }
.cta .wrap { padding-top: clamp(72px, 9vw, 112px); padding-bottom: clamp(72px, 9vw, 112px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; }
.cta h2 { font-size: clamp(40px, 5.6vw, 80px); line-height: 1.02; letter-spacing: -.03em; }
.cta h2 span { display: block; }
.cta .btn { background: var(--white); color: var(--ink); padding: 16px 22px; min-width: 240px; justify-content: space-between; }
.cta .btn:hover { background: var(--ink); color: var(--white); }

/* — contacto — */
.contact { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px 96px; align-items: start; }
.contact .lead { margin-top: 24px; max-width: 44ch; }
.contact-list { margin-top: 40px; border-top: 2px solid var(--ink); }
.contact-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 2px solid var(--line); }
.contact-row .lbl { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-row .val { display: block; margin-top: 4px; font-family: var(--font-heading); font-weight: 800; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -.01em; overflow-wrap: anywhere; }
.contact-row .val-plain { display: block; margin-top: 4px; font-size: 18px; }
.form-card { border: 2px solid var(--ink); padding: clamp(24px, 3vw, 40px); background: var(--white); box-shadow: var(--shadow-md); }
.form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px; }
.field > label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.input { width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--ink); caret-color: var(--accent); background: var(--white); border: 2px solid var(--line); border-radius: 0; transition: border-color .2s; }
.input:hover { border-color: #b4b9c5; }
.input:focus-visible { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px #dfe1fb; }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
.group-label { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { font-size: 14px; padding: 9px 12px; cursor: pointer; border: 2px solid var(--line); background: var(--white); color: var(--ink); text-align: left; }
.chips button:hover { border-color: var(--accent); }
.chips button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--white); }
.seg { display: flex; border: 2px solid var(--ink); flex-wrap: wrap; }
.seg button { font-size: 14px; flex: 1; min-width: 110px; padding: 10px 12px; border: 0; cursor: pointer; background: var(--white); color: var(--ink); text-align: left; }
.seg button:hover { box-shadow: inset 0 -3px 0 var(--accent); }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--white); }
.form-error { font-size: 14px; color: #a3241b; font-weight: 600; }
.form-submit { width: 100%; justify-content: space-between; padding: 16px 20px; }
.form-note { font-size: 13px; line-height: 1.5; color: var(--muted); }
.sent { display: flex; flex-direction: column; gap: 16px; }
.sent h3 { display: flex; align-items: center; gap: 14px; font-size: 30px; line-height: 1.1; }
.sent h3 svg { flex: none; color: var(--accent); }
.sent p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.sent .row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.sent .row .btn { font-size: 15px; padding: 13px 18px; }
.sent .row .btn-outline { padding: 11px 18px; }

/* — pie — */
.site-footer { background: var(--ink); color: var(--white); }
.site-footer .wrap { padding-top: 72px; padding-bottom: 32px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 40px; }
.site-footer .logo-mark { font-size: 44px; color: var(--white); }
.site-footer .logo-mark .dot { color: #8b93ff; }
.foot-about { margin-top: 16px; font-size: 14px; line-height: 1.6; max-width: 32ch; color: #c3c8d3; }
.foot-col h2 { margin: 0 0 16px; font-family: var(--font-body); font-weight: 400; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #9aa1b0; }
.foot-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a, .foot-bottom a { color: var(--white); font-size: 15px; overflow-wrap: anywhere; }
.foot-col a:hover, .foot-bottom a:hover { color: #a9aeff; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 2px solid var(--ink-2); font-size: 13px; color: #9aa1b0; }
.foot-bottom a { font-size: 13px; }
.to-top { display: inline-flex; align-items: center; gap: 6px; }

.fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; display: grid; place-items: center; background: var(--accent); color: var(--white); box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: opacity .3s; }
.fab.is-visible { opacity: 1; pointer-events: auto; }
.fab:hover { background: var(--accent-dark); color: var(--white); }

/* — páginas de servicio (/servicios/…) — */
.svc-hero { padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(56px, 7vw, 96px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(36px, 5vw, 64px); padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--muted-3); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-dark); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.svc-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px 72px; align-items: end; }
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); }
.eyebrow .ico { width: 44px; height: 44px; background: var(--accent-soft); display: grid; place-items: center; }
.svc-hero h1 { margin-top: 24px; font-size: clamp(34px, 4vw, 56px); line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.svc-hero .intro { margin-top: 28px; font-size: 18px; line-height: 1.6; max-width: 54ch; color: var(--muted); }
.svc-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.svc-aside { background: var(--white); border: 2px solid var(--ink); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-md); }
.svc-aside .deliv li { align-items: baseline; font-size: 15.5px; line-height: 1.5; }
.svc-aside .deliv li::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--accent); transform: translateY(-1px); }
.svc-aside-tech { margin-top: 28px; }
.features { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.feature { background: var(--white); padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 10px; }
.feature h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.01em; }
.feature p { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.svc-steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 0; padding: 0; list-style: none; }
.svc-step { position: relative; background: var(--white); padding: 28px 24px 32px; display: flex; flex-direction: column; gap: 10px; }
.svc-step::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--accent); }
.svc-step .n { font-size: 13px; font-weight: 700; font-feature-settings: "tnum" 1; color: var(--accent-dark); }
.svc-step h3 { font-size: 22px; line-height: 1.15; letter-spacing: -.01em; }
.svc-step p { font-size: 15px; line-height: 1.55; color: var(--muted); }
@media (max-width: 899px) { .svc-hero-grid { grid-template-columns: 1fr; } }

/* — página 404 — */
.notfound { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding-top: 80px; padding-bottom: 80px; }
.notfound h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -.03em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee ul { animation: none; flex-wrap: wrap; width: auto; }
  .marquee li[aria-hidden="true"] { display: none; }
  .caret { display: none; }
}
@media (max-width: 520px) {
  .hero-points { grid-template-columns: 1fr; }
  .hero-points > div { padding-right: 0; }
  .btn-arrow { min-width: 0; width: 100%; }
  .hero .actions .btn-outline, .svc-hero .actions .btn-outline { width: 100%; justify-content: center; }
  .chat-log { height: 340px; }
}
