:root {
  --paper: #ffffff;
  --ink: #1a1916;
  --muted: #5e5952;
  --header: 5.7rem;
  --font: "Outfit", "Avenir Next", "Century Gothic", "Trebuchet MS", sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.4rem;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: 1.35rem 2.4rem;
  background: transparent;
}

.top.is-solid {
  background: #fff;
}

.top.is-open {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.nav a {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 -1.5px 0 var(--ink);
  padding-bottom: 0.3rem;
}

.nav a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 10px;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 27px; }

.brand,
.nav-toggle {
  position: relative;
  z-index: 2;
}

body.nav-lock {
  position: fixed;
  inset: 0;
  width: 100%;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}

.brand {
  display: inline-block;
  line-height: 0;
}

.brand img {
  width: 178px;
  height: auto;
  display: block;
}

.first-screen {
  min-height: calc(100svh - 4.5rem);
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  overflow-x: clip;
}

.hero {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  text-align: center;
  padding: 2.5rem 1.75rem 3.5rem;
}

.hero-photos,
.hero-veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  pointer-events: none;
}

.hero-photos img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  filter: blur(2px);
  transform: scale(1.02);
  transition: opacity 1.2s ease;
}

.hero-photos img.is-visible {
  opacity: 1;
}

.hero-veil {
  background: #000;
  opacity: 0.5;
}

.brand img.brand-light {
  display: none;
}

.top:not(.is-solid) .brand-dark,
.top.is-open .brand-dark {
  display: none;
}

.top:not(.is-solid) .brand-light,
.top.is-open .brand-light {
  display: block;
}

.top:not(.is-solid) .nav a,
.hero h1,
.lead,
.cta,
.logo-bar-title {
  color: #fff;
}

.top:not(.is-solid) .nav a[aria-current="page"] {
  box-shadow: inset 0 -1.5px 0 #fff;
}

.top:not(.is-solid) .nav-toggle span {
  background: #fff;
}

.top:not(.is-solid) .nav a:focus-visible,
.cta:focus-visible {
  outline-color: #fff;
}

main {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
}

.sheet {
  background: #fff;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes from-left {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero h1 {
  animation: fade-in 1.15s ease both;
}

.lead {
  animation: rise-in 0.9s ease 0.12s both;
}

.cta {
  animation: fade-in 0.8s ease 0.32s both;
}

.logo-bar-title {
  animation: from-left 0.9s ease 0.18s both;
}

h1 {
  margin: 0;
  width: 100%;
  max-width: min(15em, 100%);
  min-width: 0;
  font-size: clamp(2.35rem, 4.85vw, 4.45rem);
  font-weight: 600;
  letter-spacing: -0.042em;
  line-height: 1.02;
  text-wrap: balance;
}

.lead {
  margin: 1.7rem 0 0;
  width: 100%;
  max-width: min(46rem, 100%);
  min-width: 0;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.45;
  text-wrap: balance;
}

.cta {
  margin-top: 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0 0.4rem;
  border: 0;
  border-bottom: 1.5px solid #fff;
  background: none;
  cursor: pointer;
  font: inherit;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.cta svg {
  width: 1.05rem;
  height: 1.05rem;
  stroke: #fff;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.cta:hover svg {
  transform: translateX(3px);
}

.cta:focus-visible,
.top:not(.is-solid) .brand:focus-visible {
  outline: 2px solid #fff;
}

.top.is-solid .brand:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.logo-bar {
  width: 100%;
  min-width: 0;
  padding: 0 0 2.1rem;
}

.logo-bar-title {
  margin: 0 0 1.35rem;
  padding-left: 2.4rem;
  text-align: left;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.marquee {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 76s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 4.25rem;
  padding-right: 4.25rem;
}

.logo-slot {
  display: block;
  overflow: hidden;
  flex: none;
}

.marquee-group .logo-slot {
  position: relative;
}

.logo-slot img {
  position: absolute;
  max-width: none;
  width: calc(100% * var(--cw) / var(--fw));
  height: calc(100% * var(--ch) / var(--fh));
  left: calc(100% * var(--x) / var(--fw) * -1);
  top: calc(100% * var(--y) / var(--fh) * -1);
}

.logo-36-park { --cw: 2000; --ch: 2000; --x: 53; --y: 835; --fw: 1900; --fh: 383; width: 298px; height: 60px; }
.logo-casas { --cw: 2000; --ch: 2000; --x: 159; --y: 894; --fw: 1666; --fh: 200; width: 308px; height: 37px; }
.logo-le-parc { --cw: 2000; --ch: 2000; --x: 328; --y: 851; --fw: 1347; --fh: 283; width: 200px; height: 42px; }
.logo-miami { --cw: 2000; --ch: 2000; --x: 236; --y: 819; --fw: 1551; --fh: 313; width: 218px; height: 44px; }
.logo-one { --cw: 2000; --ch: 2000; --x: 372; --y: 759; --fw: 1256; --fh: 503; width: 162px; height: 65px; }
.logo-saint { --cw: 2000; --ch: 2000; --x: 287; --y: 888; --fw: 1426; --fh: 204; width: 273px; height: 39px; }
.logo-view { --cw: 2000; --ch: 2000; --x: 374; --y: 807; --fw: 1232; --fh: 456; width: 168px; height: 62px; }
.logo-villalagos { --cw: 1680; --ch: 944; --x: 0; --y: 208; --fw: 1680; --fh: 525; width: 157px; height: 49px; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.about,
.presence,
#servicios,
#clientes,
#contacto {
  width: min(1120px, calc(100% - 4.8rem));
  margin: 0 auto;
  scroll-margin-top: 5.4rem;
}

.services {
  padding: 4.5rem 0 0.5rem;
}

.services h2,
.about h2,
#clientes h2,
#contacto h2 {
  margin: 0;
  max-width: 12em;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.services-lead {
  max-width: 42rem;
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.services-lead + .services-lead {
  margin-top: 0.75rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.4rem 1.5rem;
  margin: 2.8rem 0 0;
  padding: 0;
  list-style: none;
}

.service-grid li {
  min-width: 0;
  padding-top: 1.1rem;
  border-top: 1.5px solid var(--ink);
}

.service-grid svg,
.services-extra svg {
  display: block;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-grid svg {
  width: 1.55rem;
  height: 1.55rem;
}

.service-grid h3 {
  margin: 0.95rem 0 0;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.service-grid p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.services-extra {
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  gap: 1.2rem 2rem;
  align-items: start;
  margin-top: 3.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26, 25, 22, 0.14);
}

.services-extra h3 {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.services-extra ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 2.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services-extra li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.92rem;
  line-height: 1.4;
}

.services-extra svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  margin-top: 0.12rem;
}

@media (max-width: 1100px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.presence {
  padding: 4.75rem 0 0;
}

.presence-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 1.5rem 4.5rem;
  align-items: start;
  padding-top: 1.15rem;
  border-top: 1.5px solid var(--ink);
}

.presence-line {
  margin: 0;
  max-width: 11em;
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.presence-copy p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.presence-copy p:last-child {
  margin-bottom: 0;
}

.about {
  padding: 4.5rem 0 0;
}

.about:has(.team[hidden]) {
  padding-bottom: 5rem;
}

.about-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.about-photo,
.about-text {
  aspect-ratio: 1;
  min-width: 0;
}

.about-photo {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 0;
  margin-right: -7%;
  overflow: hidden;
  background: #eceae6;
}

.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.about-photo img.is-visible {
  opacity: 1;
}

.about-text {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 1;
  align-self: end;
  margin-top: 4.5rem;
  margin-left: -7%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2.15rem;
  background: #fff;
  box-shadow: 0 22px 50px rgba(26, 25, 22, 0.08);
}

.about-text h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
}

.about-copy {
  margin-top: 1rem;
  max-width: none;
}

.about-copy p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.5;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.team {
  padding: 3.5rem 0 5rem;
}

.team h3 {
  margin: 0;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.4rem 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.person-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f3f2ef;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.person-name {
  margin: 0.85rem 0 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.person-role {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 400;
}

#clientes {
  padding: 1rem 0 5.5rem;
}

.client-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 3rem;
  margin: 2.1rem 0 0;
  padding: 0;
  list-style: none;
}

.client-list li {
  padding: 0.95rem 0 1.05rem;
  border-top: 1.5px solid var(--ink);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

#contacto {
  position: relative;
  width: 100%;
  max-width: none;
  height: calc(100svh - var(--header));
  min-height: calc(100svh - var(--header));
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#office-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: #f4f3f0;
  pointer-events: none;
}

#office-map .leaflet-tile-pane {
  filter: grayscale(1) contrast(0.8) brightness(1.12);
}

.office-pin {
  background: none;
  border: none;
}

.contact-card {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: max(6vw, 2rem);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(440px, calc(100% - 3rem));
  aspect-ratio: 1;
  padding: 2rem 2.15rem;
  background: #fff;
  box-shadow: 0 22px 50px rgba(26, 25, 22, 0.08);
}

.contact-card h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.contact-facts {
  display: grid;
  gap: 1.15rem;
  margin: 1.35rem 0 0;
}

.contact-facts div {
  display: grid;
  gap: 0.3rem;
}

.contact-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.5;
}

.contact-facts dd a {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.contact-facts dd a:hover {
  opacity: 0.55;
}

.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.15rem;
  padding: 0 0 0.35rem;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  background: none;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: left;
}

.contact-mail svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  stroke: var(--ink);
  transition: transform 0.2s ease;
}

.contact-mail:hover svg {
  transform: translateX(3px);
}

.inquiry[hidden] {
  display: none;
}

.inquiry {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.inquiry-veil {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 17, 17, 0.55);
  cursor: pointer;
}

.inquiry-panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: calc(100svh - 2.5rem);
  overflow: auto;
  padding: 2rem 2.15rem 1.7rem;
  background: #fff;
  box-shadow: 0 22px 50px rgba(26, 25, 22, 0.16);
}

.inquiry-panel form {
  display: grid;
  gap: 1.05rem;
  margin: 0;
}

.inquiry-panel form[hidden] {
  display: none;
}

.inquiry-panel h2 {
  margin: 0;
  padding-right: 1.5rem;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

#form-cotizacion h2 {
  padding-bottom: 0.85rem;
}

.inquiry-split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.05rem;
  min-width: 0;
}

.inquiry-split label {
  min-width: 0;
}

.inquiry-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.inquiry-panel label {
  display: grid;
  gap: 0.35rem;
}

.inquiry-panel label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.inquiry-panel input,
.inquiry-panel textarea,
.inquiry-panel select {
  width: 100%;
  margin: 0;
  padding: 0.45rem 0;
  border: 0;
  border-bottom: 1.5px solid rgba(26, 25, 22, 0.18);
  border-radius: 0;
  background-color: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
  resize: vertical;
}

.inquiry-panel select {
  padding-right: 1.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1916' stroke-width='1.7'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 1rem;
  appearance: none;
  cursor: pointer;
}

.inquiry-panel input:focus,
.inquiry-panel textarea:focus,
.inquiry-panel select:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.inquiry-send {
  justify-self: end;
  margin-top: 0.3rem;
  padding: 0 0 0.3rem;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  background: none;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.inquiry-send:disabled {
  opacity: 0.45;
  cursor: default;
}

.inquiry-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.inquiry-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

body.inquiry-lock {
  overflow: hidden;
}

#contacto .leaflet-control-attribution {
  margin: 0 6px 6px 0;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.75);
  color: #8a847c;
  font-size: 10px;
}

@media (max-width: 980px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .top {
    flex-wrap: nowrap;
    padding: 1rem 1.25rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.8rem;
    width: auto;
    padding: 6.5rem 2.25rem;
    background: #111;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .top.is-open .nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    touch-action: none;
    overscroll-behavior: none;
  }

  .top.is-open .nav-toggle span {
    filter: none;
  }

  .top.is-open .nav-toggle span {
    background: #fff;
  }

  .top.is-open .nav-toggle span:nth-child(1) {
    top: 20px;
    transform: rotate(45deg);
  }

  .top.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .top.is-open .nav-toggle span:nth-child(3) {
    top: 20px;
    transform: rotate(-45deg);
  }

  .nav a {
    color: #fff;
    font-size: clamp(1.55rem, 6vw, 2rem);
    letter-spacing: 0.08em;
  }

  .nav a::before {
    content: "";
    display: inline-block;
    width: 1.35rem;
    height: 2px;
    margin-right: 0.85rem;
    background: #fff;
    vertical-align: middle;
    transform: translateY(-0.18em);
  }

  .nav a[aria-current="true"] {
    box-shadow: none;
    padding-bottom: 0;
  }

  .nav a[aria-current="true"]::before {
    width: 2.15rem;
  }

  .nav a:focus-visible {
    outline-color: #fff;
  }

  .brand img {
    width: 146px;
  }

  .hero {
    padding: 2.75rem 1.35rem 3rem;
  }

  h1 {
    font-size: clamp(2.55rem, 9vw, 3.15rem);
    max-width: 100%;
  }

  .lead {
    font-size: 0.98rem;
    max-width: 100%;
  }

  .about,
  .presence,
  #servicios,
  #clientes {
    width: min(1120px, calc(100% - 2.5rem));
  }

  .services {
    padding-top: 3rem;
  }

  .service-grid,
  .services-extra ul {
    grid-template-columns: 1fr;
  }

  .services-extra {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .presence {
    padding-top: 3.25rem;
  }

  .presence-layout {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .about {
    padding-top: 3rem;
  }

  .about:has(.team[hidden]) {
    padding-bottom: 3.5rem;
  }

  .about-stage {
    grid-template-columns: 1fr;
  }

  .about-photo,
  .about-text {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    margin: 0;
  }

  .about-photo {
    aspect-ratio: 1;
    margin-bottom: -2.5rem;
  }

  .about-text {
    aspect-ratio: auto;
    align-self: stretch;
    padding: 1.5rem 1.25rem 1.35rem;
  }

  .team {
    padding-bottom: 3.5rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem 1rem;
  }

  .client-list {
    grid-template-columns: 1fr 1fr;
    gap: 0 1.5rem;
  }

  .logo-bar {
    padding: 0 0 1.4rem;
  }

  .logo-bar-title {
    padding-left: 1.25rem;
  }

  #contacto {
    width: 100%;
    height: calc(100svh - var(--header));
    min-height: calc(100svh - var(--header));
  }

  .contact-card {
    top: 4.75rem;
    left: 1.25rem;
    right: 1.25rem;
    width: auto;
    aspect-ratio: auto;
  }

  .marquee-group {
    gap: 3rem;
    padding-right: 3rem;
  }

  .inquiry-split {
    grid-template-columns: 1fr;
  }
}

@media (scripting: enabled) {
  .reveal {
    opacity: 0;
    transition: opacity 1.05s ease, transform 1.05s ease;
  }

  .reveal.is-in {
    opacity: 1;
  }

  .about-photo.reveal-photo img {
    transform: scale(1.06);
    transition: opacity 1.1s ease, transform 1.3s ease;
  }

  .about-photo.reveal-photo.is-in img {
    transform: none;
  }

  .reveal-side {
    transform: translateX(22px);
    transition-delay: 0.12s;
  }

  .reveal-side.is-in {
    transform: none;
  }

  .reveal-up {
    transform: translateY(16px);
  }

  .reveal-up.is-in {
    transform: none;
  }

  .team-grid li {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .team-grid li.is-in {
    opacity: 1;
    transform: none;
  }

  .contact-card.reveal {
    transform: translateY(-50%) scale(0.98);
  }

  .contact-card.reveal.is-in {
    transform: translateY(-50%);
  }
}

@media (scripting: enabled) and (max-width: 860px) {
  .contact-card.reveal {
    transform: scale(0.98);
  }

  .contact-card.reveal.is-in {
    transform: none;
  }
}

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

  .marquee {
    overflow-x: auto;
    mask-image: none;
  }

  .marquee-track {
    animation: none;
  }

  .hero h1,
  .lead,
  .cta,
  .logo-bar-title {
    animation: none;
  }

  .cta svg,
  .about-photo img,
  .reveal {
    transition: none;
  }

  .about-photo.reveal-photo img {
    transform: none;
  }

  .reveal,
  .team-grid li {
    opacity: 1;
    transform: none;
  }

  .contact-card.reveal {
    transform: translateY(-50%);
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 860px) {
  .contact-card.reveal {
    transform: none;
  }
}
