/* Galeote Soluciones Mecánicas — estilos de la web (tema oscuro "plano técnico") */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); }

:root {
  --bg: #0f1216;
  --surface: #171b21;
  --text: #e6e9ee;
  --muted: #a7b0bd;
  --divider: rgba(230, 233, 238, .16);
  --paper: #f2f4f7;
  --accent: #2f6bc4;
  --accent-600: #2559a8;
  --accent-300: #9fbbe6;
  --accent-700: #8fb0e3;
  --accent-800: #b8cdef;
  --accent-900: #0b1a36;
  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 72px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #14181e 0%, #0f1216 45%, #0a0c10 100%) fixed;
  background-color: var(--bg);
  color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  text-wrap: pretty;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--accent-700); text-underline-offset: 3px; }
a:hover { color: var(--accent-800); }
:focus-visible { outline: 2px solid var(--accent-300); outline-offset: 3px; }
::selection { background: rgba(47, 107, 196, .45); }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; line-height: 1.02; margin: 0; letter-spacing: .01em; }
p { margin: 0 0 14px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--paper); color: #0f1216; padding: 8px 14px; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: 56px; padding-bottom: 56px; }
.kicker { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--accent-700); font-family: var(--font-body); margin-bottom: 12px; line-height: 1.4; }
.lead { font-size: 18px; line-height: 1.6; max-width: 62ch; color: var(--muted); }
.muted { color: var(--muted); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; border-bottom: 1px solid var(--divider); padding-bottom: 14px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(32px, 3.6vw, 48px); }

/* — marco "plano" con marcas de registro — */
.blueprint { position: relative; border: 1px solid var(--divider); }
.blueprint > .corner { position: absolute; width: 11px; height: 11px; color: rgba(230, 233, 238, .55); pointer-events: none; z-index: 2; }
.blueprint > .corner::before, .blueprint > .corner::after { content: ""; position: absolute; background: currentColor; }
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after { top: 5px; left: 0; width: 100%; height: 1px; }
.blueprint > .tl { top: -6px; left: -6px; } .blueprint > .tr { top: -6px; right: -6px; }
.blueprint > .bl { bottom: -6px; left: -6px; } .blueprint > .br { bottom: -6px; right: -6px; }

/* — botones — */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: 600; font-size: 17px; letter-spacing: .02em; line-height: 1.2;
  color: var(--text); background: transparent; border: 1px solid var(--divider); padding: 12px 22px; }
.btn svg { flex: none; }
.btn:hover { background: rgba(230, 233, 238, .07); color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn-primary:hover { background: var(--accent-600); color: var(--paper); }
.btn-ghost { border-color: transparent; color: var(--accent-700); padding-left: 4px; padding-right: 4px; }
.btn-ghost:hover { background: rgba(47, 107, 196, .14); color: var(--accent-800); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* — cabecera — */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(15, 18, 22, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--divider); }
.nav { display: flex; align-items: center; gap: 22px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; flex-direction: column; line-height: 1; text-decoration: none; color: var(--text); margin-right: auto; }
.brand:hover { color: var(--text); }
.brand-name { font-family: var(--font-heading); font-weight: 600; font-size: 24px; letter-spacing: .12em; }
.brand-sub { font-size: 10px; letter-spacing: .28em; color: var(--accent-700); margin-top: 4px; }
.brand img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 22px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent-700); }
.nav-phone { padding: 9px 16px; font-size: 16px; }
.menu { display: none; }
.menu > summary { list-style: none; cursor: pointer; border: 1px solid var(--divider); padding: 8px 12px; font-family: var(--font-heading); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 15px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: var(--pad); left: var(--pad); top: calc(100% + 1px); background: #12161b; border: 1px solid var(--divider); padding: 8px 0; }
.menu-panel a { display: block; padding: 12px 20px; color: var(--text); text-decoration: none; font-weight: 500; }
.menu-panel a[aria-current="page"] { color: var(--accent-700); }
@media (max-width: 920px) {
  .nav-links { display: none; }
  .menu { display: block; }
  .nav-phone .label { display: none; }
  .nav-phone { padding: 9px 12px; }
}

/* — migas — */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 28px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* — portada — */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 80px); align-items: center; padding-top: clamp(48px, 8vw, 104px); padding-bottom: 72px; }
.hero h1 .display { display: block; font-size: clamp(46px, 6.4vw, 88px); line-height: .98; }
.hero h1 .display span { display: block; }
.hero h1 .display .hl { color: var(--accent-700); }
.hero .lead { margin-top: 26px; }
.page-hero { padding-top: clamp(32px, 5vw, 64px); padding-bottom: 24px; }
.page-hero h1 { font-size: clamp(42px, 6vw, 78px); line-height: .98; max-width: 18ch; }
.page-hero .lead { margin-top: 22px; }

/* — tarjetas — */
.card { position: relative; border: 1px solid var(--divider); padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 24px; line-height: 1.1; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 15px; }
a.card { color: var(--text); text-decoration: none; transition: background .15s; }
a.card:hover { background: rgba(230, 233, 238, .04); color: var(--text); }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid-3 { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.area { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px 56px; padding: 44px 0; border-bottom: 1px solid var(--divider); }
.area:first-child { border-top: 1px solid var(--divider); }
.area .num { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 56px; line-height: 1; color: var(--accent); }
.area h2, .area h3.area-title { font-size: clamp(32px, 3.4vw, 44px); letter-spacing: .04em; margin-top: 14px; }
.area p { margin-top: 14px; color: var(--muted); max-width: 46ch; }

.area-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px 40px; padding: 28px 32px; }
.area-row .title { display: flex; gap: 16px; align-items: baseline; }
.area-row .title .n { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--accent-700); }
.area-row .title h3 { font-size: clamp(28px, 3vw, 38px); letter-spacing: .04em; }
.area-row ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.area-row li a { color: var(--text); text-decoration: none; font-weight: 500; display: flex; gap: 8px; align-items: baseline; }
.area-row li a:hover { color: var(--accent-700); }
.area-row li a::before { content: "+"; color: var(--accent-700); }
.stack { display: flex; flex-direction: column; gap: 28px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); border-top: 1px solid var(--divider); border-left: 1px solid var(--divider); list-style: none; margin: 0; padding: 0; }
.steps li { padding: 28px 24px 32px; border-right: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.steps .n { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 56px; line-height: 1; color: var(--accent); }
.steps h3 { font-size: 26px; line-height: 1.1; margin-top: 18px; }
.steps p { font-size: 15.5px; margin: 10px 0 0; color: var(--muted); }

.project figure { aspect-ratio: 4 / 3; background: #fff; display: flex; align-items: center; justify-content: center; }
.project figure img { width: 100%; height: 100%; object-fit: contain; }
.project .tag { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--accent-700); margin-top: 18px; }
.project h3 { font-size: 24px; line-height: 1.1; margin-top: 6px; }
.project h2 { font-size: 26px; line-height: 1.1; margin-top: 6px; }
.project p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

.tags { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.tags li { border: 1px solid var(--accent); color: var(--accent-700); font-size: 14px; padding: 6px 14px; }
.band { display: flex; gap: 16px 28px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); padding: 22px 0; }

/* — páginas de servicio — */
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.prose h2 { font-size: clamp(28px, 3vw, 38px); margin: 0 0 16px; }
.prose h3 { font-size: 22px; margin: 22px 0 8px; }
.prose ul { padding-left: 20px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--accent-700); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: baseline; }
.checks li::before { content: "+"; color: var(--accent-700); font-weight: 600; }
.panel { padding: clamp(24px, 3.5vw, 36px); }
.panel h2 { font-size: 26px; margin-bottom: 16px; }
.faq details { border-bottom: 1px solid var(--divider); padding: 16px 0; }
.faq details:first-child { border-top: 1px solid var(--divider); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-700); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted); max-width: 70ch; }

/* — contacto — */
.contact-cards a.card .big { font-family: var(--font-heading); font-weight: 600; font-size: clamp(26px, 3vw, 34px); line-height: 1.05; color: var(--text); word-break: break-word; }
.contact-cards .ico { width: 28px; height: 28px; color: var(--accent-700); }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--muted); }
.input { width: 100%; min-height: 42px; padding: 8px 12px; font: inherit; font-size: 15px; color: var(--text); background: rgba(230, 233, 238, .03); border: 1px solid var(--divider); border-radius: 0; }
.input:hover { border-color: rgba(230, 233, 238, .4); }
.input:focus-visible { border-color: var(--accent-300); outline-offset: 0; }
select.input option { background: var(--bg); color: var(--text); }
textarea.input { min-height: 120px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); }

/* — llamada a la acción y pie — */
.cta { background: var(--accent-900); color: var(--paper); margin-top: 40px; }
.cta .inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.cta h2 { font-size: clamp(32px, 4vw, 52px); max-width: 20ch; }
.cta p { margin: 14px 0 0; color: #c7cdd6; font-size: 17px; }
.cta .btn { color: var(--paper); border-color: rgba(242, 244, 247, .45); }
.cta .btn-primary { border-color: var(--accent); }

.site-footer { border-top: 1px solid var(--divider); }
.foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.foot .h { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--accent-700); margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: var(--accent-700); }
.legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding-top: 16px; padding-bottom: 28px; border-top: 1px solid var(--divider); }
.legal a { color: var(--muted); }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 30; padding: 13px 18px; font-size: 16px; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
@media (max-width: 560px) { .wa-float .label { display: none; } .wa-float { padding: 14px; } }

.legal-page h2 { font-size: 26px; margin: 32px 0 12px; }
.legal-page { max-width: 820px; }
.legal-page p, .legal-page li { color: var(--muted); }

/* ================= v2: más imagen, menos texto ================= */
.grid-bg, .tile-art, .art-panel {
  background-image: linear-gradient(rgba(143, 176, 227, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 176, 227, .08) 1px, transparent 1px);
  background-size: 28px 28px; background-position: -1px -1px;
}
.illus { display: block; width: 100%; height: auto; stroke: var(--accent-700); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.illus .h, .illus .hg path { stroke: var(--paper); }
.illus .t { stroke-width: 1.2; opacity: .65; }
.illus .f { fill: var(--paper); stroke: none; }
.illus text { fill: var(--paper); stroke: none; font-family: var(--font-body); font-weight: 500; }

/* — portada — */
.hero-x { position: relative; overflow: hidden; border-bottom: 1px solid var(--divider); isolation: isolate; }
.hero-x::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(rgba(143, 176, 227, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 176, 227, .09) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 75% 45%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse at 75% 45%, #000 0%, transparent 72%); }
.hero-art { position: absolute; z-index: -1; right: -5vw; top: 50%; width: min(66vw, 1060px); max-width: none; height: auto;
  transform: translateY(-50%) rotate(-3deg); filter: invert(1) hue-rotate(180deg) brightness(1.2); mix-blend-mode: screen; opacity: .55;
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 62%); mask-image: linear-gradient(90deg, transparent 8%, #000 62%);
  animation: plot 1.9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes plot { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.hero-in { padding-top: clamp(56px, 10vw, 140px); padding-bottom: clamp(56px, 9vw, 120px); }
.hero-x h1 .hero-sub { display: block; font-family: var(--font-body); font-size: clamp(15px, 1.4vw, 18px); font-weight: 600; text-transform: none; letter-spacing: 0; line-height: 1.4; color: var(--accent-700); margin-bottom: 22px; }
.hero-x .display { display: block; font-weight: 700; font-size: clamp(50px, 10.2vw, 148px); line-height: .92; }
.hero-x .display span { display: block; }
.hero-x .display .l1, .hero-x .display .l2 { color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.hero-x .display .l2 { background: repeating-linear-gradient(-45deg, var(--paper) 0 1.5px, transparent 1.5px 7px); -webkit-background-clip: text; background-clip: text; }
.hero-x .display .l3 { color: var(--paper); }
.hero-x .lead { max-width: 44ch; margin: 30px 0 0; color: var(--text); font-size: clamp(17px, 1.5vw, 20px); }
@media (max-width: 760px) {
  .hero-art { right: -30vw; width: 150vw; opacity: .28; top: 38%; }
  .hero-x .display .l1, .hero-x .display .l2 { -webkit-text-stroke-width: 1.2px; }
}

/* — mosaico de servicios — */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--divider); border-left: 1px solid var(--divider); }
.tile { --illus-bg: #11151b; display: flex; flex-direction: column; color: var(--text); text-decoration: none; background-color: #11151b;
  border-right: 1px solid var(--divider); border-bottom: 1px solid var(--divider); transition: background-color .18s; }
.tile-art { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; padding: 7% 9%; border-bottom: 1px solid var(--divider); overflow: hidden; }
.tile-art.photo { padding: 0; background-image: none; }
.tile-art.photo img { width: 100%; height: 100%; object-fit: cover; }
.tile-txt { padding: 20px 22px 24px; }
.tile h3 { font-size: 24px; line-height: 1.08; }
.tile p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.tile:hover, .tile:focus-visible { background-color: var(--accent-600); --illus-bg: var(--accent-600); color: var(--paper); }
.tile:hover p, .tile:focus-visible p { color: #dfe7f5; }
.tile:hover .illus, .tile:focus-visible .illus { stroke: #cfe0fa; }
.tile.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
.tile.wide .tile-art { aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--divider); }
.tile.wide .tile-txt { align-self: center; padding: 24px 28px; }
.tile.wide h3 { font-size: clamp(26px, 2.6vw, 34px); }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; display: flex; }
  .tile.wide .tile-art { aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--divider); }
  .tile.wide .tile-txt { align-self: auto; padding: 20px 22px 24px; }
}

/* — banda oficina técnica + taller — */
.flow-band { background: var(--accent-600); color: var(--paper); margin-top: 24px; }
.flow-band .wrap { padding-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(48px, 6vw, 84px); }
.flow-band h2 { font-size: clamp(32px, 4.4vw, 60px); max-width: 22ch; line-height: 1; }
.flow { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.flow li { position: relative; border-top: 2px solid var(--paper); padding: 22px 24px 0 0; }
.flow li::before { content: ""; position: absolute; left: 0; top: -9px; width: 2px; height: 16px; background: var(--paper); }
.flow li:last-child::after { content: ""; position: absolute; right: 0; top: -9px; width: 2px; height: 16px; background: var(--paper); }
.flow .n { font-family: var(--font-heading); font-weight: 700; font-size: 20px; opacity: .8; }
.flow h3 { font-size: clamp(26px, 2.6vw, 34px); margin-top: 2px; }
.flow .who { display: block; font-weight: 600; margin-top: 10px; }
.flow p { margin: 2px 0 0; color: #dfe7f5; font-size: 15.5px; line-height: 1.45; }
@media (max-width: 860px) { .flow { grid-template-columns: repeat(2, 1fr); row-gap: 36px; } .flow li:nth-child(2)::after { content: ""; position: absolute; right: 0; top: -9px; width: 2px; height: 16px; background: var(--paper); } }
@media (max-width: 480px) { .flow { grid-template-columns: 1fr; } .flow li::after { content: ""; position: absolute; right: 0; top: -9px; width: 2px; height: 16px; background: var(--paper); } }

/* — páginas de servicio — */
.svc-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(24px, 4vw, 52px); padding-bottom: 40px; }
.svc-hero h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: .98; }
.svc-hero .lead { margin-top: 20px; max-width: 48ch; }
.art-panel { --illus-bg: #11151b; position: relative; border: 1px solid var(--divider); background-color: #11151b; padding: 9% 10%; }
.art-panel.photo { padding: 0; background-image: none; }
.art-panel.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.art-panel > .corner { position: absolute; width: 11px; height: 11px; color: rgba(230, 233, 238, .55); pointer-events: none; }
.art-panel > .corner::before, .art-panel > .corner::after { content: ""; position: absolute; background: currentColor; }
.art-panel > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.art-panel > .corner::after { top: 5px; left: 0; width: 100%; height: 1px; }
.art-panel > .tl { top: -6px; left: -6px; } .art-panel > .tr { top: -6px; right: -6px; }
.art-panel > .bl { bottom: -6px; left: -6px; } .art-panel > .br { bottom: -6px; right: -6px; }
@media (max-width: 860px) { .svc-hero { grid-template-columns: 1fr; } .svc-hero .art-panel { order: -1; max-width: 520px; } }
.taller { display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; align-items: center; border: 1px solid var(--accent); background: rgba(47, 107, 196, .14); padding: 26px 30px; }
.taller h2 { font-size: 26px; }
.taller p { margin: 8px 0 0; color: var(--text); max-width: 68ch; }
@media (max-width: 700px) { .taller { grid-template-columns: 1fr; } }
.sec-head.plain { border-bottom: 0; padding-bottom: 0; margin-bottom: 24px; }
.section.tight { padding-top: 36px; padding-bottom: 36px; }
.project figure img { transition: transform .25s; }
.provs { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.provs li { border: 1px solid var(--divider); padding: 8px 16px; font-family: var(--font-heading); font-weight: 600; font-size: 19px; letter-spacing: .04em; text-transform: uppercase; }
.provs li.home { background: var(--accent); border-color: var(--accent); color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art { animation: none; }
  .tile, .project figure img, a.card { transition: none; }
}
.flow-band h2 { max-width: none; }
.flow-band h2 span { display: block; }
.flow-band + .cta { margin-top: 0; }

/* — logo — */
.brand { flex-direction: row; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.foot img { width: 210px; height: auto; }
@media (max-width: 400px) { .brand-sub { display: none; } .brand img { width: 40px; height: 40px; } }

/* ================= v3: menú por áreas ================= */
.illus .bg { fill: var(--illus-bg, #11151b); }
.nav-links { gap: 20px; }
.nav-links > li { position: relative; padding: 18px 0; margin: -18px 0; }
.nav-links a[aria-current] { color: var(--accent-700); }
.nav-links .has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; vertical-align: 3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .7; }
.nav-links .sub { display: none; position: absolute; top: 100%; left: -18px; z-index: 40; min-width: 270px; list-style: none; margin: 0; padding: 8px 0;
  background: #12161b; border: 1px solid var(--divider); border-top: 2px solid var(--accent); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.nav-links .has-sub:hover > .sub, .nav-links .has-sub:focus-within > .sub { display: block; }
.nav-links .sub a { display: block; padding: 9px 18px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav-links .sub a:hover { background: rgba(47, 107, 196, .16); color: var(--text); }
.menu-panel { max-height: calc(100vh - 90px); overflow-y: auto; }
.menu-panel .mtop { font-weight: 600; }
.menu-panel .mgroup { border-bottom: 1px solid var(--divider); padding-bottom: 6px; margin-bottom: 4px; }
.menu-panel .msub { padding: 7px 20px 7px 34px; font-size: 15px; font-weight: 400; color: var(--muted); }
.menu-panel a[aria-current] { color: var(--accent-700); }
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .menu { display: block; }
}

/* — tres áreas en portada — */
.groups { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--divider); border-left: 1px solid var(--divider); }
.group { --illus-bg: #11151b; display: flex; flex-direction: column; background: #11151b; border-right: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.group > a { display: block; }
.group-txt { padding: 22px 26px 28px; }
.group h3 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.02; }
.group h3 a { color: var(--text); text-decoration: none; }
.group h3 a:hover { color: var(--accent-700); }
.group p { margin: 8px 0 16px; color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.group ul { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--divider); display: grid; gap: 8px; }
.group li a { color: var(--text); text-decoration: none; font-weight: 500; display: flex; gap: 8px; align-items: baseline; }
.group li a::before { content: "+"; color: var(--accent-700); }
.group li a:hover { color: var(--accent-700); }
.group-form { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: baseline; padding: 20px 26px; color: var(--text); text-decoration: none;
  border: 1px solid var(--divider); border-top: 0; }
.group-form:hover { background: rgba(230, 233, 238, .04); color: var(--text); }
.gf-title { font-family: var(--font-heading); font-weight: 600; font-size: 24px; text-transform: uppercase; }
.gf-line { color: var(--muted); }
@media (max-width: 860px) { .groups { grid-template-columns: 1fr; } }
.tiles.n4 { grid-template-columns: repeat(4, 1fr); }
.tiles.n2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .tiles.n4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles.n4, .tiles.n2 { grid-template-columns: 1fr; } }

/* ================= v4: fotos en servicios ================= */
.tile-art.photo, .art-panel.photo { background: #fff; }
.tile-art.photo img { object-fit: contain; }
.art-panel.photo img { aspect-ratio: auto; height: auto; object-fit: contain; }
.tiles.n3 { grid-template-columns: repeat(3, 1fr); }
.tiles.n5 { grid-template-columns: repeat(3, 1fr); }
.tiles.n5 .tile.wide { grid-column: span 2; display: flex; flex-direction: column; }
.tiles.n5 .tile.wide .tile-art { aspect-ratio: 32 / 10; border-right: 0; border-bottom: 1px solid var(--divider); }
.tiles .tile.wide .tile-txt { align-self: auto; }
@media (max-width: 1000px) { .tiles.n3, .tiles.n5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .tiles.n3, .tiles.n5 { grid-template-columns: 1fr; }
  .tiles.n5 .tile.wide { grid-column: auto; }
  .tiles.n5 .tile.wide .tile-art { aspect-ratio: 16 / 10; }
}
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
[id] { scroll-margin-top: 88px; }

/* carrusel de fotos de proyecto */
.project figure.carousel { display: block; }
.car-track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.car-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; }
.car-btn { position: absolute; top: 50%; z-index: 3; width: 40px; height: 40px; margin-top: -20px; border: 0; padding: 0; display: none; place-items: center; background: rgba(15, 18, 22, .78); color: #fff; cursor: pointer; transition: background .15s; }
.carousel.js .car-btn { display: grid; }
.car-btn.prev { left: 0; } .car-btn.next { right: 0; }
.car-btn:hover { background: var(--accent); }
.car-btn:focus-visible { outline: 2px solid var(--accent-300); outline-offset: -4px; background: var(--accent); }
.car-dots { position: absolute; z-index: 3; bottom: 0; left: 50%; transform: translateX(-50%); display: none; background: rgba(15, 18, 22, .78); padding: 0 4px; }
.carousel.js .car-dots { display: flex; }
.car-dots button { width: 22px; height: 22px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.car-dots button::before { content: ""; width: 7px; height: 7px; background: rgba(255, 255, 255, .4); transition: background .15s, width .15s; }
.car-dots button[aria-current="true"]::before { width: 16px; background: #fff; }
.car-dots button:focus-visible { outline: 2px solid var(--accent-300); outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .car-btn, .car-dots button::before { transition: none; } }
.project figure img.cover { object-fit: cover; }
.car-slide.dark { background: #16191e; }
