/* URBE Proyectos y Gestión de Obras — estilos de la web (diseño específico de este cliente) */

@font-face {
  font-family: "Urbanist";
  src: url("../fonts/urbanist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #002160;
  --accent: #f2b33d;
  --soft: #eef1f6;
  --ink: #1d2742;
  --muted: #56607a;
  --paper: #ffffff;
  --line: rgba(0, 33, 96, .14);
  --wrap: 1240px;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Urbanist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --hdr: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; font-weight: 450; color: var(--ink); background: var(--paper); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--navy); font-weight: 650; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--navy); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: .75rem; z-index: 200; background: var(--accent); color: var(--navy); padding: .7rem 1rem; font-weight: 700; border-radius: 6px; }
.skip:focus { left: .75rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: 0 1.6rem; border-radius: 999px; border: 1.5px solid var(--bg);
  background: var(--bg); color: var(--fg); font: inherit; font-weight: 650; font-size: 1rem; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .25s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hover, #fff); transform: translateY(101%); transition: transform .45s var(--ease); border-radius: inherit; }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:active { transform: scale(.97); }
.btn-accent { --bg: var(--accent); --fg: var(--navy); --hover: #fff; }
.btn-navy { --bg: var(--navy); --fg: #fff; --hover: var(--accent); }
.btn-navy:hover, .btn-navy:focus-visible { color: var(--navy); border-color: var(--accent); }
.btn-line { --bg: transparent; --fg: #fff; --hover: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-line:hover, .btn-line:focus-visible { color: var(--navy); border-color: #fff; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Cabecera ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr); color: #fff; transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease); }
.hdr-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.hdr-logo { display: block; flex: none; position: relative; z-index: 2; }
.hdr-logo img { height: 44px; width: auto; }
.hdr .logo-dark { display: none; }
.hdr.is-scrolled { background: rgba(255, 255, 255, .92); color: var(--navy); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.hdr.is-scrolled .logo-dark { display: block; }
.hdr.is-scrolled .logo-light { display: none; }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr-nav { display: flex; align-items: center; gap: 2rem; }
.hdr-nav ul { display: flex; gap: 1.75rem; }
.hdr-nav ul a { position: relative; text-decoration: none; font-weight: 550; font-size: .98rem; padding: .4rem 0; }
.hdr-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.hdr-nav ul a:hover::after, .hdr-nav ul a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.hdr-call { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 650; padding: .55rem 1.05rem; border-radius: 999px; border: 1.5px solid currentColor; font-variant-numeric: tabular-nums; transition: background .3s, color .3s, border-color .3s; }
.hdr-call:hover { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.hdr-toggle { display: none; }

/* ---------- Portada ---------- */
.hero { position: relative; min-height: max(640px, 100svh); background: var(--navy); color: #fff; overflow: hidden; display: flex; align-items: center; padding: calc(var(--hdr) + 2rem) 0 4rem; cursor: crosshair; }
.hero a, .hero button { cursor: pointer; }
.hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, rgba(0, 0, 0, .18)); pointer-events: none; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-loc { display: inline-flex; align-items: center; gap: .55rem; color: rgba(255, 255, 255, .78); font-weight: 550; margin-bottom: 1.4rem; }
.pin { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pin 2.4s infinite; }
@keyframes pin { 0% { box-shadow: 0 0 0 0 rgba(242, 179, 61, .7); } 70%, 100% { box-shadow: 0 0 0 12px rgba(242, 179, 61, 0); } }
.hero-title { color: #fff; font-size: clamp(2.5rem, 5.6vw, 5rem); line-height: 1.02; font-weight: 680; letter-spacing: -.035em; max-width: 13ch; margin-bottom: 1.6rem; text-wrap: balance; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .w > span { display: inline-block; transform: translateY(105%); animation: rise .9s var(--ease) forwards; animation-delay: calc(.15s + var(--i) * .06s); }
@keyframes rise { to { transform: none; } }
.hero-sub { font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: rgba(255, 255, 255, .82); max-width: 46ch; margin-bottom: 2.2rem; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-art { position: relative; }
.hero-photo { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.hero-coord { position: absolute; z-index: 2; left: 0; top: 0; margin: 0; pointer-events: none; font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: var(--navy); background: var(--accent); padding: .2rem .5rem; border-radius: 4px; font-variant-numeric: tabular-nums; white-space: pre; opacity: 0; transition: opacity .2s; will-change: transform; }
.hero-coord.is-on { opacity: 1; }
.hero-copy > :not(.hero-title) { opacity: 0; transform: translateY(14px); animation: fadeup .8s var(--ease) forwards; }
.hero-loc { animation-delay: .05s; }
.hero-sub { animation-delay: .55s; }
.hero-cta { animation-delay: .7s; }
/* El titular se muestra por sí solo si el JavaScript no llega a cargarse */
.hero-title { opacity: 0; animation: show 0s .6s forwards; }
.hero-title.is-ready { opacity: 1; animation: none; }
@keyframes fadeup { to { opacity: 1; transform: none; } }

/* Dibujo animado: el plano se convierte en obra */
.art { width: 100%; height: auto; overflow: visible; }
.art .build path, .art .crane path { stroke: #fff; stroke-width: 2; }
.art .crane path { stroke: rgba(255, 255, 255, .7); }
.art .thin { stroke-width: 1.2 !important; }
.art .aux path { stroke: var(--accent); stroke-width: 1.4; }
.art .aux .dash { stroke-dasharray: 4 5; stroke-opacity: .6; }
.art .labels text { fill: var(--accent); font: 600 13px var(--font); letter-spacing: .02em; stroke: none; }
.art .labels .title { fill: rgba(255, 255, 255, .55); font-size: 11px; letter-spacing: .12em; }
.art .fills > * { fill: rgba(255, 255, 255, .08); stroke: none; }
.art .lights rect { fill: var(--accent); stroke: none; opacity: 0; }
.art .lights .door { fill: rgba(242, 179, 61, .55); }
/* Estado final (sin JavaScript o con movimiento reducido): plano completo con luces encendidas */
.art:not(.anim) .lights rect { opacity: .9; }
.art.anim .d { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.art.anim .aux .dash { stroke-dasharray: 4 5; stroke-dashoffset: 0; opacity: 0; }
.art.anim .labels text { opacity: 0; }
.art.anim .f { transform: scaleY(0); transform-origin: 50% 100%; transform-box: fill-box; }
.art.anim.play .d { animation: draw 1.5s cubic-bezier(.65, .05, .3, 1) var(--d) forwards; }
.art.anim.play .aux .dash { animation: show .8s ease var(--d) forwards; }
.art.anim.play .labels text { animation: show .6s ease 3.4s forwards; }
.art.anim.play .f { animation: build 1.1s var(--ease) var(--d) forwards; }
.art.anim.play .w { animation: light .5s ease var(--d) forwards; }
.art.anim.play .trolley { animation: trolley 7s ease-in-out 2s both; }
.art.anim.play .labels .title { animation-delay: .2s; }
.art.anim { transition: opacity .9s ease; }
.art.anim.out { opacity: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: 1; } }
@keyframes build { to { transform: scaleY(1); } }
@keyframes light { 0% { opacity: 0; } 40% { opacity: 1; } 60% { opacity: .55; } 100% { opacity: .92; } }
@keyframes trolley { 0% { transform: translateX(0); } 35% { transform: translateX(210px); } 55% { transform: translateX(210px); } 100% { transform: translateX(80px); } }

/* ---------- Secciones ---------- */
.sec { padding: clamp(5rem, 11vw, 9rem) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); letter-spacing: -.03em; }
.sec-head p { color: var(--muted); font-size: 1.15rem; max-width: 44ch; margin: 0; justify-self: end; }

/* Servicios: filas que se rellenan al pasar el cursor */
.svc-list { border-top: 1px solid var(--line); }
.svc-row { position: relative; display: grid; grid-template-columns: 64px minmax(0, .9fr) minmax(0, 1.1fr) 40px; gap: 1rem 3rem; color: inherit; text-decoration: none; align-items: center; padding: 2rem 1.25rem; border-bottom: 1px solid var(--line); isolation: isolate; transition: color .4s var(--ease); }
.svc-row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .5s var(--ease); }
.svc-go { color: var(--navy); justify-self: end; transition: transform .4s var(--ease), color .4s; }
.svc-ico { width: 56px; height: 56px; color: var(--navy); transition: color .4s var(--ease); }
.ico { width: 100%; height: 100%; }
.svc-t { font-size: clamp(1.35rem, 2.2vw, 1.9rem); transition: color .4s var(--ease), transform .5s var(--ease); }
.svc-d { margin: 0; color: var(--muted); max-width: 52ch; transition: color .4s var(--ease); }
@media (hover: hover) {
  .svc-row:hover::before { transform: scaleY(1); }
  .svc-row:hover .svc-t { color: #fff; transform: translateX(.4rem); }
  .svc-row:hover .svc-d { color: rgba(255, 255, 255, .8); }
  .svc-row:hover .svc-ico, .svc-row:hover .svc-go { color: var(--accent); }
  .svc-row:hover .svc-go { transform: translateX(6px); }
  .svc-row:hover .ico path { animation: draw .9s cubic-bezier(.65, .05, .3, 1) both; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
  .svc-row:hover .ico path:nth-child(2) { animation-delay: .12s; }
  .svc-row:hover .ico path:nth-child(3) { animation-delay: .24s; }
  .svc-row:hover .ico path:nth-child(4) { animation-delay: .36s; }
}
.svc-preview { position: fixed; left: 0; top: 0; z-index: 40; width: 300px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.85); transition: opacity .3s, transform .3s var(--ease); box-shadow: 0 24px 60px rgba(0, 20, 60, .35); }
.svc-preview.is-on { opacity: 1; }
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Proceso */
.proc { background: var(--soft); }
.proc .wrap { position: relative; }
.proc-list { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 2rem; counter-reset: s; position: relative; z-index: 1; }
.proc-step { position: relative; padding-top: 2.75rem; }
.proc-step::before { content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--soft); border: 2px solid var(--navy); transform: translateY(-50%); transition: background .4s, border-color .4s, transform .4s var(--ease); }
.proc-step.is-on::before { background: var(--accent); border-color: var(--accent); transform: translateY(-50%) scale(1.25); }
.proc-n { display: block; font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 300; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.2px var(--navy); margin-bottom: 1.1rem; font-variant-numeric: tabular-nums; transition: color .5s var(--ease); }
.proc-step.is-on .proc-n { color: var(--navy); }
.proc-step h3 { font-size: 1.45rem; margin-bottom: .6rem; }
.proc-step p { color: var(--muted); margin: 0; max-width: 32ch; }
.proc-list::before, .proc-list::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(0, 33, 96, .15); z-index: -1; }
.proc-list::after { background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* Nosotros */
.about-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); }
.about-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); letter-spacing: -.03em; margin-bottom: 2rem; max-width: 12ch; }
.about-quote { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.4; color: var(--navy); font-weight: 500; max-width: 26ch; padding-left: 1.25rem; border-left: 3px solid var(--accent); }
.about-img { margin: 0 0 2rem; border-radius: 18px; overflow: hidden; }
.about-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.prose { max-width: 62ch; }
.prose p { margin-bottom: 1.1em; }
.prose h2 { font-size: 1.5rem; margin: 2.2em 0 .7em; letter-spacing: -.015em; }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 .5em; }
.prose ul { margin: 0 0 1.2em; }
.prose li { position: relative; padding-left: 1.2rem; margin-bottom: .45em; }
.prose li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--accent); }
.prose a { color: var(--navy); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.about-body .prose { font-size: 1.15rem; }
.values { margin-top: 2.5rem; display: grid; gap: 0; border-top: 1px solid var(--line); }
.values li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.values h3 { font-size: 1.1rem; letter-spacing: -.01em; line-height: 1.35; }
.values p { margin: 0; color: var(--muted); }

/* Proyectos */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 2.5rem 2rem; }
.work-item { margin: 0; }
.work-img { border-radius: 16px; overflow: hidden; background: var(--soft); margin-bottom: 1.1rem; }
.work-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--ease); }
.work-item:hover .work-img img { transform: scale(1.04); }
.work-item h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.work-meta { color: var(--navy); font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.work-item p { color: var(--muted); }

/* Llamada a la acción */
.cta { position: relative; background: var(--navy); color: #fff; padding: clamp(4.5rem, 9vw, 7.5rem) 0; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 80% 50%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 80% 50%, #000 10%, transparent 70%); }
.cta-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; }
.cta h2 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.6rem); letter-spacing: -.035em; line-height: 1.02; }
.cta p { color: rgba(255, 255, 255, .8); font-size: 1.15rem; max-width: 40ch; margin-bottom: 1.8rem; }

/* Contacto */
.contact-in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact-info h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); letter-spacing: -.03em; margin-bottom: 1.2rem; }
.contact-lead { color: var(--muted); font-size: 1.15rem; max-width: 36ch; margin-bottom: 2.5rem; }
.contact-list { margin: 0; display: grid; gap: 1.6rem; }
.contact-list dt { font-size: .9rem; font-weight: 600; color: var(--muted); margin-bottom: .2rem; }
.contact-list dd { margin: 0; font-size: 1.1rem; }
.big-link { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 650; color: var(--navy); text-decoration: none; letter-spacing: -.015em; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 3px no-repeat; transition: background-size .45s var(--ease); font-variant-numeric: tabular-nums; word-break: break-word; }
.big-link:hover { background-size: 100% 3px; }
.map-link { display: inline-block; margin-top: .4rem; font-weight: 650; color: var(--navy); text-underline-offset: 4px; }
.contact-form { background: var(--soft); border-radius: 24px; padding: clamp(1.5rem, 4vw, 3rem); }
.form { display: grid; gap: 1.1rem; }
.chips { border: 0; padding: 0; margin: 0 0 .4rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips legend { font-weight: 650; color: var(--navy); margin-bottom: .8rem; padding: 0; font-size: 1.05rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: .55rem 1.05rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 550; font-size: .95rem; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.chip:hover span { border-color: var(--navy); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-2px); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.fld { position: relative; }
.fld input, .fld textarea { width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: #fff; border: 1.5px solid transparent; border-radius: 12px; padding: 1.55rem 1rem .55rem; transition: border-color .25s, box-shadow .25s; }
.fld textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
.fld label { position: absolute; left: 1rem; top: 1.05rem; color: var(--muted); pointer-events: none; transform-origin: 0 0; transition: transform .25s var(--ease), color .25s; }
.fld label small { font-size: .85em; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(0, 33, 96, .1); }
.fld input:focus + label, .fld textarea:focus + label, .fld input:not(:placeholder-shown) + label, .fld textarea:not(:placeholder-shown) + label { transform: translateY(-.62rem) scale(.78); color: var(--navy); }
.fld.has-err input, .fld.has-err textarea { border-color: #c42b1c; }
.err { display: block; color: #b3261e; font-size: .9rem; font-weight: 550; margin-top: .3rem; min-height: 0; }
.err:empty { display: none; }
.gdpr { font-size: .84rem; color: var(--muted); line-height: 1.5; background: rgba(255, 255, 255, .6); border-radius: 10px; padding: .85rem 1rem; }
.gdpr p { margin: 0 0 .3em; }
.gdpr p:last-child { margin: 0; }
.gdpr a, .check a { color: var(--navy); font-weight: 600; }
.check { display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; font-size: .98rem; }
.check input { width: 22px; height: 22px; margin: .05rem 0 0; accent-color: var(--navy); flex: none; cursor: pointer; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .4rem; }
.form-msg { margin: 0; font-weight: 600; }
.form-msg.is-error { color: #b3261e; }
.form-alert { background: #fdecea; color: #8c1d13; border-radius: 10px; padding: .9rem 1rem; font-weight: 550; }
.form-done, .form-off { text-align: left; }
.form-done h3, .form-off h3 { font-size: 1.8rem; margin-bottom: .6rem; }
.form-done { animation: fadeup .6s var(--ease) both; }
.done-check { width: 72px; height: 72px; margin-bottom: 1.2rem; }
.done-check circle { fill: var(--navy); }
.done-check path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: draw .7s .25s var(--ease) forwards; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Pie */
.ftr { background: var(--navy); color: rgba(255, 255, 255, .78); padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; font-size: .98rem; }
.ftr-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.ftr-logo { display: inline-block; color: #fff; text-decoration: none; font-weight: 700; }
.ftr-logo img { width: 170px; height: auto; }
.ftr-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; }
.ftr-h { color: #fff; font-size: 1rem; font-weight: 650; letter-spacing: 0; margin-bottom: .9rem; }
.ftr li { margin-bottom: .5rem; }
.ftr a { text-decoration: none; transition: color .2s; }
.ftr a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ftr-kit { margin-top: 2.5rem; background: #fff; border-radius: 12px; padding: 1rem 1.25rem; }
.ftr-kit img { margin: 0 auto; max-height: 90px; width: auto; }
.ftr-legal { margin: 2rem 0 0; font-size: .88rem; color: rgba(255, 255, 255, .6); display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; }

/* Cabecera de páginas interiores */
.phero { position: relative; background: var(--navy); color: #fff; overflow: hidden; padding: calc(var(--hdr) + clamp(3.5rem, 8vw, 6.5rem)) 0 clamp(3.5rem, 7vw, 5.5rem); cursor: crosshair; }
.phero a { cursor: pointer; }
.phero-in { position: relative; z-index: 1; }
.phero-crumb { display: flex; gap: .6rem; align-items: center; color: rgba(255, 255, 255, .65); font-weight: 550; font-size: .95rem; margin-bottom: 1.5rem; opacity: 0; animation: fadeup .7s var(--ease) .05s forwards; }
.phero-crumb a { color: #fff; text-decoration: none; }
.phero-crumb a:hover { color: var(--accent); }
.phero-crumb span[aria-hidden] { color: var(--accent); }
.phero-title { color: #fff; font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 680; max-width: 16ch; margin-bottom: 1.4rem; }
.phero-title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.phero-title .w > span { display: inline-block; transform: translateY(105%); animation: rise .9s var(--ease) forwards; animation-delay: calc(.1s + var(--i) * .06s); }
.phero-title { opacity: 0; animation: show 0s .6s forwards; }
.phero-title.is-ready { opacity: 1; animation: none; }
.phero-intro { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: rgba(255, 255, 255, .8); max-width: 52ch; margin: 0; opacity: 0; animation: fadeup .8s var(--ease) .45s forwards; }
.page-politica-de-privacidad .phero-title, .page-politica-de-cookies .phero-title, .page-aviso-legal .phero-title { font-size: clamp(2.2rem, 5vw, 3.8rem); }

/* Enlaces «ver más» */
.link-more { display: inline-flex; align-items: center; gap: .55rem; font-weight: 650; color: var(--navy); text-decoration: none; padding: .3rem 0; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); }
.link-more .arr { transition: transform .35s var(--ease); }
.link-more:hover { background-size: 100% 2px; }
.link-more:hover .arr { transform: translateX(5px); }
.more { margin: 2.5rem 0 0; }

/* Inicio: resumen de Nosotros */
.teaser { padding-top: clamp(4rem, 8vw, 7rem); }
.teaser-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(2.5rem, 6vw, 6rem); align-items: end; }
.teaser h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); letter-spacing: -.03em; max-width: 12ch; }
.teaser .about-quote { margin-bottom: 1.5rem; }

/* Página Servicios */
.jump { position: sticky; top: var(--hdr); z-index: 20; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.jump-in { display: flex; gap: .4rem; overflow-x: auto; padding-top: .7rem; padding-bottom: .7rem; scrollbar-width: none; }
.jump-in::-webkit-scrollbar { display: none; }
.jump a { flex: none; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--navy); padding: .45rem .95rem; border-radius: 999px; border: 1.5px solid var(--line); transition: background .25s, color .25s, border-color .25s; }
.jump a:hover, .jump a.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.svcd { padding-top: clamp(3rem, 6vw, 5rem); }
.svcd-item { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--hdr) + 70px); }
.svcd-item:first-child { border-top: 0; padding-top: 0; }
.svcd-item.has-img { grid-template-columns: 140px minmax(0, 1fr) minmax(0, .8fr); }
.svcd-side { display: flex; flex-direction: column; gap: 1.2rem; }
.svcd-n { font-size: 3.6rem; font-weight: 300; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.2px var(--navy); font-variant-numeric: tabular-nums; }
.svcd-ico { width: 64px; height: 64px; color: var(--navy); }
.svcd-item:target .svcd-ico, .svcd-item.is-on .svcd-ico { color: var(--accent); }
.svcd-item.is-on .ico path { animation: draw 1s cubic-bezier(.65, .05, .3, 1) both; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.svcd-body h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); letter-spacing: -.025em; margin-bottom: 1rem; }
.svcd-lead { font-size: 1.2rem; color: var(--ink); max-width: 56ch; }
.svcd-body .prose { color: var(--muted); margin-bottom: 1.5rem; }
.svcd-img { margin: 0; border-radius: 16px; overflow: hidden; }
.svcd-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Página Nosotros */
.about-body .prose { font-size: 1.2rem; line-height: 1.65; }
.values-t { font-size: 1.4rem; margin: 0 0 1.2rem; }
.about-img + .values-t { margin-top: 2.5rem; }
.values { margin-top: 0; }

/* Contacto */
.form-t { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 1.5rem; }

/* Páginas legales y 404 */
.legal .prose { font-size: 1.05rem; max-width: 72ch; }
.legal .prose > h2:first-child { margin-top: 0; }
.nf-links { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 2rem; }

/* Cursor que acompaña al puntero */
.cursor { position: fixed; left: 0; top: 0; z-index: 100; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1.5px solid var(--accent); pointer-events: none; opacity: 0; transition: opacity .3s, width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s; will-change: transform; }
.cursor.is-on { opacity: 1; }
.cursor.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(242, 179, 61, .16); }
.cursor.is-hidden { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hdr-nav ul { gap: 1.25rem; }
  .hdr-call span { display: none; }
}
@media (max-width: 900px) {
  :root { --hdr: 68px; }
  .hdr-logo img { height: 34px; }
  .hdr-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 0; background: none; color: inherit; cursor: pointer; border-radius: 50%; z-index: 2; }
  .burger { position: relative; width: 22px; height: 12px; }
  .burger i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
  .burger i:first-child { top: 0; }
  .burger i:last-child { top: 10px; }
  .hdr.is-open .burger i:first-child { top: 5px; transform: rotate(45deg); }
  .hdr.is-open .burger i:last-child { top: 5px; transform: rotate(-45deg); }
  .hdr-nav { position: fixed; inset: 0; background: var(--navy); color: #fff; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2.5rem; padding: calc(var(--hdr) + 1rem) var(--gut) 3rem; clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--ease); visibility: hidden; }
  .hdr.is-open .hdr-nav { clip-path: inset(0); visibility: visible; }
  .hdr.is-open { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hdr.is-open .logo-dark { display: none; }
  .hdr.is-open .logo-light { display: block; }
  .hdr-nav ul { flex-direction: column; gap: .4rem; }
  .hdr-nav ul a { font-size: 2.1rem; font-weight: 650; letter-spacing: -.02em; }
  .hdr-call span { display: inline; }
  .hdr-call { font-size: 1.15rem; padding: .8rem 1.3rem; }
  .hero { min-height: auto; padding-top: calc(var(--hdr) + 3rem); cursor: auto; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-head p { justify-self: start; }
  .svc-row { grid-template-columns: 48px minmax(0, 1fr); padding: 1.6rem .25rem; gap: .6rem 1.25rem; }
  .svc-go { display: none; }
  .svc-ico { width: 44px; height: 44px; grid-row: span 2; align-self: start; }
  .proc-list { grid-template-columns: 1fr; gap: 2.5rem; padding-left: 2.25rem; }
  .proc-step { padding-top: 0; }
  .proc-step::before { left: calc(-2.25rem + 1px); top: 1.6rem; transform: translate(-50%, -50%); }
  .proc-step.is-on::before { transform: translate(-50%, -50%) scale(1.25); }
  .proc-list::before, .proc-list::after { left: 0; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .proc-list::after { transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
  .about-in, .cta-in, .contact-in, .ftr-top, .teaser-in { grid-template-columns: 1fr; }
  .svcd-item, .svcd-item.has-img { grid-template-columns: 1fr; }
  .svcd-side { flex-direction: row; align-items: center; }
  .svcd-n { font-size: 2.6rem; }
  .svcd-ico { width: 48px; height: 48px; }
  .phero { cursor: auto; }
  .values li { grid-template-columns: 1fr; gap: .3rem; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .row-2 { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .contact-form { border-radius: 18px; margin: 0 calc(var(--gut) * -.5); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-title .w > span { transform: none; }
}
@media print {
  .hdr, .hero-grid, .cursor, .contact-form, .cta, .jump { display: none !important; }
  .phero { background: none; color: var(--ink); padding: 1rem 0; }
  .phero-title { color: var(--navy); }
  .hero { background: none; color: var(--ink); min-height: 0; }
  .hero-title { color: var(--navy); }
}

/* Equipo */
.team { padding-top: 0; }
.team-t { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.03em; margin-bottom: 2.5rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(44%, 220px), 1fr)); gap: 2.5rem 1.75rem; }
@media (max-width: 560px) { .team-grid { gap: 1.75rem 1rem; } .team-card h3 { font-size: 1.05rem; } .team-card p { font-size: .9rem; } }
.team-photo { aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--soft); margin-bottom: 1rem; position: relative; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35); transition: filter .6s var(--ease), transform 1s var(--ease); }
.team-card:hover .team-photo img { filter: none; transform: scale(1.04); }
.team-ini { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 300; letter-spacing: -.02em; color: var(--navy); background: linear-gradient(rgba(0, 33, 96, .08) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, rgba(0, 33, 96, .08) 1px, transparent 1px) 0 0 / 22px 22px, var(--soft); }
.team-card h3 { font-size: 1.25rem; margin-bottom: .2rem; }
.team-card p { color: var(--muted); margin: 0; }

/* Carrusel de fotos */
.gal { padding: clamp(3.5rem, 7vw, 6rem) 0; overflow: hidden; }
.gal-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.gal-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.03em; }
.gal-nav { display: flex; gap: .6rem; margin-left: auto; }
.gal-btn { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.gal-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.gal-btn:active { transform: scale(.94); }
.gal-btn[disabled] { opacity: .35; pointer-events: none; }
.gal-track { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 0 max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); scroll-padding: 0 max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); scrollbar-width: none; cursor: grab; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track.is-drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.gal-track:focus-visible { outline-offset: -3px; }
.gal-item { flex: none; width: min(78vw, 560px); scroll-snap-align: start; }
.gal-item figure { margin: 0; }
.gal-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.gal-item figcaption { margin-top: .75rem; color: var(--muted); font-weight: 500; }
.gal-bar { height: 2px; background: var(--line); margin-top: 2rem; }
.gal-bar span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, .1)); transition: transform .3s var(--ease); }
.page-inicio .gal { background: var(--soft); }
