/* Central de Reformas Zaragoza — estilos */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-var.woff2") format("woff2-variations"), url("../fonts/archivo-var.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-var.woff2") format("woff2-variations"), url("../fonts/inter-var.woff2") format("woff2");
}

:root {
  --ink: #0A0B0D;
  --ink-2: #2A313B;
  --muted: #4A5463;
  --line: #E6E9ED;
  --line-2: #C9D0D8;
  --soft: #F4F6F8;
  --white: #FFFFFF;
  --accent: #1F74D0;
  --accent-dark: #15528F;
  --accent-light: #4DA3F0;
  --accent-pale: #8EC8F5;
  --on-dark: #F2F4F7;
  --on-dark-muted: #9AA3AE;
  --on-dark-soft: #D5DAE1;
  --mark-c: #7D8590;
  --radius: 18px;
  --wrap: 1360px;
  --gutter: 20px;
  --display: "Archivo", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: 10px; background: var(--ink); color: var(--white); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: var(--white); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
body.no-scroll { overflow: hidden; }

/* ---------- Tipografía ---------- */
.eyebrow { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); flex: 0 0 auto; }
.on-dark .eyebrow { color: var(--on-dark-muted); }
.on-dark .eyebrow::before { background: var(--accent-light); }
.h2 { margin: 0; font-family: var(--display); font-stretch: 115%; font-weight: 700; font-size: clamp(32px, 4vw, 56px); line-height: 1; letter-spacing: -0.02em; }
.h3 { margin: 0; font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 22px; line-height: 1.1; }
.lead { margin: 0; max-width: 440px; font-size: 17px; color: var(--muted); }
.on-dark .lead { color: var(--on-dark-muted); }
.hl { color: var(--accent-light); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.sec-head > div { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.sec-head > .lead { flex: 1 1 340px; min-width: 0; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px; border: 0; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, transform .2s; }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); color: var(--white); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--soft); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 20px; }
.arrow { display: inline-block; transition: transform .3s; }

/* ---------- Logo ---------- */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand:hover { color: var(--ink); }
.mark { width: 58px; height: 40px; flex: 0 0 auto; }
.mark-c { fill: var(--mark-c); }
.mark-r { fill: var(--accent); }
.wordmark { display: flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1; }
.wm-1 { font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 21px; letter-spacing: 0.08em; }
.wm-2 { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-stretch: 112%; font-weight: 500; font-size: 9.5px; letter-spacing: 0.24em; color: var(--muted); }
.wm-2::before, .wm-2::after { content: ""; width: 14px; height: 2px; background: var(--accent); }
.on-dark .brand, .on-dark .brand:hover { color: var(--on-dark); }
.on-dark { --mark-c: #C9CED4; }
.on-dark .wm-2 { color: var(--on-dark-muted); }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(10,11,13,0.06); }
.site-header .wrap { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.nav-desk { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-desk a { color: var(--ink-2); text-decoration: none; }
.nav-desk a:hover { color: var(--accent); }
.nav-desk .nav-tel { font-weight: 600; white-space: nowrap; }
.nav-desk .btn { color: var(--white); }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--white); font-weight: 600; cursor: pointer; }

/* ---------- Menú móvil ---------- */
.mmenu { position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--on-dark); display: flex; flex-direction: column; overflow-y: auto; }
.mmenu[hidden] { display: none; }
.mmenu.is-open { animation: fade .3s ease both; }
.mmenu-top { padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mmenu-close { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.22); background: transparent; color: var(--on-dark); font-weight: 600; cursor: pointer; }
.mmenu-intro { padding: 28px var(--gutter) 8px; display: flex; flex-direction: column; gap: 10px; }
.mline { height: 3px; width: 72px; background: var(--accent); border-radius: 2px; }
.mmenu.is-open .mline { animation: mline .6s cubic-bezier(.2,.7,.2,1) both; }
.mmenu-intro p { margin: 0; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); }
.mmenu nav { padding: 8px var(--gutter); display: flex; flex-direction: column; }
.mmenu nav a { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); text-decoration: none; color: var(--on-dark); }
.mmenu.is-open nav a { animation: miIn .5s cubic-bezier(.2,.7,.2,1) both; }
.mmenu nav a:nth-child(1) { animation-delay: .05s; } .mmenu nav a:nth-child(2) { animation-delay: .12s; } .mmenu nav a:nth-child(3) { animation-delay: .19s; } .mmenu nav a:nth-child(4) { animation-delay: .26s; } .mmenu nav a:nth-child(5) { animation-delay: .33s; }
.mm-n { font-size: 13px; font-weight: 600; color: var(--accent-light); width: 22px; }
.mm-l { flex: 1 1 auto; font-family: var(--display); font-stretch: 115%; font-weight: 700; font-size: 26px; line-height: 1.1; letter-spacing: -0.01em; }
.mm-img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.mmenu-actions { margin-top: auto; padding: 24px var(--gutter) 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mmenu-actions a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 12px; font-weight: 600; text-decoration: none; }
.mmenu-actions .ghost { border: 1px solid rgba(255,255,255,0.22); color: var(--on-dark); }
.mmenu-actions .solid { background: var(--accent); color: var(--white); }
.mmenu.is-open .mmenu-actions { animation: miIn .5s .42s cubic-bezier(.2,.7,.2,1) both; }

/* ---------- Portada ---------- */
.hero { position: relative; min-height: min(720px, 92vh); overflow: hidden; display: flex; align-items: flex-end; color: var(--white); background: var(--ink); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: hsFade 18s infinite both; }
.hero-bg img:nth-child(2) { animation-delay: 6s; }
.hero-bg img:nth-child(3) { animation-delay: 12s; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,11,13,0.9) 0%, rgba(10,11,13,0.45) 50%, rgba(10,11,13,0.15) 100%); }
.hero-body { position: relative; padding-top: 120px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }
.hero .eyebrow { color: var(--on-dark-soft); }
.hero .eyebrow::before { background: var(--accent-light); }
.hero h1 { margin: 0; max-width: 900px; font-family: var(--display); font-stretch: 118%; font-weight: 700; font-size: clamp(44px, 7.4vw, 108px); line-height: 0.95; letter-spacing: -0.035em; }
.hero-sub { margin: 0; max-width: 560px; font-size: 18px; color: var(--on-dark-soft); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }

/* ---------- Garantías ---------- */
.promises { border-bottom: 1px solid var(--line); }
.promises ul { margin: 0 auto; padding-top: 26px; padding-bottom: 26px; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px 40px; font-family: var(--display); font-stretch: 108%; font-weight: 600; font-size: 17px; }
.promises li { display: flex; align-items: center; gap: 10px; }
.promises svg { flex: 0 0 auto; color: var(--accent); }

/* ---------- Dos caminos ---------- */
.paths-sec { max-width: 1384px; margin: 0 auto; padding: 88px 12px 96px; display: flex; flex-direction: column; gap: 36px; }
.paths-sec > .sec-title { padding: 0 8px; display: flex; flex-direction: column; gap: 10px; }
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.panel { position: relative; display: flex; min-height: 520px; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--white); background: var(--ink); }
.panel:hover { color: var(--white); }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,11,13,0.9) 0%, rgba(10,11,13,0.15) 60%); }
.panel-body { position: relative; z-index: 1; margin-top: auto; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.panel-tag { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-pale); }
.panel-title { font-family: var(--display); font-stretch: 115%; font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.02; letter-spacing: -0.02em; }
.panel-text { max-width: 440px; color: var(--on-dark-soft); }
.panel-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.zoom { transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.panel:hover .zoom, .tile:hover .zoom { transform: scale(1.06); }
.panel:hover .arrow { transform: translateX(6px); }

/* ---------- Servicios ---------- */
.services { padding-bottom: 96px; display: flex; flex-direction: column; gap: 32px; }
.svc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.svc article { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 28px; border-radius: 16px; border: 1px solid var(--line); background: var(--white); transition: border-color .2s, transform .2s; }
.svc article:hover { border-color: var(--line-2); transform: translateY(-2px); }
.svc-n { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 15px; color: var(--accent); }
.svc p { margin: 0; font-size: 15px; color: var(--muted); }
.also { margin: 0; padding: 18px 22px; border-radius: 14px; background: var(--soft); font-size: 15px; color: var(--ink-2); }
.also strong { font-weight: 600; }

/* ---------- Antes y después ---------- */
.works { background: var(--soft); }
.works .wrap { padding-top: 96px; padding-bottom: 96px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.works-text { display: flex; flex-direction: column; gap: 22px; }
.works-text p { margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); color: var(--ink); font-weight: 600; cursor: pointer; }
.pill[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.ba-caption { font-size: 15px; color: var(--ink-2); }
.ba-note { font-size: 13px; color: var(--muted); }
.ba { position: relative; width: 100%; max-width: 560px; justify-self: center; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: #DDE2E7; color: var(--white); user-select: none; -webkit-user-select: none; touch-action: pan-y; --pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-tag { position: absolute; bottom: 18px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; pointer-events: none; }
.ba-tag.l { left: 18px; background: rgba(10,11,13,0.8); }
.ba-tag.r { right: 18px; background: var(--accent); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--white); pointer-events: none; }
.ba-handle { position: absolute; top: 50%; left: var(--pos); width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--white); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 18px rgba(0,0,0,0.3); pointer-events: none; }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; }
.ba:has(input:focus-visible) .ba-handle { outline: 3px solid var(--accent-light); outline-offset: 3px; }

/* ---------- Cómo trabajamos ---------- */
.process { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid var(--ink); }
.step-n { font-family: var(--display); font-stretch: 118%; font-weight: 700; font-size: 56px; line-height: 1; color: var(--accent); }
.steps p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Profesionales ---------- */
.pro { background: var(--ink); color: var(--on-dark); padding: 96px 0 12px; }
.pro-head { padding-bottom: 40px; }
.pro h2 { font-stretch: 118%; font-size: clamp(34px, 4.6vw, 64px); letter-spacing: -0.025em; }
.bento { padding: 0 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 270px; gap: 12px; max-width: 1384px; margin: 0 auto; }
.b-big { grid-column: span 2; grid-row: span 2; }
.b-wide { grid-column: span 2; }
.tile { position: relative; overflow: hidden; border: 0; border-radius: var(--radius); padding: 0; background: #15181D; color: var(--white); text-align: left; cursor: pointer; display: flex; transition: box-shadow .25s, transform .25s; }
.tile:hover { transform: translateY(-2px); }
.tile[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--accent-light); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,11,13,0.92) 0%, rgba(10,11,13,0.25) 65%); }
.tile-badge { position: absolute; z-index: 1; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(10,11,13,0.45); border: 1px solid rgba(255,255,255,0.5); }
.tile[aria-pressed="true"] .tile-badge { background: var(--accent); }
.tile .i-check { display: none; }
.tile[aria-pressed="true"] .i-check { display: block; }
.tile[aria-pressed="true"] .i-plus { display: none; }
.tile-body { position: relative; z-index: 1; margin-top: auto; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.tile-n { font-size: 13px; font-weight: 600; color: var(--accent-pale); }
.tile-t { font-family: var(--display); font-stretch: 115%; font-weight: 700; font-size: 26px; line-height: 1.05; }
.tile-d { font-size: 15px; color: var(--line-2); max-width: 380px; }
.selbar { position: sticky; bottom: 12px; z-index: 5; margin: 12px; padding: 14px 14px 14px 24px; border-radius: var(--radius); background: var(--white); color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; max-width: 1360px; }
@media (min-width: 1385px) { .selbar { margin: 12px auto; } }
.selbar-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.selbar-k { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.selbar-v { font-weight: 600; font-size: 16px; }
.selbar .btn { min-height: 50px; padding: 0 24px; }

/* ---------- Empleo ---------- */
.jobs { padding: 96px 12px 0; }
.jobs-card { position: relative; max-width: var(--wrap); margin: 0 auto; border-radius: var(--radius); overflow: hidden; min-height: 340px; display: flex; align-items: center; color: var(--white); }
.jobs-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jobs-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(18,78,146,0.94) 0%, rgba(18,78,146,0.65) 55%, rgba(18,78,146,0.25) 100%); }
.jobs-body { position: relative; z-index: 2; width: 100%; padding: 56px 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.jobs-body > div { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.jobs-k { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #D6E4FF; }
.jobs h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.02; }
.jobs-body p.t { margin: 0; color: #E6EEFF; }

/* ---------- Contacto ---------- */
.contact { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 48px; }
.contact-info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.contact-info h2 { margin: 0; font-family: var(--display); font-stretch: 118%; font-weight: 700; font-size: clamp(36px, 5vw, 72px); line-height: 0.98; letter-spacing: -0.03em; }
.contact-info > p { margin: 0; font-size: 18px; color: var(--muted); max-width: 440px; }
.clinks { display: flex; flex-direction: column; gap: 10px; max-width: 440px; }
.clink { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 10px 22px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; transition: border-color .2s; }
.clink:hover { color: var(--ink); border-color: var(--line-2); }
.clink span:first-child { min-width: 0; overflow-wrap: anywhere; display: flex; align-items: center; gap: 12px; }
.clink svg { flex: 0 0 auto; color: var(--accent); }
.clink .arrow { color: var(--accent); }
.clink:hover .arrow { transform: translateX(4px); }
.cnote { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

.form { flex: 1 1 540px; min-width: 0; background: var(--soft); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form fieldset[hidden] { display: none; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; text-align: center; padding: 0 6px; }
.seg input:checked + span { background: var(--accent); color: var(--white); }
.seg input:focus-visible + span { outline: 3px solid var(--accent-light); outline-offset: 2px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; align-items: end; }
.grid2 + .grid2, fieldset > .grid2 + .field { margin-top: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { min-height: 50px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--white); color: var(--ink); font-weight: 400; font-size: 16px; width: 100%; }
.field select { padding: 0 12px; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 96px; }
.field input[type="file"] { padding: 12px 14px; border-style: dashed; border-color: var(--on-dark-muted); font-size: 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,116,208,0.18); }
.field .opt { font-weight: 400; color: var(--muted); }
.legend { padding: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--accent-light); outline-offset: 2px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; }
.form .btn[disabled] { opacity: .65; cursor: progress; }
.form-status { margin: 0; padding: 14px 16px; border-radius: 12px; font-size: 15px; }
.form-status[hidden] { display: none; }
.form-status.ok { background: #E7F3E9; color: #17491F; }
.form-status.err { background: #FDECEC; color: #7A1616; }
.form-alt { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); }
.foot-top { padding-top: 56px; padding-bottom: 24px; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px 48px; }
.foot-brand { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; }
.foot-tag { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; color: var(--on-dark-muted); }
.foot-brand p { margin: 0; font-size: 14px; color: var(--on-dark-muted); max-width: 340px; }
.foot-col { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.foot-col.narrow { flex: 0 1 180px; }
.foot-k { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); }
.foot-col a { color: var(--on-dark); text-decoration: none; }
.foot-col a:hover { color: var(--accent-light); text-decoration: underline; }
.foot-col span { color: var(--line-2); }
.foot-bottom { padding-top: 20px; padding-bottom: 20px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; font-size: 14px; color: var(--on-dark-muted); }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-bottom a { color: var(--on-dark-muted); }
.foot-bottom a:hover { color: var(--on-dark); }

/* ---------- Barra móvil ---------- */
.mbar { display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; padding: 6px; border-radius: 16px; background: rgba(10,11,13,0.94); border: 1px solid rgba(255,255,255,0.1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); gap: 6px; }
.mbar a { min-height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.mbar .ico { flex: 0 0 52px; color: var(--on-dark); background: #1B1F25; }
.mbar .cta { flex: 1 1 auto; gap: 8px; background: var(--accent); color: var(--white); font-weight: 600; }

/* ---------- Páginas legales ---------- */
.legal { max-width: 820px; padding-top: 64px; padding-bottom: 96px; }
.legal h1 { margin: 0 0 8px; font-family: var(--display); font-stretch: 115%; font-weight: 700; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.02em; }
.legal h2 { margin: 36px 0 10px; font-family: var(--display); font-stretch: 110%; font-size: 22px; }
.legal p, .legal li { color: var(--ink-2); }
.legal .updated { color: var(--muted); font-size: 14px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.simple-hero { padding: 120px 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.simple-hero h1 { margin: 0; font-family: var(--display); font-stretch: 118%; font-weight: 700; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.simple-hero p { margin: 0; max-width: 520px; font-size: 18px; color: var(--muted); }

/* ---------- Animaciones ---------- */
@keyframes hsFade { 0% { opacity: 0; transform: scale(1.1); } 6% { opacity: 1; } 33% { opacity: 1; } 40% { opacity: 0; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
@keyframes miIn { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
@keyframes mline { from { width: 0; } to { width: 72px; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-desk { gap: 20px; font-size: 14px; }
  .nav-desk .nav-sec { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav-desk { display: none; }
  .menu-btn { display: inline-flex; }
  .mbar { display: flex; }
  .site-footer { padding-bottom: 84px; }
  .paths { grid-template-columns: minmax(0, 1fr); }
  .panel { min-height: 420px; }
  .svc, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works .wrap { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 190px; }
  .b-big { grid-column: span 2; grid-row: span 1; }
  .tile-d { display: none; }
  .wm-1 { font-size: 18px; }
  .mark { width: 50px; height: 34px; }
}
@media (max-width: 560px) {
  .svc, .steps { grid-template-columns: minmax(0, 1fr); }
  .hero-body { padding-bottom: 48px; }
  .panel-body { padding: 26px; }
  .jobs-body { padding: 40px 24px; }
  .form { padding: 20px; }
  .seg span { font-size: 13px; }
  .tile-t { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg img { animation: none; }
  .hero-bg img:first-child { opacity: 1; }
  .mmenu.is-open, .mmenu.is-open nav a, .mmenu.is-open .mline, .mmenu.is-open .mmenu-actions { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .zoom, .tile, .svc article { transition: none; }
}
