/* Electricistas Tampico · Edición comercial 2026 */
:root {
  --navy: #102a43;
  --deep: #0a1f33;
  --blue: #1a4287;
  --sky: #a9d4f5;
  --ink: #183247;
  --text: #5a6c79;
  --line: #dce3e7;
  --paper: #f3f5f5;
  --white: #fff;
  --max: 1240px;
  color-scheme: light;
  font-family: Inter,"Segoe UI",Arial,sans-serif;
  font-synthesis: none;
}

*,*::before,*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

h1,h2,h3,p,figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,input,select,textarea {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

button,a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline: 3px solid #478bce;
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(var(--max),calc(100% - 96px));
  margin-inline: auto;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  background: white;
  color: var(--navy);
  padding: 12px 20px;
  z-index: 500;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 52px;
  padding: 15px 23px;
  background: var(--blue);
  color: #fff;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  transition: background .2s,transform .2s;
  white-space: normal;
}

.button:hover {
  background: #12336b;
  transform: translateY(-2px);
}

.button .icon {
  width: 19px;
  height: 19px;
}

.button-small {
  min-height: 43px;
  padding: 11px 17px;
  gap: 16px;
  font-size: 12px;
}

.button-white {
  background: white;
  color: var(--navy);
}

.button-white:hover {
  background: #e8f1f8;
}

.text-link {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  font-size: 13px;
  font-weight: 650;
  padding: 9px 0;
  border-bottom: 1px solid #afbfca;
  transition: gap .2s;
}

.text-link:hover {
  gap: 26px;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.icon-button:hover {
  background: var(--paper);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-family: "Courier New",monospace;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 23px;
  height: 2px;
  background: currentColor;
}

.eyebrow.light {
  color: var(--sky);
}

.status-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--sky);
  flex-shrink: 0;
}

.eyebrow:has(.status-dot)::before {
  display: none;
}

h2 {
  font-size: clamp(34px,3.6vw,50px);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1.13;
}

.muted-title {
  color: #778792;
}

em {
  font-style: normal;
  color: var(--sky);
}

.section {
  padding: 100px 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 45px;
  margin-bottom: 43px;
}

.section-intro {
  max-width: 350px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.85;
  padding-bottom: 3px;
}

.topbar {
  background: var(--navy);
  color: #c7d5e0;
  font-size: 10px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 34px;
}

.topbar p {
  display: flex;
  align-items: center;
  gap: 7px;
}

.topbar .icon {
  height: 12px;
  width: 12px;
}

.topbar a:hover {
  color: white;
}

.topbar a span {
  margin-left: 8px;
}

.header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #e9edf0;
  z-index: 50;
  backdrop-filter: blur(15px);
}

.navigation {
  height: 89px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img {
  object-fit: contain;
}

.brand-name {
  font-size: 15px;
  letter-spacing: .025em;
  font-weight: 750;
  line-height: 1.1;
}

.brand-name>span {
  display: block;
  font-size: 22px;
  letter-spacing: .025em;
  margin-top: 4px;
}

.brand-dot {
  color: #4784c4;
}

.nav {
  display: flex;
  align-items: center;
  gap: 27px;
}

.nav>a:not(.button) {
  font-size: 12px;
  font-weight: 550;
  padding: 13px 0;
  position: relative;
}

.nav>a:not(.button)::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}

.nav>a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
}

.hero {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  gap: 66px;
  align-items: center;
  padding-top: 57px;
  padding-bottom: 65px;
}

.hero-copy h1 {
  font-size: clamp(54px,5.4vw,78px);
  font-weight: 550;
  letter-spacing: -.058em;
  line-height: 1.035;
}

.hero-copy .eyebrow {
  margin-bottom: 26px;
}

.hero-description {
  max-width: 400px;
  color: #c7d4df;
  font-size: 15px;
  line-height: 1.9;
  margin-top: 26px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-actions .button {
  font-size: 12px;
  gap: 22px;
  padding-inline: 20px;
}

.light-link {
  color: #e4edf5;
  border-color: #5b7488;
  font-size: 12px;
}

.hero-note {
  margin-top: 25px;
  color: #8fa9bd;
  font-size: 10px;
  line-height: 1.8;
}

.hero-media {
  position: relative;
  min-width: 0;
  padding-bottom: 33px;
  margin-right: 16px;
}

.hero-image {
  position: relative;
  height: 487px;
  overflow: hidden;
  background: #294355;
}

.hero-image>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 32%;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  opacity: 0;
  transition: opacity .5s;
}

.hero-video.is-playing {
  opacity: 1;
}

.image-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,rgba(7,26,42,.7),transparent 32%,transparent 85%,rgba(7,26,42,.2));
  pointer-events: none;
}

.media-label {
  position: absolute;
  left: 21px;
  bottom: 31px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: .04em;
}

.photo-index {
  position: absolute;
  right: 18px;
  top: 18px;
  font: 10px "Courier New",monospace;
  letter-spacing: .05em;
  color: white;
}

.hero-side-label {
  position: absolute;
  top: 1px;
  right: -25px;
  writing-mode: vertical-rl;
  font: 9px "Courier New",monospace;
  letter-spacing: .17em;
  color: #8eacc2;
}

.video-card {
  position: absolute;
  left: -25px;
  right: 27px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  color: var(--navy);
  padding: 19px 22px;
  text-align: left;
  box-shadow: 0 14px 35px #031a3826;
  transition: transform .2s;
}

.video-card:hover {
  transform: translateY(-3px);
}

.video-card>svg {
  margin-left: auto;
  width: 20px;
  height: 20px;
}

.video-card small {
  display: block;
  font: 8px "Courier New",monospace;
  font-weight: 700;
  letter-spacing: .05em;
  color: #70828f;
}

.video-card strong {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-top: 4px;
}

.play-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #bdcbd4;
  border-radius: 50%;
  flex-shrink: 0;
}

.play-circle .icon {
  height: 17px;
  width: 17px;
  margin-left: 1px;
}

.video-control {
  position: absolute;
  right: 16px;
  bottom: 35px;
  width: 32px;
  height: 32px;
  background: #102a4399;
  color: white;
  border: 1px solid #ffffff66;
  font-size: 15px;
  z-index: 1;
}

.hero-services {
  border-top: 1px solid #3b5367;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  padding-bottom: 0;
}

.hero-services a {
  position: relative;
  padding: 22px 27px 23px 0;
}

.hero-services a+a {
  border-left: 1px solid #3b5367;
  padding-left: 32px;
}

.hero-services span {
  display: block;
  font: 8px "Courier New",monospace;
  letter-spacing: .1em;
  color: #a8bdd0;
}

.hero-services strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-top: 7px;
  color: #e4edf5;
}

.hero-services svg {
  position: absolute;
  right: 25px;
  top: 36px;
  width: 17px;
  height: 17px;
  color: #8dadc6;
}

.hero-services a:hover strong {
  color: var(--sky);
}

.sectors {
  border-bottom: 1px solid var(--line);
  background: #f8f9f9;
}

.sectors-inner {
  display: flex;
  align-items: center;
  gap: 50px;
  min-height: 96px;
}

.sectors p {
  font: 8px/1.7 "Courier New",monospace;
  letter-spacing: .07em;
  color: #657b89;
  min-width: 145px;
}

.sectors ul {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  list-style: none;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.sectors li {
  font-size: 14px;
  font-weight: 550;
  color: #556b7b;
}

.projects-section {
  padding-bottom: 98px;
}

.project-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}

.filters {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.filter {
  padding: 10px 0 15px;
  background: none;
  position: relative;
  color: #6b7e8d;
  font-size: 11px;
  font-weight: 600;
}

.filter.active {
  color: var(--blue);
}

.filter.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--blue);
}

.filter span {
  font-family: "Courier New",monospace;
  font-size: 9px;
  margin-left: 7px;
  color: #7b91a1;
}

.project-toolbar>p {
  font: 9px "Courier New",monospace;
  color: #718591;
  white-space: nowrap;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 34px 27px;
}

.project-card {
  display: block;
  min-width: 0;
  padding: 0;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  transition: box-shadow .25s,border-color .25s;
}

.project-card:hover {
  border-color: #98afc0;
  box-shadow: 0 10px 25px #102a430a;
}

.project-photo {
  display: block;
  position: relative;
  aspect-ratio: 1.5;
  overflow: hidden;
  background: var(--paper);
}

.project-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.project-card:hover .project-photo img {
  transform: scale(1.035);
}

.project-card[data-project=canalizacion] .project-photo img {
  object-position: center 36%;
}

.project-card[data-project=acometidas] .project-photo img {
  object-position: center 40%;
}

.project-number {
  position: absolute;
  top: 13px;
  left: 13px;
  background: #102a43db;
  padding: 4px 8px;
  font: 9px "Courier New",monospace;
  color: white;
}

.project-photo-arrow {
  position: absolute;
  right: 13px;
  bottom: 13px;
  background: #fff;
  width: 33px;
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-photo-arrow svg {
  width: 17px;
  height: 17px;
}

.project-body {
  display: flex;
  flex-direction: column;
  min-height: 239px;
  padding: 21px 23px 0;
}

.project-kicker {
  font: 8px "Courier New",monospace;
  letter-spacing: .04em;
  line-height: 1.5;
  color: #708492;
}

.project-body h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.27;
  margin-top: 11px;
  min-height: 51px;
}

.project-body p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--text);
  margin-top: 11px;
  margin-bottom: 22px;
}

.project-bottom {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 650;
  padding: 13px 0;
  margin-top: auto;
}

.project-bottom .icon {
  height: 17px;
  width: 17px;
  color: var(--blue);
}

.progress-tag {
  position: absolute;
  left: 13px;
  bottom: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  font-weight: 650;
  background: #f9f5e9;
  color: #705a28;
  padding: 6px 9px;
}

.progress-tag>span {
  background: #af8b42;
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.before-section {
  background: var(--navy);
  color: white;
  padding: 86px 0;
}

.before-grid {
  display: grid;
  grid-template-columns: .73fr 1.27fr;
  gap: 75px;
  align-items: center;
}

.before-copy .eyebrow {
  color: #a5c6e1;
  font-size: 9px;
}

.before-copy h2 {
  font-size: 50px;
  line-height: 1.1;
}

.before-copy>p:not(.eyebrow) {
  font-size: 12px;
  line-height: 1.9;
  color: #b5c8d7;
  margin-top: 24px;
  max-width: 330px;
}

.comparison-tabs {
  margin-top: 27px;
  border-top: 1px solid #456074;
}

.comparison-tab {
  width: 100%;
  background: none;
  color: #a3b9c9;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  border-bottom: 1px solid #456074;
  font-size: 12px;
  padding: 17px 0;
}

.comparison-tab>span {
  font: 9px "Courier New",monospace;
}

.comparison-tab>.icon {
  width: 18px;
  height: 18px;
  margin-left: auto;
  opacity: 0;
}

.comparison-tab.active {
  color: white;
}

.comparison-tab.active>.icon {
  opacity: 1;
}

.before-copy>.comparison-description {
  font-size: 10px !important;
  color: #a5b7c5 !important;
  line-height: 1.75 !important;
  margin-top: 20px !important;
}

.comparison {
  min-width: 0;
}

.comparison-frame {
  --position: 50%;
  position: relative;
  aspect-ratio: 1.22;
  overflow: hidden;
  background: #314d61;
}

.comparison-frame>img,.comparison-before>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-after {
  object-position: center 53%;
}

.comparison-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--position)) 0 0);
}

.comparison-before img {
  object-position: center 60%;
}

.comparison-handle {
  position: absolute;
  left: var(--position);
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
  pointer-events: none;
  transform: translateX(-1px);
}

.comparison-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  white-space: pre;
}

.comparison-frame input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
  margin: 0;
}

.comparison-frame:focus-within {
  outline: 3px solid var(--sky);
  outline-offset: 4px;
}

.compare-label {
  position: absolute;
  top: 19px;
  background: #102a43dd;
  color: white;
  font: 9px "Courier New",monospace;
  padding: 6px 11px;
  pointer-events: none;
}

.label-before {
  left: 18px;
}

.label-after {
  right: 18px;
}

.comparison-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 9px;
  margin-top: 12px;
  color: #b8ccdc;
}

.comparison-footer>span+span {
  font: 8px "Courier New",monospace;
  letter-spacing: .04em;
}

.services-section {
  background: var(--paper);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  border-top: 1px solid #cfdae0;
  border-left: 1px solid #cfdae0;
}

.service {
  padding: 31px 30px 27px;
  min-width: 0;
  border-right: 1px solid #cfdae0;
  border-bottom: 1px solid #cfdae0;
  transition: background .2s;
  display: flex;
  flex-direction: column;
}

.service:hover {
  background: #fff;
}

.service-icon {
  width: 33px;
  height: 33px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 26px;
}

.service h3 {
  font-size: 18px;
  letter-spacing: -.03em;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
}

.service p {
  font-size: 12px;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 23px;
}

.service>span {
  margin-top: auto;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.service>span .icon {
  width: 17px;
  height: 17px;
}

.team-section {
  padding: 100px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  gap: 90px;
  align-items: center;
}

.team-photo {
  position: relative;
  height: 448px;
  background: var(--paper);
}

.team-photo>img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

.team-photo-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: #c4d9eb;
  font: 8px "Courier New",monospace;
  letter-spacing: .08em;
  padding: 13px 19px;
}

.team-copy p:not(.eyebrow) {
  color: var(--text);
  font-size: 13px;
  line-height: 1.9;
  margin-top: 23px;
}

.team-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  border-block: 1px solid var(--line);
  padding: 18px 0;
  margin-top: 28px;
  margin-bottom: 22px;
}

.team-points span {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 10px;
  color: #455d71;
}

.team-points .icon {
  width: 14px;
  height: 14px;
  stroke: var(--blue);
}

.process-section {
  background: var(--blue);
  color: #fff;
  padding: 75px 0 82px;
}

.process-section .section-heading {
  margin-bottom: 42px;
}

.process-section .section-intro {
  color: #c9d8ed;
  font-size: 12px;
}

.process-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  padding: 0;
  margin: 0;
}

.process-list li {
  position: relative;
  border-top: 1px solid #ffffff55;
  padding: 25px 24px 0 0;
}

.process-list li+li {
  padding-left: 24px;
}

.process-list li+li::before {
  content: "";
  position: absolute;
  top: 23px;
  bottom: 0;
  left: 0;
  width: 1px;
  background: #ffffff30;
}

.step-number {
  font: 12px "Courier New",monospace;
  color: #a3c9ef;
}

.process-list h3 {
  font-size: 21px;
  letter-spacing: -.03em;
  font-weight: 550;
  margin-top: 20px;
}

.process-list p {
  font-size: 11px;
  color: #cedcf0;
  max-width: 230px;
  line-height: 1.9;
  margin-top: 11px;
}

.faq-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 100px;
}

.faq-intro {
  max-width: 310px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--text);
  margin-top: 25px;
}

.faq-grid .text-link {
  margin-top: 22px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 23px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: #8295a2;
  transition: transform .2s;
  flex-shrink: 0;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details[open] summary {
  padding-bottom: 13px;
}

.faq-list details>p {
  font-size: 12px;
  color: var(--text);
  line-height: 1.9;
  padding: 0 25px 24px 0;
}

.contact-section {
  background: var(--deep);
  color: white;
  padding: 86px 0 90px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 105px;
  align-items: center;
}

.contact-copy h2 {
  font-size: 53px;
  line-height: 1.08;
}

.contact-copy>p:not(.eyebrow) {
  font-size: 13px;
  max-width: 340px;
  line-height: 1.9;
  color: #aec3d2;
  margin-top: 25px;
}

.contact-direct {
  margin-top: 29px;
  max-width: 370px;
}

.contact-direct>a,.contact-direct>div {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 18px 0;
  border-top: 1px solid #385064;
  font-size: 15px;
}

.contact-direct>a:hover {
  color: var(--sky);
}

.contact-direct>a>.icon:last-child {
  margin-left: auto;
  width: 17px;
  height: 17px;
}

.contact-direct>div {
  font-size: 11px;
}

.contact-direct .icon {
  color: #91b9d7;
  width: 20px;
  height: 20px;
}

.contact-direct small {
  display: block;
  font: 8px "Courier New",monospace;
  letter-spacing: .1em;
  color: #8ca7ba;
  margin-bottom: 4px;
}

.contact-form {
  background: #fff;
  color: var(--ink);
  padding: 34px 34px 30px;
}

.form-eyebrow {
  font: 8px "Courier New",monospace;
  letter-spacing: .09em;
  color: #738590;
  margin-bottom: 8px;
}

.contact-form h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.035em;
  margin-bottom: 26px;
  line-height: 1.3;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.contact-form label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 18px;
}

.contact-form input,.contact-form select,.contact-form textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccd7df;
  background: #fff;
  border-radius: 0;
  color: var(--ink);
  font-size: 12px;
  margin-top: 7px;
  min-height: 43px;
  line-height: 1.6;
  max-width: 100%;
}

.contact-form input::placeholder,.contact-form textarea::placeholder {
  color: #8e9ba6;
}

.contact-form textarea {
  resize: vertical;
  min-height: 90px;
}

.contact-form .button {
  width: 100%;
  justify-content: space-between;
  margin-top: 2px;
}

.form-note {
  font-size: 9px;
  color: #6f8391;
  line-height: 1.7;
  margin-top: 12px;
}

.footer {
  background: #f3f5f5;
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr .8fr 1fr 1.15fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-brand .brand-name {
  font-size: 12px;
}

.footer-brand .brand-name>span {
  font-size: 18px;
}

.footer-grid>div>p {
  font-size: 11px;
  line-height: 1.9;
  color: #687e8c;
  max-width: 230px;
  margin-top: 18px;
}

.footer-grid h2 {
  font-size: 10px;
  letter-spacing: 0;
  font-weight: 650;
  margin: 0 0 19px;
  line-height: 1.5;
}

.footer-grid>div>a:not(.brand) {
  display: block;
  color: #617785;
  font-size: 10px;
  padding: 4px 0;
  line-height: 1.7;
}

.footer-grid>div>a:not(.brand):hover {
  color: var(--blue);
  text-decoration: underline;
}

.footer-grid .parent-brand {
  margin-top: 14px;
  font-weight: 550;
}

.parent-brand span {
  margin-left: 8px;
}

.footer-email {
  overflow-wrap: anywhere;
}

.footer-bottom {
  border-top: 1px solid #d6e0e5;
  padding: 20px 0;
  font-size: 9px;
  color: #788c99;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-bottom a {
  color: var(--ink);
}

.footer-bottom a>span {
  margin-left: 16px;
}

.floating-wa {
  position: fixed;
  right: 22px;
  bottom: 23px;
  z-index: 45;
  border: 1px solid #ffffff66;
  background: var(--blue);
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  box-shadow: 0 4px 20px #0b29422b;
  font-size: 11px;
  transition: background .2s;
}

.floating-wa:hover {
  background: var(--navy);
}

.floating-wa .icon {
  width: 23px;
  height: 23px;
}

.floating-wa.is-hidden {
  opacity: 0;
  pointer-events: none;
}

dialog {
  padding: 0;
  border: 0;
  color: var(--ink);
  max-height: 90dvh;
  max-width: calc(100% - 50px);
  box-shadow: 0 20px 90px #0005;
}

dialog::backdrop {
  background: #061a2bcb;
  backdrop-filter: blur(5px);
}

.project-dialog {
  width: 1100px;
}

.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 23px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 3;
}

.dialog-top-label,.dialog-top>span {
  font: 9px "Courier New",monospace;
  letter-spacing: .06em;
}

.dialog-top .icon-button {
  border: 0;
}

.dialog-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.gallery {
  padding: 22px;
  background: #f0f3f5;
  min-width: 0;
}

.gallery-stage {
  position: relative;
  height: 440px;
  background: #dce3e7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-stage>img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-arrow {
  position: absolute;
  top: calc(50% - 20px);
  background: #ffffffed;
  border: 0;
  width: 35px;
  height: 40px;
}

.gallery-prev {
  left: 9px;
  transform: rotate(180deg);
}

.gallery-next {
  right: 9px;
}

.gallery-arrow .icon {
  height: 17px;
  width: 17px;
}

.gallery-count {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font: 10px "Courier New",monospace;
  background: #102a43d9;
  color: white;
  padding: 4px 10px;
  white-space: nowrap;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 12px;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}

.gallery-thumb {
  padding: 0;
  flex: 0 0 57px;
  height: 53px;
  opacity: .55;
  border: 2px solid transparent;
  background: #dce3e7;
}

.gallery-thumb.active {
  opacity: 1;
  border-color: var(--blue);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-video {
  font-size: 11px;
  background: white;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-top: 10px;
}

.gallery-video .icon {
  width: 16px;
  height: 16px;
}

.dialog-copy {
  padding: 32px 30px;
}

.dialog-copy .eyebrow {
  font-size: 8px;
  margin-bottom: 13px;
}

.dialog-copy h2 {
  font-size: 32px;
  line-height: 1.13;
}

.dialog-status {
  display: inline-flex;
  font-size: 9px;
  font-weight: 650;
  background: #e8eef5;
  color: var(--blue);
  padding: 6px 9px;
  margin-top: 15px;
  line-height: 1.5;
}

.dialog-status.pending {
  background: #f7f0dd;
  color: #775d21;
}

.dialog-copy h3 {
  font-size: 11px;
  margin: 25px 0 8px;
}

.dialog-copy p {
  font-size: 12px;
  line-height: 1.85;
  color: var(--text);
}

.dialog-copy .button {
  margin-top: 28px;
  font-size: 11px;
  gap: 12px;
}

.video-dialog {
  width: 520px;
  background: var(--deep);
  color: white;
}

.video-dialog .dialog-top {
  color: var(--ink);
}

.video-dialog>video {
  width: 100%;
  height: min(68dvh,730px);
  display: block;
  background: #081522;
}

.video-dialog>p {
  font-size: 10px;
  color: #bdd1df;
  padding: 12px 20px;
  text-align: center;
}

.video-control {
  top: 15px;
  left: 15px;
  right: auto;
  bottom: auto;
}

.media-label {
  bottom: 69px;
}

@media (min-width:1500px) {
  .hero-grid {
    gap: 90px;
  }

  .hero-image {
    height: 510px;
  }

}

@media (max-width:1150px) {
  .wrap {
    width: calc(100% - 64px);
  }

  .nav {
    gap: 17px;
  }

  .nav>a:not(.button) {
    font-size: 11px;
  }

  .hero-grid {
    gap: 42px;
  }

  .hero-copy h1 {
    font-size: 64px;
  }

  .hero-actions {
    gap: 14px;
  }

  .hero-image {
    height: 470px;
  }

  .hero-actions .text-link {
    font-size: 11px;
  }

  .before-grid {
    gap: 40px;
    grid-template-columns: .8fr 1.2fr;
  }

  .before-copy h2 {
    font-size: 44px;
  }

  .contact-grid {
    gap: 60px;
  }

  .contact-copy h2 {
    font-size: 47px;
  }

  .team-grid {
    gap: 50px;
  }

  .faq-grid {
    gap: 65px;
  }

  .project-body {
    padding-inline: 18px;
    min-height: 250px;
  }

  .project-body h3 {
    font-size: 19px;
  }

  .sectors-inner {
    gap: 25px;
  }

  .sectors li {
    font-size: 12px;
  }

  .footer-grid {
    gap: 28px;
  }

}

@media (max-width:950px) {
  .navigation {
    height: 78px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 20px 32px 28px;
    box-shadow: 0 18px 30px #0a2a4310;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
    flex-direction: column;
  }

  .nav>a:not(.button) {
    font-size: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav .button {
    margin-top: 18px;
    align-self: flex-start;
  }

  .hero-grid {
    gap: 35px;
    padding-top: 45px;
    padding-bottom: 49px;
    grid-template-columns: 1fr 1fr;
  }

  .hero-copy h1 {
    font-size: 57px;
  }

  .hero-image {
    height: 455px;
  }

  .hero-description {
    font-size: 13px;
  }

  .hero-note {
    font-size: 9px;
  }

  .hero-actions {
    gap: 14px;
  }

  .hero-actions .button {
    font-size: 11px;
    padding-inline: 15px;
    gap: 13px;
  }

  .hero-services strong {
    font-size: 11px;
  }

  .hero-services svg {
    right: 12px;
    width: 15px;
  }

  .hero-services a+a {
    padding-left: 20px;
  }

  .video-card {
    left: -15px;
    right: 10px;
    padding: 16px;
    gap: 10px;
  }

  .video-card strong {
    font-size: 11px;
  }

  .video-card small {
    font-size: 7px;
  }

  .sectors-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-block: 20px;
  }

  .sectors p br {
    display: none;
  }

  .sectors p {
    font-size: 8px;
  }

  .sectors ul {
    width: 100%;
  }

  .section {
    padding: 75px 0;
  }

  .section-heading {
    gap: 35px;
  }

  .section-intro {
    max-width: 310px;
    font-size: 12px;
  }

  .projects-grid {
    gap: 22px 18px;
  }

  .project-body {
    min-height: 270px;
    padding-top: 18px;
  }

  .project-body h3 {
    font-size: 18px;
    min-height: 68px;
  }

  .project-kicker {
    font-size: 7px;
  }

  .project-body p {
    font-size: 11px;
  }

  .project-photo {
    aspect-ratio: 1.15;
  }

  .before-grid {
    gap: 35px;
  }

  .before-copy h2 {
    font-size: 40px;
  }

  .comparison-frame {
    aspect-ratio: 1;
  }

  .comparison-footer {
    font-size: 8px;
  }

  .comparison-footer>span+span {
    font-size: 7px;
  }

  .service {
    padding: 26px 23px;
  }

  .service h3 {
    font-size: 17px;
  }

  .service p {
    font-size: 11px;
  }

  .team-grid {
    gap: 40px;
  }

  .team-photo {
    height: 405px;
  }

  .team-copy p:not(.eyebrow) {
    font-size: 12px;
  }

  .team-points {
    gap: 12px;
  }

  .team-points span {
    font-size: 9px;
  }

  .process-list li {
    padding-right: 17px;
  }

  .process-list li+li {
    padding-left: 17px;
  }

  .process-list p {
    font-size: 10px;
  }

  .faq-grid {
    gap: 45px;
  }

  .contact-grid {
    gap: 35px;
  }

  .contact-copy h2 {
    font-size: 42px;
  }

  .contact-form {
    padding: 27px 25px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form label {
    margin-bottom: 13px;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 34px 65px;
  }

  .dialog-layout {
    grid-template-columns: 1.05fr 1fr;
  }

  .gallery {
    padding: 16px;
  }

  .gallery-stage {
    height: 390px;
  }

  .dialog-copy {
    padding: 25px;
  }

  .dialog-copy h2 {
    font-size: 27px;
  }

}

@media (max-width:700px) {
  html {
    scroll-padding-top: 85px;
  }

  .wrap {
    width: calc(100% - 40px);
  }

  .topbar-inner {
    min-height: 31px;
    justify-content: center;
  }

  .topbar a {
    font-size: 9px;
  }

  .topbar p {
    display: none;
  }

  .navigation {
    height: 73px;
  }

  .brand-name {
    font-size: 12px;
  }

  .brand-name>span {
    font-size: 18px;
  }

  .brand img {
    height: 36px;
    width: 36px;
  }

  .brand {
    gap: 9px;
  }

  .icon-button {
    height: 39px;
    width: 39px;
  }

  .nav {
    padding-inline: 20px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 38px;
    padding-bottom: 33px;
  }

  .hero-copy h1 {
    font-size: clamp(54px,11.3vw,76px);
    line-height: 1.03;
  }

  .hero-copy h1 br:nth-child(2) {
    display: none;
  }

  .hero-copy h1 em {
    display: block;
  }

  .hero-copy .eyebrow {
    font-size: 9px;
    margin-bottom: 23px;
  }

  .hero-description {
    font-size: 14px;
    line-height: 1.85;
    margin-top: 24px;
    max-width: 420px;
  }

  .hero-actions {
    gap: 20px;
    margin-top: 25px;
  }

  .hero-actions .button {
    font-size: 12px;
    min-height: 48px;
    padding: 12px 17px;
    gap: 14px;
  }

  .hero-actions .text-link {
    font-size: 11px;
    gap: 8px;
  }

  .hero-note {
    font-size: 8px;
    margin-top: 20px;
  }

  .hero-media {
    margin-right: 13px;
    margin-left: 10px;
    padding-bottom: 29px;
  }

  .hero-image {
    height: 360px;
  }

  .hero-image>img {
    object-position: 50% 32%;
  }

  .hero-side-label {
    right: -21px;
    font-size: 7px;
  }

  .video-card {
    left: -10px;
    right: 17px;
    padding: 15px 17px;
    gap: 13px;
  }

  .video-card strong {
    font-size: 12px;
  }

  .video-card small {
    font-size: 7px;
  }

  .play-circle {
    width: 37px;
    height: 37px;
  }

  .media-label {
    font-size: 9px;
    bottom: 32px;
    left: 17px;
  }

  .hero-services {
    grid-template-columns: 1fr 1fr;
    padding-bottom: 5px;
  }

  .hero-services a {
    padding: 18px 12px 19px 0;
  }

  .hero-services a+a {
    padding-left: 19px;
  }

  .hero-services a:nth-child(3) {
    display: none;
  }

  .hero-services span {
    font-size: 7px;
    letter-spacing: .04em;
  }

  .hero-services strong {
    font-size: 10px;
    margin-top: 6px;
  }

  .hero-services svg {
    display: none;
  }

  .sectors-inner {
    gap: 12px;
    padding-block: 21px;
  }

  .sectors ul {
    gap: 9px 16px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .sectors li {
    font-size: 11px;
  }

  .sectors p {
    font-size: 7px;
  }

  .section {
    padding: 61px 0;
  }

  .section-heading {
    display: block;
    margin-bottom: 29px;
  }

  h2 {
    font-size: 37px;
    letter-spacing: -.048em;
  }

  .section-intro {
    font-size: 12px;
    line-height: 1.9;
    margin-top: 20px;
    max-width: 440px;
  }

  .eyebrow {
    font-size: 8px;
    letter-spacing: .08em;
    margin-bottom: 18px;
  }

  .project-toolbar {
    display: block;
    margin-bottom: 23px;
  }

  .filters {
    gap: 20px;
    flex-wrap: nowrap;
    overflow: auto;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter {
    font-size: 10px;
    white-space: nowrap;
    padding-top: 6px;
    padding-bottom: 13px;
  }

  .filter span {
    font-size: 8px;
  }

  .project-toolbar>p {
    font-size: 8px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }

  .filter.active::after {
    bottom: 0;
  }

  .projects-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px 13px;
  }

  .project-photo {
    aspect-ratio: 1.03;
  }

  .project-body {
    padding: 17px 13px 0;
    min-height: 257px;
  }

  .project-kicker {
    font-size: 6px;
    line-height: 1.7;
    min-height: 21px;
  }

  .project-body h3 {
    font-size: 17px;
    min-height: 65px;
    margin-top: 7px;
    line-height: 1.28;
  }

  .project-body p {
    font-size: 10px;
    line-height: 1.8;
    margin-top: 11px;
    margin-bottom: 17px;
  }

  .project-bottom {
    font-size: 8px;
    gap: 6px;
    padding: 11px 0;
  }

  .project-bottom .icon {
    width: 15px;
    height: 15px;
  }

  .project-number {
    top: 9px;
    left: 9px;
    font-size: 8px;
    padding: 4px 7px;
  }

  .project-photo-arrow {
    right: 9px;
    bottom: 9px;
    width: 27px;
    height: 27px;
  }

  .project-photo-arrow .icon {
    width: 15px;
    height: 15px;
  }

  .progress-tag {
    left: 8px;
    bottom: 8px;
    padding: 4px 6px;
    font-size: 6px;
    gap: 4px;
  }

  .project-card[data-project=motores] .project-photo-arrow {
    top: 9px;
    bottom: auto;
  }

  .before-section {
    padding: 60px 0;
  }

  .before-grid {
    grid-template-columns: 1fr;
    gap: 29px;
  }

  .before-copy h2 {
    font-size: 40px;
  }

  .before-copy h2 br {
    display: none;
  }

  .before-copy>p:not(.eyebrow) {
    max-width: 430px;
    margin-top: 20px;
  }

  .comparison-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 22px;
  }

  .comparison-tab {
    font-size: 10px;
    gap: 9px;
    padding: 14px 0;
  }

  .comparison-tab .icon {
    width: 15px;
    height: 15px;
  }

  .before-copy>.comparison-description {
    font-size: 9px !important;
    margin-top: 15px !important;
  }

  .comparison-frame {
    aspect-ratio: 1.18;
  }

  .comparison-footer {
    font-size: 8px;
    gap: 14px;
  }

  .comparison-footer>span+span {
    font-size: 6px;
  }

  .compare-label {
    font-size: 8px;
    padding: 5px 8px;
    top: 14px;
  }

  .label-before {
    left: 13px;
  }

  .label-after {
    right: 13px;
  }

  .services-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .service {
    padding: 23px 18px 20px;
  }

  .service h3 {
    font-size: 16px;
    line-height: 1.3;
  }

  .service p {
    font-size: 10px;
    line-height: 1.85;
    margin-bottom: 20px;
  }

  .service-icon {
    height: 30px;
    width: 30px;
    margin-bottom: 21px;
  }

  .service>span {
    font-size: 8px;
    gap: 7px;
  }

  .service>span .icon {
    width: 14px;
    height: 14px;
  }

  .team-section {
    padding: 60px 0;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .team-photo {
    height: 330px;
  }

  .team-photo img {
    object-position: center 28%;
  }

  .team-copy p:not(.eyebrow) {
    font-size: 12px;
    margin-top: 20px;
  }

  .team-points {
    gap: 14px 20px;
    margin-top: 22px;
    margin-bottom: 16px;
  }

  .team-points span {
    font-size: 10px;
  }

  .team-copy .text-link {
    font-size: 11px;
  }

  .process-section {
    padding: 59px 0 61px;
  }

  .process-section .section-intro {
    font-size: 11px;
  }

  .process-section h2 {
    font-size: 35px;
  }

  .process-section .section-heading {
    margin-bottom: 30px;
  }

  .process-list {
    grid-template-columns: 1fr 1fr;
    gap: 26px 22px;
  }

  .process-list li {
    padding: 17px 0 0;
  }

  .process-list li+li {
    padding-left: 0;
  }

  .process-list li+li::before {
    display: none;
  }

  .process-list h3 {
    font-size: 20px;
    margin-top: 14px;
  }

  .process-list p {
    font-size: 11px;
    margin-top: 8px;
  }

  .step-number {
    font-size: 10px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 29px;
  }

  .faq-intro {
    max-width: 430px;
    font-size: 12px;
    margin-top: 20px;
  }

  .faq-grid .text-link {
    margin-top: 13px;
    font-size: 11px;
  }

  .faq-list summary {
    font-size: 12px;
    line-height: 1.6;
    padding: 20px 0;
  }

  .faq-list details>p {
    font-size: 11px;
    padding-bottom: 21px;
  }

  .contact-section {
    padding: 60px 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-copy h2 {
    font-size: 43px;
  }

  .contact-copy h2 br:nth-child(2) {
    display: none;
  }

  .contact-copy h2 em {
    display: block;
  }

  .contact-copy>p:not(.eyebrow) {
    font-size: 12px;
    max-width: 390px;
    margin-top: 22px;
  }

  .contact-direct {
    margin-top: 23px;
    max-width: none;
  }

  .contact-direct>a {
    font-size: 16px;
    padding-block: 15px;
  }

  .contact-direct>div {
    font-size: 11px;
    padding-block: 15px;
  }

  .contact-form {
    padding: 26px 22px;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .contact-form label {
    font-size: 10px;
    margin-bottom: 16px;
  }

  .contact-form h3 {
    font-size: 25px;
    margin-bottom: 23px;
  }

  .contact-form input,.contact-form select,.contact-form textarea {
    font-size: 16px;
    padding: 10px;
    min-width: 0;
  }

  .contact-form input::placeholder {
    font-size: 11px;
  }

  .contact-form textarea::placeholder {
    font-size: 13px;
  }

  .contact-form .button {
    font-size: 12px;
  }

  .form-note {
    font-size: 9px;
  }

  .footer {
    padding-top: 43px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 25px;
    padding-bottom: 34px;
  }

  .footer-grid>div:first-child {
    grid-column: 1 / -1;
  }

  .footer-grid>div:first-child>p {
    max-width: 320px;
    margin-top: 13px;
  }

  .footer-grid>div:last-child {
    grid-column: 1 / -1;
  }

  .footer-grid>div:last-child p {
    margin-top: 11px;
  }

  .footer-grid h2 {
    font-size: 11px;
    margin-bottom: 14px;
  }

  .footer-grid>div>a:not(.brand) {
    font-size: 11px;
  }

  .footer-grid>div>p {
    font-size: 11px;
  }

  .footer-bottom {
    font-size: 8px;
    gap: 15px;
    align-items: center;
    padding: 19px 0 29px;
  }

  .footer-bottom>span {
    max-width: 230px;
  }

  .footer-bottom>a {
    white-space: nowrap;
  }

  .footer-bottom a>span {
    margin-left: 7px;
  }

  .floating-wa {
    right: 14px;
    bottom: 15px;
    padding: 12px;
    box-shadow: 0 4px 20px #0b294236;
  }

  .floating-wa>span {
    display: none;
  }

  .floating-wa .icon {
    height: 25px;
    width: 25px;
  }

  .project-dialog {
    max-width: calc(100% - 24px);
    max-height: 92dvh;
  }

  .dialog-top {
    padding: 9px 13px;
  }

  .dialog-top-label,.dialog-top>span {
    font-size: 7px;
  }

  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .gallery {
    padding: 14px;
  }

  .gallery-stage {
    height: 360px;
  }

  .dialog-copy {
    padding: 23px 24px 28px;
  }

  .dialog-copy h2 {
    font-size: 30px;
  }

  .dialog-copy .eyebrow {
    font-size: 8px;
  }

  .dialog-copy h3 {
    margin-top: 21px;
  }

  .gallery-thumbs {
    margin-bottom: 0;
  }

  .video-dialog {
    max-width: calc(100% - 24px);
  }

  .video-dialog>video {
    height: 70dvh;
  }

}

@media (max-width:380px) {
  .hero-copy h1 {
    font-size: 53px;
  }

  .hero-actions {
    gap: 12px;
  }

  .hero-actions .button {
    font-size: 10px;
    padding-inline: 12px;
    gap: 9px;
  }

  .hero-actions .text-link {
    font-size: 10px;
  }

  .hero-image {
    height: 310px;
  }

  .wrap {
    width: calc(100% - 32px);
  }

  .projects-grid {
    gap: 16px 10px;
  }

  .project-body {
    padding-inline: 11px;
    min-height: 290px;
  }

  .project-body h3 {
    font-size: 16px;
    min-height: 81px;
  }

  .project-kicker {
    font-size: 6px;
    min-height: 28px;
  }

  .project-bottom {
    font-size: 7px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .filter {
    font-size: 9px;
  }

  .filters {
    gap: 15px;
  }

  .service {
    padding-inline: 15px;
  }

  .contact-copy h2 {
    font-size: 39px;
  }

  .gallery-stage {
    height: 310px;
  }

}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  *,*::before,*::after {
    transition: none !important;
    animation: none !important;
  }

  .hero-video {
    display: none;
  }

}

/* Proyectos: encabezado y descripción fuera del botón de apertura. */
.project-card {
  position: relative;
}

.project-open {
  position: static;
  appearance: none;
  width: 100%;
  padding-inline: 0;
  background: transparent;
  border-inline: 0;
  border-bottom: 0;
  border-radius: 0;
  text-align: left;
}

.project-open::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.project-card:focus-within {
  border-color: #478bce;
  box-shadow: 0 0 0 3px rgba(71, 139, 206, .2);
}
