/* ==========================================================================
   INPROYER v6 · Hoja de estilos
   Identidad: azul profundo + ámbar de obra · Space Grotesk / Manrope
   Formas: esquinas asimétricas (12/12/27/12 en botones, 22/22/90/22 en marcos)
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light;
  --heading: 'Space Grotesk', 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --paper: #f4f6f5;
  --surface: #ffffff;
  --surface-alt: #eaeff0;
  --ink: #102b42;
  --ink-soft: #2b4458;
  --ink-muted: #536879;
  --border: #d9e2e4;
  --border-strong: #c3cfd3;

  --accent: #ffbf00;
  --accent-hover: #ffd247;
  --accent-ink: #071c2c;
  --accent-text: #8a5f00;      /* ámbar legible sobre fondos claros */

  --navy: #0f2c42;
  --navy-2: #163d55;
  --navy-deep: #0a1d2d;
  --on-navy: #f3f7f8;
  --on-navy-muted: #b7c8d2;

  --danger: #b4432c;
  --success: #1f7a4b;

  --shell: 1360px;
  --gutter: clamp(18px, 4.2vw, 56px);
  --header-h: 84px;
  --radius-btn: 12px 12px 27px 12px;
  --radius-frame: 22px 22px 90px 22px;
  --radius-card: 20px 20px 56px 20px;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --shadow-sm: 0 6px 20px rgba(9, 34, 52, .06);
  --shadow-md: 0 18px 48px rgba(9, 34, 52, .1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0d1925;
  --surface: #132535;
  --surface-alt: #182d3e;
  --ink: #f2f6f7;
  --ink-soft: #d6e1e7;
  --ink-muted: #a9bcc8;
  --border: #283e4f;
  --border-strong: #375162;
  --accent: #ffc21b;
  --accent-hover: #ffd458;
  --accent-text: #ffc94a;
  --navy: #10283b;
  --navy-2: #173a52;
  --navy-deep: #08141f;
  --danger: #ff8d72;
  --success: #62d394;
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, .2);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, .28);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 28px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-width: 320px; overflow-x: clip;
  background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background-color .3s, color .3s;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--heading); font-weight: 600; letter-spacing: -.045em; line-height: 1.12; text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: normal; font-weight: 500; color: var(--ink-muted); }
p { text-wrap: pretty; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
[hidden] { display: none !important; }

.icon { width: 1.1em; height: 1.1em; flex: none; }
.shell { width: min(calc(100% - 2 * var(--gutter)), var(--shell)); margin-inline: auto; }
.section { padding-block: clamp(88px, 9vw, 148px); }
.section-tight { padding-block: clamp(64px, 7vw, 112px); }

.skip-link {
  position: fixed; z-index: 200; top: -80px; left: 14px;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 14px;
  padding: 12px 20px; border-radius: 10px; transition: top .2s;
}
.skip-link:focus { top: 14px; }

.section-label {
  display: block; font-family: var(--body); font-size: 11px; font-weight: 800;
  letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; color: var(--ink-muted);
}

/* Imagen responsiva: color de carga mientras llega la foto */
.media { position: relative; background: var(--ph, #1b3a4e); overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; }

.frame { position: relative; overflow: hidden; border-radius: 22px; background: var(--navy-2); isolation: isolate; }
.frame-br { border-radius: var(--radius-frame); }
.frame > .media, .frame > picture { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame img { transition: transform .9s var(--ease); }
@media (hover: hover) { .frame:hover img { transform: scale(1.03); } }
.frame figcaption {
  position: absolute; z-index: 2; left: 26px; bottom: 24px; right: 26px;
  color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
}
.frame:has(figcaption)::after {
  content: ""; position: absolute; inset: 50% 0 0; z-index: 1; pointer-events: none;
  background: linear-gradient(transparent, rgba(5, 23, 38, .68));
}

/* ---------- 3. Botones y enlaces ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 22px;
  min-height: 54px; padding: 14px 22px; border: 1px solid transparent; border-radius: var(--radius-btn);
  font-size: 14px; font-weight: 800; line-height: 1.2; white-space: nowrap;
  transition: background-color .22s, color .22s, border-color .22s, transform .22s, box-shadow .22s;
}
.button .icon { width: 18px; height: 18px; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--navy); color: #fff; }
.button-primary:hover { background: var(--navy-2); box-shadow: var(--shadow-md); }
html[data-theme="dark"] .button-primary { background: #eef3f5; color: #0a2336; }
html[data-theme="dark"] .button-primary:hover { background: #fff; }
.button-accent { background: var(--accent); color: var(--accent-ink); }
.button-accent:hover { background: var(--accent-hover); box-shadow: 0 12px 28px rgba(255, 191, 0, .22); }
.button-accent:focus-visible { outline-color: var(--ink); }
.button-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.button-line:hover { background: var(--ink); color: var(--paper); }
.button-line-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.button-line-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.button-ghost { border-color: rgba(255, 255, 255, .22); color: #fff; background: rgba(255, 255, 255, .04); justify-content: center; gap: 10px; }
.button-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 26px; width: max-content; max-width: 100%;
  padding-bottom: 9px; border-bottom: 1px solid currentColor;
  font-size: 14px; font-weight: 800; line-height: 1.3; transition: gap .22s, color .22s;
}
.arrow-link .icon { width: 17px; height: 17px; transition: transform .22s; }
.arrow-link:hover { gap: 34px; }
.arrow-link:hover .icon { transform: translate(2px, -2px); }
.arrow-link-light { color: var(--accent); }

/* ---------- 4. Menú flotante ---------- */
.site-header {
  position: fixed; z-index: 60; top: 14px; left: 0; right: 0; pointer-events: none;
  transition: transform .35s var(--ease);
}
.site-header.is-hidden { transform: translateY(calc(-100% - 20px)); }
.nav-shell {
  pointer-events: auto; position: relative;
  width: min(calc(100% - 32px), 1410px); margin-inline: auto; min-height: var(--header-h);
  display: flex; align-items: center; gap: 20px; padding: 10px 14px 10px 24px;
  border: 1px solid rgba(255, 255, 255, .85); border-radius: 22px;
  background: linear-gradient(108deg, rgba(255, 255, 255, .92), rgba(238, 245, 248, .8));
  -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 12px 38px rgba(2, 20, 33, .13), inset 0 1px rgba(255, 255, 255, .95);
  transition: min-height .3s var(--ease), box-shadow .3s, background .3s, border-color .3s;
}
html[data-theme="dark"] .nav-shell {
  background: linear-gradient(112deg, rgba(7, 23, 40, .9), rgba(13, 35, 56, .82));
  border-color: rgba(175, 205, 221, .16);
  box-shadow: 0 13px 42px rgba(0, 0, 0, .3), inset 0 1px rgba(226, 242, 249, .08);
}
.site-header.is-scrolled .nav-shell { min-height: 68px; box-shadow: 0 14px 40px rgba(2, 20, 33, .18), inset 0 1px rgba(255, 255, 255, .95); }

.brand { position: relative; display: block; width: 214px; flex: none; }
.brand img { width: 100%; height: auto; transition: opacity .3s; }
.brand .brand-dark { position: absolute; inset: 0; opacity: 0; }
html[data-theme="dark"] .brand .brand-light { opacity: 0; }
html[data-theme="dark"] .brand .brand-dark { opacity: 1; }

.desktop-nav { flex: 1; display: flex; justify-content: center; gap: clamp(18px, 2.6vw, 40px); }
.desktop-nav a {
  position: relative; padding: 8px 0; font-size: 14px; font-weight: 700; color: var(--ink-soft);
  white-space: nowrap; transition: color .2s;
}
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--ink); }
.desktop-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.desktop-nav a:hover::after { transform: scaleX(.35); }
.desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.theme-switch {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%;
  border: 1px solid rgba(7, 34, 51, .14); background: rgba(255, 255, 255, .6); color: var(--ink);
  transition: background .2s, border-color .2s, transform .3s var(--ease);
}
.theme-switch:hover { background: #fff; }
.theme-switch .icon { width: 19px; height: 19px; }
.theme-switch .sun-icon { display: none; }
html[data-theme="dark"] .theme-switch { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); }
html[data-theme="dark"] .theme-switch:hover { background: rgba(255, 255, 255, .14); }
html[data-theme="dark"] .theme-switch .sun-icon { display: block; }
html[data-theme="dark"] .theme-switch .moon-icon { display: none; }

.nav-contact {
  display: inline-flex; align-items: center; gap: 14px; padding: 14px 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 800; white-space: nowrap;
  transition: background .2s, transform .2s;
}
.nav-contact .icon { width: 17px; height: 17px; }
.nav-contact:hover { background: var(--accent-hover); }
.nav-contact:focus-visible { outline-color: var(--ink); }

.menu-toggle { display: none; position: relative; width: 46px; height: 46px; border: 0; background: none; border-radius: 12px; }
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 26px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

.mobile-nav {
  pointer-events: auto; position: absolute; top: calc(100% + 10px); left: 16px; right: 16px;
  max-height: calc(100svh - var(--header-h) - 50px); overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 22px 24px; border-radius: 22px 22px 64px 22px;
  background: rgba(250, 252, 252, .985); border: 1px solid rgba(12, 38, 59, .1);
  box-shadow: 0 24px 60px rgba(2, 20, 33, .22);
  opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease);
}
.mobile-nav.is-open { opacity: 1; transform: none; }
html[data-theme="dark"] .mobile-nav { background: rgba(9, 28, 45, .985); border-color: rgba(255, 255, 255, .1); }
.mobile-nav nav a {
  display: flex; align-items: baseline; gap: 16px; padding: 15px 2px; border-bottom: 1px solid var(--border);
  font-family: var(--heading); font-size: 26px; font-weight: 600; letter-spacing: -.04em; line-height: 1.15;
}
.mobile-nav nav a small { font-family: var(--body); font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--ink-muted); }
.mobile-nav nav a[aria-current="page"] { color: var(--accent-text); }
.mobile-nav-contact { padding-top: 22px; }
.mobile-nav-contact .button { width: 100%; }
.mobile-nav-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.mobile-nav-quick a {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px;
  border: 1px solid var(--border-strong); border-radius: 12px; font-size: 14px; font-weight: 700;
}
.mobile-nav-contact p { margin-top: 20px; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #082036;
  min-height: clamp(760px, 100svh, 1000px);
  padding-top: calc(var(--header-h) + 64px); padding-bottom: 36px;
  display: flex; flex-direction: column;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo img { object-position: 60% center; transform: scale(1.015); transition: transform 1.4s var(--ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .hero:hover .hero-photo img { transform: scale(1.035); } }
html[data-theme="light"] .photo-dark, html[data-theme="dark"] .photo-light { display: none; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 20, 34, .84) 0%, rgba(4, 26, 45, .62) 38%, rgba(5, 29, 47, .2) 68%, rgba(5, 23, 38, .28) 100%),
    linear-gradient(180deg, rgba(2, 13, 24, .3) 0%, transparent 24%, rgba(2, 15, 27, .1) 62%, rgba(2, 13, 24, .82) 100%);
}
html[data-theme="dark"] .hero-scrim {
  background:
    linear-gradient(90deg, rgba(1, 10, 20, .82) 0%, rgba(1, 12, 24, .58) 40%, rgba(1, 12, 24, .22) 70%, rgba(1, 12, 24, .3) 100%),
    linear-gradient(180deg, rgba(0, 8, 18, .3) 0%, transparent 24%, rgba(0, 7, 17, .18) 60%, rgba(0, 8, 18, .86) 100%);
}
.hero-glow { position: absolute; inset: 0; pointer-events: none; opacity: .55; background: radial-gradient(ellipse 34% 46% at 10% 14%, rgba(255, 232, 182, .16), transparent 72%); }
html[data-theme="dark"] .hero-glow { opacity: .9; background: radial-gradient(ellipse 26% 36% at 76% 38%, rgba(255, 191, 72, .14), transparent 74%); }
@media (prefers-reduced-motion: no-preference) {
  .hero-glow { animation: hero-glow 18s ease-in-out infinite alternate; }
  @keyframes hero-glow { from { transform: translate(-2%, 1%); } to { transform: translate(3%, -2%); } }
}

.hero-stage {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: end;
}
.hero-copy { max-width: 980px; }
.hero-kicker {
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
  font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .88);
}
.hero-kicker-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(255, 191, 0, .2); flex: none; }
.hero h1 {
  font-family: var(--heading); font-size: clamp(64px, 8vw, 118px); font-weight: 700;
  line-height: .95; letter-spacing: -.065em; text-transform: uppercase; color: #fff; text-wrap: initial;
}
.hero h1 span { color: var(--accent); }
.hero-summary { max-width: 640px; margin-top: 28px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.75; font-weight: 500; color: rgba(255, 255, 255, .9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 800; transition: transform .22s, background .22s, border-color .22s;
}
.hero-cta .icon { width: 18px; height: 18px; }
.hero-cta:hover { transform: translateY(-2px); }
.hero-cta-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.hero-cta-primary:hover { background: var(--accent-hover); }
.hero-cta-primary:focus-visible { outline-color: #fff; }
.hero-cta-secondary { border: 1px solid rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .07); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-cta-secondary:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }

.hero-sidecard { padding-bottom: 54px; max-width: 250px; }
.hero-sidecard-kicker { font-size: 10px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.hero-sidecard-title { margin-top: 12px; font-family: var(--heading); font-size: clamp(27px, 2.4vw, 36px); font-weight: 600; line-height: 1.1; letter-spacing: -.045em; }
.hero-sidecard-rule { display: block; width: 72px; height: 3px; margin: 19px 0 16px; background: var(--accent); }
.hero-sidecard-region { font-size: 10px; font-weight: 700; line-height: 1.8; letter-spacing: .13em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }

.hero-band {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px 18px 46px 18px; overflow: hidden;
  background: rgba(3, 19, 33, .46); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.hero-band-item {
  position: relative; display: flex; align-items: center; gap: 16px; min-height: 96px; padding: 18px 22px;
  border-left: 1px solid rgba(255, 255, 255, .12); transition: background .25s;
}
.hero-band-item:first-child { border-left: 0; }
.hero-band-item:hover { background: rgba(255, 255, 255, .08); }
.hero-band-item strong { font-family: var(--heading); font-size: 24px; font-weight: 600; color: var(--accent); }
.hero-band-item span { font-size: 12px; font-weight: 800; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; max-width: 15ch; }
.hero-band-arrow { margin-left: auto; width: 18px; height: 18px; opacity: .55; transition: opacity .2s, transform .25s; }
.hero-band-item:hover .hero-band-arrow { opacity: 1; transform: translate(2px, -2px); }

/* ---------- 6. Encabezados de sección ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 56px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { margin-top: 20px; font-size: clamp(40px, 4.8vw, 68px); }
.section-head > p { max-width: 380px; color: var(--ink-muted); font-size: 16px; line-height: 1.7; }
.section-head-compact h2 { font-size: clamp(36px, 4vw, 56px); }

/* ---------- 7. Inicio · Quiénes somos ---------- */
.intro-grid { display: grid; grid-template-columns: 45% minmax(0, 1fr); align-items: center; gap: clamp(36px, 7vw, 112px); }
.intro-media { height: clamp(420px, 42vw, 600px); }
.intro-media img { object-position: 35% center; }
.intro-copy h2 { margin: 22px 0 24px; font-size: clamp(38px, 4.4vw, 62px); line-height: 1.12; }
.intro-copy p { max-width: 620px; margin-bottom: 18px; color: var(--ink-muted); font-size: 16.5px; line-height: 1.85; }
.intro-copy .arrow-link { margin-top: 18px; }

/* ---------- 8. Inicio · Tarjetas de servicio ---------- */
.services { background: var(--surface); }
.service-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.service-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-card);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .3s;
}
.service-card:hover, .service-card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.service-card-link { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.service-card-link:focus-visible { outline-offset: -3px; }
.service-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.service-card-media .media { position: absolute; inset: 0; }
.service-card-media img { transition: transform .8s var(--ease); }
.service-card:hover .service-card-media img { transform: scale(1.05); }
.service-card-num {
  position: absolute; z-index: 1; top: 14px; left: 14px; display: grid; place-items: center;
  min-width: 44px; height: 32px; padding: 0 10px; border-radius: 9px 9px 16px 9px;
  background: var(--accent); color: var(--accent-ink); font-family: var(--heading); font-weight: 700; font-size: 15px;
}
.service-card-body { flex: 1; display: flex; flex-direction: column; padding: 24px 24px 26px; }
.service-card h3 { font-size: clamp(21px, 1.7vw, 25px); letter-spacing: -.035em; }
.service-card-body > p { margin-top: 12px; color: var(--ink-muted); font-size: 14.5px; line-height: 1.65; }
.service-card ul { margin: 18px 0 22px; border-top: 1px solid var(--border); }
.service-card li { padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.service-card-more { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; color: var(--accent-text); }
.service-card-more .icon { width: 16px; height: 16px; transition: transform .25s; }
.service-card:hover .service-card-more .icon { transform: translate(2px, -2px); }

/* ---------- 9. Proceso ---------- */
.process-grid { display: grid; grid-template-columns: minmax(0, 45%) minmax(0, 1fr); gap: clamp(40px, 7vw, 100px); align-items: start; }
.process-intro { position: sticky; top: calc(var(--header-h) + 50px); }
.process-intro h2 { margin: 24px 0; font-size: clamp(38px, 4vw, 60px); }
.process-intro h2 em { color: var(--ink); font-weight: 600; }
.process-intro p { max-width: 460px; margin-bottom: 30px; color: var(--ink-muted); font-size: 17px; }
.steps { counter-reset: step; }
.step { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 30px 0; border-top: 1px solid var(--border); }
.step:last-child { border-bottom: 1px solid var(--border); }
.step-num { font-family: var(--heading); font-size: 15px; font-weight: 700; color: var(--accent-text); padding-top: 3px; }
.step h3 { font-size: 22px; letter-spacing: -.03em; margin-bottom: 8px; }
.step p { max-width: 460px; color: var(--ink-muted); font-size: 15px; }

/* ---------- 10. Declaración regional ---------- */
.statement {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 26% minmax(0, 1fr); gap: 50px;
  margin-bottom: clamp(96px, 9vw, 150px); padding: clamp(48px, 6.5vw, 104px);
  border-radius: 24px 24px 100px 24px; background: var(--navy); color: var(--on-navy);
}
.statement::after {
  content: ""; position: absolute; right: -6%; top: -60%; width: 52%; height: 220%; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%; transform: rotate(18deg);
}
html[data-theme="dark"] .statement { background: linear-gradient(150deg, #12304a, #0f2639); border: 1px solid var(--border); }
.statement-index { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.statement-index .section-label, .statement-index > span { color: var(--on-navy-muted); }
.statement-index > span { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.statement-index strong .icon { width: clamp(80px, 9vw, 150px); height: auto; color: rgba(255, 255, 255, .16); stroke-width: 1.4; }
.statement-copy { position: relative; z-index: 1; }
.statement h2 { font-size: clamp(38px, 4.5vw, 70px); }
.statement h2 em { color: var(--accent); font-weight: 600; }
.statement p { max-width: 680px; margin: 24px 0 32px; color: #c7d6dd; font-size: 16.5px; line-height: 1.8; }

/* ---------- 11. Páginas interiores · Encabezado ---------- */
.page-intro { padding: calc(var(--header-h) + clamp(64px, 7vw, 104px)) 0 clamp(56px, 6vw, 84px); }
.page-crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin-bottom: clamp(30px, 4vw, 50px); }
.page-crumb li { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.page-crumb li + li::before { content: "/"; margin-inline: 12px; color: var(--accent-text); }
.page-crumb a:hover { color: var(--ink); }
.page-intro-grid { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; }
.page-intro h1 { max-width: 1040px; font-size: clamp(48px, 6.1vw, 92px); line-height: 1.06; letter-spacing: -.058em; }
.page-intro-grid > p { flex: none; max-width: 360px; margin-bottom: 8px; color: var(--ink-muted); font-size: 16.5px; line-height: 1.75; }
.page-intro-num {
  display: inline-grid; place-items: center; vertical-align: top; margin: .22em .32em 0 0;
  min-width: 1.7em; height: 1.25em; padding: 0 .28em; border-radius: 10px 10px 22px 10px;
  background: var(--accent); color: var(--accent-ink); font-size: .36em; font-weight: 700; letter-spacing: -.02em; line-height: 1;
}

/* ---------- 12. Servicios (listado) ---------- */
.service-index { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(20px, 3vw, 36px); }
.service-index a {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border: 1px solid var(--border-strong);
  border-radius: 999px; font-size: 14px; font-weight: 700; transition: background .2s, border-color .2s, color .2s;
}
.service-index a span { font-family: var(--heading); font-size: 12px; color: var(--accent-text); }
.service-index a:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.service-index a:hover span { color: var(--accent); }

.service-list { padding-bottom: clamp(48px, 6vw, 80px); }
.service-row {
  display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: clamp(36px, 5vw, 86px); align-items: center;
  padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--border);
}
.service-row:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 42%); }
.service-row:nth-child(even) .service-row-media { order: 2; border-radius: 22px 22px 22px 90px; }
.service-row-media { height: clamp(260px, 27vw, 380px); border-radius: var(--radius-frame); }
.service-row-num { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.service-row h2 { margin: 18px 0 18px; font-size: clamp(34px, 3.8vw, 56px); }
.service-row h2 a { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 3px no-repeat; transition: background-size .35s var(--ease); }
.service-row h2 a:hover { background-size: 100% 3px; }
.service-row-lead { max-width: 600px; color: var(--ink-muted); font-size: 17px; line-height: 1.75; }
.service-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 30px; margin-top: 30px; }

.tick-list { display: grid; gap: 10px; margin-top: 24px; }
.tick-list-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.5; }
.tick-list .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--accent-text); stroke-width: 2.4; }

.combined { margin-bottom: clamp(88px, 9vw, 140px); }
.combined-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(40px, 5.5vw, 80px); border: 1px solid var(--border); border-radius: 23px 23px 85px 23px; background: var(--surface-alt);
}
.combined h2 { margin-top: 20px; font-size: clamp(32px, 3.6vw, 52px); }
.combined-grid > div > p { color: var(--ink-muted); font-size: 16.5px; line-height: 1.8; }
.combined-flow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; counter-reset: flow; }
.combined-flow li { position: relative; display: flex; align-items: center; }
.combined-flow li + li::before { content: "→"; margin-right: 10px; color: var(--ink-muted); font-weight: 700; }
.combined-flow a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px 10px 18px 10px;
  background: var(--surface); border: 1px solid var(--border); font-size: 13.5px; font-weight: 700; transition: border-color .2s;
}
.combined-flow a:hover { border-color: var(--ink); }
.combined-flow a span { font-family: var(--heading); font-size: 12px; color: var(--accent-text); }

/* ---------- 13. Ficha de servicio ---------- */
.page-intro-service h1 { font-size: clamp(46px, 5.6vw, 86px); }
.svc-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.svc-media { height: clamp(300px, 34vw, 480px); }
.svc-overview-copy > p { margin-bottom: 18px; color: var(--ink-muted); font-size: 17px; line-height: 1.85; }
.svc-overview-copy > p:first-child { color: var(--ink); font-size: 19px; line-height: 1.7; font-weight: 500; }
.svc-sectors { margin: 30px 0 34px; padding-top: 24px; border-top: 1px solid var(--border); }
.svc-sectors ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.svc-sectors li { padding: 8px 14px; border-radius: 999px; background: var(--surface-alt); font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }

.svc-scope { margin-top: clamp(88px, 9vw, 148px); background: var(--surface); }
.scope-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.scope-item {
  padding: 30px 28px 32px; border: 1px solid var(--border); border-radius: 18px 18px 44px 18px; background: var(--paper);
  transition: border-color .25s, transform .3s var(--ease);
}
.scope-item:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.scope-item span { font-family: var(--heading); font-size: 13px; font-weight: 700; color: var(--accent-text); }
.scope-item h3 { margin: 16px 0 10px; font-size: 22px; letter-spacing: -.03em; }
.scope-item p { color: var(--ink-muted); font-size: 15px; line-height: 1.65; }

.svc-quote { margin-top: clamp(88px, 9vw, 140px); }
.svc-quote-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px);
  padding: clamp(40px, 5.5vw, 84px); border-radius: 24px 24px 100px 24px; background: var(--navy); color: var(--on-navy);
}
html[data-theme="dark"] .svc-quote-card { background: linear-gradient(150deg, #12304a, #0f2639); border: 1px solid var(--border); }
.svc-quote-card::before {
  content: ""; position: absolute; top: 0; right: 0; width: 110px; height: 110px; border-radius: 0 0 0 110px; background: var(--accent); opacity: .95;
}
.svc-quote-card .section-label { color: var(--on-navy-muted); }
.svc-quote-card h2 { margin: 20px 0; font-size: clamp(32px, 3.4vw, 50px); }
.svc-quote-card h2 em { color: var(--accent); font-weight: 600; }
.svc-quote-intro p { margin-bottom: 30px; color: var(--on-navy-muted); font-size: 16px; }
.checklist { display: grid; gap: 0; align-content: center; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 16px; line-height: 1.55; }
.checklist li:first-child { border-top: 1px solid rgba(255, 255, 255, .12); }
.checklist .icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); stroke-width: 3; margin-top: 1px; }
.checklist-compact li { padding: 11px 0; font-size: 14.5px; border-color: var(--border); }
.checklist-compact li:first-child { border-color: var(--border); }
.checklist-compact .icon { width: 20px; height: 20px; }

.faq-grid { display: grid; grid-template-columns: minmax(0, 36%) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); }
.faq-grid h2 { margin-top: 20px; font-size: clamp(34px, 3.6vw, 52px); }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none;
  font-family: var(--heading); font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: -.025em; line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 34px; height: 34px; padding: 8px; flex: none; border: 1px solid var(--border-strong); border-radius: 50%;
  transition: transform .3s var(--ease), background .2s, border-color .2s;
}
.faq-item summary:hover .faq-icon { border-color: var(--ink); }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.faq-item p { max-width: 720px; padding: 0 50px 26px 0; color: var(--ink-muted); font-size: 16px; line-height: 1.8; }

.svc-related { background: var(--surface); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.related-card { display: block; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--paper); transition: transform .3s var(--ease), box-shadow .3s; }
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.related-card-media { aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.related-card-media .media { position: absolute; inset: 0; }
.related-card-body { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 22px 24px 24px; }
.related-card-body span { font-family: var(--heading); font-size: 13px; font-weight: 700; color: var(--accent-text); }
.related-card-body h3 { font-size: 20px; letter-spacing: -.03em; }
.related-card-body .icon { width: 20px; height: 20px; transition: transform .25s; }
.related-card:hover .related-card-body .icon { transform: translate(2px, -2px); }

/* ---------- 14. Empresa ---------- */
.about-visual { height: clamp(340px, 42vw, 610px); }
.about-visual img { object-position: 50% 42%; }
.split { display: grid; grid-template-columns: minmax(0, 36%) minmax(0, 1fr); gap: 55px; }
.split > .section-label { padding-top: 14px; }
.split-body h2 { margin-bottom: 28px; font-size: clamp(38px, 4vw, 60px); }
.split-body p { max-width: 720px; margin-top: 16px; color: var(--ink-muted); font-size: 17px; line-height: 1.85; }

.values { background: var(--surface); }
.values-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.value { position: relative; padding: 30px 26px 34px; border: 1px solid var(--border); border-radius: 18px 18px 48px 18px; background: var(--paper); }
.value > .icon { width: 30px; height: 30px; color: var(--accent-text); stroke-width: 1.6; }
.value > span { position: absolute; top: 30px; right: 26px; font-family: var(--heading); font-size: 13px; font-weight: 700; color: var(--ink-muted); }
.value h3 { margin: 26px 0 12px; font-size: 26px; letter-spacing: -.035em; }
.value p { color: var(--ink-muted); font-size: 15px; line-height: 1.7; }

.steps-detailed .step h3 { font-size: 21px; }

.company-data { background: var(--navy); color: var(--on-navy); }
html[data-theme="dark"] .company-data { background: #0f2639; border-block: 1px solid var(--border); }
.company-data-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.company-data .section-label { color: var(--on-navy-muted); }
.company-data h2 { margin: 22px 0 24px; font-size: clamp(38px, 4.2vw, 62px); }
.company-data h2 em { color: var(--accent); font-weight: 600; }
.company-data-grid > div > p { max-width: 560px; margin-bottom: 32px; color: var(--on-navy-muted); font-size: 16.5px; line-height: 1.8; }
.facts { border-top: 1px solid rgba(255, 255, 255, .14); }
.facts > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.facts dt { font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--on-navy-muted); padding-top: 3px; }
.facts dd { font-size: 16px; font-weight: 600; line-height: 1.55; }

/* ---------- 15. Obras ---------- */
.projects-page { padding-bottom: clamp(88px, 9vw, 140px); }
.project-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.project-filters button { padding: 10px 18px; border: 1px solid var(--border-strong); border-radius: 999px; background: none; font-size: 14px; font-weight: 700; }
.project-filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project-card { height: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.project-card-media { position: relative; aspect-ratio: 4 / 3; background: var(--navy-2); overflow: hidden; }
.project-card-media picture, .project-card-media img { width: 100%; height: 100%; object-fit: cover; }
.project-tag { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 8px 8px 14px 8px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; }
.project-card-body { padding: 22px 24px 26px; }
.project-meta { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.project-card h3 { margin: 10px 0 8px; font-size: 22px; letter-spacing: -.03em; }
.project-card-body p { color: var(--ink-muted); font-size: 15px; }
.project-client { margin-top: 10px; font-size: 13px !important; font-weight: 700; }

/* ---------- 16. Contacto (diseño v5 conservado) ---------- */
.contact-intro { padding-bottom: clamp(56px, 7vw, 96px); }
.contact-section { display: grid; grid-template-columns: 41% minmax(0, 1fr); gap: 6%; padding-bottom: clamp(80px, 9vw, 140px); }
.contact-info .section-label { margin-bottom: 30px; }
.contact-info h2 { max-width: 420px; margin-bottom: 44px; font-size: clamp(29px, 3vw, 42px); }
.contact-method { padding: 21px 0 22px; border-top: 1px solid var(--border); }
.contact-method > span { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.contact-method a, .contact-method p { font-size: 16px; line-height: 1.65; }
.contact-method > a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.contact-method > a .icon { width: 16px; height: 16px; }
.contact-method > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-map { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px !important; font-weight: 800; color: var(--accent-text); }
.contact-map .icon { width: 15px; height: 15px; }
.contact-whatsapp {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; padding: 15px 18px;
  border: 1px solid var(--ink); border-radius: var(--radius-btn); font-size: 14px; font-weight: 800; transition: background .2s, color .2s;
}
.contact-whatsapp .icon { width: 19px; height: 19px; }
.contact-whatsapp .icon:last-child { width: 16px; height: 16px; margin-left: 10px; }
.contact-whatsapp:hover { background: var(--ink); color: var(--paper); }
.contact-tips { margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--border); }
.contact-tips .section-label { margin-bottom: 14px; }
.contact-tips .checklist-compact li { color: var(--ink-soft); }

.contact-form-wrap {
  position: relative; overflow: hidden; align-self: start;
  padding: clamp(28px, 4.3vw, 64px); border: 1px solid var(--border); border-radius: 28px 28px 94px 28px;
  background: var(--surface); box-shadow: 0 18px 55px rgba(13, 35, 54, .06);
}
html[data-theme="dark"] .contact-form-wrap { box-shadow: 0 14px 45px rgba(0, 0, 0, .2); }
.form-shape { position: absolute; top: 0; right: 0; width: 104px; height: 104px; border-radius: 0 0 0 104px; background: var(--accent); opacity: .95; pointer-events: none; }
.form-head {
  position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; padding-right: 80px;
  margin-bottom: 34px; padding-bottom: 26px; border-bottom: 1px solid var(--border);
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-row { display: flex; flex-direction: column; margin-bottom: 20px; min-width: 0; }
.form-row label, .form-label { margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.form-row label span { color: var(--accent-text); }
.form-row label small, .form-label small { font-weight: 600; color: var(--ink-muted); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 11px;
  background: var(--paper); color: var(--ink); font-size: 15px; outline: 0; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.form-row select {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23536879' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.form-row textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--ink-muted); opacity: .7; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: #e6aa00; box-shadow: 0 0 0 3px rgba(247, 190, 24, .18); }
.form-row [aria-invalid="true"] { border-color: var(--danger); }
.form-row [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 67, 44, .16); }
.field-error { margin-top: 7px; color: var(--danger); font-size: 13px; font-weight: 600; line-height: 1.45; }
.field-hint { margin-top: 7px; color: var(--ink-muted); font-size: 12px; }
.field-hint.is-ok { color: var(--success); }

.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.file-drop {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; padding: 18px 18px; cursor: pointer;
  border: 1.5px dashed var(--border-strong); border-radius: 12px 12px 26px 12px; background: var(--paper);
  transition: border-color .2s, background .2s;
}
.file-drop .icon { grid-row: span 2; width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--surface-alt); color: var(--ink); }
.file-drop span { font-size: 14px; color: var(--ink-soft); }
.file-drop strong { color: var(--ink); }
.file-drop small { font-size: 12px; color: var(--ink-muted); }
.file-drop:hover, .file-drop.is-dragover { border-color: var(--accent-text); background: var(--surface-alt); }
.file-input:focus-visible + .file-list, .file-drop:has(+ .file-input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.file-list { display: grid; gap: 8px; margin-top: 10px; }
.file-list:empty { display: none; }
.file-list li {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 12px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 13.5px; background: var(--surface);
}
.file-list li .icon { width: 17px; height: 17px; color: var(--ink-muted); }
.file-list li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.file-list li small { color: var(--ink-muted); }
.file-list li.is-invalid { border-color: var(--danger); }
.file-list li.is-invalid small { color: var(--danger); font-weight: 700; }
.file-list button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--ink-muted); }
.file-list button:hover { background: var(--surface-alt); color: var(--ink); }
.file-list button .icon { width: 16px; height: 16px; }

.form-consent-wrap { margin: 4px 0 24px; }
.form-consent { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-muted); font-size: 13px; line-height: 1.7; cursor: pointer; }
.form-consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--accent-text); }
.form-consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.form-submit {
  width: 100%; min-height: 58px; justify-content: space-between; border-radius: 12px 12px 33px 12px;
  background: var(--accent); color: var(--accent-ink); font-size: 15px;
}
.form-submit:hover { background: var(--accent-hover); }
.form-submit:focus-visible { outline-color: var(--ink); }
.form-submit[aria-busy="true"] { cursor: progress; opacity: .75; }
.form-submit[aria-busy="true"] .icon { animation: spin-nudge 1s ease-in-out infinite; }
@keyframes spin-nudge { 50% { transform: translate(3px, -3px); } }
.form-status { min-height: 22px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.form-status[data-state="error"] { color: var(--danger); }
.form-status[data-state="success"] { color: var(--success); }
.form-alert { margin-bottom: 24px; padding: 14px 16px; border-left: 3px solid var(--danger); border-radius: 6px 10px 10px 6px; background: rgba(180, 67, 44, .08); color: var(--danger); font-size: 14px; font-weight: 600; }
.honey { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-success { position: relative; z-index: 1; padding: 20px 0 10px; outline: none; }
.form-success-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px 18px 32px 18px; background: var(--accent); color: var(--accent-ink); }
.form-success-icon .icon { width: 30px; height: 30px; stroke-width: 2.6; }
.form-success h3 { margin: 26px 0 14px; font-size: clamp(32px, 3.2vw, 44px); }
.form-success p { max-width: 520px; margin-bottom: 28px; color: var(--ink-muted); font-size: 16px; line-height: 1.75; }
.form-success p a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 17. Legal y error ---------- */
.page-intro-legal { padding-bottom: 40px; }
.legal { display: grid; grid-template-columns: 250px minmax(0, 780px); gap: clamp(40px, 6vw, 100px); padding-bottom: clamp(88px, 9vw, 140px); }
.legal-meta { position: sticky; top: calc(var(--header-h) + 50px); align-self: start; font-size: 14px; color: var(--ink-muted); }
.legal-meta strong { color: var(--ink); }
.legal-meta ol { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); counter-reset: legal; }
.legal-meta li { counter-increment: legal; }
.legal-meta li a { display: block; padding: 6px 0; font-weight: 600; transition: color .2s; }
.legal-meta li a::before { content: counter(legal, decimal-leading-zero) "  "; font-size: 11px; color: var(--accent-text); white-space: pre; }
.legal-meta li a:hover { color: var(--ink); }
.legal-body h2 { margin: 44px 0 14px; font-size: 24px; letter-spacing: -.03em; scroll-margin-top: calc(var(--header-h) + 40px); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--ink-muted); font-size: 16px; line-height: 1.85; }
.legal-body p + p { margin-top: 14px; }
.legal-body ul { margin: 14px 0; display: grid; gap: 10px; }
.legal-body li { position: relative; padding-left: 22px; }
.legal-body li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 8px; height: 2px; background: var(--accent-text); }
.legal-body a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.legal-body strong { color: var(--ink); }

.error-page { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: calc(var(--header-h) + 80px) 0 90px; }
.error-page h1 { margin: 24px 0; font-size: clamp(54px, 7vw, 104px); }
.error-page > p { max-width: 540px; color: var(--ink-muted); font-size: 17px; }
.error-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 34px; }
.error-links a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 1px solid var(--border-strong); border-radius: 999px; font-weight: 700; font-size: 14px; }
.error-links a:hover { border-color: var(--ink); }
.error-links .icon { width: 15px; height: 15px; }

/* ---------- 18. Pie de página ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--navy-deep); color: var(--on-navy); }
html[data-theme="dark"] .site-footer { background: #07121c; border-top: 1px solid var(--border); }
.footer-cta { padding: clamp(80px, 8vw, 128px) 0 clamp(64px, 7vw, 96px); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-cta-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.footer-cta .section-label { color: var(--on-navy-muted); }
.footer-cta h2 { margin-top: 20px; font-size: clamp(42px, 5.2vw, 78px); line-height: 1.03; }
.footer-cta h2 em { color: var(--accent); font-weight: 600; }
.footer-cta-side p { max-width: 480px; color: var(--on-navy-muted); font-size: 16.5px; line-height: 1.75; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.footer-main {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, .9fr)) minmax(0, 1.25fr); gap: clamp(30px, 4vw, 64px);
  padding: clamp(60px, 6vw, 88px) 0 clamp(40px, 4vw, 56px);
}
.footer-logo { display: block; width: 220px; }
.footer-brand > p { max-width: 330px; margin-top: 24px; color: var(--on-navy-muted); font-size: 14.5px; line-height: 1.75; }
.footer-areas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.footer-areas li { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; font-size: 12px; font-weight: 700; color: #d9e4ea; }
.footer-social { display: flex; gap: 8px; margin-top: 22px; }
.footer-social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; transition: background .2s, color .2s, border-color .2s; }
.footer-social a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.footer-social .icon { width: 18px; height: 18px; }
.footer-col h2 { margin-bottom: 18px; font-family: var(--body); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8fa3b0; }
.footer-col li + li { margin-top: 11px; }
.footer-col a { font-size: 14.5px; line-height: 1.5; color: #e6eef2; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-contact a, .footer-hours { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--accent); }
.footer-hours { font-size: 14.5px; color: #e6eef2; }

.footer-wordmark { margin-bottom: -2px; pointer-events: none; user-select: none; }
.footer-wordmark svg { width: 100%; height: auto; overflow: visible; }
.footer-wordmark text {
  font-family: var(--heading); font-weight: 700; font-size: 190px; letter-spacing: -.04em;
  fill: rgba(255, 255, 255, .035); stroke: rgba(255, 255, 255, .16); stroke-width: 1; vector-effect: non-scaling-stroke;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; padding: 22px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; color: #9fb2bd;
}
.footer-note { flex: 1; min-width: 240px; color: #7f95a2; font-size: 12px; }
.to-top { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #e6eef2; }
.to-top .icon { width: 16px; height: 16px; transition: transform .25s; }
.to-top:hover .icon { transform: translateY(-3px); }

/* ---------- 19. WhatsApp flotante (móvil) ---------- */
.wa-float {
  position: fixed; z-index: 55; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  display: none; align-items: center; gap: 10px; padding: 0 18px 0 14px; height: 54px; border-radius: 999px;
  background: #0f2c42; color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .14); transition: transform .3s var(--ease), opacity .3s;
}
.wa-float .icon { width: 24px; height: 24px; color: #4ade80; }
.wa-float.is-hidden { transform: translateY(90px); opacity: 0; pointer-events: none; }

/* ---------- 20. Animación de entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* ---------- 21. Responsive ---------- */
@media (max-width: 1280px) {
  .brand { width: 190px; }
  .hero-stage { grid-template-columns: minmax(0, 1fr) 220px; }
  .hero-band-item { padding: 16px 18px; gap: 12px; }
  .hero-band-item span { font-size: 11px; }
  .service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { flex-direction: row; }
  .service-card-media { aspect-ratio: auto; width: 42%; flex: none; }
  .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
  .footer-contact { grid-column: 2 / -1; }
}

@media (max-width: 1060px) {
  :root { --header-h: 74px; }
  .desktop-nav, .nav-contact { display: none; }
  .menu-toggle { display: block; }
  .nav-shell { padding: 8px 10px 8px 20px; }
  .hero-stage { grid-template-columns: 1fr; gap: 34px; }
  .hero-sidecard { padding-bottom: 0; max-width: 320px; }
  .hero-band { grid-template-columns: repeat(2, 1fr); }
  .hero-band-item:nth-child(3) { border-left: 0; }
  .hero-band-item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .page-intro-grid { flex-direction: column; align-items: flex-start; gap: 26px; }
  .page-intro-grid > p { max-width: 620px; }
  .scope-grid, .related-grid, .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-section { grid-template-columns: 1fr; gap: 56px; }
  .contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
  .contact-info > .section-label, .contact-info > h2 { grid-column: 1 / -1; }
  .contact-tips { grid-column: 2; grid-row: 3 / span 4; margin-top: 0; border-top: 1px solid var(--border); padding-top: 21px; }
  .contact-whatsapp { justify-self: start; }
  .legal { grid-template-columns: 1fr; }
  .legal-meta { position: static; }
}

@media (max-width: 860px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 22px; }
  .section-head > p { max-width: 560px; }
  .intro-grid, .process-grid, .svc-overview, .faq-grid, .split, .company-data-grid, .combined-grid, .svc-quote-card, .footer-cta-grid { grid-template-columns: 1fr; }
  .intro-media { height: clamp(320px, 62vw, 520px); }
  .process-intro { position: static; }
  .statement { grid-template-columns: 1fr; gap: 20px; padding: 52px 40px; border-radius: 22px 22px 70px 22px; }
  .statement-index { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .statement-index strong { display: none; }
  .service-row, .service-row:nth-child(even) { grid-template-columns: 1fr; gap: 28px; }
  .service-row:nth-child(even) .service-row-media { order: 0; border-radius: var(--radius-frame); }
  .service-row-media { height: clamp(240px, 52vw, 400px); }
  .svc-media { height: clamp(260px, 56vw, 440px); }
  .svc-quote-card::before { width: 76px; height: 76px; border-radius: 0 0 0 76px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .wa-float { display: inline-flex; }
}

@media (max-width: 700px) {
  .service-cards { grid-template-columns: 1fr; }
  .service-card { flex-direction: column; }
  .service-card-media { width: auto; aspect-ratio: 16 / 9; }
  .scope-grid, .related-grid, .project-grid, .values-grid { grid-template-columns: 1fr; }
  .tick-list-2 { grid-template-columns: 1fr; }
  .contact-info { display: block; }
  .contact-tips { margin-top: 40px; }
  .form-grid { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 600px) {
  :root { --header-h: 68px; }
  .site-header { top: 10px; }
  .nav-shell { width: calc(100% - 20px); padding: 6px 8px 6px 16px; border-radius: 18px; gap: 10px; }
  .brand { width: 150px; }
  .nav-actions { gap: 6px; }
  .theme-switch { width: 40px; height: 40px; }
  .mobile-nav { left: 10px; right: 10px; padding-inline: 18px; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 56px); padding-bottom: 20px; }
  .hero-photo img { object-position: 62% center; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(2, 16, 28, .55) 0%, rgba(2, 16, 28, .72) 40%, rgba(2, 16, 28, .82) 70%, rgba(2, 13, 24, .94) 100%);
  }
  html[data-theme="dark"] .hero-scrim { background: linear-gradient(180deg, rgba(0, 8, 18, .5) 0%, rgba(0, 8, 18, .7) 40%, rgba(0, 8, 18, .84) 70%, rgba(0, 8, 18, .95) 100%); }
  .hero-kicker { font-size: 10px; letter-spacing: .13em; margin-bottom: 20px; }
  .hero h1 { font-size: clamp(46px, 13vw, 64px); letter-spacing: -.06em; line-height: 1; }
  .hero-summary { font-size: 16px; line-height: 1.7; margin-top: 22px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 28px; }
  .hero-cta { justify-content: space-between; min-height: 52px; font-size: 14px; padding: 0 22px; }
  .hero-sidecard-title { font-size: 26px; }
  .hero-sidecard-rule { margin: 12px 0 10px; }
  .hero-band { grid-template-columns: 1fr; margin-top: 30px; border-radius: 16px 16px 36px 16px; }
  .hero-band-item { min-height: 64px; padding: 14px 18px; border-left: 0 !important; }
  .hero-band-item + .hero-band-item { border-top: 1px solid rgba(255, 255, 255, .12); }
  .hero-band-item strong { font-size: 20px; }
  .intro-media { height: 300px; border-radius: 18px 18px 64px 18px; }
  .intro-copy h2 { font-size: clamp(32px, 8.6vw, 44px); }
  .intro-copy p { font-size: 15.5px; }
  .section-head h2 { font-size: clamp(36px, 9.5vw, 50px); }
  .statement { padding: 40px 24px; border-radius: 18px 18px 56px 18px; }
  .statement h2 { font-size: clamp(32px, 8.6vw, 42px); }
  .statement p { font-size: 15.5px; }
  .page-intro h1 { font-size: clamp(40px, 11vw, 58px); }
  .page-intro-num { border-radius: 7px 7px 14px 7px; }
  .service-row h2 { font-size: clamp(30px, 8.5vw, 42px); }
  .service-row-actions .button { width: 100%; }
  .combined-grid { padding: 34px 22px; border-radius: 18px 18px 56px 18px; }
  .svc-quote-card { padding: 40px 24px; border-radius: 18px 18px 60px 18px; }
  .faq-item p { padding-right: 0; }
  .contact-form-wrap { padding: 30px 20px; border-radius: 20px 20px 64px 20px; }
  .form-shape { width: 70px; height: 70px; border-radius: 0 0 0 70px; }
  .form-head { padding-right: 56px; font-size: 10px; }
  .file-drop { padding: 16px 14px; }
  .footer-cta h2 { font-size: clamp(38px, 10.5vw, 52px); }
  .footer-cta-actions .button { flex: 1 1 100%; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 90px; }
  .to-top { margin-left: 0; }
}

@media (max-width: 360px) {
  .brand { width: 132px; }
  .hero h1 { font-size: 42px; }
}

/* ---------- 22. Impresión ---------- */
@media print {
  .site-header, .wa-float, .footer-cta, .footer-wordmark, .hero-media, .theme-switch { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: 0; color: #000; background: none; padding-top: 0; }
  .hero h1, .hero-summary { color: #000; }
}
