/* SR Ingeniería · sistema visual basado en la Guía de identidad (2025)
   Colores institucionales: azul #263368 (Pantone 3581C), amarillo #FDEA18 (107C), gris #3C3C3B (Black 7C), lila gris #E0DDE6 (664C) */
:root {
  --navy: #263368; --navy-700: #1d2853; --navy-900: #121a3a; --yellow: #FDEA18; --yellow-600: #e8d50a;
  --graphite: #3C3C3B; --mist: #E0DDE6; --mist-50: #f5f4f8; --white: #fff;
  --ink: #162033; --text: #3C3C3B; --muted: #5d6275; --line: #dfe2ea;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-sm: 8px; --r: 14px; --r-lg: 22px;
  --shadow: 0 1px 2px rgba(18, 26, 58, .06), 0 10px 30px rgba(18, 26, 58, .07);
  --shadow-lg: 0 24px 60px rgba(18, 26, 58, .16);
  --wrap: 1240px; --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; margin: 0; font: 400 1.0625rem/1.65 var(--font); color: var(--text); background: var(--white); text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.55rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--yellow); color: var(--navy-900); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-block: clamp(44px, 6vw, 76px); }
.bg-mist { background: var(--mist-50); }
.bg-navy { background: var(--navy); color: #d8dcef; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--navy); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--yellow); border-radius: 2px; }
.bg-navy .eyebrow, .hero .eyebrow { color: var(--yellow); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head > div { max-width: 720px; }
.section-head p { margin: 0; }

/* Botones */
.btn { --bg: var(--navy); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 2px solid var(--bg); background: var(--bg); color: var(--fg); font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .18s var(--ease), background .18s, box-shadow .18s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(18, 26, 58, .18); }
.btn-yellow { --bg: var(--yellow); --fg: var(--navy-900); }
.btn-yellow:hover { --bg: #fff14d; }
.btn-ghost { background: transparent; color: var(--navy); }
.bg-navy .btn-ghost, .hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-wa { --bg: #1fa855; --fg: #fff; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn svg { width: 20px; height: 20px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--navy); }
.link-arrow::after { content: "→"; transition: transform .18s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* Encabezado */
.topbar { background: var(--navy-900); color: #b9c0dc; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--yellow); }
.topbar-links { display: flex; gap: 22px; }
.header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { flex: none; display: block; }
.brand img { width: 210px; height: auto; }
.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list > li > a, .nav-list > li > button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 13px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink); font: 600 .98rem/1 var(--font); text-decoration: none; cursor: pointer; }
.nav-list > li > a:hover, .nav-list > li > button:hover, .nav-list > li > [aria-current="page"] { color: var(--navy); background: var(--mist-50); }
.nav-list > li > [aria-current="page"] { box-shadow: inset 0 -3px 0 var(--yellow); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.caret { width: 10px; height: 10px; transition: transform .2s; }
[aria-expanded="true"] .caret { transform: rotate(180deg); }
.header-cta { flex: none; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; margin: auto; background: var(--navy); position: relative; transition: .2s; content: ""; }
.burger span::before { position: absolute; top: -6px; } .burger span::after { position: absolute; top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Mega menú de servicios */
.has-mega { position: static; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 28px 0 32px; display: none; }
.mega.is-open { display: block; animation: drop .2s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 28px; }
.mega h3 { display: flex; align-items: center; gap: 8px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.mega h3 .icon { width: 20px; height: 20px; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: block; padding: 5px 0; color: var(--text); text-decoration: none; font-size: .95rem; line-height: 1.35; }
.mega li a:hover { color: var(--navy); text-decoration: underline; }
.mega-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% 10%, #31408a 0%, transparent 60%), var(--navy); color: #d9ddf0; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: auto -12% -18% 42%; height: 70%; background: url("../img/recursos/ondas.svg") center / cover no-repeat; opacity: .45; z-index: -1; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(64px, 9vw, 120px); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lead { color: #c9cfe8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 36px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 0; color: #fff; font-weight: 700; font-size: .95rem; }
.badges li { display: flex; align-items: center; gap: 10px; }
.badges li::before { content: ""; width: 10px; height: 10px; background: var(--yellow); clip-path: polygon(0 0, 100% 0, 40% 100%, 0 100%); }
.hero-panel { position: relative; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-lg); padding: 26px; backdrop-filter: blur(6px); }
.hero-panel h2 { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.hero-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hero-panel a { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 12px; color: #fff; text-decoration: none; font-weight: 600; transition: background .18s; }
.hero-panel a:hover { background: rgba(255, 255, 255, .09); }
.hero-panel a::after { content: "→"; margin-left: auto; color: var(--yellow); opacity: 0; transform: translateX(-6px); transition: .18s var(--ease); }
.hero-panel a:hover::after { opacity: 1; transform: none; }
.hero-panel .icon { width: 32px; height: 32px; padding: 2px; flex: none; color: var(--navy-900); background: var(--yellow); border-radius: 8px; }
.hero-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-iso { position: absolute; right: -4%; top: 50%; width: min(560px, 46vw); transform: translateY(-50%); opacity: .05; z-index: -1; }
.photo-note { position: absolute; left: 12px; bottom: 12px; font-size: .72rem; background: rgba(18, 26, 58, .75); color: #fff; padding: 3px 8px; border-radius: 6px; }

/* Presentación */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.axes { display: grid; gap: 14px; margin-top: 8px; }
.axis { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .2s, transform .2s var(--ease); }
.axis:hover { border-color: var(--navy); transform: translateX(4px); }
.axis-num { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--navy); color: var(--yellow); font-weight: 800; font-size: 1.15rem; }
.axis h3 { margin-bottom: 4px; }
.axis p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Tarjetas de grupos y servicios */
.groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.group-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r); background: #fff; border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: inherit; transition: transform .22s var(--ease), box-shadow .22s, border-color .22s; }
.group-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.group-media { position: relative; aspect-ratio: 16 / 10; background: var(--navy) url("../img/recursos/cubos.webp") center / cover; overflow: hidden; }
.group-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.group-card:hover .group-media img { transform: scale(1.05); }
.group-media .icon-lg { position: absolute; inset: 0; margin: auto; width: 104px; height: 104px; color: var(--yellow); }
.group-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.group-body h3 { font-size: 1.08rem; }
.group-body p { color: var(--muted); font-size: .94rem; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.chip { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .04em; padding: 4px 9px; border-radius: 999px; background: var(--mist-50); color: var(--navy); border: 1px solid var(--line); }
.chip-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--navy-900); }
.center-cta { text-align: center; margin-top: 40px; }

/* Proyectos */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .22s var(--ease), box-shadow .22s; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-media { position: relative; aspect-ratio: 16 / 10; background: var(--navy); overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%); }
.placeholder::before { content: ""; position: absolute; inset: 0; background: url("../img/recursos/cubos-2.webp") center / cover; opacity: .35; }
.placeholder .icon-lg { position: relative; width: 96px; height: 96px; color: var(--yellow); }
.placeholder-note { position: absolute; right: 10px; bottom: 10px; font-size: .7rem; color: #c9cfe8; }
.project-code { position: absolute; left: 14px; top: 14px; z-index: 1; }
.project-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.project-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .86rem; color: var(--muted); margin-bottom: 8px; }
.project-meta strong { color: var(--navy); }
.project-body h3 { font-size: 1.12rem; }
.project-body p { color: var(--muted); font-size: .95rem; }
.project-body .link-arrow { margin-top: auto; }

/* Sectores */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .12); border-radius: var(--r); overflow: hidden; }
.sector { padding: 28px; background: var(--navy); }
.sector .icon { width: 40px; height: 40px; color: var(--yellow); margin-bottom: 16px; }
.sector h3 { margin-bottom: 6px; }
.sector p { margin: 0; font-size: .95rem; color: #c3c9e3; }
.sectors-light { background: var(--line); }
.sectors-light .sector { background: #fff; }
.sectors-light .sector .icon { color: var(--navy); }
.sectors-light .sector p { color: var(--muted); }

/* Logos */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.logo-wall li { list-style: none; display: grid; place-items: center; height: 96px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.logo-wall img { max-height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .2s; }
.logo-wall li:hover img { filter: none; opacity: 1; }
.logo-wall { padding: 0; margin: 0; }
.brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.brand-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.brand-logo { height: 70px; display: flex; align-items: center; }
.brand-logo img { max-height: 62px; max-width: 180px; width: auto; object-fit: contain; }
.brand-card h3 { font-size: 1.02rem; margin: 4px 0 0; }
.brand-card p { margin: 0; font-size: .93rem; color: var(--muted); }
.brand-card .chip { align-self: flex-start; }
.brand-mini { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; list-style: none; padding: 0; margin: 0; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--navy) 0 8px, transparent 8px 16px); opacity: .35; }
.step { position: relative; counter-increment: step; text-align: center; padding: 0 6px; }
.step::before { content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: var(--yellow); color: var(--navy-900); font-weight: 800; position: relative; box-shadow: 0 0 0 8px var(--mist-50); }
.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { font-size: .93rem; color: var(--muted); margin: 0; }

/* CTA */
.cta-band { position: relative; overflow: hidden; background: var(--navy); color: #d8dcef; border-radius: var(--r-lg); padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; isolation: isolate; }
.cta-band::after { content: ""; position: absolute; inset: 0 0 0 45%; background: url("../img/recursos/ondas-2.svg") center / cover no-repeat; opacity: .4; z-index: -1; }
.cta-band h2 { color: #fff; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta-actions small { color: #b8bfdc; text-align: center; }

/* Página interna */
.page-hero { background: var(--navy); color: #d0d5ec; position: relative; overflow: hidden; isolation: isolate; }
.page-hero::after { content: ""; position: absolute; inset: 0 -10% 0 50%; background: url("../img/recursos/ondas.svg") center / cover no-repeat; opacity: .35; z-index: -1; }
.page-hero .wrap { padding-block: clamp(44px, 7vw, 88px); }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lead { color: #c9cfe8; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 22px; font-size: .88rem; }
.crumbs a { color: #c9cfe8; text-decoration: none; }
.crumbs a:hover { color: var(--yellow); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #7b84ad; }
.crumbs [aria-current] { color: #fff; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.55rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 10px; }
.check-list li { position: relative; padding: 12px 16px 12px 46px; background: var(--mist-50); border-radius: var(--r-sm); border: 1px solid var(--line); }
.check-list li::before { content: ""; position: absolute; left: 16px; top: 17px; width: 16px; height: 16px; border-radius: 4px; background: var(--yellow); clip-path: polygon(0 0, 100% 0, 40% 100%, 0 100%); }
.sticky-card { position: sticky; top: 100px; padding: 26px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.sticky-card h2 { font-size: 1.25rem; }
.sticky-card .btn { width: 100%; margin-top: 10px; }
.figure { margin: 0 0 32px; border-radius: var(--r); overflow: hidden; position: relative; }
.figure img { width: 100%; max-height: 460px; object-fit: cover; }
.figure figcaption { font-size: .82rem; color: var(--muted); padding: 8px 2px; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 32px; border: 1px solid var(--line); }
.meta-grid div { background: #fff; padding: 16px 18px; }
.meta-grid dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.meta-grid dd { margin: 4px 0 0; color: var(--ink); font-weight: 700; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--r-sm); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: .85rem; color: var(--muted); padding-top: 6px; }
.note { padding: 14px 18px; border-left: 4px solid var(--yellow); background: var(--mist-50); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--muted); font-size: .95rem; }

/* Filtros y buscador */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chips button { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 600 .9rem var(--font); color: var(--ink); cursor: pointer; }
.filter-chips button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.search-box { flex: 1 1 260px; max-width: 380px; position: relative; }
.search-box input { width: 100%; padding: 12px 16px 12px 44px; border-radius: 999px; border: 1px solid var(--line); font: inherit; }
.search-box svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; color: var(--muted); }
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.service-item { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.service-item:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-2px); }
.service-item .icon { width: 56px; height: 56px; padding: 11px; border-radius: 14px; background: var(--navy); color: var(--yellow); }
.service-item h3 { margin-bottom: 6px; font-size: 1.08rem; }
.service-item p { color: var(--muted); font-size: .95rem; margin: 0 0 10px; }
.group-title { display: flex; align-items: center; gap: 12px; margin: 48px 0 18px; font-size: 1.25rem; }
.group-title:first-child { margin-top: 0; }
.group-title .icon { width: 28px; height: 28px; color: var(--navy); }
[hidden] { display: none !important; }
.empty { padding: 30px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); }

/* Formulario */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: grid; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .92rem; color: var(--ink); }
.field label small { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border: 1.5px solid #cdd2df; border-radius: 10px; font: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(253, 234, 24, .55); }
.field [aria-invalid="true"] { border-color: #c62828; }
.field-error { color: #b71c1c; font-size: .86rem; min-height: 0; }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; padding: 14px 18px; border-radius: 10px; font-weight: 600; }
.form-status.ok { background: #e7f6ec; color: #155c2e; border: 1px solid #b8e3c6; }
.form-status.err { background: #fdecec; color: #8e1c1c; border: 1px solid #f1c2c2; }
.form .btn[disabled] { opacity: .65; cursor: progress; }
.contact-card { padding: 28px; border-radius: var(--r); background: var(--navy); color: #d0d5ec; }
.contact-card h2 { color: #fff; font-size: 1.3rem; }
.contact-lines { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 16px; }
.contact-lines li { display: grid; gap: 2px; }
.contact-lines span { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: #9aa3cc; font-weight: 700; }
.contact-lines a { color: #fff; font-weight: 700; text-decoration: none; }
.contact-lines a:hover { color: var(--yellow); }
.contact-card .btn { width: 100%; margin-top: 8px; }
.contact-card .pending { font-size: .82rem; color: #ffe98a; }

/* Pie */
.footer { background: var(--navy-900); color: #aab2d4; font-size: .95rem; }
.footer .wrap { padding-block: 64px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h2 { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: #dfe3f4; text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer-brand img { width: 220px; margin-bottom: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #1fa855; color: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }

/* Aparición suave al hacer scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1180px) {
  .brand img { width: 180px; }
  .nav-list > li > a, .nav-list > li > button { padding: 10px 9px; font-size: .94rem; }
  .groups, .brands { grid-template-columns: repeat(2, 1fr); }
  .mega-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1020px) {
  .topbar-hide { display: none; }
  .burger { display: block; }
  .header-cta { display: none; }
  .header { backdrop-filter: none; background: #fff; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(380px, 100%); top: 0; background: #fff; padding: 88px 22px 32px; transform: translateX(100%); visibility: hidden; transition: transform .25s var(--ease), visibility 0s .25s; overflow-y: auto; z-index: 45; box-shadow: var(--shadow-lg); }
  .nav.is-open { transform: none; visibility: visible; transition: transform .25s var(--ease); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list > li > a, .nav-list > li > button { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.05rem; }
  .mega { position: static; box-shadow: none; border: 0; padding: 6px 0 12px 12px; }
  .mega .wrap { width: 100%; }
  .mega-grid { grid-template-columns: 1fr; gap: 14px; }
  .mega-foot { display: none; }
  .nav-mobile-cta { display: grid !important; gap: 10px; margin-top: 18px; }
  .burger { position: relative; z-index: 46; }
  body.nav-open { overflow: hidden; }
  .hero .wrap, .intro-grid, .layout, .contact-grid, .cta-band { grid-template-columns: 1fr; }
  .sticky-card { position: static; }
  .projects, .sectors { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 20px; text-align: left; }
  .steps::before { top: 0; bottom: 0; left: 27px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--navy) 0 8px, transparent 8px 16px); }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 0 18px; text-align: left; }
  .step::before { grid-row: span 2; margin: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 1rem; }
  .topbar .wrap { justify-content: center; }
  .topbar-text { display: none; }
  .brand img { width: 168px; }
  .header .wrap { min-height: 66px; }
  .groups, .projects, .sectors, .brands, .service-list, .form, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-iso { display: none; }
  .section-head { align-items: start; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}
.nav-mobile-cta { display: none; }
@media print { .header, .topbar, .footer, .wa-float, .cta-band { display: none; } }
.cta-band .lead { color: #c9cfe8; }
.cta-actions small a { color: #fff; }

/* ===== Capa interactiva ===== */
.hero::before { display: none; }
.hero-waves { position: absolute; inset: auto -15% -22% 38%; height: 75%; z-index: -1; background: url("../img/recursos/ondas.svg") center / cover no-repeat; opacity: .5; animation: drift 18s ease-in-out infinite alternate; transform-origin: 80% 80%; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-4%, -3%, 0) scale(1.06); } }
.hero h1 em, h2 em { font-style: normal; color: var(--yellow); position: relative; }
h2 em { color: var(--navy); background: linear-gradient(transparent 62%, rgba(253, 234, 24, .75) 62%); }
.bg-navy h2 em { color: var(--yellow); background: none; }
.stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0; }
.stats div { display: flex; flex-direction: column-reverse; padding-left: 16px; border-left: 3px solid var(--yellow); }
.stats dt { font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats dd { margin: 0 0 6px; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: #b9c0dc; font-weight: 700; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .4); border-radius: 14px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--yellow); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.hero-panel { transition: transform .3s var(--ease); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* Encabezado compacto al hacer scroll */
.header { transition: box-shadow .2s; }
.header .wrap { transition: min-height .2s var(--ease); }
.header.is-scrolled { box-shadow: 0 6px 24px rgba(18, 26, 58, .08); }
.header.is-scrolled .wrap { min-height: 64px; }

/* Bloque empresa con foto y sello de años */
.intro-media { position: relative; border-radius: var(--r-lg); aspect-ratio: 1 / 1; max-width: 520px; }
.intro-media > img, .intro-media > .placeholder { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.intro-media::before { content: ""; position: absolute; inset: -18px auto auto -18px; width: 46%; height: 46%; background: url("../img/recursos/cubos.webp") center / cover; border-radius: var(--r-lg); z-index: -1; opacity: .9; }
.years-badge { position: absolute; right: -18px; bottom: -22px; display: grid; gap: 2px; padding: 22px 26px; min-width: 170px; background: var(--yellow); color: var(--navy-900); border-radius: var(--r); box-shadow: var(--shadow-lg); }
.years-badge span { font-size: .72rem; font-weight: 800; letter-spacing: .18em; }
.years-badge b { font-size: 3.6rem; line-height: 1; letter-spacing: -.04em; }
.years-badge small { font-weight: 700; font-size: .9rem; }
.intro-grid .axes { margin: 24px 0; }
.intro-grid { align-items: center; }

/* Explorador de especialidades */
.explorer { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 22px; align-items: start; }
.explorer-tabs { display: grid; gap: 6px; position: sticky; top: 96px; }
.explorer-tabs button { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 700 .95rem/1.25 var(--font); color: var(--ink); text-align: left; cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .18s var(--ease); }
.explorer-tabs button .icon { width: 40px; height: 40px; padding: 7px; border-radius: 10px; background: var(--mist-50); color: var(--navy); transition: inherit; }
.explorer-tabs button small { font-size: .78rem; color: var(--muted); background: var(--mist-50); border-radius: 999px; padding: 2px 8px; }
.explorer-tabs button:hover { border-color: var(--navy); transform: translateX(3px); }
.explorer-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.explorer-tabs button[aria-selected="true"] .icon { background: var(--yellow); color: var(--navy-900); }
.explorer-tabs button[aria-selected="true"] small { background: rgba(255, 255, 255, .15); color: #fff; }
.explorer-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); animation: panelIn .35s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }
.explorer-media { position: relative; min-height: 100%; background: var(--navy); }
.explorer-media img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }
.explorer-media .chip { position: absolute; left: 16px; top: 16px; }
.explorer-body { padding: clamp(22px, 3vw, 34px); }
.explorer-body > p { color: var(--muted); }
.explorer-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.explorer-list a { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .18s, background .18s; }
.explorer-list a:hover { border-color: var(--navy); background: var(--mist-50); }
.explorer-list strong { display: block; font-size: .98rem; }
.explorer-list small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.45; margin-top: 2px; }

/* Luz que sigue al cursor */
[data-spot], .project-card, .service-item { position: relative; isolation: isolate; }
[data-spot]::after, .project-card::after, .service-item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(253, 234, 24, .16), transparent 60%); z-index: 1; }
[data-spot]:hover::after, .project-card:hover::after, .service-item:hover::after { opacity: 1; }
a.sector { text-decoration: none; display: block; transition: background .2s; }
a.sector:hover { background: var(--navy-700); }
.sectors-light a.sector:hover { background: var(--mist-50); }
.section-waves { position: relative; overflow: hidden; isolation: isolate; }
.section-waves::after { content: ""; position: absolute; inset: 40% -20% -30% 50%; background: url("../img/recursos/ondas-2.svg") center / cover no-repeat; opacity: .25; z-index: -1; }

/* Cinta de logos */
.marquee { margin-top: 48px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; list-style: none; margin: 0; padding: 8px 0; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee li { flex: none; display: grid; place-items: center; width: 180px; height: 84px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); }
.marquee img { max-height: 48px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: .2s; }
.marquee li:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }

/* Línea de proceso que se completa al bajar */
.steps::after { content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 2px; background: var(--yellow); transform: scaleX(var(--progress, 0)); transform-origin: left; transition: transform .2s linear; }
.step::before { transition: transform .3s var(--ease), box-shadow .3s; }
.step.is-on::before { transform: scale(1.08); box-shadow: 0 0 0 8px var(--mist-50), 0 0 0 12px rgba(253, 234, 24, .35); }
.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }

@media (max-width: 1020px) {
  .explorer { grid-template-columns: 1fr; }
  .explorer-tabs { position: static; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .explorer-tabs button { flex: none; scroll-snap-align: start; grid-template-columns: 32px auto auto; }
  .explorer-tabs button .icon { width: 32px; height: 32px; padding: 5px; }
  .explorer-panel { grid-template-columns: 1fr; }
  .explorer-media img { min-height: 220px; max-height: 260px; }
  .steps::after { top: 0; bottom: 0; left: 27px; right: auto; width: 2px; height: auto; transform: scaleY(var(--progress, 0)); transform-origin: top; }
  .intro-media { margin: 0 auto 30px; }
  .years-badge { right: 0; }
}
@media (max-width: 680px) {
  .scroll-cue { display: none; }
  .stats { gap: 14px 24px; }
  .intro-media::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-track li[aria-hidden] { display: none; }
}
