/* =========================================================
   Orvix Studio — estilos (diseño v2)
   Azul Orvix #050BDF · Azul Noche #02046B · Tinta #0B0C1E
   Geist (texto y titulares) · Geist Mono (etiquetas y números)
   ========================================================= */

/* ---------- Tipografías alojadas en la propia web ---------- */
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin.woff2") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
/* Fuentes de reserva con las mismas medidas: evitan saltos de diseño mientras carga Geist */
@font-face { font-family: "Geist Fallback"; src: local("Arial"); ascent-override: 95.94%; descent-override: 28.16%; line-gap-override: 0%; size-adjust: 104.76%; }
@font-face { font-family: "Geist Mono Fallback"; src: local("Arial"); ascent-override: 74.67%; descent-override: 21.92%; line-gap-override: 0%; size-adjust: 134.59%; }

:root {
  --bg: #FFFFFF;
  --bg2: #F5F5F2;
  --fg: #0B0C1E;
  --muted: #5A5B6E;
  --line: rgba(11, 12, 30, .10);
  --card: #FFFFFF;
  --acc: #050BDF;
  --acc-t: #050BDF;
  --deep: #02046B;
  --mist: #ECEDFD;
  --slot: #E9E9EE;
  --sh: 0 1px 2px rgba(11, 12, 30, .04), 0 18px 40px -18px rgba(11, 12, 30, .18);

  --max: 1280px;
  --pad-x: clamp(20px, 4vw, 40px);
  --pad-y: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", "Geist Mono Fallback", ui-monospace, SFMono-Regular, Menlo, monospace;
}
html[data-theme="dark"] {
  --bg: #0B0C1E;
  --bg2: #10122A;
  --fg: #F3F2EE;
  --muted: #A3A4B8;
  --line: rgba(243, 242, 238, .10);
  --card: #14162E;
  --acc-t: #9DA0FF;
  --mist: #181B45;
  --slot: #1C1F3A;
  --sh: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); color: var(--fg); scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; transition: background-color .4s, color .4s; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
main { flex: 1; }
a { color: var(--acc-t); text-decoration: none; }
a:hover { color: var(--fg); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, textarea, select, button { font: inherit; color: inherit; }
::selection { background: #050BDF; color: #F3F2EE; }
:focus-visible { outline: 2px solid var(--acc-t); outline-offset: 3px; border-radius: 6px; }
.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; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--acc); color: #FFFFFF; }
.skip:focus { top: 12px; color: #FFFFFF; }

.container { max-width: var(--max); margin: 0 auto; }
.section { padding: var(--pad-y) var(--pad-x); }
.section--alt { background: var(--bg2); transition: background-color .4s; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--acc-t); }
.h2 { font-weight: 500; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.head--center { align-items: center; text-align: center; max-width: none; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 48px; }
/* Evita que rejillas y columnas se ensanchen por encima del contenedor en móviles */
.stack > *, .hero__grid > *, .split > *, .process__grid > * { min-width: 0; }

/* Huecos de imagen (se sustituyen por <img> cuando haya fotos reales) */
.slot { position: relative; width: 100%; height: 100%; background: var(--slot); display: grid; place-items: center; overflow: hidden; }
.slot__inner { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.4; }
.slot__inner svg { width: 22px; height: 22px; opacity: .8; }
.slot img, .media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Botones ---------- */
.btn { height: 50px; padding: 0 22px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 500; font-size: 16px; white-space: nowrap; flex: none; border: 1px solid transparent; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, opacity .25s; }
.btn--primary { background: var(--acc); color: #FFFFFF; box-shadow: 0 8px 24px -10px rgba(5, 11, 223, .6); }
.btn--primary:hover { background: var(--deep); color: #FFFFFF; }
.btn--outline { border-color: var(--line); color: var(--fg); background: transparent; }
.btn--outline:hover { background: var(--bg2); color: var(--fg); }
.btn--sm { height: 38px; padding: 0 16px; border-radius: 8px; font-size: 14px; gap: 8px; box-shadow: none; }

/* ---------- Cabecera ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); transition: background-color .4s; }
.header__inner { max-width: var(--max); margin: 0 auto; padding: 14px var(--pad-x); display: flex; align-items: center; gap: 32px; }
.logo { display: block; width: 104px; flex: none; color: var(--acc-t); }
.logo:hover { color: var(--acc-t); }
.logo svg { width: 100%; height: auto; }
.nav { display: flex; gap: 28px; flex: 1; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--fg); }
.header__right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang { height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 12px; color: var(--fg); white-space: nowrap; flex: none; }
.lang:hover { color: var(--fg); background: var(--bg2); }
.lang .off { opacity: .62; }
.theme { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; cursor: pointer; flex: none; }
.theme span { width: 13px; height: 13px; border-radius: 50%; background: linear-gradient(90deg, var(--fg) 50%, transparent 50%); border: 1.5px solid var(--fg); }
.burger { width: 44px; height: 44px; border-radius: 8px; border: 0; background: var(--acc); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; flex: none; }
.burger span { width: 16px; height: 1.5px; background: #FFFFFF; transition: transform .3s var(--ease), opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 73px 0 0 0; z-index: 49; background: var(--bg); padding: 16px 20px 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; overflow-y: auto; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { color: var(--fg); font-size: 26px; font-weight: 500; letter-spacing: -.02em; padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.mobile-menu nav a span:last-child { color: var(--muted); }
.mobile-menu .btn { height: 54px; width: 100%; }
@media (max-width: 1080px) {
  .nav, .header__cta { display: none; }
  .burger { display: flex; }
}
@media (min-width: 1081px) { .mobile-menu { display: none !important; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) var(--pad-x) clamp(48px, 6vw, 80px); }
.hero__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero__text { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 13px; color: var(--muted); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: #1DB45A; box-shadow: 0 0 0 4px rgba(29, 180, 90, .15); }
.hero h1 { font-weight: 500; font-size: clamp(40px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.hero__lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--muted); max-width: 520px; text-wrap: pretty; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__media { position: relative; }
.hero__img { aspect-ratio: 5 / 4; border-radius: 20px; overflow: hidden; box-shadow: var(--sh); }
.float-card { position: absolute; left: clamp(-24px, -2vw, 0px); bottom: -28px; width: min(300px, 80%); padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); display: flex; gap: 14px; align-items: center; color: var(--fg); }
.float-card:hover { color: var(--acc-t); }
.float-card__img { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; flex: none; }
.float-card small { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; margin-bottom: 4px; }
.float-card strong { font-weight: 500; font-size: 15px; }

/* ---------- Logos de clientes ---------- */
.clients { padding: 40px var(--pad-x) 24px; }
.clients__inner { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; gap: 20px; padding-top: 32px; border-top: 1px solid var(--line); }
.clients__inner > span { font-size: 13px; color: var(--muted); }
.clients__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.clients__grid > * { height: 64px; border-radius: 10px; background: var(--bg2); overflow: hidden; display: grid; place-items: center; padding: 6px 20px; }
.clients__grid img { max-height: 52px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.clients__grid > *:hover img { filter: none; opacity: 1; }
html[data-theme="dark"] .clients__grid img, html[data-theme="dark"] .clients__grid > *:hover img { filter: grayscale(1) invert(1); }
html[data-theme="dark"] .clients__grid > *:hover img { opacity: 1; }

/* ---------- Tarjetas de servicio ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.card { border-radius: 16px; border: 1px solid var(--line); background: var(--card); overflow: hidden; display: flex; flex-direction: column; color: var(--fg); transition: transform .3s, box-shadow .3s; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--sh); color: var(--fg); }
.card__img { aspect-ratio: 4 / 3; }
.card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__num { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.card h3 { font-weight: 500; font-size: 20px; letter-spacing: -.01em; line-height: 1.25; }
.card p { color: var(--muted); line-height: 1.55; font-size: 15px; }
.card__more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 500; color: var(--acc-t); }
.card__more span { display: inline-block; transition: transform .25s var(--ease); }
a.card:hover .card__more span { transform: translateX(4px); }

/* ---------- Proyectos ---------- */
.featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--line); color: var(--fg); transition: box-shadow .3s; }
.featured:hover { box-shadow: var(--sh); color: var(--fg); }
.featured__img { aspect-ratio: 16 / 11; min-height: 100%; overflow: hidden; }
.featured__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.featured__body h3 { font-weight: 500; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; line-height: 1.1; }
.featured__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.work-card__meta { padding: 20px 24px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.work-card__meta h3 { font-size: 18px; }
.featured__text { display: flex; flex-direction: column; gap: 16px; }
.featured__kicker { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.featured__body p { color: var(--muted); line-height: 1.6; font-size: 16px; text-wrap: pretty; }
.featured__foot > span:first-child { font-size: 14px; color: var(--muted); }
.featured__more { font-weight: 500; color: var(--acc-t); white-space: nowrap; }
.featured .media img { transition: transform .6s var(--ease); }
.featured:hover .media img { transform: scale(1.02); }

/* ---------- Caso de éxito ---------- */
.case { padding: clamp(32px, 5vw, 64px) var(--pad-x) clamp(72px, 9vw, 128px); }
.case__inner { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.case__inner > * { min-width: 0; }
.case__back { align-self: flex-start; font-size: 14px; color: var(--muted); }
.case__back:hover { color: var(--fg); }
.case__head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; align-items: end; }
.case__title { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.case h1 { font-weight: 500; font-size: clamp(40px, 5.4vw, 72px); letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
.case__visit { margin-top: 6px; font-size: 15px; font-weight: 500; color: var(--acc-t); }
.case__visit:hover { color: var(--fg); }
.case__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.case__meta > div { padding: 16px 18px; background: var(--bg); transition: background-color .4s; }
.case__meta dt { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.case__meta dd { margin: 0; font-weight: 500; line-height: 1.35; }
.case__client { display: flex; align-items: center; gap: 12px; }
.case__client img { width: 44px; height: 44px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: #FFFFFF; }
.case__client small { display: block; font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 2px; }
.case__meta dd a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.case__meta dd a:hover { color: var(--acc-t); text-decoration-color: currentColor; }
@media (max-width: 500px) {
  .case__meta { grid-template-columns: 1fr 1fr; }
  .case__meta > div:first-child { grid-column: 1 / -1; }
}
.case__hero { aspect-ratio: 16 / 8; border-radius: 20px; overflow: hidden; background: var(--slot); box-shadow: var(--sh); }
.case__text { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 40px; }
.case__text > div { display: flex; flex-direction: column; gap: 12px; }
.case__text h2 { font-weight: 500; font-size: 22px; }
.case__text p { color: var(--muted); line-height: 1.65; font-size: 16px; text-wrap: pretty; }
.case__gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.case__gallery > figure { margin: 0; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--slot); }
.case__next { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding: 28px 32px; border-radius: 16px; background: var(--bg2); color: var(--fg); }
.case__next:hover { color: var(--acc-t); }
.case__next > span { font-size: 14px; color: var(--muted); }
.case__next strong { font-weight: 500; font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -.02em; }

/* ---------- Proceso (siempre oscuro) ---------- */
.process { background: #0B0C1E; color: #F3F2EE; }
.process .eyebrow { color: #9DA0FF; }
.process__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: clamp(40px, 6vw, 80px); align-items: center; }
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid rgba(243, 242, 238, .12); }
.step__n { width: 40px; height: 40px; border-radius: 10px; background: rgba(157, 160, 255, .12); color: #9DA0FF; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; }
.step h3 { font-size: 18px; font-weight: 500; margin-bottom: 6px; }
.step p { color: #A3A4B8; line-height: 1.55; font-size: 15px; }
.process__img { aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; }
.process__img .slot { background: #1C1F3A; }
.process__img .slot__inner { color: #A3A4B8; }

/* ---------- Sobre nosotros ---------- */
.about__top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: clamp(40px, 6vw, 80px); align-items: end; }
.about__top > p { font-size: 18px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 400px)); gap: 20px; }
.member { display: flex; flex-direction: column; gap: 14px; }
.member__img { aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; }
.member__name { font-weight: 500; }
.member__role { color: var(--muted); font-size: 14px; }

/* ---------- Testimonios ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.quote { padding: 32px; border-radius: 16px; background: var(--bg2); display: flex; flex-direction: column; justify-content: space-between; gap: 36px; }
.quote__stars { color: var(--acc-t); letter-spacing: 3px; font-size: 14px; }
.quote blockquote { font-size: 18px; line-height: 1.55; text-wrap: pretty; margin-top: 20px; }
.quote figcaption { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.quote__avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; }

/* ---------- Precios ---------- */
.plan-group { display: flex; flex-direction: column; gap: 20px; }
.plan-group__title { display: flex; align-items: center; gap: 16px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.plan-group__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.plans { display: grid; gap: 20px; align-items: stretch; }
.plans--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.plans--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.plan { position: relative; padding: 32px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; }
.plan--hot { border: 1.5px solid #050BDF; box-shadow: var(--sh); }
.plan__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan h3 { font-weight: 500; font-size: 18px; }
.plan__badge { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--acc); color: #FFFFFF; white-space: nowrap; }
.plan__price { display: flex; flex-direction: column; gap: 6px; }
.plan__price strong { font-size: 40px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.plan__price span { font-size: 14px; color: var(--muted); }
.plan ul { padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 12px; line-height: 1.4; font-size: 15px; }
.check { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.check circle { fill: var(--mist); }
.check path { stroke: var(--acc-t); }
.maint { padding: 16px; border-radius: 12px; background: var(--bg2); display: flex; flex-direction: column; gap: 6px; }
.maint__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 500; }
.maint__head span:last-child { color: var(--acc-t); white-space: nowrap; }
.maint p { font-size: 13px; line-height: 1.5; color: var(--muted); }
.plan .btn { height: 48px; width: 100%; }
.plan .btn--outline { border-color: var(--line); }

/* ---------- FAQ ---------- */
.faq { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 40px 80px; }
.faq__head { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; }
.faq__head p { color: var(--muted); line-height: 1.6; }
.faq__list { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.faq__item { border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.faq__item h3 { font-size: inherit; font-weight: inherit; }
.faq__q { width: 100%; background: none; border: 0; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 24px; text-align: left; cursor: pointer; font-size: 16px; font-weight: 500; color: var(--fg); }
.faq__sign { width: 28px; height: 28px; border-radius: 8px; background: var(--bg2); display: grid; place-items: center; flex: none; color: var(--muted); }
.faq__a { padding: 0 22px 22px; max-width: 680px; color: var(--muted); line-height: 1.6; font-size: 15px; }
.faq__a a, .prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contacto (siempre azul) ---------- */
.contact { background: #050BDF; color: #FFFFFF; }
.contact__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: 24px; }
.contact .eyebrow { color: #FFFFFF; opacity: .8; }
.contact h2 { font-weight: 500; font-size: clamp(34px, 4.4vw, 60px); letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; }
.contact__info > p { font-size: 17px; line-height: 1.6; max-width: 420px; opacity: .9; }
.contact__links { display: flex; flex-direction: column; gap: 18px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); }
.contact__links div { display: flex; flex-direction: column; gap: 2px; }
.contact__links span { font-size: 13px; opacity: .75; }
.contact__links a { color: #FFFFFF; font-size: 20px; font-weight: 500; }
.contact__links a:hover { color: #DCDDFB; }
.form-card { padding: clamp(24px, 3vw, 36px); border-radius: 20px; background: var(--card); color: var(--fg); box-shadow: 0 30px 60px -30px rgba(2, 4, 107, .6); }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
.form input, .form select, .form textarea { height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); outline: none; transition: border-color .2s, box-shadow .2s; }
.form select { padding: 0 10px; }
.form textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: #050BDF; box-shadow: 0 0 0 3px rgba(5, 11, 223, .15); }
.form .is-invalid { border-color: #D93025; box-shadow: 0 0 0 3px rgba(217, 48, 37, .12); }
.form .full { grid-column: 1 / -1; }
.form button[type="submit"] { grid-column: 1 / -1; height: 50px; border-radius: 10px; border: 0; background: #050BDF; color: #FFFFFF; font-weight: 500; font-size: 16px; cursor: pointer; transition: background-color .25s; }
.form button[type="submit"]:hover { background: #02046B; }
.form__note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); text-align: center; }
.sent { padding: 48px 8px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.sent__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--mist); color: var(--acc-t); display: grid; place-items: center; font-size: 22px; }
.sent strong { font-size: 24px; font-weight: 500; }
.sent p { color: var(--muted); }
.sent button { background: none; border: 0; padding: 0; color: var(--acc-t); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pie ---------- */
.footer { padding: 56px var(--pad-x) 32px; background: var(--bg); transition: background-color .4s; }
.footer__inner { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.footer__brand .logo { width: 120px; }
.footer__brand p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; font-size: 14px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col strong { font-weight: 500; }
.footer__col a { color: var(--muted); }
.footer__col a:hover { color: var(--fg); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer__bottom a { color: var(--muted); }
.footer__bottom a:hover { color: var(--fg); }

/* ---------- Páginas de servicio ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; color: var(--muted); }
.breadcrumb li { display: inline-flex; gap: 10px; }
.breadcrumb li + li::before { content: "/"; opacity: .6; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover, .breadcrumb [aria-current] { color: var(--fg); }
.service-hero .hero__text { gap: 24px; }
.prose { display: flex; flex-direction: column; gap: 18px; }
.prose p { color: var(--muted); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; max-width: 640px; }
.split { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 80px); align-items: start; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.feature { padding: 28px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 10px; }
.feature .check { width: 28px; height: 28px; margin-bottom: 6px; }
.feature h3 { font-weight: 500; font-size: 18px; }
.feature p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 12px; }
.fit li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); line-height: 1.5; }
.maint-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.maint-card { padding: 28px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.maint-card strong { font-size: 32px; font-weight: 500; letter-spacing: -.03em; }
.maint-card p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound h1 { font-weight: 500; font-size: clamp(40px, 5.4vw, 72px); letter-spacing: -.035em; line-height: 1.04; margin: 14px 0 20px; }
.notfound p { max-width: 520px; color: var(--muted); font-size: 18px; margin-bottom: 28px; }

/* ---------- Aparición al hacer scroll ---------- */
[data-reveal] { transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.rv [data-reveal]:not([data-in]):not([data-reveal="load"]) { opacity: 0; transform: translateY(24px); }
html.rv [data-reveal="load"] { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.rv [data-reveal]:not([data-in]):not([data-reveal="load"]) { opacity: 1; transform: none; }
  html.rv [data-reveal="load"] { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Móviles muy estrechos (320–400 px) */
@media (max-width: 400px) {
  .header__inner { gap: 12px; }
  .logo { width: 88px; }
  .header__right { gap: 6px; }
  .hero h1 { font-size: min(34px, 9.2vw); }
}
