:root {
  --ink: #14233d;
  --navy: #0b1b34;
  --blue: #1767e8;
  --accent: #75b8ff;
  --paper: #f9fbff;
  --line: #dbe4f0;
  --white: #fff;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 160ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }

.header {
  position: sticky;
  z-index: 20;
  top: 0;
  width: 100%;
  color: var(--white);
  background: rgba(7,21,43,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.header-inner {
  width: min(1280px, calc(100% - 48px));
  max-width: 1280px;
  height: 96px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}
.brand { display: flex; align-items: center; min-width: 206px; }
.brand-logo { display: block; width: 180px; height: auto; filter: drop-shadow(0 2px 6px rgba(48,119,236,.45)); }
.nav { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 1.8vw, 28px); }
.nav a { font-size: 16px; font-weight: 600; }
.nav a:hover { color: var(--accent); }
.nav a.nav-quote { padding: 11px 16px; border-radius: 2px; color: var(--white); background: var(--blue); }
.nav a.nav-quote:hover { background: #0e55c4; }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.nav-dropdown-toggle:hover, .nav-dropdown:focus-within .nav-dropdown-toggle { color: var(--accent); }
.dropdown-chevron { display: inline-block; font-size: 13px; transition: transform .2s ease; }
.nav-dropdown.open .dropdown-chevron { transform: rotate(180deg); }
.catalog-menu {
  position: absolute;
  z-index: 25;
  top: 100%;
  left: -16px;
  display: none;
  width: min(340px, 85vw);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 16px 36px rgba(0,0,0,.2);
}
.nav-dropdown:hover .catalog-menu,
.nav-dropdown:focus-within .catalog-menu,
.nav-dropdown.open .catalog-menu { display: block; }
.catalog-menu a { display: block; padding: 10px 12px; border-radius: 2px; color: var(--ink); font-size: 14px; font-weight: 600; }
.catalog-menu a:hover, .catalog-menu a:focus-visible { color: var(--blue); background: #edf4ff; }
.header-actions { display: flex; align-items: center; justify-self: end; gap: 8px; }
.header-contact { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 3px; white-space: nowrap; transition: background .2s ease, border-color .2s ease; }
.header-contact:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.08); }
.header-contact strong, .header-contact small { display: block; }
.header-contact strong { font-size: 16px; }
.header-contact small { margin-top: 3px; font-size: 11px; opacity: .82; }
.whatsapp-mark { width: 32px; height: 32px; flex: 0 0 32px; padding: 6px; border-radius: 50%; color: var(--white); background: #25d366; fill: currentColor; }
.phone-mark { width: 20px; height: 20px; flex: 0 0 20px; color: var(--accent); fill: currentColor; }
.menu-toggle { display: none; }

.hero {
  min-height: 810px;
  padding-bottom: 32px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7,22,47,.96) 0%, rgba(7,22,47,.82) 42%, rgba(7,22,47,.5) 74%, rgba(7,22,47,.28) 100%),
    url("modulmex-hero-mostrador.jpg") center 48%/cover;
  overflow: hidden;
}
.hero-copy { padding-top: 44px; position: relative; z-index: 2; }
.eyebrow, .section-kicker {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  font-weight: 700;
}
.hero h1 {
  max-width: 1100px;
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(50px, 5vw, 76px);
  line-height: .95;
  letter-spacing: clamp(-5px, -.32vw, -2px);
  word-spacing: .04em;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-lead { max-width: 540px; margin: 22px 0; font-size: 18px; line-height: 1.65; opacity: .88; }
.hero-actions { display: flex; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 2px; font-weight: 700; font-size: 14px; }
.button-primary { background: var(--accent); color: var(--navy); }
.button-secondary { border: 1px solid rgba(255,255,255,.55); color: var(--white); }
.gallery { width: 100%; margin: 28px auto 0; }
.gallery-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto 12px;
}
.gallery-heading strong { font-family: "Manrope", sans-serif; font-size: 15px; }
.gallery-heading span { color: rgba(255,255,255,.7); font-size: 12px; }
.gallery-frame, .gallery-viewport { width: 100%; }
.gallery-viewport { overflow-x: hidden; scrollbar-width: none; scroll-snap-type: none; scroll-behavior: auto; outline-offset: 4px; }
.gallery-viewport::-webkit-scrollbar { display: none; }
.gallery-track { position: relative; display: flex; gap: 18px; width: max-content; padding: 2px 0 8px; animation: gallery-marquee var(--loop-duration, 60s) linear infinite; }
@keyframes gallery-marquee {
  to { transform: translateX(calc(0px - var(--loop-distance, 0px))); }
}
.gallery figure { position: relative; flex: 0 0 clamp(240px, 15vw, 300px); height: clamp(200px, 13vw, 250px); margin: 0; overflow: hidden; border-radius: 3px; box-shadow: 0 18px 50px rgba(0,0,0,.2); }
.gallery-slide-link { display: block; height: 100%; color: inherit; }
.gallery-slide-link:focus-visible { outline: 3px solid var(--accent); outline-offset: -4px; }
.gallery figure::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(10,32,22,.75)); pointer-events: none; }
.gallery img { height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; z-index: 1; bottom: 14px; left: 16px; color: var(--white); font-size: 13px; font-weight: 700; pointer-events: none; }

.about { padding: 110px 0; background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 32px 60px; align-items: end; }
.about-main { grid-column: 1; }
.section-kicker { color: #6381aa; }
.about h2, .section-heading h2, .process h2, .cta h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -3px;
}
.experience { display: flex; align-items: center; gap: 16px; margin-top: 34px; }
.experience strong { color: var(--blue); font-family: "Manrope", sans-serif; font-size: 84px; line-height: 1; letter-spacing: -6px; }
.experience sup { font-size: 34px; }
.experience span { max-width: 150px; font-weight: 700; line-height: 1.25; }
.about-image { grid-column: 2; grid-row: 1 / span 2; height: 520px; margin: 0; }
.about-image img { height: 100%; object-fit: cover; border-radius: 3px; }
.about-text { grid-column: 1; max-width: 520px; }
.about-text p { color: #5d6b80; line-height: 1.72; }
.about-text .lead { color: var(--ink); font-size: 19px; font-weight: 600; }
.text-link { display: inline-flex; gap: 12px; margin-top: 10px; font-weight: 700; border-bottom: 1px solid var(--ink); padding-bottom: 5px; }

.catalog { padding: 100px 0 120px; background: #e9f0fa; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 44px; }
.section-heading > div { max-width: 650px; }
.section-heading > p { max-width: 350px; color: #5d6d84; line-height: 1.6; }
#sectores .section-heading > p { max-width: 480px; font-size: 18px; line-height: 1.7; text-align: justify; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 300px; gap: 18px; }
.catalog-card { position: relative; display: block; overflow: hidden; color: var(--white); background: var(--navy); text-decoration: none; }
.catalog-card img { height: 100%; object-fit: cover; transition: transform .5s ease; opacity: .82; }
.catalog-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(7,22,47,.92)); pointer-events: none; }
.catalog-card:hover img { transform: scale(1.03); }
.catalog-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.card-content { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 22px; color: var(--white); }
.card-content span { position: absolute; top: -38px; font-size: 11px; letter-spacing: 2px; }
.card-content h3 { margin: 0 50px 5px 0; font-family: "Manrope", sans-serif; font-size: 23px; }
.card-content p { margin: 0; opacity: .78; font-size: 13px; }
.card-arrow { position: absolute; right: 0; bottom: 0; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; font-size: 18px; }

.category-hero { padding: 58px 0 64px; color: var(--white); background: linear-gradient(115deg, #0b1b34, #1a5795); }
.category-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; color: rgba(255,255,255,.78); font-size: 13px; }
.category-breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.category-hero .section-kicker { margin-bottom: 12px; color: var(--accent); }
.category-hero h1 { max-width: 900px; margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(38px, 5vw, 64px); line-height: 1.05; letter-spacing: -2px; }
.category-description { max-width: 760px; margin: 18px 0 0; color: rgba(255,255,255,.84); font-size: 17px; line-height: 1.65; }
.sector-header { color: var(--white); background: var(--navy); }
.sector-header-inner { display: flex; min-height: 96px; align-items: center; justify-content: space-between; gap: 24px; }
.sector-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.sector-nav a { font-size: 14px; font-weight: 700; }
.sector-nav a:hover { color: var(--accent); }
.sector-nav .sector-nav-quote { padding: 11px 16px; color: var(--white); background: var(--blue); }
.sector-detail { padding: 76px 0; background: var(--white); }
.sector-detail-intro { max-width: 850px; margin-bottom: 34px; }
.sector-detail h2 { margin: 0 0 16px; font-family: "Manrope", sans-serif; font-size: clamp(30px, 4vw, 42px); line-height: 1.12; letter-spacing: -1.5px; }
.sector-detail p, .sector-showcase p { color: #5d6b80; line-height: 1.75; }
.sector-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sector-feature { padding: 24px; border: 1px solid var(--line); background: var(--paper); }
.sector-feature h3 { margin: 0 0 9px; font-family: "Manrope", sans-serif; font-size: 18px; }
.sector-feature p { margin: 0; font-size: 14px; }
.sector-showcase { padding: 76px 0; background: #e9f0fa; }
.sector-showcase-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 46px; }
.sector-showcase figure { margin: 0; }
.sector-showcase img { width: 100%; max-height: 460px; object-fit: cover; background: var(--white); }
.sector-showcase figcaption { margin-top: 9px; color: #64738a; font-size: 12px; }
.sector-showcase h2 { margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(30px, 4vw, 42px); line-height: 1.12; letter-spacing: -1.5px; }
.sector-showcase ul { padding-left: 20px; color: #5d6b80; line-height: 1.8; }
.sector-page-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; font-weight: 700; }
.sector-page-links a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.sector-footer { padding: 24px 0; color: rgba(255,255,255,.72); background: #07152b; font-size: 13px; }
.sector-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.sector-footer p { margin: 0; }
.sector-footer a:hover { color: var(--white); }
.sector-page .category-hero { padding-block: 44px; }
.sector-page .category-breadcrumb { margin-bottom: 18px; }
.sector-page .category-hero .section-kicker { margin-bottom: 8px; }
.sector-page .category-hero h1 { max-width: 100%; font-size: clamp(40px, 4.2vw, 56px); }
.sector-page .category-description { max-width: 1120px; margin-top: 14px; font-size: 19px; line-height: 1.6; }
.sector-page .sector-detail { padding-block: 40px; }
.sector-page .sector-detail-intro { max-width: 1120px; margin-bottom: 26px; }
.sector-page .sector-detail h2 { max-width: 1120px; margin-bottom: 12px; }
.sector-page .sector-detail p, .sector-page .sector-showcase-grid > div > p:not(.section-kicker) { font-size: 17px; line-height: 1.7; }
.sector-page .sector-feature { padding: 20px; }
.sector-page .sector-feature p { font-size: 16px; }
.sector-page .sector-showcase { padding-block: 28px; }
.sector-page .sector-showcase-grid { align-items: stretch; gap: 24px; }
.sector-page .sector-showcase-grid > div { display: flex; flex-direction: column; justify-content: flex-start; }
.sector-page .sector-showcase-grid > div > .section-kicker { margin-bottom: 4px; }
.sector-page .sector-showcase-grid > div > h2 { margin-bottom: 8px; }
.sector-page .sector-showcase-grid > div > p:not(.section-kicker) { margin-block: 0; }
.sector-page .sector-showcase-grid > div > p:not(.section-kicker) { font-size: 18px; }
.sector-page .sector-page-links { gap: 12px; margin-top: 12px; }
.sector-page .sector-page-links a { display: inline-flex; min-height: 50px; flex: 1 1 auto; align-items: center; justify-content: center; padding: 12px 16px; border: 2px solid var(--blue); border-radius: 4px; background: var(--blue); box-shadow: 0 5px 14px rgba(23,103,232,.2); color: var(--white); font-size: 15px; line-height: 1.35; text-align: center; text-decoration: none; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.sector-page .sector-page-links a:first-child { background: var(--blue); }
.sector-page .sector-page-links a:nth-child(2) { border-color: var(--navy); background: var(--navy); box-shadow: 0 5px 14px rgba(11,27,52,.16); }
.sector-page .sector-page-links a:hover { transform: translateY(-2px); background: #0e4fc2; box-shadow: 0 8px 18px rgba(23,103,232,.28); }
.sector-page .sector-page-links a:nth-child(2):hover { border-color: #1a5795; background: #1a5795; }
.sector-page .sector-page-links a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.category-gallery-section { padding: 72px 0 96px; background: #f0f5fc; }
.detail-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.detail-photo-card { min-width: 0; margin: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.detail-photo-button { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; background: #e6edf7; cursor: zoom-in; }
.detail-photo-button::after { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; color: #5d6d84; font-size: 13px; font-weight: 600; content: "Cargando foto..."; pointer-events: none; }
.detail-photo-button.is-loaded::after { display: none; }
.detail-photo-button.has-error::after { color: #8b2635; content: "No se pudo cargar esta foto"; }
.detail-photo-button img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: 0; transition: opacity .25s ease, transform .35s ease; }
.detail-photo-button.is-loaded img { opacity: 1; }
.detail-photo-button:hover img { transform: scale(1.04); }
.detail-photo-button:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.detail-photo-zoom { position: absolute; z-index: 2; right: 12px; bottom: 12px; padding: 7px 10px; border-radius: 2px; color: var(--white); background: rgba(7,21,43,.78); font-size: 12px; font-weight: 700; }
.detail-photo-card figcaption { min-height: 48px; padding: 13px 15px; font-size: 14px; font-weight: 700; }
.back-to-catalog { display: inline-block; margin-top: 32px; color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.image-zoom { position: relative; width: min(1100px, calc(100% - 32px)); max-width: none; max-height: 92vh; padding: 18px; overflow: auto; border: 1px solid rgba(255,255,255,.2); color: var(--white); background: #07152b; }
.image-zoom::backdrop { background: rgba(3,10,20,.86); }
.image-zoom form { position: absolute; z-index: 1; top: 10px; right: 10px; margin: 0; }
.zoom-close { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; color: var(--white); background: rgba(7,21,43,.78); font-size: 28px; line-height: 1; cursor: pointer; }
.image-zoom > img { width: auto; max-width: 100%; max-height: calc(92vh - 72px); margin: 0 auto; object-fit: contain; }
.image-zoom > p { margin: 12px 0 0; text-align: center; font-weight: 600; }

.process { padding: 120px 0 88px; background: var(--paper); }
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.process-carousel { height: 620px; overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: 0 18px 45px rgba(20,35,61,.1); }
.process-carousel-viewport { position: relative; height: calc(100% - 112px); overflow: hidden; background: #fff; }
.process-carousel-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 12px; opacity: 0; visibility: hidden; transform: translateX(14px); transition: opacity .25s ease, transform .25s ease, visibility .25s ease; }
.process-carousel-slide.is-active { opacity: 1; visibility: visible; transform: translateX(0); }
.process-carousel-slide img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.process-carousel-arrow { position: absolute; z-index: 2; top: 50%; display: grid; width: 66px; height: 66px; place-items: center; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; color: var(--white); background: rgba(11,27,52,.84); box-shadow: 0 8px 26px rgba(0,0,0,.24); font-size: 50px; line-height: 1; cursor: pointer; transform: translateY(-50%); transition: background .2s ease, transform .2s ease; }
.process-carousel-arrow:hover { background: var(--blue); transform: translateY(-50%) scale(1.06); }
.process-carousel-arrow:focus-visible, .process-carousel-dots button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.process-carousel-previous { left: 18px; }
.process-carousel-next { right: 18px; }
.process-carousel-footer { display: flex; min-height: 112px; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; color: var(--white); background: var(--navy); }
.process-carousel-copy { min-width: 0; }
.process-carousel-step { margin: 0; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.process-carousel-caption { max-width: 350px; margin: 6px 0 0; color: rgba(255,255,255,.82); font-size: 13px; line-height: 1.45; }
.process-carousel-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 14px; }
.process-carousel-dots { display: flex; align-items: center; gap: 7px; }
.process-carousel-dots button { width: 12px; height: 12px; padding: 0; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; background: transparent; cursor: pointer; }
.process-carousel-dots button.is-active { border-color: var(--accent); background: var(--accent); }
.process-carousel-link { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid rgba(255,255,255,.58); color: var(--white); font-size: 12px; font-weight: 700; white-space: nowrap; transition: background .2s ease, border-color .2s ease; }
.process-carousel-link:hover { border-color: var(--accent); background: rgba(255,255,255,.08); }
.process-copy h2 { max-width: 520px; }
.process-copy ol { list-style: none; padding: 0; margin: 42px 0 0; }
.process-copy li { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.process-copy li > span { color: #7790b2; font-size: 12px; margin-top: 5px; }
.process-copy li strong { font-family: "Manrope", sans-serif; font-size: 18px; }
.process-copy li p { margin: 5px 0 0; color: #66748a; }

.project-catalog-section { padding: 72px 0 96px; background: #f0f5fc; }
.project-catalog-heading { display: block; max-width: 900px; margin-bottom: 34px; }
.project-catalog-heading > div { max-width: 780px; }
.project-catalog-heading .section-kicker { margin-bottom: 12px; }
.project-catalog-heading h2 { margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(34px, 4vw, 52px); line-height: 1.05; letter-spacing: -2px; }
.project-catalog-heading > p { max-width: 800px; margin: 16px 0 0; color: #5d6d84; font-size: 17px; line-height: 1.7; }
.project-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.project-filter { min-height: 54px; padding: 0 23px; border: 1px solid #cbd7e8; border-radius: 3px; color: #40536f; background: var(--white); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.project-filter:hover, .project-filter.is-active { border-color: var(--blue); color: var(--white); background: var(--blue); }
.project-filter:hover { transform: translateY(-1px); }
.project-filter:focus-visible, .project-card-button:focus-visible, .project-viewer button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.project-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.project-card { min-width: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(20,35,61,.05); transition: transform .2s ease, box-shadow .2s ease; }
.project-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(20,35,61,.12); }
.project-card[hidden] { display: none; }
.project-card-button { display: block; width: 100%; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.project-card-image { position: relative; display: grid; place-items: center; aspect-ratio: 1.48; padding: 12px; overflow: hidden; background: #e8eef7; }
.project-card-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.project-card:hover .project-card-image img { transform: scale(1.025); }
.project-card-image::after { position: absolute; right: 12px; bottom: 12px; padding: 7px 10px; color: var(--white); background: rgba(7,21,43,.82); content: "Ver láminas"; font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.project-card-copy { padding: 20px 20px 22px; }
.project-card-sector { display: inline-block; margin: 0 0 10px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.project-card-title { margin: 0; font-family: "Manrope", sans-serif; font-size: 20px; line-height: 1.25; }
.project-card-description { margin: 9px 0 0; color: #64738a; font-size: 13px; line-height: 1.6; }
.project-card-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.project-card-meta span { padding: 6px 9px; border: 1px solid #e1e8f2; color: #52637c; background: #f8faff; font-size: 11px; font-weight: 600; }
.project-card-open { display: inline-flex; align-items: center; gap: 8px; margin-top: 17px; padding: 0 0 4px; border: 0; border-bottom: 1px solid var(--blue); color: var(--blue); background: transparent; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.project-card-open::after { content: "→"; font-size: 16px; }
.project-card-open:hover { color: #0e55c4; border-color: #0e55c4; }
.project-catalog-noscript { padding: 18px; border: 1px solid var(--line); background: var(--white); }
.project-viewer { width: min(1180px, calc(100% - 32px)); max-width: none; max-height: 94vh; padding: clamp(16px, 3vw, 28px); border: 1px solid rgba(255,255,255,.2); color: var(--ink); background: var(--white); }
.project-viewer::backdrop { background: rgba(3,10,20,.88); }
.project-viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.project-viewer-sector { margin: 0 0 5px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.project-viewer-header h2 { margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(20px, 3vw, 30px); line-height: 1.15; }
.project-viewer-close { width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--white); font-size: 28px; line-height: 1; cursor: pointer; }
.project-viewer-stage { position: relative; }
.project-viewer-stage figure { min-width: 0; margin: 0; }
.project-viewer-stage img { width: 100%; max-height: min(68vh, 760px); object-fit: contain; background: #f5f7fb; }
.project-viewer-stage figcaption { margin-top: 10px; color: #52637c; font-size: 13px; font-weight: 600; text-align: center; }
.project-viewer-status { padding: 48px 16px; color: #8b2635; background: #fff3f3; text-align: center; }
.project-viewer-nav { position: absolute; z-index: 2; top: 45%; display: grid; width: 72px; height: 72px; place-items: center; border: 1px solid rgba(255,255,255,.62); border-radius: 50%; color: var(--white); background: rgba(11,27,52,.82); box-shadow: 0 8px 26px rgba(0,0,0,.24); font-size: 54px; line-height: 1; cursor: pointer; transform: translateY(-50%); transition: background .2s ease, transform .2s ease; }
.project-viewer-nav[data-viewer-previous] { left: 18px; }
.project-viewer-nav[data-viewer-next] { right: 18px; }
.project-viewer-nav:hover { background: var(--blue); transform: translateY(-50%) scale(1.06); }
.project-viewer-count { margin: 12px 0 0; color: #718198; font-size: 12px; text-align: center; }

.cta { padding: 90px 0; color: var(--white); background: var(--navy); text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta .section-kicker { color: var(--accent); }
.cta h2 { max-width: 820px; }
.cta p:not(.section-kicker) { margin: 18px 0 28px; opacity: .75; }
.button-light { background: var(--white); color: var(--navy); }

footer { padding-bottom: 104px; background: #07152b; color: var(--white); }
.footer-inner { min-height: 150px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(170px, .75fr); align-items: center; gap: 28px; padding-block: 28px; }
.footer-brand { display: grid; justify-items: start; gap: 12px; }
.brand-footer { min-width: auto; }
.footer-brand p { margin: 0; color: rgba(255,255,255,.62); font-size: 13px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.footer-social a { display: inline-flex; min-height: 44px; align-items: center; gap: 6px; color: rgba(255,255,255,.9); font-size: 12px; }
.footer-social a:hover { color: var(--accent); }
.footer-social a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.footer-social svg { width: 18px; height: 18px; flex: 0 0 18px; fill: currentColor; color: #ed1c24; }
.footer-contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.footer-contacts a { min-width: 0; display: flex; align-items: flex-start; gap: 9px; color: rgba(255,255,255,.9); font-size: 13px; overflow-wrap: anywhere; }
.footer-contact-icon { width: 18px; height: 18px; flex: 0 0 18px; color: #ed1c24; fill: currentColor; }
.footer-contacts a:last-child { grid-column: 1 / -1; }
.footer-contacts a:hover, .footer-map a:hover { color: var(--accent); }
.footer-map { width: min(190px, 100%); min-width: 0; justify-self: end; display: flex; flex-direction: column; gap: 8px; }
.footer-map iframe { width: 100%; height: 88px; border: 0; border-radius: 3px; }
.footer-map a { display: flex; align-items: center; gap: 7px; align-self: flex-start; color: rgba(255,255,255,.9); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.footer-map .footer-contact-icon { width: 16px; height: 16px; flex-basis: 16px; }
.floating-contact { position: fixed; z-index: 20; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 8px; }
.floating-contact-button { display: flex; min-width: 144px; min-height: 44px; align-items: center; justify-content: space-between; gap: 18px; padding: 0 13px 0 16px; border-radius: 5px; color: var(--white); font-size: 14px; font-weight: 700; box-shadow: 0 5px 16px rgba(0,0,0,.24); transition: transform .18s ease, box-shadow .18s ease; }
.floating-contact-button:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.28); }
.floating-contact-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.floating-contact-button svg { width: 21px; height: 21px; flex: 0 0 21px; fill: currentColor; }
.floating-contact-call { background: #b90012; }
.floating-contact-whatsapp { background: #20b95a; }

@media (max-width: 1100px) {
  .header-inner { display: flex; }
  .nav { display: none; }
  .header-actions { order: 1; margin-left: auto; }
  .menu-toggle { display: grid; order: 2; gap: 5px; margin-left: 16px; border: 0; background: transparent; }
  .menu-toggle span { display: block; width: 24px; height: 2px; background: var(--white); }
  .nav.open { position: absolute; top: 96px; left: 24px; right: 24px; display: flex; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100vh - 112px); overflow-y: auto; background: var(--navy); }
  .nav.open a { padding: 18px 20px; border-top: 1px solid rgba(255,255,255,.1); }
  .nav.open .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 18px 20px; border-top: 1px solid rgba(255,255,255,.1); text-align: left; }
  .nav.open .catalog-menu { position: static; width: auto; max-height: min(42vh, 360px); margin: 0 12px 12px; padding: 4px 8px; border: 0; border-radius: 3px; background: #102748; box-shadow: none; }
  .nav.open .nav-dropdown:not(.open) .catalog-menu { display: none; }
  .nav.open .nav-dropdown.open .catalog-menu { display: block; }
  .nav.open .catalog-menu a { padding: 12px; border-top: 1px solid rgba(255,255,255,.09); color: rgba(255,255,255,.88); }
  .nav.open .catalog-menu a:hover, .nav.open .catalog-menu a:focus-visible { color: var(--white); background: rgba(255,255,255,.08); }
  .nav.open a.nav-quote { align-self: flex-start; margin: 12px 20px 18px; padding: 12px 18px; border-top: 0; }
}

@media (max-width: 980px) {
  .hero h1 { max-width: 100%; font-size: clamp(42px, 5.4vw, 58px); letter-spacing: -2px; }
  .nav { display: none; }
  .nav.open { position: absolute; top: 96px; left: 24px; right: 24px; display: flex; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100vh - 112px); overflow-y: auto; background: var(--navy); }
  .nav.open a { padding: 18px 20px; border-top: 1px solid rgba(255,255,255,.1); }
  .nav.open .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 18px 20px; border-top: 1px solid rgba(255,255,255,.1); text-align: left; }
  .nav.open .catalog-menu { position: static; width: auto; max-height: min(42vh, 360px); margin: 0 12px 12px; padding: 4px 8px; border: 0; border-radius: 3px; background: #102748; box-shadow: none; }
  .nav.open .nav-dropdown:not(.open) .catalog-menu { display: none; }
  .nav.open .nav-dropdown.open .catalog-menu { display: block; }
  .nav.open .catalog-menu a { padding: 12px; border-top: 1px solid rgba(255,255,255,.09); color: rgba(255,255,255,.88); }
  .nav.open .catalog-menu a:hover, .nav.open .catalog-menu a:focus-visible { color: var(--white); background: rgba(255,255,255,.08); }
  .nav.open a.nav-quote { align-self: flex-start; margin: 12px 20px 18px; padding: 12px 18px; border-top: 0; }
  .gallery { width: 100%; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 32px; }
  .section-heading > p { max-width: 600px; margin: 0; }
  .catalog-grid { grid-template-columns: 1fr 1fr; }
  .sector-feature-grid { grid-template-columns: 1fr 1fr; }
  .sector-showcase-grid { gap: 28px; }
  .detail-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-catalog-heading { max-width: 760px; }
  .process-grid { gap: 40px; }
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 26px; }
  .about-main, .about-image, .about-text { grid-column: auto; grid-row: auto; }
  .about-image { height: clamp(320px, 48vw, 480px); }
  .process-grid { grid-template-columns: 1fr; gap: 32px; }
  .process-carousel { height: clamp(430px, 60vw, 540px); }
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(180px, .7fr);
    gap: 18px 24px;
  }
  .footer-brand { grid-column: 1; grid-row: 1; }
  .footer-contacts { grid-column: 1; grid-row: 2; }
  .footer-map { grid-column: 2; grid-row: 1 / 3; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 96px; }
  .container { width: min(100% - 32px, 1280px); }
  .header-inner { width: min(100% - 32px, 1280px); height: 96px; }
  .brand { min-width: 0; }
  .brand-logo { width: min(184px, 52vw); }
  .header-actions { display: none; }
  .menu-toggle { margin-left: auto; }
  .nav.open { top: 96px; left: 16px; right: 16px; max-height: calc(100vh - 104px); }
  .hero { min-height: 0; padding-bottom: 40px; background-position: left center; }
  .hero-copy { padding-top: 44px; }
  .hero h1 { max-width: none; font-size: clamp(42px, 8vw, 50px); letter-spacing: -2px; }
  .hero-lead { max-width: 420px; font-size: 16px; }
  .hero-actions { flex-wrap: wrap; }
  .gallery { width: 100%; margin-top: 24px; }
  .gallery-heading { width: calc(100% - 32px); }
  .gallery-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .gallery figure { flex-basis: clamp(220px, 42vw, 260px); height: clamp(190px, 35vw, 230px); }
  .about, .catalog { padding: 74px 0; }
  .process { padding: 74px 0 36px; }
  .about-grid { display: block; }
  .about h2, .section-heading h2, .process h2, .cta h2 { font-size: 40px; letter-spacing: -2px; }
  .experience strong { font-size: 68px; }
  .about-image { height: 360px; margin: 38px 0 28px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 20px; }
  .catalog-grid { display: grid; grid-template-columns: 1fr; grid-auto-rows: clamp(280px, 80vw, 360px); }
  .sector-header-inner { min-height: auto; align-items: flex-start; flex-direction: column; padding-block: 18px; }
  .sector-nav { gap: 12px 18px; }
  .sector-feature-grid, .sector-showcase-grid { grid-template-columns: 1fr; }
  .sector-detail, .sector-showcase { padding-block: 54px; }
  .sector-page .category-hero { padding-block: 36px; }
  .sector-page .category-description { font-size: 17px; }
  .sector-page .sector-detail { padding-block: 32px; }
  .sector-page .sector-detail p, .sector-page .sector-showcase-grid > div > p:not(.section-kicker) { font-size: 16px; }
  .sector-page .sector-page-links { margin-top: 12px; }
  .sector-page .sector-page-links a { flex-basis: 100%; }
  .detail-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .detail-photo-card:nth-child(3):last-child { grid-column: 1 / -1; }
  .detail-photo-card:nth-child(3):last-child .detail-photo-button img { aspect-ratio: 2 / 1; }
  .category-hero { padding-block: 42px; }
  .category-hero h1 { font-size: clamp(36px, 8vw, 48px); }
  .category-description { font-size: 15px; }
  .category-gallery-section { padding-block: 56px 72px; }
  .project-catalog-section { padding-block: 56px 72px; }
  .project-card-grid { grid-template-columns: 1fr; gap: 16px; }
  .project-card-image { aspect-ratio: 1.35; }
  .project-card-copy { padding: 18px; }
  .project-viewer { width: calc(100% - 16px); max-height: 96vh; padding: 12px; }
  .project-viewer-header { gap: 12px; margin-bottom: 12px; }
  .project-viewer-nav { width: 58px; height: 58px; font-size: 42px; }
  .project-viewer-nav[data-viewer-previous] { left: 8px; }
  .project-viewer-nav[data-viewer-next] { right: 8px; }
  .project-viewer-stage img { max-height: 68vh; }
  .project-filter { min-height: 50px; padding-inline: 18px; }
  .process-grid { display: flex; flex-direction: column; }
  .process-carousel { width: 100%; height: clamp(410px, 108vw, 500px); }
  .process-carousel-viewport { height: calc(100% - 132px); }
  .process-carousel-footer { min-height: 132px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 10px; padding: 14px; }
  .process-carousel-caption { max-width: none; }
  .process-carousel-actions { width: 100%; justify-content: space-between; }
  .process-carousel-arrow { width: 54px; height: 54px; font-size: 42px; }
  .process-carousel-previous { left: 10px; }
  .process-carousel-next { right: 10px; }
  .process-copy { width: 100%; }
  .cta { padding: 48px 0 70px; }
  .footer-inner { display: flex; min-height: 0; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 20px; padding-block: 28px; }
  .footer-brand, .footer-contacts, .footer-map { width: 100%; }
  .footer-map { max-width: 190px; align-self: flex-start; }
  .floating-contact { right: 14px; bottom: 14px; }
}

@media (max-width: 420px) {
  html { scroll-padding-top: 84px; }
  .container { width: calc(100% - 32px); }
  .header-inner { height: 84px; padding-inline: 16px; }
  .brand-logo { width: min(160px, 48vw); }
  .nav.open { top: 84px; max-height: calc(100vh - 92px); overflow-y: auto; }
  .hero-copy { padding-top: 40px; }
  .hero h1 { font-size: clamp(38px, 9.5vw, 42px); }
  .hero-lead { margin: 20px 0; font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; padding-inline: 16px; }
  .gallery { margin-top: 32px; }
  .gallery figure { flex-basis: 220px; height: 190px; }
  .footer-contacts { grid-template-columns: 1fr; gap: 12px; }
  .footer-contacts a:last-child { grid-column: auto; }
  .floating-contact { right: 12px; bottom: 12px; gap: 6px; }
  .floating-contact-button { min-width: 132px; min-height: 42px; padding-inline: 12px; font-size: 13px; }
  .about, .catalog, .products { padding-block: 64px; }
  .process { padding-block: 64px 32px; }
  .about h2, .section-heading h2, .process h2, .cta h2 { font-size: 36px; }
  .section-kicker, .eyebrow { letter-spacing: 2px; }
  .card-content { left: 18px; right: 18px; bottom: 18px; }
  .card-content h3 { font-size: 20px; }
  .cta { padding-block: 40px 60px; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  .gallery-track { animation: none; }
  .gallery img { transition: none; }
  .process-carousel-slide { transition: none; }
}
