:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --line: rgba(18, 44, 73, 0.12);
  --text: #132541;
  --muted: #59697d;
  --accent: #1f4f80;
  --accent-strong: #163b63;
  --shadow: 0 30px 70px rgba(17, 39, 66, 0.12);
  --max-width: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Public Sans", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7faff 0%, #eef3f9 100%);
}

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

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

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  padding: 22px 28px 0;
}

.site-header-solid {
  position: sticky;
  padding-top: 0;
  background: rgba(247, 250, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18, 44, 73, 0.08);
}

.header-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  background: rgba(245, 249, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
}

.site-header-solid .header-shell {
  background: transparent;
  border-bottom: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.brand img {
  width: 72px;
  height: auto;
}

.brand-mark {
  display: block;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--accent-strong);
  white-space: nowrap;
}

.brand-mark-line {
  display: inline;
}

.brand-mark-line + .brand-mark-line::before {
  content: " ";
}

.menu-toggle {
  display: none;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  font-size: 1.08rem;
  font-weight: 700;
  color: #24364f;
}

.nav a[aria-current="page"] {
  color: var(--accent-strong);
}

.nav-cta {
  order: 1;
  min-width: 154px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1a3d69, #173458);
  color: #f8fbff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  transition:
    min-width 220ms ease,
    min-height 220ms ease,
    padding 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  min-width: 182px;
  min-height: 50px;
  padding: 0 20px;
  box-shadow: 0 14px 28px rgba(18, 44, 73, 0.16);
  transform: translateY(-1px);
}

.nav-cta span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  line-height: 1;
}

.lang-switch {
  order: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.lang-switch-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent-strong);
}

.lang-switch-button {
  position: relative;
  width: 54px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(22, 59, 99, 0.18);
  cursor: pointer;
}

.lang-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1a3d69, #173458);
  box-shadow: 0 8px 16px rgba(18, 44, 73, 0.16);
  transition: transform 220ms ease;
}

body[data-language="es"] .lang-switch-thumb {
  transform: translateX(24px);
}

.hero {
  position: relative;
  min-height: 860px;
  overflow: clip;
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(216, 229, 245, 0.58) 0%, rgba(216, 229, 245, 0.2) 18%, rgba(20, 39, 66, 0.1) 68%, rgba(20, 39, 66, 0.18) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0));
}

.hero-panel {
  position: absolute;
  left: clamp(24px, 4vw, 54px);
  top: clamp(150px, 16vw, 190px);
  z-index: 2;
  width: min(calc(100% - 96px), var(--max-width));
  padding: 0;
}

@media (min-width: 1020px) {
  .hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(460px, 0.9fr);
    gap: clamp(40px, 4.8vw, 92px);
    align-items: start;
  }

  .hero-inquiry-form {
    justify-self: end;
    width: min(100%, 650px);
  }
}

@media (min-width: 1180px) {
  .hero-panel {
    left: 50%;
    transform: translateX(-50%);
  }
}

.hero-copy-card {
  padding: clamp(28px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.page-title,
.process-step h2 {
  margin: 0;
  font-family: "Libre Baskerville", serif;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.5rem, 4.7vw, 4.25rem);
  line-height: 1;
  color: #1d3760;
}

.hero-summary,
.section-heading p,
.intro-copy p,
.metric-card strong,
.process-card p,
.portfolio-card p,
.contact-card p,
.page-summary,
.process-step p,
#stage-copy {
  color: var(--muted);
  line-height: 1.72;
}

.hero-summary {
  max-width: 56ch;
  margin: 18px 0 0;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-inquiry-form {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(18, 44, 73, 0.12);
  background: rgba(248, 251, 255, 0.94);
  box-shadow: 0 18px 36px rgba(18, 44, 73, 0.07);
}

@media (min-width: 1020px) {
  .hero-inquiry-form {
    margin-top: 0;
    padding: clamp(28px, 2.6vw, 38px);
  }
}

.hero-form-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.hero-form-heading span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-form-heading strong {
  color: var(--text);
  font-size: 1.05rem;
}

.hero-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 1020px) {
  .hero-form-grid {
    gap: 18px;
  }
}

.hero-inquiry-form .form-field {
  gap: 7px;
}

.hero-inquiry-form .form-field span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.hero-inquiry-form .form-field input,
.hero-inquiry-form .form-field select,
.hero-inquiry-form .form-field textarea {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.96);
}

@media (min-width: 1020px) {
  .hero-inquiry-form .form-field input,
  .hero-inquiry-form .form-field select {
    min-height: 58px;
    padding: 14px 16px;
    font-size: 1rem;
  }

  .hero-inquiry-form .form-field textarea {
    min-height: 132px;
    padding: 16px;
    font-size: 1rem;
  }
}

.hero-inquiry-form .button {
  width: 100%;
  margin-top: 16px;
  border: 0;
  cursor: pointer;
  font-size: 1.08rem;
}

@media (min-width: 1020px) {
  .hero-inquiry-form .button {
    min-height: 62px;
    margin-top: 22px;
    font-size: 1.14rem;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
}

.button-primary {
  background: linear-gradient(135deg, #1a416c, #17375b);
  color: #f8fbff;
}

.button-secondary {
  border: 1px solid rgba(22, 59, 99, 0.12);
  background: #ffffff;
  color: var(--accent-strong);
}

.section {
  padding: 84px 0;
}

.section-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.intro-band,
.page-links-section,
.portfolio-section {
  background: #ffffff;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.feature-section {
  overflow: hidden;
}

.feature-section-reverse {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}

.feature-copy {
  max-width: 720px;
}

.feature-copy h2 {
  margin: 0;
  font-family: "Libre Baskerville", serif;
  font-size: clamp(2.3rem, 4vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #17375b;
}

#about .feature-copy h2 {
  line-height: 1.16;
}

.feature-copy p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.72;
}

.feature-image-card {
  position: relative;
  min-height: 430px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(18, 44, 73, 0.12);
  background: #e8f0f8;
  box-shadow: 0 28px 64px rgba(18, 44, 73, 0.11);
}

.feature-image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(12, 31, 54, 0.02), rgba(12, 31, 54, 0.32)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
}

.feature-image-card img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transform: scale(1.01);
}

.feature-image-card figcaption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-strong);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.5;
  box-shadow: 0 18px 36px rgba(18, 44, 73, 0.12);
}

.section-heading h2,
.page-title {
  font-size: clamp(2.3rem, 4vw, 3.9rem);
  line-height: 1.05;
  color: #17375b;
}

.narrow {
  max-width: 760px;
}

.intro-copy p {
  margin: 0 0 18px;
  font-size: 1.04rem;
}

.page-summary {
  max-width: 62ch;
  margin: 18px 0 0;
}

.metrics-section {
  padding-top: 40px;
  padding-bottom: 56px;
}

.metrics-grid,
.process-grid,
.portfolio-grid {
  display: grid;
  gap: 22px;
}

.metrics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.metric-card,
.process-card,
.portfolio-card,
.contact-card,
.process-step {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(18, 44, 73, 0.06);
}

.metric-card,
.process-card,
.portfolio-card,
.partner-pill {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .metric-card:hover,
  .process-card:hover,
  .portfolio-card:hover,
  .partner-pill:hover {
    transform: translateY(-4px) scale(1.015);
    border-color: rgba(31, 79, 128, 0.2);
    box-shadow: 0 24px 52px rgba(18, 44, 73, 0.1);
  }
}

.metric-card,
.process-card,
.portfolio-card,
.contact-card,
.process-step {
  padding: 28px;
}

.metric-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.metric-card .metric-label,
.metric-card strong {
  width: 100%;
}

.metric-label,
.card-tag,
.contact-label,
.stage-mode {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.metric-card strong,
.process-card strong,
.portfolio-card h3 {
  display: block;
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.55;
}

.process-card strong,
.portfolio-card h3 {
  margin-bottom: 10px;
}

.live-projects {
  margin-bottom: 44px;
}

.project-showcase-grid {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.project-showcase-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
  box-shadow: 0 20px 46px rgba(18, 44, 73, 0.08);
}

.project-showcase-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-showcase-images figure {
  position: relative;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  background: #dfe9f3;
}

.project-showcase-images img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.project-showcase-images figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 12px;
  background: rgba(18, 44, 73, 0.88);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-showcase-copy h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(1.5rem, 2.2vw, 2.3rem);
  line-height: 1.12;
}

.project-showcase-copy p {
  color: var(--muted);
}

.project-showcase-copy dl {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
}

.project-showcase-copy dl div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.project-showcase-copy dt {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-showcase-copy dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent-strong);
  font-weight: 700;
}

.relationships-section {
  background: linear-gradient(180deg, #f7faff 0%, #eef4fa 100%);
}

.criteria-section {
  background:
    linear-gradient(180deg, rgba(247, 250, 255, 0.96), rgba(238, 244, 250, 0.98)),
    radial-gradient(circle at top left, rgba(31, 79, 128, 0.12), transparent 34%);
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.criteria-card {
  display: flex;
  align-items: center;
  min-height: 112px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent-strong);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
  box-shadow: 0 16px 34px rgba(18, 44, 73, 0.055);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.partner-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--accent-strong);
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(18, 44, 73, 0.05);
}

.partner-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 79, 128, 0.15);
  border-radius: 999px;
  background: rgba(31, 79, 128, 0.07);
  color: var(--accent);
}

.partner-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.transformation-section,
.contact-section,
.interior-page {
  background: linear-gradient(180deg, #f7faff 0%, #eef3f9 100%);
}

.interior-main {
  padding-top: 24px;
}

.page-hero {
  padding-top: 48px;
}

.transformation-layout {
  display: grid;
  gap: 28px;
  margin-top: 36px;
}

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

.process-scroll-section {
  padding-top: 32px;
}

  .process-scroll-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
  gap: 28px;
  align-items: start;
}

.process-slider-grid {
  align-items: start;
}

.process-mobile-summary {
  display: none;
}

.process-copy-stack {
  display: grid;
  gap: 18px;
}

.process-step {
  opacity: 0.55;
  transition: opacity 220ms ease, transform 220ms ease, border-color 220ms ease;
}

.process-step.is-active {
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(31, 79, 128, 0.24);
}

.process-copy-static .process-step {
  opacity: 1;
  transform: none;
}

.process-step h2 {
  margin-bottom: 10px;
  font-size: 2rem;
  color: #17375b;
}

.process-visual-sticky {
  position: sticky;
  top: 130px;
}

.comparison-card {
  padding: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
  box-shadow: 0 18px 42px rgba(18, 44, 73, 0.06);
  align-self: start;
}

.property-stage {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top, rgba(206, 223, 242, 0.78), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(240, 246, 253, 0.98));
}

.property-stage-scroll {
  min-height: 760px;
}

.comparison-stage {
  --slider-position: 50%;
  position: relative;
  aspect-ratio: 3 / 2;
  min-height: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(240, 246, 253, 0.98));
}

.comparison-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}

.comparison-image-before,
.comparison-image-after {
  object-position: center center;
}

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

.comparison-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--slider-position);
  width: 2px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(19, 37, 65, 0.08);
  transform: translateX(-1px);
}

.comparison-handle {
  position: absolute;
  top: 50%;
  left: var(--slider-position);
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.98);
  background: rgba(23, 55, 91, 0.92);
  box-shadow: 0 16px 28px rgba(18, 44, 73, 0.18);
  transform: translate(-50%, -50%);
  cursor: ew-resize;
}


.comparison-handle::before,
.comparison-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #f7fbff;
  border-right: 2px solid #f7fbff;
}

.comparison-handle::before {
  left: 16px;
  transform: translateY(-50%) rotate(-135deg);
}

.comparison-handle::after {
  right: 16px;
  transform: translateY(-50%) rotate(45deg);
}

.comparison-label {
  position: absolute;
  top: 20px;
  z-index: 2;
  padding: 10px 14px;
  background: rgba(19, 37, 65, 0.74);
  color: #f7fbff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison-label-before {
  left: 20px;
}

.comparison-label-after {
  right: 20px;
}

.comparison-control {
  display: block;
  margin-top: 18px;
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.comparison-range {
  width: 100%;
  accent-color: var(--accent-strong);
}

.comparison-caption {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.72;
}


.scene-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 54, 90, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 54, 90, 0.024) 1px, transparent 1px);
  background-size: 54px 54px;
}

.property-photo,
.stage-caption {
  position: relative;
  z-index: 1;
}

.property-photo {
  position: absolute;
  inset: 26px 26px 126px;
  width: calc(100% - 52px);
  height: calc(100% - 152px);
  object-fit: cover;
  transition: opacity 700ms ease, transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 900ms ease;
}

.property-photo-before {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.property-photo-after {
  opacity: 0;
  transform: scale(1.04) translateY(6px);
}

.property-stage[data-progress="1"] .property-photo-before {
  opacity: 0.62;
  transform: scale(1.01);
}

.property-stage[data-progress="1"] .property-photo-after {
  opacity: 0.38;
  transform: scale(1.02);
}

.property-stage[data-progress="2"] .property-photo-before {
  opacity: 0;
  transform: scale(0.98);
  filter: blur(4px);
}

.property-stage[data-progress="2"] .property-photo-after {
  opacity: 1;
  transform: scale(1);
}

.stage-caption {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  z-index: 2;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(18, 44, 73, 0.08);
}

.portfolio-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
  margin-top: 36px;
}

.portfolio-grid-single {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.portfolio-card.featured {
  background: linear-gradient(180deg, #ffffff 0%, #eef5fc 100%);
}

a.portfolio-card {
  display: block;
  color: inherit;
  cursor: pointer;
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.contact-card-single {
  width: 100%;
  max-width: 860px;
  box-sizing: border-box;
}

.contact-inline-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px 40px;
}

.contact-inline-row > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.contact-inline-row .contact-label {
  margin-bottom: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: start;
  margin-top: 34px;
}

.contact-form {
  width: 100%;
  box-sizing: border-box;
  padding: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
  box-shadow: 0 18px 42px rgba(18, 44, 73, 0.06);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-field span {
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-language="es"] .form-field span {
  letter-spacing: 0.045em;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  max-width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(18, 44, 73, 0.14);
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

.form-field textarea {
  resize: vertical;
}

.admin-page .site-header {
  position: relative;
}

.admin-page .header-shell {
  padding: 14px 28px;
}

.admin-dashboard {
  padding-top: 36px;
}

.admin-dashboard + .admin-dashboard {
  padding-top: 52px;
}

.admin-nav {
  justify-content: flex-end;
}

.admin-logout {
  border: 0;
  cursor: pointer;
}

.admin-shell-small {
  max-width: 760px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.admin-form,
.admin-project-form,
.admin-text-form {
  background: rgba(255, 255, 255, 0.94);
}

.admin-form label,
.admin-project-form label,
.admin-text-row label {
  display: grid;
  gap: 8px;
}

.admin-form label span,
.admin-project-form label span,
.admin-text-row label span {
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-form input,
.admin-project-form input,
.admin-project-form textarea,
.admin-text-row textarea {
  width: 100%;
  max-width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(18, 44, 73, 0.14);
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

.admin-project-form textarea,
.admin-text-row textarea {
  resize: vertical;
}

.admin-live-toggle {
  display: flex !important;
  min-height: 100%;
  align-items: center;
  gap: 12px;
  padding-top: 30px;
  color: var(--text);
  font-weight: 800;
}

.admin-live-toggle input {
  width: 22px;
  height: 22px;
}

.admin-upload-grid,
.admin-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-upload-box {
  display: block !important;
  padding: 20px;
  border: 1px dashed rgba(31, 79, 128, 0.32);
  background: rgba(238, 244, 250, 0.62);
}

.admin-upload-box input {
  margin-top: 12px;
}

.admin-upload-box small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.admin-image-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.admin-image-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-status {
  min-height: 1.4em;
  margin: 10px 0 0;
  color: var(--accent-strong);
  font-weight: 800;
}

.admin-form .admin-status {
  padding: 10px 0 0;
  font-size: 1rem;
}

.admin-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.admin-project-list {
  display: grid;
  gap: 14px;
}

.admin-inquiry-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
}

.admin-inquiry-list {
  display: grid;
  gap: 16px;
}

.admin-project-item {
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(18, 44, 73, 0.06);
}

.admin-inquiry-item {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(18, 44, 73, 0.06);
}

.admin-inquiry-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.admin-inquiry-heading time,
.admin-email-state {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-project-item h3 {
  margin: 0 0 8px;
  color: var(--text);
}

.admin-inquiry-item h3 {
  margin: 0;
  color: var(--text);
}

.admin-project-item p {
  margin: 0 0 16px;
  color: var(--muted);
}

.admin-inquiry-item p {
  margin: 0;
  color: var(--muted);
}

.admin-inquiry-item a {
  color: var(--accent-strong);
  font-weight: 800;
}

.admin-inquiry-item blockquote {
  margin: 0;
  padding: 16px 18px;
  border-left: 4px solid rgba(31, 79, 128, 0.58);
  background: rgba(238, 244, 250, 0.72);
  color: var(--text);
  line-height: 1.6;
}

.admin-inquiry-controls {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: 14px;
}

.admin-inquiry-controls label {
  display: grid;
  gap: 8px;
}

.admin-inquiry-controls span {
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-inquiry-controls select,
.admin-inquiry-controls textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(18, 44, 73, 0.14);
  background: #fff;
  color: var(--text);
  font: inherit;
}

.admin-project-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-project-item button {
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent-strong);
  font-weight: 800;
  cursor: pointer;
}

.admin-live-badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 9px;
  background: rgba(31, 79, 128, 0.1);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-text-grid {
  display: grid;
  gap: 16px;
  max-height: 680px;
  padding-right: 8px;
  overflow: auto;
}

.admin-text-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(247, 250, 255, 0.72);
}

.admin-text-key {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.admin-text-row textarea {
  min-height: 90px;
  font-size: 0.9rem;
}

.form-field-full {
  grid-column: 1 / -1;
}

.contact-form .button {
  min-width: 220px;
  margin-top: 20px;
  border: 0;
  cursor: pointer;
  font-size: 1.12rem;
}

.contact-form .button:disabled,
.hero-inquiry-form .button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.form-status {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: var(--accent-strong);
  font-weight: 800;
  line-height: 1.5;
}

.form-status[data-status="success"] {
  color: #1f6b44;
}

.form-status[data-status="error"] {
  color: #9d2f2f;
}

.contact-form .page-summary {
  max-width: none;
}

@media (min-width: 1020px) {
  .contact-form .button {
    min-height: 62px;
    font-size: 1.2rem;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-page .reveal {
  opacity: 1;
  transform: none;
}

.site-footer {
  background: linear-gradient(180deg, #17375b 0%, #102946 100%);
  color: rgba(244, 248, 255, 0.9);
}

.footer-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 34px 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.footer-brand {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-copy {
  margin: 10px 0 0;
  max-width: 48ch;
  color: rgba(226, 236, 248, 0.8);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
}

.footer-links a {
  color: #f4f8ff;
  font-weight: 600;
}

@media (max-width: 1120px) {
  .header-shell,
  .intro-grid,
  .feature-grid,
  .metrics-grid,
  .partner-grid,
  .criteria-grid,
  .process-grid,
  .portfolio-grid,
  .contact-card,
  .process-scroll-grid,
  .contact-layout,
  .form-grid,
  .project-showcase-card,
  .admin-layout,
  .admin-text-row {
    grid-template-columns: 1fr;
  }

  .header-shell {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
  }

  .metrics-grid {
    justify-items: center;
  }

  .contact-layout {
    justify-items: center;
  }

  .contact-card-single,
  .contact-form {
    max-width: 860px;
  }

  .metric-card {
    width: 100%;
    max-width: 940px;
  }

  .project-showcase-images,
  .admin-upload-grid,
  .admin-preview-grid,
  .admin-inquiry-controls {
    grid-template-columns: 1fr;
  }

  .feature-image-card,
  .feature-image-card img {
    min-height: 360px;
  }

  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 780px) {
  .site-header {
    padding: 12px 12px 0;
  }

  .header-shell,
  .section-shell {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .header-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-items: stretch;
    gap: 14px;
    padding: 16px;
  }

  .brand {
    display: contents;
  }

  .brand img {
    grid-column: 1;
    justify-self: start;
    align-self: center;
    width: 58px;
    height: auto;
  }

  .brand > div {
    grid-column: 2;
    justify-self: center;
    min-width: 0;
    text-align: center;
  }

  .brand-mark {
    font-size: 1rem;
    letter-spacing: 0.08em;
    line-height: 1.05;
    text-align: center;
    white-space: normal;
  }

  .brand-mark-line {
    display: block;
  }

  .brand-mark-line + .brand-mark-line::before {
    content: none;
  }

  .menu-toggle {
    display: inline-flex;
    grid-column: 3;
    justify-self: end;
    width: 48px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(22, 59, 99, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-strong);
    transform-origin: center;
    transition: transform 220ms ease, opacity 180ms ease, width 220ms ease;
  }

  .site-header.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
    width: 6px;
  }

  .site-header.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: max-height 260ms ease, opacity 180ms ease, transform 220ms ease, padding-top 220ms ease;
  }

  .site-header.menu-open .nav {
    max-height: 520px;
    padding-top: 12px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav a:not(.nav-cta) {
    padding: 12px 14px;
    border: 1px solid rgba(18, 44, 73, 0.1);
    background: rgba(255, 255, 255, 0.62);
    text-align: center;
    font-size: 1rem;
  }

  .nav-cta {
    width: 100%;
    min-width: 0;
    min-height: 46px;
  }

  .lang-switch {
    width: 100%;
    justify-content: center;
    padding: 10px 0 2px;
  }

  .process-page .process-summary-desktop {
    display: none;
  }

  .process-page .page-hero {
    padding-top: 24px;
  }

  .process-slider-grid .comparison-card {
    order: -1;
  }

  .process-mobile-summary {
    display: block;
    order: -2;
    margin: 0;
  }

  .process-scroll-section {
    padding-top: 12px;
  }

  .hero {
    min-height: 1100px;
  }

  .hero-panel {
    left: 12px;
    right: 12px;
    width: auto;
    top: 132px;
  }

  .hero h1,
  .page-title,
  .process-step h2 {
    font-size: clamp(2.5rem, 9vw, 3.6rem);
    max-width: 12ch;
  }

  .page-hero .page-title {
    font-size: clamp(2.35rem, 8.4vw, 3.15rem);
    max-width: 10ch;
  }

  .section {
    padding: 68px 0;
  }

  .page-hero {
    padding-bottom: 24px;
  }

  .process-scroll-section {
    padding-top: 0;
  }

  .feature-copy {
    max-width: none;
  }

  .feature-copy h2 {
    line-height: 1.13;
    letter-spacing: -0.015em;
  }

  #about .feature-copy h2 {
    line-height: 1.22;
  }

  .property-stage {
    min-height: 540px;
  }

  .property-stage-scroll {
    min-height: 620px;
  }

  .property-photo {
    inset: 18px 18px 118px;
    width: calc(100% - 36px);
    height: calc(100% - 136px);
  }

  .stage-caption {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: relative;
    padding: 12px;
  }

  .header-shell {
    gap: 12px;
    width: 100%;
    padding: 14px;
  }

  .brand img {
    width: 52px;
  }

  .brand-mark {
    font-size: clamp(0.96rem, 3.8vw, 1.08rem);
    letter-spacing: 0.07em;
    text-align: center;
  }

  .nav a:not(.nav-cta) {
    font-size: 0.9rem;
  }

  .nav-cta {
    width: 100%;
    min-height: 44px;
  }

  .hero {
    min-height: auto;
    padding: 24px 0 84px;
  }

  .hero h1,
  .page-title,
  .process-step h2 {
    font-size: clamp(2rem, 8vw, 2.6rem);
    max-width: none;
  }

  .page-hero .page-title {
    font-size: clamp(2.18rem, 8vw, 2.5rem);
    max-width: 10ch;
  }

  .page-hero {
    padding-bottom: 18px;
  }

  .process-page .page-hero {
    padding-top: 18px;
  }

  .feature-copy h2 {
    line-height: 1.14;
  }

  #about .feature-copy h2 {
    line-height: 1.24;
  }

  .process-scroll-section {
    padding-top: 0;
  }

  .hero-panel {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: min(calc(100% - 24px), 560px);
    margin: 0 auto;
    padding: 0;
  }

  .hero-copy-card {
    padding: 24px 20px;
  }

  .hero-summary {
    font-size: 1rem;
    line-height: 1.62;
  }

  .feature-image-card,
  .feature-image-card img {
    min-height: 300px;
  }

  .feature-image-card figcaption {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-form-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .project-showcase-card {
    padding: 18px;
  }

  .project-showcase-copy dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .admin-text-grid {
    max-height: none;
    overflow: visible;
  }

  .admin-project-form,
  .admin-text-form {
    padding: 20px;
  }

  .contact-form .button {
    min-height: 58px;
    font-size: 1.08rem;
  }

  .footer-links {
    gap: 14px 18px;
  }
}

@media (max-width: 460px) {
  .site-header {
    padding: 8px;
  }

  .header-shell {
    gap: 10px;
    padding: 12px;
  }

  .brand img {
    width: 48px;
  }

  .brand-mark {
    font-size: clamp(0.9rem, 3.75vw, 1.02rem);
    letter-spacing: 0.06em;
  }

  .nav {
    gap: 8px 10px;
  }

  .lang-switch-label {
    font-size: 0.7rem;
  }
}

@media (max-width: 780px) {
  .admin-dashboard {
    padding-top: 28px;
  }

  .admin-dashboard + .admin-dashboard {
    padding-top: 44px;
  }
}
