@font-face {
  font-family: "Urbay Sans";
  src: url("urbay-sans-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Urbay Sans";
  src: url("urbay-sans-bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Urbay Sans";
  src: url("urbay-sans-italic.woff") format("woff");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Urbay Sans";
  src: url("urbay-sans-bold-italic.woff") format("woff");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #0D1C6B;
  --navy-deep: #071347;
  --navy-ink: #08123d;
  --orange: #E14F0B;
  --orange-light: #ff6b23;
  --sky: #0E9BD9;
  --white: #FFFFFF;
  --ink: #131a2f;
  --muted: #647089;
  --soft: #f3f6fb;
  --line: #dce3ee;
  --success: #19a96b;
  --shadow-sm: 0 12px 30px rgba(13, 28, 107, .1);
  --shadow-lg: 0 30px 80px rgba(5, 16, 69, .24);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 38px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: "Urbay Sans", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }
body:has(dialog[open]) { overflow: hidden; }

[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }

:focus-visible {
  outline: 3px solid rgba(14, 155, 217, .55);
  outline-offset: 4px;
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  padding: .75rem 1rem;
  border-radius: .7rem;
  color: var(--white);
  background: var(--orange);
  font-weight: 900;
}

.nav-shell,
.section-shell,
.footer-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* ---------- Transiciones entre secciones ---------- */
[data-section-transition] { position: relative; }
.motion-ready [data-section-transition]::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - 40px));
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--sky) 22%, var(--orange) 50%, var(--sky) 78%, transparent);
  opacity: 0;
  transform: translateX(-50%) scaleX(.08);
  transform-origin: center;
}
.motion-ready [data-section-transition].is-visible::before {
  animation: section-line-in .95s cubic-bezier(.2, .8, .2, 1) both;
}
.motion-ready [data-section-transition] [data-reveal-item] {
  opacity: 0;
  filter: blur(3px);
  transform: translateY(34px);
  transition:
    opacity .72s cubic-bezier(.2, .75, .2, 1) var(--reveal-delay, 0s),
    transform .72s cubic-bezier(.2, .75, .2, 1) var(--reveal-delay, 0s),
    filter .6s ease var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.motion-ready [data-section-transition].is-visible [data-reveal-item] {
  opacity: 1;
  filter: none;
  transform: translateY(0);
}
@keyframes section-line-in {
  0% { opacity: 0; transform: translateX(-50%) scaleX(.08); }
  45% { opacity: 1; }
  100% { opacity: .72; transform: translateX(-50%) scaleX(1); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > .eyebrow { animation: hero-content-in .72s .08s cubic-bezier(.2, .78, .2, 1) both; }
  .hero-copy > h1 { animation: hero-content-in .82s .16s cubic-bezier(.2, .78, .2, 1) both; }
  .hero-copy > p:not(.eyebrow) { animation: hero-content-in .76s .28s cubic-bezier(.2, .78, .2, 1) both; }
  .hero-stage { animation: hero-stage-in .9s .2s cubic-bezier(.2, .78, .2, 1) both; }
}
@keyframes hero-content-in {
  from { opacity: 0; filter: blur(4px); transform: translateY(28px); }
  to { opacity: 1; filter: none; transform: none; }
}
@keyframes hero-stage-in {
  from { opacity: 0; filter: blur(5px); transform: translateX(34px) scale(.98); }
  to { opacity: 1; filter: none; transform: none; }
}

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: rgba(7, 19, 71, .94);
  box-shadow: 0 10px 35px rgba(3, 11, 47, .13);
  backdrop-filter: blur(18px);
}
.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--sky), var(--orange));
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
.site-header.is-navigating::after { animation: navigation-line .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes navigation-line {
  0% { opacity: 0; transform: scaleX(0); }
  22% { opacity: 1; }
  72% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}

.nav-shell {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand { flex: 0 0 auto; }
.brand img {
  width: 166px;
  height: 60px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.1vw, 2rem);
}

.nav-link {
  position: relative;
  padding-block: 1.75rem;
  color: rgba(255, 255, 255, .78);
  font-size: .79rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: color .2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 0;
  left: 50%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--orange);
  transition: right .2s ease, left .2s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active { color: var(--white); }
.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after { right: 0; left: 0; }

.nav-quote {
  min-height: 44px;
  padding: .7rem 1.15rem;
  border: 1px solid var(--orange);
  border-radius: 999px;
  color: var(--white);
  background: var(--orange);
  font-size: .79rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: 0 10px 25px rgba(225, 79, 11, .25);
  transition: transform .2s ease, background .2s ease;
}

.nav-quote:hover,
.nav-quote:focus-visible { transform: translateY(-2px); background: var(--orange-light); }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  border-radius: 4px;
  background: var(--white);
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Inicio ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-deep);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: -2;
  background: url("urbay-hero-facade-v2.webp") 64% center / cover no-repeat;
  transform: scale(1.015);
}

.hero::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 14, 57, .98) 0%, rgba(4, 18, 75, .92) 34%, rgba(4, 20, 80, .48) 55%, rgba(4, 18, 67, .08) 78%),
    linear-gradient(180deg, rgba(5, 16, 61, .08) 48%, rgba(2, 10, 43, .5) 100%);
}

.hero-grid-lines {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: .38;
  background:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000, transparent 56%);
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  min-height: 680px;
  margin-inline: auto;
  padding: 72px 0;
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 690px;
  padding-block: 2rem;
  text-shadow: 0 4px 28px rgba(0, 7, 40, .5);
}

.eyebrow,
.section-kicker {
  margin-bottom: 1rem;
  color: var(--orange);
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: .75rem; }
.eyebrow::before,
.section-kicker::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 3px;
  margin-right: .65rem;
  vertical-align: middle;
  border-radius: 99px;
  background: currentColor;
}

.hero h1 {
  max-width: 650px;
  margin-bottom: 1.45rem;
  font-family: "Urbay Sans", Arial, sans-serif;
  font-size: clamp(3.05rem, 5.55vw, 5.6rem);
  font-weight: 950;
  line-height: .9;
  letter-spacing: -.052em;
  text-transform: uppercase;
}

.hero h1 span,
.hero h1 strong,
.hero h1 em { display: block; }
.hero h1 span { color: var(--white); }
.hero h1 strong {
  color: var(--orange-light);
  font-style: normal;
  letter-spacing: -.035em;
}
.hero h1 em {
  margin-top: .12em;
  color: var(--white);
  font-family: "Urbay Sans", Arial, sans-serif;
  font-size: .68em;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.025em;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 580px;
  margin-bottom: 0;
  color: #d7e2fb;
  font-size: 1.08rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  padding: .82rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.button:hover,
.button:focus-visible { transform: translateY(-3px); }
.button-primary { border-color: var(--orange); color: var(--white); background: var(--orange); box-shadow: 0 16px 36px rgba(225, 79, 11, .28); }
.button-primary:hover,
.button-primary:focus-visible { background: var(--orange-light); }
.button-secondary { border-color: rgba(255, 255, 255, .35); color: var(--white); background: rgba(255, 255, 255, .06); }
.button-secondary:hover,
.button-secondary:focus-visible { color: var(--navy); background: var(--white); }
.button-dark { color: var(--white); background: var(--navy); }
.button-dark:hover,
.button-dark:focus-visible { background: var(--orange); }

.hero-stage {
  position: relative;
  min-height: 520px;
}

.hero-brand-lockup {
  position: absolute;
  top: 15%;
  right: -4%;
  width: min(100%, 610px);
  padding: clamp(1rem, 2vw, 1.7rem);
  display: grid;
  justify-items: center;
  gap: .65rem;
  transform: perspective(900px) rotateY(-3deg) rotateZ(-.4deg);
}

.hero-brand-lockup img {
  width: min(100%, 540px);
  height: auto;
  filter: drop-shadow(0 18px 18px rgba(0, 7, 40, .52));
}

.hero-brand-lockup span {
  color: rgba(255, 255, 255, .96);
  font-size: clamp(.76rem, 1.05vw, .95rem);
  font-weight: 950;
  letter-spacing: .16em;
  text-align: center;
  text-shadow: 0 5px 16px rgba(0, 7, 40, .8);
  text-transform: uppercase;
}

/* ---------- Secciones ---------- */
.section { padding: clamp(76px, 9vw, 124px) 0; }
.section h2,
.quote-section h2 {
  margin-bottom: 1.25rem;
  color: var(--navy);
  font-size: clamp(2.25rem, 4.5vw, 4.65rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}

/* Nosotros */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}

.about-intro { position: sticky; top: 125px; }
.about-intro > p:not(.section-kicker) { color: var(--muted); font-size: 1.05rem; }

.about-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--soft);
  box-shadow: var(--shadow-sm);
}

.about-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.about-tab {
  position: relative;
  padding: 1.25rem .75rem;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.about-tab::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: -1px;
  left: 50%;
  height: 3px;
  background: var(--orange);
  transition: right .2s ease, left .2s ease;
}
.about-tab:hover,
.about-tab:focus-visible,
.about-tab.is-active { color: var(--navy); }
.about-tab.is-active::after { right: 18%; left: 18%; }

.about-panel {
  position: relative;
  min-height: 390px;
  padding: clamp(2rem, 5vw, 4rem);
  animation: panel-in .35s ease;
}

.about-panel::after {
  content: "U";
  position: absolute;
  right: -12px;
  bottom: -105px;
  color: rgba(13, 28, 107, .045);
  font-size: 19rem;
  font-weight: 1000;
  line-height: 1;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.about-panel h3 { position: relative; z-index: 1; margin: 0 0 1rem; color: var(--navy); font-size: clamp(1.55rem, 3vw, 2.35rem); }
.about-panel p { position: relative; z-index: 1; margin-bottom: 0; color: #48536c; font-size: 1.03rem; }
.value-tags { position: relative; z-index: 1; margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .55rem; }
.value-tags span { padding: .45rem .75rem; border: 1px solid rgba(14, 155, 217, .3); border-radius: 999px; color: var(--navy); background: rgba(14, 155, 217, .07); font-size: .76rem; font-weight: 800; }

/* Servicios */
.services {
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 8% 10%, rgba(14, 155, 217, .2), transparent 24%),
    linear-gradient(140deg, var(--navy-deep), var(--navy));
}

.services .section-heading {
  margin-bottom: 2.3rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}
.services h2 { max-width: 760px; margin-bottom: 0; color: var(--white); }
.services-intro {
  max-width: 690px;
  margin: .85rem 0 0;
  color: #b9c8e7;
  font-size: .98rem;
}

.carousel-controls { flex: 0 0 auto; display: flex; align-items: center; gap: .65rem; }
.carousel-controls > span { margin-right: .55rem; color: #a9bbe3; font-size: .8rem; font-weight: 800; }
.carousel-controls b { color: var(--orange-light); font-size: 1.1rem; }
.carousel-button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, .06);
  font-size: 1.2rem;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.carousel-button:hover,
.carousel-button:focus-visible { border-color: var(--orange); background: var(--orange); transform: translateY(-2px); }

.service-carousel { overflow: hidden; }
.service-track {
  padding: 0 max(20px, calc((100vw - 1180px) / 2)) 1.2rem;
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}
.service-track::-webkit-scrollbar { display: none; }

.service-slide {
  flex: 0 0 min(405px, calc(100vw - 54px));
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 26px;
  background: rgba(255, 255, 255, .075);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.service-slide:hover { transform: translateY(-7px); border-color: rgba(255, 107, 35, .65); background: rgba(255, 255, 255, .1); }

.service-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #152b78;
  background-position: center;
  background-size: cover;
}
.service-image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(4, 12, 48, .72)); }
.service-signage .service-image { background-image: linear-gradient(120deg, rgba(7, 19, 71, .08), rgba(7, 19, 71, .16)), url("service-signage.jpg"); }
.service-print .service-image { background-image: linear-gradient(120deg, rgba(7, 19, 71, .06), rgba(7, 19, 71, .18)), url("service-print.jpg"); }
.service-brand .service-image { background-image: linear-gradient(120deg, rgba(7, 19, 71, .05), rgba(7, 19, 71, .14)), url("service-brand.jpg"); }
.service-image span,
.service-image b { position: absolute; z-index: 1; }
.service-image span { top: 1rem; left: 1rem; width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; background: rgba(7, 19, 71, .62); font-size: .72rem; }
.service-image b { right: 1rem; bottom: 1rem; padding: .4rem .65rem; border-radius: 999px; color: var(--white); background: var(--orange); font-size: .64rem; letter-spacing: .05em; text-transform: uppercase; }

.service-copy { min-height: 258px; padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; }
.service-copy p { margin-bottom: .35rem; color: #8ecff0; font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.service-copy h3 { margin-bottom: .65rem; color: var(--white); font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.12; }
.service-copy span { display: block; color: #bdc9e5; font-size: .9rem; }
.service-catalog-button {
  min-height: 46px;
  margin-top: auto;
  padding: .7rem 1rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 13px;
  color: var(--white);
  background: var(--orange);
  font-size: .8rem;
  font-weight: 900;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.service-catalog-button:hover,
.service-catalog-button:focus-visible {
  border-color: var(--orange-light);
  background: var(--orange-light);
  transform: translateY(-2px);
}

.carousel-progress {
  width: min(1180px, calc(100% - 40px));
  height: 3px;
  margin: 2rem auto 0;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .12);
}
.carousel-progress span { display: block; width: 9.09%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--orange-light)); transition: width .35s ease; }

/* Catálogo de cada servicio */
.catalog-dialog {
  width: min(1180px, 96vw);
  max-width: none;
  max-height: 92dvh;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  color: var(--ink);
  background: var(--soft);
  box-shadow: 0 36px 90px rgba(3, 9, 37, .42);
}
.catalog-dialog::backdrop { background: rgba(3, 9, 37, .78); backdrop-filter: blur(7px); }
.catalog-dialog[open] { animation: catalog-in .28s ease both; }
@keyframes catalog-in {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.catalog-shell { max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; }
.catalog-close {
  position: fixed;
  z-index: 5;
  top: max(18px, calc(4dvh + 10px));
  right: max(18px, calc(2vw + 8px));
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  color: var(--white);
  background: rgba(7, 19, 71, .8);
  font-size: 1.5rem;
  line-height: 1;
  backdrop-filter: blur(8px);
}
.catalog-close:hover,
.catalog-close:focus-visible { border-color: var(--orange); background: var(--orange); }
.catalog-heading {
  position: relative;
  min-height: 255px;
  padding: 3.2rem clamp(1.4rem, 5vw, 4.5rem) 2.7rem;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 15%, rgba(14, 155, 217, .34), transparent 25%),
    linear-gradient(135deg, var(--navy-deep), var(--navy));
}
.catalog-heading::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 330px;
  height: 330px;
  border: 46px solid rgba(255, 107, 35, .15);
  border-radius: 50%;
}
.catalog-heading > * { position: relative; z-index: 1; }
.catalog-heading > p {
  margin: 0 0 .65rem;
  color: var(--orange-light);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.catalog-heading h2 { max-width: 760px; margin: 0 0 .8rem; color: var(--white); font-size: clamp(2.2rem, 6vw, 4.7rem); }
.catalog-heading > span { max-width: 740px; display: block; color: #c4d1ec; font-size: 1rem; line-height: 1.65; }
.catalog-specialties { padding: 1.6rem clamp(1.1rem, 4vw, 3.2rem) 1.15rem; background: var(--white); }
.catalog-specialties > p {
  margin: 0 0 .8rem;
  color: var(--navy);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.catalog-filters { display: flex; flex-wrap: wrap; gap: .55rem; }
.catalog-filters button {
  min-height: 42px;
  padding: .58rem .9rem;
  border: 1px solid rgba(13, 28, 107, .16);
  border-radius: 999px;
  color: var(--navy);
  background: var(--soft);
  font-size: .78rem;
  font-weight: 850;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.catalog-filters button:hover,
.catalog-filters button:focus-visible { border-color: var(--sky); transform: translateY(-2px); }
.catalog-filters button.is-active { border-color: var(--navy); color: var(--white); background: var(--navy); }
.catalog-toolbar {
  padding: 1rem clamp(1.1rem, 4vw, 3.2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.catalog-quote {
  min-height: 44px;
  padding: .65rem 1.05rem;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: var(--orange);
  font-size: .78rem;
  font-weight: 900;
}
.catalog-quote:hover,
.catalog-quote:focus-visible { background: var(--orange-light); }
.catalog-dialog .portfolio-gallery { padding: 1.5rem clamp(1.1rem, 4vw, 3.2rem) 2.4rem; }
.catalog-empty {
  margin: 1.5rem clamp(1.1rem, 4vw, 3.2rem) 2.4rem;
  padding: 2.4rem 1.4rem;
  display: grid;
  justify-items: center;
  gap: .5rem;
  border: 1px dashed rgba(13, 28, 107, .24);
  border-radius: 22px;
  color: var(--muted);
  background: var(--white);
  text-align: center;
}
.catalog-empty strong { color: var(--navy); font-size: 1.2rem; }
.catalog-empty button {
  min-height: 44px;
  margin-top: .7rem;
  padding: .65rem 1rem;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: var(--orange);
  font-weight: 900;
}

/* Tarjetas del portafolio dentro de los catálogos */
.portfolio { background: var(--soft); }
.portfolio-heading h2 { max-width: 760px; margin-bottom: 0; }
.portfolio-intro {
  max-width: 680px;
  margin: .85rem 0 0;
  color: var(--muted);
  font-size: .98rem;
}
.portfolio-filter-shell {
  margin: 2.2rem 0 1.6rem;
  padding-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.portfolio-filter {
  min-height: 42px;
  padding: .55rem .85rem;
  border: 1px solid rgba(13, 28, 107, .15);
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  font-size: .77rem;
  font-weight: 850;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.portfolio-filter:hover,
.portfolio-filter:focus-visible { border-color: var(--sky); transform: translateY(-2px); }
.portfolio-filter.is-active {
  border-color: var(--navy);
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 10px 22px rgba(13, 28, 107, .18);
}
.portfolio-result-status {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}
.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  animation: portfolio-in .32s ease both;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.portfolio-item:hover {
  transform: translateY(-7px);
  border-color: rgba(14, 155, 217, .38);
  box-shadow: 0 24px 48px rgba(13, 28, 107, .16);
}
@keyframes portfolio-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.portfolio-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy);
  cursor: zoom-in;
}
.portfolio-media:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.portfolio-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 19, 71, .05) 38%, rgba(7, 19, 71, .72));
}
.portfolio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}
.portfolio-item:hover .portfolio-media img { transform: scale(1.06); }
.portfolio-media > span {
  position: absolute;
  z-index: 1;
  top: 1rem;
  left: 1rem;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  color: var(--white);
  background: rgba(7, 19, 71, .62);
  font-size: .7rem;
  font-weight: 900;
}
.portfolio-item-body { padding: 1.35rem 1.4rem 1.45rem; }
.portfolio-item-body { height: calc(100% - 0px); display: flex; flex-direction: column; }
.portfolio-item-body > p {
  margin-bottom: .3rem;
  color: var(--orange);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.portfolio-item-body h3 {
  margin-bottom: .65rem;
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1.14;
}
.portfolio-item-body > span {
  min-height: 68px;
  display: block;
  color: var(--muted);
  font-size: .87rem;
}
.portfolio-media img[data-fit="contain"] {
  padding: .65rem;
  object-fit: contain;
  background: #f4f6fb;
}
.portfolio-quote {
  width: 100%;
  min-height: 44px;
  margin-top: 1rem;
  padding: .65rem .85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(13, 28, 107, .15);
  border-radius: 12px;
  color: var(--navy);
  background: var(--soft);
  font-size: .77rem;
  font-weight: 900;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.portfolio-quote:hover,
.portfolio-quote:focus-visible {
  border-color: var(--orange);
  color: var(--white);
  background: var(--orange);
}
.portfolio-quote b { font-size: 1rem; }

/* Cotizaciones */
.quote-section {
  padding: 50px 0;
  color: var(--white);
  background: var(--orange);
}
.quote-banner { display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.quote-banner > div { max-width: 800px; }
.quote-section h2 { margin-bottom: .7rem; color: var(--white); }
.quote-section p:last-child { margin-bottom: 0; color: rgba(255, 255, 255, .86); }
.quote-orb {
  flex: 0 0 170px;
  width: 170px;
  height: 170px;
  padding: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 20px 45px rgba(68, 18, 0, .24);
  font-weight: 900;
  line-height: 1.12;
  text-align: left;
  transition: transform .25s ease, background .25s ease;
}
.quote-orb:hover,
.quote-orb:focus-visible { transform: rotate(5deg) scale(1.04); background: var(--navy-deep); }
.quote-orb b { font-size: 1.45rem; }

/* Contacto */
.contact { background: var(--white); }
.contact-heading { margin-bottom: 2.6rem; }
.contact-heading h2 { max-width: 800px; margin-bottom: 0; }
.contact-layout { display: grid; grid-template-columns: .84fr 1.16fr; gap: 1.4rem; }
.contact-list { display: grid; gap: .75rem; align-content: start; }
.contact-item {
  min-height: 78px;
  padding: 1rem 1.1rem;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: .9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
a.contact-item:hover,
a.contact-item:focus-visible { transform: translateX(5px); border-color: rgba(14, 155, 217, .5); box-shadow: var(--shadow-sm); }
.contact-item > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: var(--navy); background: rgba(14, 155, 217, .1); font-size: .7rem; font-weight: 950; }
.main-contact { border-color: rgba(25, 169, 107, .34); background: rgba(25, 169, 107, .045); }
.main-contact > span { color: var(--white); background: var(--success); }
.contact-item div { min-width: 0; display: grid; }
.contact-item small { color: var(--muted); font-size: .67rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.contact-item strong { overflow-wrap: anywhere; color: var(--navy); font-size: .96rem; }
.contact-item em { color: var(--muted); font-size: .76rem; font-style: normal; }
.contact-item > b { color: var(--orange); }

/* Síguenos */
.follow {
  margin-top: .4rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
}
.follow-title {
  margin: 0;
  padding: .75rem 1.1rem;
  color: var(--white);
  background: var(--navy);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.follow-icons {
  padding: .9rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
}
.follow-link {
  min-height: 56px;
  padding: .5rem .9rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--navy);
  font-size: .9rem;
  font-weight: 800;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.follow-link img,
.follow-link svg { flex: 0 0 30px; width: 30px; height: 30px; }
.follow-link:hover,
.follow-link:focus-visible { transform: translateY(-3px); border-color: var(--orange); box-shadow: var(--shadow-sm); }

.map-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--soft); box-shadow: var(--shadow-sm); }
.map-viewport { position: relative; min-height: 370px; overflow: hidden; isolation: isolate; background: #dfe8f1; }
.map-viewport iframe { width: 100%; height: 370px; display: block; border: 0; filter: saturate(1.08) contrast(1.05); }
.urbay-map-marker {
  --map-pin-size: 78px;
  --map-pin-tip-offset: 16px;
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: var(--map-pin-size);
  height: var(--map-pin-size);
  display: block;
  transform: translate(-50%, calc(-100% - var(--map-pin-tip-offset)));
  filter: drop-shadow(0 14px 18px rgba(7, 19, 71, .3));
}
.urbay-map-pin {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 4px solid var(--white);
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(145deg, var(--sky), var(--navy));
  box-shadow: 0 0 0 3px rgba(13, 28, 107, .2), 0 12px 25px rgba(7, 19, 71, .28);
  transform: rotate(-45deg);
  transition: transform .22s ease, box-shadow .22s ease;
}
.urbay-map-pin::before {
  content: "";
  position: absolute;
  inset: -11px;
  border: 3px solid rgba(14, 155, 217, .42);
  border-radius: 50%;
  animation: map-marker-pulse 2.2s ease-out infinite;
}
.urbay-map-pin > span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--white);
  transform: rotate(45deg);
}
.urbay-map-pin img { width: 49px; height: auto; object-fit: contain; }
.urbay-map-label {
  position: absolute;
  top: 50%;
  left: calc(100% + .7rem);
  min-width: 158px;
  padding: .65rem .8rem;
  display: grid;
  border: 1px solid rgba(13, 28, 107, .16);
  border-left: 4px solid var(--orange);
  border-radius: 13px;
  color: var(--navy);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 28px rgba(7, 19, 71, .2);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
}
.urbay-map-label strong { font-size: .9rem; line-height: 1.2; }
.urbay-map-label small { color: var(--muted); font-size: .7rem; font-weight: 700; }
.urbay-map-marker:hover .urbay-map-pin,
.urbay-map-marker:focus-visible .urbay-map-pin { box-shadow: 0 0 0 5px rgba(225, 79, 11, .24), 0 15px 30px rgba(7, 19, 71, .34); transform: rotate(-45deg) scale(1.06); }
@keyframes map-marker-pulse {
  0% { opacity: .9; transform: scale(.72); }
  72%, 100% { opacity: 0; transform: scale(1.18); }
}
.map-address { padding: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.map-address div { display: grid; }
.map-address small { color: var(--orange); font-size: .67rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.map-address strong { color: var(--navy); font-size: .88rem; line-height: 1.35; }
.map-address a { flex: 0 0 auto; color: var(--navy); font-size: .78rem; font-weight: 900; }
.map-address a:hover { color: var(--orange); }

/* Pie de página */
.site-footer { color: var(--white); background: var(--navy-deep); }
.footer-shell { min-height: 128px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; }
.footer-shell img { width: 150px; height: 64px; object-fit: contain; }
.footer-shell p { margin: 0; color: #a9b8db; font-size: .78rem; }
.footer-shell p:last-child { text-align: right; }

/* ---------- Asistente ---------- */
.assistant-launcher {
  position: fixed;
  z-index: 90;
  right: 22px;
  bottom: 22px;
  min-width: 232px;
  min-height: 68px;
  padding: .65rem .9rem .65rem .65rem;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: .75rem;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  box-shadow: 0 18px 50px rgba(2, 10, 47, .36);
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
}
.assistant-launcher:hover,
.assistant-launcher:focus-visible { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(2, 10, 47, .45); }
.launcher-icon { position: relative; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: var(--white); background: var(--orange); font-size: 1.35rem; font-weight: 1000; }
.assistant-launcher > span:last-child { display: grid; }
.assistant-launcher strong { font-size: .87rem; }
.assistant-launcher small { color: #b9c9ec; font-size: .68rem; }
.assistant-pulse { position: absolute; top: -4px; right: -4px; width: 13px; height: 13px; border: 2px solid var(--white); border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(25, 169, 107, .55); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(25, 169, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(25, 169, 107, 0); } }

.assistant-dialog {
  width: min(540px, calc(100% - 32px));
  max-height: min(820px, calc(100dvh - 32px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 25px;
  background: transparent;
  box-shadow: 0 35px 100px rgba(0, 8, 48, .45);
}
.assistant-dialog::backdrop { background: rgba(3, 9, 37, .62); backdrop-filter: blur(5px); }
.assistant-window { overflow: hidden; border-radius: inherit; background: var(--soft); }
.assistant-header {
  min-height: 88px;
  padding: 1rem;
  display: grid;
  grid-template-columns: 58px 1fr 42px;
  align-items: center;
  gap: .85rem;
  color: var(--white);
  background: linear-gradient(120deg, var(--navy-deep), var(--navy));
}
.assistant-avatar { width: 58px; height: 58px; padding: 7px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255, 255, 255, .18); border-radius: 17px; background: rgba(255, 255, 255, .09); }
.assistant-avatar img { width: 100%; height: 100%; object-fit: contain; }
.assistant-header > div:nth-child(2) { min-width: 0; display: grid; }
.assistant-header strong { font-size: .98rem; }
.assistant-header span { color: #b9c8ec; font-size: .72rem; }
.assistant-header i { width: 7px; height: 7px; margin-right: .38rem; display: inline-block; border-radius: 50%; background: #38d990; }
.assistant-close { width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; color: var(--white); background: rgba(255, 255, 255, .08); font-size: 1.5rem; line-height: 1; }
.assistant-close:hover { background: var(--orange); }

.assistant-body { max-height: calc(100dvh - 140px); padding: 1.2rem; overflow-y: auto; overscroll-behavior: contain; }
.chat-message { max-width: 88%; margin-bottom: 1rem; padding: .9rem 1rem; border-radius: 6px 18px 18px 18px; background: var(--white); box-shadow: 0 7px 22px rgba(13, 28, 107, .08); }
.chat-message p { margin: 0; color: #39445d; font-size: .88rem; }
.chat-message p + p { margin-top: .55rem; }
.chat-message a { color: var(--navy); font-weight: 900; text-decoration: underline; text-decoration-color: var(--sky); text-underline-offset: 3px; }
.quick-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.quick-actions button {
  padding: .58rem .78rem;
  border: 1px solid rgba(13, 28, 107, .18);
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  font-size: .75rem;
  font-weight: 850;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.quick-actions button:hover,
.quick-actions button:focus-visible { border-color: var(--navy); color: var(--white); background: var(--navy); }

.chat-quote-form { margin-top: 1rem; padding: 1.1rem; border-radius: 18px; background: var(--white); box-shadow: 0 10px 30px rgba(13, 28, 107, .08); }
.chat-form-intro { margin-bottom: 1rem; }
.chat-form-intro strong { color: var(--navy); font-size: 1.05rem; }
.chat-form-intro p { margin: .2rem 0 0; color: var(--muted); font-size: .77rem; }
.chat-quote-form label { margin-bottom: .78rem; display: grid; gap: .34rem; color: #303a54; font-size: .76rem; font-weight: 850; }
.chat-quote-form input,
.chat-quote-form select,
.chat-quote-form textarea {
  width: 100%;
  min-height: 45px;
  padding: .68rem .72rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fbfcff;
  font-size: .86rem;
  font-weight: 500;
}
.chat-quote-form textarea { min-height: 92px; resize: vertical; }
.chat-quote-form input:focus,
.chat-quote-form select:focus,
.chat-quote-form textarea:focus { border-color: var(--sky); outline: 3px solid rgba(14, 155, 217, .12); }
.chat-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.chat-submit {
  width: 100%;
  min-height: 50px;
  margin-top: .35rem;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: var(--orange);
  font-size: .83rem;
  font-weight: 900;
}
.chat-submit:hover { background: var(--orange-light); }

.quote-summary { margin-top: 1rem; padding: 1.1rem; border-radius: 18px; background: var(--white); box-shadow: 0 10px 30px rgba(13, 28, 107, .08); }
.quote-summary > p { color: var(--navy); font-size: .88rem; }
.summary-table { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.summary-table table { width: 100%; border-collapse: collapse; font-size: .77rem; }
.summary-table th,
.summary-table td { padding: .62rem .68rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.summary-table tr:last-child th,
.summary-table tr:last-child td { border-bottom: 0; }
.summary-table th { width: 37%; color: var(--navy); background: var(--soft); }
.summary-table td { overflow-wrap: anywhere; color: #3f4961; }
.send-whatsapp { min-height: 50px; margin-top: .9rem; padding: .75rem 1rem; display: flex; align-items: center; justify-content: center; border-radius: 12px; color: var(--white); background: var(--success); font-size: .83rem; font-weight: 900; }
.send-whatsapp:hover { background: #128553; }
.edit-quote { width: 100%; margin-top: .45rem; padding: .55rem; border: 0; color: var(--navy); background: transparent; font-size: .75rem; font-weight: 850; }
.edit-quote:hover { color: var(--orange); }

/* ---------- Visor ampliado del portafolio ---------- */
.lightbox {
  width: min(1100px, 94vw);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #0a1450;
  color: #fff;
}
.lightbox::backdrop { background: rgba(5, 10, 40, .85); backdrop-filter: blur(4px); }
.lightbox[open] { animation: lightbox-in .3s ease; }
@keyframes lightbox-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

.lightbox-window { position: relative; display: grid; grid-template-columns: 1.6fr 1fr; max-height: 92vh; }
.lightbox-stage { position: relative; min-height: 280px; background: #050a28; }
.lightbox-stage img { display: block; width: 100%; height: 100%; max-height: 92vh; object-fit: contain; }

.lightbox-info { padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 12px; overflow-y: auto; }
.lightbox-info small { color: #ff7a3d; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lightbox-info h3 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1; }
.lightbox-info p { margin: 0; line-height: 1.6; color: rgba(255, 255, 255, .85); }
.lightbox-count { margin-top: 8px; font-size: .9rem; color: rgba(255, 255, 255, .6); }

.lightbox-quote {
  align-self: flex-start;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}
.lightbox-quote:hover { background: #ff5f1a; transform: translateY(-2px); }
.lightbox-quote:focus-visible,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.lightbox-close,
.lightbox-nav {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 20, 80, .85);
  color: #fff;
  font-size: 1.4rem;
  transition: background .2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: var(--orange); }
.lightbox-close { position: absolute; top: 12px; right: 12px; z-index: 3; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* ---------- Adaptación a pantallas pequeñas ---------- */
@media (max-width: 1020px) {
  .nav-shell { min-height: 74px; }
  .brand img { width: 145px; height: 54px; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    position: fixed;
    z-index: 99;
    inset: 74px 0 auto;
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    display: grid;
    gap: 0;
    background: rgba(7, 19, 71, .985);
    box-shadow: 0 24px 50px rgba(0, 6, 38, .3);
    opacity: 0;
    visibility: hidden;
    transition: max-height .3s ease, opacity .2s ease, visibility .2s ease, padding .3s ease;
  }
  .main-nav.is-open { max-height: calc(100dvh - 74px); padding-block: 1rem 1.4rem; overflow-y: auto; opacity: 1; visibility: visible; }
  .nav-link { padding: .95rem .25rem; border-bottom: 1px solid rgba(255, 255, 255, .09); }
  .nav-link::after { display: none; }
  .nav-quote { width: 100%; margin-top: 1rem; }
  .hero::before { background-position: 69% center; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(4, 14, 57, .98) 0%, rgba(4, 18, 72, .92) 42%, rgba(4, 18, 70, .38) 73%, rgba(2, 9, 40, .7) 100%),
      linear-gradient(90deg, rgba(4, 14, 57, .72), rgba(4, 18, 67, .08));
  }
  .hero-shell { min-height: auto; padding-top: 62px; grid-template-columns: 1fr; gap: .25rem; }
  .hero-copy { max-width: 760px; }
  .hero-stage { min-height: 360px; }
  .hero-brand-lockup { top: 3%; right: 1%; width: min(68%, 560px); }
  .about-grid { grid-template-columns: 1fr; }
  .about-intro { position: static; max-width: 760px; }
  .services .section-heading { align-items: center; }
  .portfolio-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr 1fr; }
  .contact-list .follow { grid-column: 1 / 3; }
}

@media (max-width: 760px) {
  .catalog-dialog { width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 25px 25px 0 0; }
  .catalog-shell { max-height: 94dvh; }
  .catalog-close { top: calc(6dvh + 10px); right: 14px; }
  .catalog-heading { min-height: 225px; padding: 3.4rem 1.3rem 2rem; }
  .catalog-heading > span { font-size: .94rem; }
  .catalog-specialties { padding-inline: 1rem; }
  .catalog-filters { width: calc(100% + 2rem); margin-inline: -1rem; padding: 0 1rem .3rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .catalog-filters::-webkit-scrollbar { display: none; }
  .catalog-filters button { flex: 0 0 auto; }
  .catalog-toolbar { padding-inline: 1rem; align-items: flex-start; flex-direction: column; }
  .catalog-quote { width: 100%; }
  .catalog-dialog .portfolio-gallery { padding: 1rem 1rem 1.8rem; }
  .catalog-empty { margin: 1rem 1rem 1.8rem; }
  .lightbox { width: 96vw; }
  .lightbox-window { grid-template-columns: 1fr; overflow-y: auto; }
  .lightbox-stage { min-height: 0; aspect-ratio: 3 / 2; }
  .lightbox-info { padding: 20px; }
  .lightbox-quote { align-self: stretch; }
}

@media (max-width: 720px) {
  .nav-shell,
  .section-shell,
  .footer-shell { width: min(100% - 28px, 1180px); }
  .hero::before { background-position: 72% center; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(4, 14, 57, .98) 0%, rgba(4, 18, 72, .94) 48%, rgba(4, 18, 70, .48) 74%, rgba(2, 9, 40, .78) 100%),
      linear-gradient(90deg, rgba(4, 14, 57, .76), rgba(4, 18, 67, .12));
  }
  .hero-shell { width: min(100% - 28px, 1180px); padding: 50px 0 36px; }
  .hero h1 { font-size: clamp(2.65rem, 14vw, 4.35rem); }
  .hero-copy > p:not(.eyebrow) { font-size: 1rem; }
  .hero-stage { min-height: 285px; }
  .hero-brand-lockup { top: 5%; right: -4%; width: min(88%, 500px); padding-inline: .35rem; }
  .hero-brand-lockup span { font-size: .68rem; letter-spacing: .11em; }
  .section { padding: 72px 0; }
  .section h2,
  .quote-section h2 { font-size: clamp(2.1rem, 10vw, 3.15rem); }
  .about-card { border-radius: 24px; }
  .about-panel { min-height: 0; padding: 1.7rem; }
  .about-panel::after { display: none; }
  .about-tab { padding: 1rem .35rem; font-size: .67rem; }
  .services .section-heading { align-items: start; flex-direction: column; }
  .carousel-controls { width: 100%; justify-content: flex-end; }
  .carousel-controls > span { margin-right: auto; }
  .service-track { padding-inline: 14px; }
  .service-slide { flex-basis: calc(100vw - 48px); }
  .service-copy { min-height: 245px; padding: 1.25rem; }
  .carousel-progress { width: calc(100% - 28px); }
  .portfolio-filter-shell { margin-top: 2rem; align-items: flex-start; flex-direction: column; }
  .portfolio-filters {
    width: calc(100% + 28px);
    margin-inline: -14px;
    padding: 0 14px .25rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .portfolio-filters::-webkit-scrollbar { display: none; }
  .portfolio-filter { flex: 0 0 auto; scroll-snap-align: start; }
  .portfolio-gallery { grid-template-columns: 1fr; }
  .portfolio-item-body > span { min-height: 0; }
  .quote-section { padding: 58px 0; }
  .quote-banner { align-items: flex-start; flex-direction: column; gap: 2rem; }
  .quote-orb { flex-basis: 145px; width: 145px; height: 145px; }
  .contact-list { grid-template-columns: 1fr; }
  .contact-list .follow { grid-column: auto; }
  .map-viewport { min-height: 310px; }
  .map-viewport iframe { height: 310px; }
  .urbay-map-marker { --map-pin-size: 68px; --map-pin-tip-offset: 14px; top: 50%; left: 50%; }
  .urbay-map-pin > span { width: 48px; height: 48px; }
  .urbay-map-pin img { width: 42px; }
  .urbay-map-label { left: calc(100% + .45rem); min-width: 138px; padding: .55rem .65rem; }
  .urbay-map-label strong { font-size: .8rem; }
  .map-address { align-items: flex-start; flex-direction: column; }
  .footer-shell { padding: 1.6rem 0 6.8rem; grid-template-columns: 1fr; gap: .45rem; text-align: center; }
  .footer-shell img { margin: auto; }
  .footer-shell p:last-child { text-align: center; }
  .assistant-launcher { right: 14px; bottom: 14px; min-width: 58px; min-height: 58px; padding: 5px; grid-template-columns: 48px; border-radius: 17px; }
  .assistant-launcher > span:last-child { display: none; }
  .assistant-dialog { width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0; border-radius: 25px 25px 0 0; }
  .assistant-body { max-height: calc(92dvh - 88px); padding: 1rem; }
  .chat-fields { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 420px) {
  .hero-stage { min-height: 240px; }
  .urbay-map-label { top: 0; left: 50%; transform: translate(-50%, calc(-100% - .65rem)); }
  .portfolio-item { border-radius: 20px; }
  .contact-item { grid-template-columns: 44px minmax(0, 1fr) auto; padding: .9rem; }
  .contact-item > span { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
