:root {
  --ink: #25251f;
  --ink-soft: #55564b;
  --paper: #f7f4ed;
  --paper-strong: #fffaf1;
  --white: #ffffff;
  --line: rgba(37, 37, 31, 0.14);
  --line-dark: rgba(255, 255, 255, 0.22);
  --olive: #66715a;
  --clay: #b46f53;
  --clay-dark: #9f6048;
  --charcoal: #171814;
  --shadow: 0 24px 70px rgba(37, 37, 31, 0.14);
  --shadow-soft: 0 14px 44px rgba(37, 37, 31, 0.1);
  --radius: 8px;
  --space-section: clamp(78px, 10vw, 132px);
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 930px;
  font-size: clamp(2.8rem, 7vw, 6.1rem);
}

h2 {
  font-size: clamp(2rem, 4.4vw, 4rem);
}

h3 {
  font-size: clamp(1.14rem, 2vw, 1.45rem);
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 13px 20px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--clay);
  box-shadow: 0 14px 34px rgba(180, 111, 83, 0.24);
}

.button-primary:hover {
  background: var(--clay-dark);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.button-ghost.dark {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: clamp(12px, 2vw, 26px);
  align-items: center;
  padding: 14px clamp(16px, 4vw, 44px);
  color: var(--ink);
  background: rgba(247, 244, 237, 0.9);
  box-shadow: 0 8px 30px rgba(37, 37, 31, 0.07);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(247, 244, 237, 0.96);
  box-shadow: 0 12px 42px rgba(37, 37, 31, 0.13);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  text-decoration: none;
}

.brand-logo {
  width: clamp(142px, 16vw, 220px);
  height: auto;
  max-height: 44px;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2.4vw, 30px);
  font-size: 0.92rem;
}

.header-nav a,
.header-phone {
  position: relative;
  text-decoration: none;
}

.header-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.header-nav a:hover::after,
.header-nav a.is-active::after {
  transform: scaleX(1);
}

.header-phone {
  font-weight: 700;
}

.menu-toggle {
  display: none;
  justify-self: end;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 12px;
  color: var(--ink);
  background: transparent;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
}

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

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 17, 14, 0.88) 0%, rgba(16, 17, 14, 0.64) 42%, rgba(16, 17, 14, 0.24) 100%),
    linear-gradient(0deg, rgba(16, 17, 14, 0.76) 0%, rgba(16, 17, 14, 0.1) 52%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(138px, 18vh, 210px) 0 178px;
}

.hero .eyebrow,
.visual-dark .eyebrow {
  color: #f0b89f;
}

.hero-text {
  max-width: 760px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.08rem, 2.1vw, 1.38rem);
  line-height: 1.58;
}

.hero-actions,
.cta-actions,
.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-indicators {
  position: absolute;
  right: 0;
  bottom: 34px;
  left: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.indicator-card {
  min-height: 110px;
  padding: 20px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.indicator-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.42);
}

.indicator-card span {
  display: inline-block;
  margin-bottom: 16px;
  color: #f0b89f;
  font-size: 0.8rem;
  font-weight: 700;
}

.indicator-card h2 {
  font-size: 1.3rem;
}

.indicator-card p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

section {
  scroll-margin-top: 90px;
}

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

.visual-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.visual-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  opacity: 0.72;
}

.visual-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(247, 244, 237, 0.86), rgba(247, 244, 237, 0.44)),
    linear-gradient(0deg, rgba(247, 244, 237, 0.7), rgba(247, 244, 237, 0.34));
}

.visual-dark {
  color: var(--white);
}

.visual-dark::before {
  opacity: 1;
}

.visual-dark::after,
.section-band.visual-dark::after {
  background:
    linear-gradient(90deg, rgba(18, 19, 16, 0.86), rgba(18, 19, 16, 0.56)),
    linear-gradient(0deg, rgba(18, 19, 16, 0.32), rgba(18, 19, 16, 0.32));
}

.visual-dark p,
.visual-dark .trust-list,
.visual-dark .process-line p {
  color: rgba(255, 255, 255, 0.8);
}

.bg-problem::before {
  background-image: url("../img/bg-problema.webp");
}

.bg-benefits::before {
  background-image: url("../img/bg-confianza.webp");
}

.bg-services::before {
  background-image: url("../img/bg-problema.webp");
}

.bg-bio::before {
  background-image: url("../img/bg-bioconstruccion.webp");
}

.bg-method::before {
  background-image: url("../img/bg-metodo.webp");
}

.bg-trust::before {
  background-image: url("../img/bg-confianza.webp");
}

.bg-contact::before {
  background-image: url("../img/bg-contacto.webp");
}

.combined,
.services,
.comparison,
.contact {
  padding: var(--space-section) 0;
}

.combined-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 52px;
  align-items: start;
}

.combined-divider {
  background: var(--line);
  align-self: stretch;
}

.combined-col-head {
  margin: 0 0 18px;
  color: #b44834;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.combined-col-head--green {
  color: var(--olive);
}

.combined-cards {
  display: grid;
  gap: 14px;
}

.combined-benefit span {
  color: var(--olive);
}

.combined-benefit {
  border-color: rgba(102, 113, 90, 0.22);
  background: rgba(102, 113, 90, 0.06);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 42px;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.visual-dark .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.problem-grid,
.benefit-grid,
.service-grid,
.reference-grid {
  display: grid;
  gap: 18px;
}

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

.problem-card,
.benefit-item,
.service-card,
.reference-card,
.trust-card-grid article,
.credential-grid article {
  border-radius: var(--radius);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.problem-card {
  min-height: 250px;
  padding: 26px;
  background: rgba(255, 250, 241, 0.78);
  border: 1px solid rgba(37, 37, 31, 0.14);
  backdrop-filter: blur(10px);
}

.problem-card:hover,
.benefit-item:hover,
.service-card:hover,
.reference-card:hover,
.trust-card-grid article:hover,
.credential-grid article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.problem-card span,
.benefit-number,
.process-line span,
.credential-grid span,
.reference-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.problem-card p,
.benefit-item p,
.service-card p,
.reference-card p,
.trust-card-grid p,
.credential-grid p,
.contact-copy p,
.form-note {
  color: var(--ink-soft);
}

.solution-strip {
  margin-top: 18px;
  padding: 22px 26px;
  background: rgba(37, 37, 31, 0.9);
  border-radius: var(--radius);
  color: var(--white);
}

.solution-strip p {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
}

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

.benefit-item {
  position: relative;
  min-height: 320px;
  padding: 30px;
  overflow: hidden;
  background: rgba(255, 250, 241, 0.82);
  border: 1px solid rgba(37, 37, 31, 0.13);
  backdrop-filter: blur(12px);
}

.benefit-item:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(180, 111, 83, 0.4);
}

.benefit-number {
  position: absolute;
  right: 22px;
  bottom: 12px;
  margin: 0;
  color: rgba(37, 37, 31, 0.08);
  font-size: clamp(3.2rem, 7vw, 5rem);
  line-height: 1;
}

.benefit-icon {
  width: 114px;
  height: 114px;
  margin-bottom: 30px;
  object-fit: contain;
  filter: saturate(0.9) contrast(1.02);
  transition: transform 180ms ease, filter 180ms ease;
}

.benefit-item:hover .benefit-icon {
  transform: translateY(-2px) scale(1.04);
  filter: saturate(1.05) contrast(1.05);
}

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

.service-card,
.reference-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(37, 37, 31, 0.06);
}

.service-card img,
.reference-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform 260ms ease;
}

.service-card:hover img,
.reference-card:hover img {
  transform: scale(1.04);
}

.service-card div,
.reference-card div {
  padding: 24px;
}

.service-card a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--clay);
  font-weight: 700;
  text-decoration: none;
}

.service-card a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.comparison {
  background: #eee7da;
}

.compare-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  min-height: 360px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.compare-after-wrap {
  position: absolute;
  inset: 0;
  width: 52%;
  overflow: hidden;
}

.compare-after {
  width: calc(100vw - 32px);
  max-width: var(--container);
}

.compare-label {
  position: absolute;
  top: 18px;
  z-index: 3;
  padding: 8px 12px;
  color: var(--white);
  background: rgba(20, 21, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.compare-label.before {
  right: 18px;
}

.compare-label.after {
  left: 18px;
}

.compare-range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 52%;
  z-index: 3;
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(-1px);
}

.compare-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(20, 21, 18, 0.58);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(10px);
}

.compare-fallback,
.comparison-points {
  display: grid;
  gap: 14px;
}

.comparison-points {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.comparison-points li {
  padding: 18px 20px;
  background: rgba(255, 250, 241, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 700;
}

.credentials-layout,
.trust-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 7vw, 88px);
  align-items: start;
}

.sticky-story {
  position: relative;
  isolation: isolate;
  background: var(--charcoal);
  overflow: clip;
}

.sticky-story-bg {
  position: sticky;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 100svh;
  margin-bottom: -100svh;
  overflow: hidden;
}

.sticky-story-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sticky-story-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 19, 16, 0.74), rgba(18, 19, 16, 0.38), rgba(18, 19, 16, 0.1)),
    linear-gradient(0deg, rgba(18, 19, 16, 0.28), rgba(18, 19, 16, 0.08));
}

.story-panel {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(92px, 12vw, 150px) 0;
}

.story-panel + .story-panel {
  border-top: 0;
}

.credentials-layout > div:first-child p,
.trust-layout > div:first-child p {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.credential-grid,
.trust-card-grid {
  display: grid;
  gap: 14px;
}

.credential-grid article,
.trust-card-grid article {
  padding: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(12px);
}

.credential-grid h3,
.trust-card-grid h3 {
  color: var(--white);
}

.credential-grid p,
.trust-card-grid p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.process-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.process-line::before {
  content: "";
  position: absolute;
  top: 28px;
  right: 9%;
  left: 9%;
  height: 1px;
  background: rgba(255, 255, 255, 0.32);
}

.process-line li {
  position: relative;
  padding: 70px 22px 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.process-line li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 22px;
  width: 17px;
  height: 17px;
  border: 1px solid #f0b89f;
  border-radius: 50%;
  background: var(--charcoal);
}

.process-note {
  max-width: 760px;
  margin-top: 22px;
  padding: 22px 24px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.badge-row,
.trust-tags,
.contact-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-row {
  margin-top: 28px;
}

.badge-row span,
.trust-tags span,
.contact-trust span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.badge-row span,
.trust-tags span {
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.trust-tags {
  margin-top: 28px;
}

.references {
  position: relative;
  z-index: 5;
  background: var(--paper);
}

.references::before {
  content: "";
  position: absolute;
  inset: -2px 0 auto;
  height: 4px;
  background: var(--paper);
}

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

.reference-card span {
  margin-bottom: 10px;
}

.reference-card p {
  margin-bottom: 0;
}

.cta {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(20, 21, 18, 0.9), rgba(20, 21, 18, 0.58)),
    url("../img/texturas-materiales.webp") center / cover no-repeat;
}

.cta::before {
  display: none;
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
}

.cta-inner h2 {
  max-width: 820px;
}

.cta-inner p:not(.eyebrow) {
  max-width: 690px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.contact-layout {
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 560px);
}

.contact-copy p {
  margin: 0;
  font-size: 1.05rem;
}

address {
  margin-top: 28px;
  font-style: normal;
}

address a {
  color: var(--clay);
  font-weight: 700;
}

.contact-trust {
  margin-top: 26px;
}

.contact-trust span {
  color: var(--ink);
  background: rgba(255, 250, 241, 0.82);
  border: 1px solid var(--line);
}

.contact-panel {
  display: grid;
  gap: 18px;
}

.diagnostic,
.lead-form {
  padding: clamp(24px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.diagnostic h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.quiz {
  margin-top: 22px;
}

.quiz-step {
  display: none;
}

.quiz-step.is-active {
  display: block;
}

.quiz-step h3 {
  margin-bottom: 14px;
  font-size: 1.1rem;
}

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

.choice-grid button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--ink);
  background: var(--paper-strong);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.choice-grid button:hover,
.choice-grid button.is-selected {
  border-color: rgba(180, 111, 83, 0.55);
  background: rgba(180, 111, 83, 0.12);
  transform: translateY(-1px);
}

.quiz-result {
  display: none;
  padding-top: 4px;
}

.quiz-result.is-visible {
  display: block;
}

.quiz-result p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.lead-form {
  box-shadow: var(--shadow-soft);
}

.field-group {
  display: grid;
  gap: 8px;
  margin-bottom: 17px;
}

label {
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(37, 37, 31, 0.24);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(180, 111, 83, 0.22);
  border-color: var(--clay);
}

.field-group.is-valid input,
.field-group.is-valid select,
.field-group.is-valid textarea {
  border-color: rgba(102, 113, 90, 0.55);
}

.field-group.is-error input,
.field-group.is-error select,
.field-group.is-error textarea {
  border-color: rgba(180, 72, 52, 0.72);
}

.field-error {
  min-height: 18px;
  margin: 0;
  color: #8b2d20;
  font-size: 0.84rem;
}

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin: 18px 0 4px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 400;
}

.consent input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin-top: 3px;
}

.form-submit {
  width: 100%;
  margin-top: 14px;
}

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

.form-status {
  display: none;
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.form-status.is-info,
.form-status.is-error {
  display: block;
}

.form-status.is-info {
  color: var(--ink);
  background: rgba(102, 113, 90, 0.14);
}

.form-status.is-error {
  color: #6d261a;
  background: rgba(180, 111, 83, 0.16);
}

.form-note {
  margin: 14px 0 0;
  font-size: 0.85rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-inner a {
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mobile-cta {
  display: none;
}

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

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

.thanks-page {
  min-height: 100svh;
  background:
    linear-gradient(90deg, rgba(247, 244, 237, 0.94), rgba(247, 244, 237, 0.78)),
    url("../img/interiorismo-sostenible-hero.webp") center / cover no-repeat;
}

.thanks-main {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.thanks-card {
  width: min(100%, 720px);
  padding: clamp(28px, 6vw, 58px);
  background: rgba(255, 250, 241, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.thanks-brand {
  margin-bottom: 42px;
}

.thanks-card h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 4.7rem);
}

.thanks-card p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.legal-page {
  background:
    linear-gradient(90deg, rgba(247, 244, 237, 0.96), rgba(247, 244, 237, 0.88)),
    url("../img/bg-contacto.webp") center / cover fixed no-repeat;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 22px 0;
}

.legal-main {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) 0 clamp(72px, 10vw, 120px);
}

.legal-card {
  padding: clamp(28px, 5vw, 58px);
  background: rgba(255, 250, 241, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
}

.legal-card h2 {
  margin-top: 34px;
  font-size: clamp(1.24rem, 2.2vw, 1.7rem);
}

.legal-card p,
.legal-card li {
  color: var(--ink-soft);
}

.legal-card a {
  color: var(--clay);
  font-weight: 700;
}

.legal-card code {
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(37, 37, 31, 0.08);
}

.legal-note {
  margin-top: 36px;
  padding: 16px 18px;
  border-left: 3px solid var(--clay);
  background: rgba(180, 111, 83, 0.1);
}

@media (max-width: 1180px) {
  .service-grid,
  .reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .combined-grid {
    grid-template-columns: 1fr;
    gap: 36px 0;
  }

  .combined-divider {
    height: 1px;
    width: 100%;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 16px;
    display: none;
    width: min(280px, calc(100vw - 32px));
    padding: 14px;
    background: rgba(247, 244, 237, 0.98);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
  }

  .header-nav.is-open {
    display: grid;
    gap: 12px;
  }

  .header-phone {
    justify-self: end;
  }

  .hero {
    min-height: 860px;
  }

  .hero-content {
    padding-bottom: 245px;
  }

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

  .credentials-layout,
  .trust-layout,
  .contact-layout,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .process-line {
    grid-template-columns: 1fr;
  }

  .process-line::before {
    top: 0;
    bottom: 0;
    left: 30px;
    width: 1px;
    height: auto;
  }

  .process-line li {
    padding: 24px 24px 24px 68px;
  }

  .process-line li::before {
    top: 28px;
    left: 22px;
  }

  .comparison-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: 76px;
  }

  .site-header {
    min-height: 64px;
    padding: 10px 14px;
  }

  .brand-logo {
    width: 144px;
  }

  .header-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 0.88rem;
  }

  .menu-toggle {
    font-size: 0.86rem;
  }

  .hero {
    min-height: 780px;
  }

  .hero-content {
    padding: 112px 0 250px;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .hero-text {
    font-size: 1.05rem;
  }

  .hero-actions .button,
  .cta-actions .button {
    width: 100%;
  }

  .problem-grid,
  .benefit-grid,
  .service-grid,
  .reference-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .problem-card,
  .benefit-item {
    min-height: auto;
  }

  .compare-shell {
    min-height: 430px;
    aspect-ratio: 4 / 5;
  }

  .compare-after {
    width: calc(100vw - 32px);
  }

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

  .mobile-cta {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    background: rgba(37, 37, 31, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    box-shadow: 0 18px 50px rgba(20, 21, 18, 0.24);
    backdrop-filter: blur(16px);
  }

  .mobile-cta a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: calc(var(--radius) - 2px);
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-cta a:last-child {
    background: var(--clay);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.hero-with-services {
  min-height: 100svh;
}

.hero-with-services .hero-content {
  padding-top: clamp(104px, 13vh, 150px);
  padding-bottom: clamp(250px, 31vh, 320px);
}

.hero-with-services h1 {
  max-width: 880px;
  font-size: clamp(2.7rem, 6.4vw, 5.25rem);
}

.hero-service-grid {
  position: absolute;
  right: 0;
  bottom: 28px;
  left: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hero-service-card {
  min-height: 212px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  color: var(--ink);
  background: rgba(255, 250, 241, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(20, 21, 18, 0.16);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.hero-service-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
}

.hero-service-card span {
  margin-bottom: 14px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-service-card h2 {
  font-size: clamp(1.08rem, 1.55vw, 1.42rem);
}

.hero-service-card p {
  margin: 12px 0 18px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.45;
}

.hero-service-card a {
  display: inline-flex;
  margin-top: auto;
  color: var(--clay);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.hero-service-card a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.problem-scroll {
  background: var(--paper-strong);
  overflow: visible;
}

.problem-scroll::before {
  background-attachment: fixed;
}

.problem-scroll-track {
  min-height: 270svh;
}

.problem-sticky-panel {
  position: sticky;
  top: 64px;
  min-height: calc(100svh - 64px);
  height: calc(100svh - 64px);
  display: grid;
  align-items: start;
  overflow: hidden;
  padding: clamp(72px, 9vh, 96px) 0 clamp(24px, 4vh, 42px);
}

.problem-heading {
  max-width: 880px;
  margin-bottom: 16px;
}

.problem-heading h2 {
  max-width: 840px;
  font-size: clamp(2.25rem, 4.8vw, 4.45rem);
}

.problem-kicker {
  margin: 0 0 8px;
  color: var(--clay);
  font-size: 0.92rem;
}

.problem-grid-main {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.problem-grid-main .problem-card {
  min-height: 172px;
  padding: 20px;
  position: relative;
  background: rgba(255, 250, 241, 0.78);
}

.problem-grid-main .problem-card span:first-child {
  margin-bottom: 18px;
}

.problem-grid-main .problem-card h3 {
  font-size: clamp(1rem, 1.45vw, 1.22rem);
}

.problem-grid-main .problem-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.sad-face {
  position: absolute;
  top: 14px;
  right: 14px;
  color: #d97900;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}

.solution-bar {
  display: inline-flex;
  align-items: center;
  width: 100%;
  margin-top: 12px;
  padding: 9px 24px;
  color: var(--white);
  background: rgba(23, 24, 20, 0.94);
  font-size: 0.98rem;
  line-height: 1.25;
}

.solution-bar strong {
  font-weight: 700;
}

.benefit-image-stack {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
  overflow: visible;
}

.benefit-image-column {
  height: clamp(238px, 34vh, 360px);
  overflow: hidden;
  background: var(--paper);
  border-radius: 0 0 var(--radius) var(--radius);
}

.benefit-image-column img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.benefit-image-column:nth-child(1) img {
  object-position: 44% center;
}

.benefit-image-column:nth-child(2) img {
  object-position: 50% center;
}

.benefit-image-column:nth-child(3) img {
  object-position: 54% center;
}

.benefit-image-column:nth-child(4) img {
  object-position: 58% center;
}

.scroll-benefit-card {
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc((100% - 36px) / 4);
  min-height: 0;
  padding: clamp(16px, 1.8vw, 24px);
  overflow: hidden;
  background: rgba(255, 250, 241, 0.92);
  border: 1px solid rgba(37, 37, 31, 0.13);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: none;
  opacity: 0;
  transform: translateY(28px);
  pointer-events: auto;
  backdrop-filter: blur(10px);
  transition: opacity 360ms ease, transform 360ms ease, background 180ms ease, border-color 180ms ease;
}

.scroll-benefit-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-benefit-card.is-visible:hover {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(180, 111, 83, 0.48);
  transform: translateY(-4px);
}

.scroll-benefit-card:nth-of-type(1) {
  left: 0;
}

.scroll-benefit-card:nth-of-type(2) {
  left: calc((100% - 36px) / 4 + 12px);
}

.scroll-benefit-card:nth-of-type(3) {
  left: calc(((100% - 36px) / 4 + 12px) * 2);
}

.scroll-benefit-card:nth-of-type(4) {
  left: calc(((100% - 36px) / 4 + 12px) * 3);
}

.scroll-benefit-card .benefit-icon {
  width: clamp(58px, 6.6vw, 92px);
  height: clamp(58px, 6.6vw, 92px);
  margin-bottom: clamp(12px, 2vh, 20px);
}

.scroll-benefit-card h3 {
  max-width: 230px;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
}

.scroll-benefit-card p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: clamp(0.78rem, 0.92vw, 0.9rem);
  line-height: 1.38;
}

.scroll-benefit-card .benefit-number {
  right: 18px;
  bottom: 6px;
  font-size: clamp(3.6rem, 6vw, 5.6rem);
}

.more-link {
  position: relative;
  z-index: 70;
  border: 0;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 18px auto 0;
  color: var(--clay);
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 2.2rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.problem-scroll.is-more-control-fixed .more-link {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 120;
  margin: 0;
  transform: translateX(-50%);
}

.more-link:hover {
  transform: translateY(-2px);
  background: var(--white);
}

.problem-scroll.is-more-control-fixed .more-link:hover {
  transform: translateX(-50%) translateY(-2px);
}

@media (min-width: 768px) {
  .problem-sticky-panel .more-link {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 18px;
    z-index: 90;
    margin: 0;
    transform: translateX(-50%);
  }

  .problem-sticky-panel .more-link:hover {
    transform: translateX(-50%) translateY(-2px);
  }
}

.benefit-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(34px, 5vw, 68px) 0 var(--space-section);
}

.benefit-detail-grid[hidden] {
  display: none;
}

.benefit-detail-card {
  min-height: 290px;
  padding: 28px;
  background: rgba(255, 250, 241, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.benefit-detail-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--clay);
  font-weight: 700;
}

.benefit-detail-card p {
  color: var(--ink-soft);
}

.benefit-detail-card .detail-parent {
  margin: -8px 0 14px;
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.insight-carousel-shell {
  padding: 0 0 var(--space-section);
  scroll-margin-top: 64px;
}

.insight-carousel-shell[hidden] {
  display: none;
}

.insight-carousel {
  position: relative;
  overflow: hidden;
  height: clamp(560px, calc(100svh - 128px), 740px);
  min-height: 560px;
  border-radius: var(--radius);
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

.insight-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4.6vw, 58px);
  align-items: center;
  padding: clamp(28px, 4.4vw, 54px);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  isolation: isolate;
  transition: opacity 620ms ease, transform 720ms ease;
}

.insight-slide::before,
.insight-slide::after {
  content: "";
  position: absolute;
  inset: 0;
}

.insight-slide::before {
  z-index: -2;
  background-image: var(--slide-bg);
  background-position: center;
  background-size: cover;
}

.insight-slide::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 19, 16, 0.32), rgba(18, 19, 16, 0.04)),
    linear-gradient(0deg, rgba(18, 19, 16, 0.03), rgba(18, 19, 16, 0.03));
}

.insight-slide-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.03) contrast(1.02);
}

.insight-slide.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.insight-copy h3 {
  max-width: 620px;
  color: var(--white);
  font-size: clamp(1.9rem, 3vw, 3.2rem);
  line-height: 1.06;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.36);
}

.insight-copy p:not(.eyebrow) {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.94rem, 1.05vw, 1.02rem);
  line-height: 1.55;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.42);
}

.insight-copy-wide {
  grid-column: 1 / -1;
  align-self: end;
}

.insight-copy-wide h3 {
  max-width: 940px;
}

.insight-card-stack {
  display: grid;
  gap: clamp(10px, 1.4vw, 14px);
}

.insight-card-stack article,
.insight-process li,
.insight-note {
  padding: clamp(16px, 2vw, 22px);
  background: rgba(24, 25, 22, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.insight-card-stack span,
.insight-process span,
.insight-visual-grid span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #f0b89f;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.insight-card-stack h4,
.insight-process h4 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.08rem, 1.55vw, 1.38rem);
  line-height: 1.16;
}

.insight-card-stack p,
.insight-process p,
.insight-note {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.5;
}

.insight-process {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.insight-note {
  grid-column: 1 / span 3;
  margin: 0;
  font-weight: 700;
}

.insight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.insight-tags span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
}

.insight-visual-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.insight-visual-grid article {
  overflow: hidden;
  background: rgba(255, 250, 241, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.insight-visual-grid img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.insight-visual-grid span,
.insight-visual-grid h4 {
  margin-inline: 22px;
}

.insight-visual-grid span {
  margin-top: 22px;
  color: var(--clay);
}

.insight-visual-grid h4 {
  margin-top: 0;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
}

.insight-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.insight-carousel-dots button {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: rgba(37, 37, 31, 0.28);
  cursor: pointer;
}

.insight-carousel-dots button.is-active {
  background: var(--clay);
}

.contact-video-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--charcoal);
}

.contact-video,
.contact-video-overlay {
  position: absolute;
  inset: 0;
}

.contact-video {
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-video-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 19, 16, 0.86), rgba(18, 19, 16, 0.52)),
    linear-gradient(0deg, rgba(18, 19, 16, 0.24), rgba(18, 19, 16, 0.24));
}

.contact-video-section .contact-copy p,
.contact-video-section address,
.contact-video-section .form-note {
  color: rgba(255, 255, 255, 0.82);
}

.contact-video-section address a {
  color: #f0b89f;
}

.contact-video-section .contact-trust span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.contact-extra-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.contact-video-section .lead-form {
  color: var(--ink);
  background: rgba(247, 244, 237, 0.9);
  border-color: rgba(255, 255, 255, 0.34);
}

.contact-video-section .lead-form label,
.contact-video-section .lead-form .consent {
  color: var(--ink);
}

.contact-video-section .lead-form .form-note,
.contact-video-section .lead-form .consent span {
  color: var(--ink-soft);
}

.diagnostic-form {
  padding: clamp(24px, 4vw, 34px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.diagnostic-form h2 {
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 3.2vw, 2.45rem);
}

.diagnostic-step {
  display: none;
}

.diagnostic-step.is-active {
  display: block;
}

.diagnostic-step h3 {
  margin-bottom: 14px;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

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

.diagnostic-choice-grid button {
  min-height: 54px;
  border: 1px solid rgba(180, 111, 83, 0.28);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--ink);
  background: rgba(255, 250, 241, 0.86);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.diagnostic-choice-grid button:hover,
.diagnostic-choice-grid button.is-selected {
  transform: translateY(-1px);
  background: rgba(180, 111, 83, 0.14);
  border-color: rgba(180, 111, 83, 0.6);
}

.currency-field {
  position: relative;
}

.currency-field input {
  padding-right: 48px;
}

.currency-field span {
  position: absolute;
  top: 50%;
  right: 16px;
  color: var(--ink-soft);
  font-weight: 700;
  transform: translateY(-50%);
}

.diagnostic-next {
  margin-top: 10px;
}

.diagnostic-form .form-status {
  margin-top: 16px;
}

.diagnostic-email-result {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.diagnostic-email-result[hidden] {
  display: none;
}

.diagnostic-email-result p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.diagnostic-email-result textarea {
  min-height: 260px;
  color: var(--ink);
  background: rgba(255, 250, 241, 0.92);
}

.page-hero {
  position: relative;
  min-height: 74svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
  isolation: isolate;
}

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

.page-hero-media {
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 17, 14, 0.88), rgba(16, 17, 14, 0.48)),
    linear-gradient(0deg, rgba(16, 17, 14, 0.54), rgba(16, 17, 14, 0.1));
}

.page-hero-content {
  padding: clamp(120px, 18vh, 190px) 0 clamp(70px, 10vh, 110px);
}

.page-hero-content h1 {
  max-width: 980px;
  font-size: clamp(2.8rem, 7vw, 6rem);
}

.page-hero-content p:not(.eyebrow) {
  max-width: 760px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.08rem, 2.1vw, 1.36rem);
}

.focus-section,
.portfolio-section,
.project-detail-section {
  padding: var(--space-section) 0;
}

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

.focus-card,
.portfolio-card,
.project-panel {
  background: rgba(255, 250, 241, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.focus-card {
  min-height: 340px;
  padding: 28px;
}

.focus-card span,
.portfolio-card span,
.project-panel span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--clay);
  font-weight: 700;
}

.focus-card p,
.portfolio-card p,
.project-panel p {
  color: var(--ink-soft);
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -18px 0 32px;
}

.portfolio-filters span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(255, 250, 241, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.portfolio-card {
  overflow: hidden;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.portfolio-card div {
  padding: 22px;
}

.portfolio-card h3 {
  color: var(--ink);
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 6vw, 74px);
  align-items: start;
}

.project-panel {
  padding: 28px;
}

.project-facts {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.project-facts li {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.project-facts strong {
  display: block;
  color: var(--ink);
}

.project-gallery {
  display: grid;
  gap: 18px;
}

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

.project-gallery figure {
  margin: 0;
  overflow: hidden;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.project-gallery img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.project-gallery figcaption {
  padding: 12px 14px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.projects-page {
  background: var(--paper);
}

.projects-hero,
.project-detail-hero {
  padding: clamp(124px, 16vw, 190px) 0 clamp(54px, 8vw, 92px);
  background:
    linear-gradient(90deg, rgba(247, 244, 237, 0.94), rgba(247, 244, 237, 0.74)),
    url("../img/detalle-interiorismo.webp") center / cover no-repeat;
}

.projects-hero h1,
.project-detail-hero h1 {
  max-width: 980px;
  font-size: clamp(2.8rem, 7vw, 6rem);
}

.projects-hero p:not(.eyebrow),
.project-detail-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.projects-filters {
  position: sticky;
  top: 72px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(100% - 32px, var(--container));
  margin: -26px auto 0;
  padding: 14px;
  background: rgba(247, 244, 237, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.projects-filters button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--ink);
  background: rgba(255, 250, 241, 0.72);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.projects-filters button:hover,
.projects-filters button.is-active {
  color: var(--white);
  background: var(--clay);
  border-color: var(--clay);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: min(100% - 32px, var(--container));
  margin: clamp(34px, 5vw, 70px) auto var(--space-section);
}

.projects-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-soft);
}

.project-card {
  overflow: hidden;
  color: inherit;
  background: rgba(255, 250, 241, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(180, 111, 83, 0.45);
  box-shadow: var(--shadow);
}

.project-card-thumb {
  overflow: hidden;
}

.project-card-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 260ms ease;
}

.project-card:hover .project-card-thumb img {
  transform: scale(1.04);
}

.project-card-body {
  padding: 22px;
}

.project-card-category {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 700;
}

.project-card p {
  color: var(--ink-soft);
}

.project-detail-back {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--clay);
  font-weight: 700;
  text-decoration: none;
}

.project-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.project-detail-meta span {
  display: inline-flex;
  padding: 8px 12px;
  background: rgba(255, 250, 241, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
}

.project-section {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
  padding: clamp(44px, 7vw, 84px) 0;
}

.project-section + .project-section {
  border-top: 1px solid var(--line);
}

.project-section h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.project-section p {
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.project-before-after,
.projects-page .project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-before-after figure {
  margin: 0;
  overflow: hidden;
  background: rgba(255, 250, 241, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.project-before-after img,
.projects-page .project-gallery img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.project-before-after figcaption {
  padding: 12px 14px;
  color: var(--ink-soft);
}

.projects-page .project-gallery img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.projects-page .cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(72px, 9vw, 118px) 0;
  background: var(--charcoal);
}

.cta-video,
.cta-overlay {
  position: absolute;
  inset: 0;
}

.cta-video {
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-overlay {
  z-index: -1;
  background: linear-gradient(90deg, rgba(18, 19, 16, 0.86), rgba(18, 19, 16, 0.48));
}

@media (max-height: 830px) and (min-width: 981px) {
  .hero-with-services .hero-content {
    padding-top: 82px;
    padding-bottom: 220px;
  }

  .hero-with-services h1 {
    font-size: clamp(2.45rem, 4.45vw, 3.85rem);
  }

  .hero-text {
    max-width: 720px;
    margin-top: 16px;
    font-size: 0.98rem;
    line-height: 1.48;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-service-grid {
    bottom: 12px;
    gap: 12px;
  }

  .hero-service-card {
    min-height: 170px;
    padding: 16px;
  }

  .hero-service-card span {
    margin-bottom: 10px;
  }

  .hero-service-card h2 {
    font-size: 1.03rem;
  }

  .hero-service-card p {
    margin: 9px 0 12px;
    font-size: 0.82rem;
    line-height: 1.34;
  }

  .hero-service-card a {
    font-size: 0.84rem;
  }

  .problem-sticky-panel {
    padding-top: 0;
    padding-bottom: 0;
  }

  .problem-heading {
    margin-bottom: 8px;
  }

  .problem-heading h2 {
    font-size: clamp(2rem, 3.65vw, 3.08rem);
  }

  .problem-grid-main .problem-card {
    min-height: 132px;
    padding: 15px 16px;
  }

  .problem-grid-main .problem-card span:first-child {
    margin-bottom: 10px;
  }

  .problem-grid-main .problem-card h3 {
    font-size: 1rem;
  }

  .problem-grid-main .problem-card p {
    font-size: 0.8rem;
    line-height: 1.36;
  }

  .problem-kicker {
    margin-bottom: 6px;
    font-size: 0.86rem;
  }

  .solution-bar {
    margin-top: 9px;
    padding: 7px 22px;
    font-size: 0.88rem;
  }

  .benefit-image-column {
    height: 248px;
  }

  .scroll-benefit-card {
    top: 0;
    bottom: 0;
    padding: 16px;
  }

  .scroll-benefit-card .benefit-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 8px;
  }

  .scroll-benefit-card h3 {
    font-size: 1.02rem;
  }

  .scroll-benefit-card p {
    margin-top: 8px;
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .scroll-benefit-card .benefit-number {
    font-size: 3.45rem;
  }

  .more-link {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 8px;
    width: 48px;
    height: 48px;
    font-size: 1.9rem;
    transform: translateX(-50%);
  }

  .more-link:hover {
    transform: translateX(-50%) translateY(-2px);
  }

  .insight-carousel {
    height: calc(100svh - 128px);
    min-height: 540px;
  }

  .insight-slide {
    gap: 32px;
    padding: 30px 42px;
  }

  .insight-copy h3 {
    font-size: clamp(1.72rem, 2.65vw, 2.72rem);
  }

  .insight-copy p:not(.eyebrow),
  .insight-card-stack p,
  .insight-process p,
  .insight-note {
    font-size: 0.88rem;
    line-height: 1.42;
  }

  .insight-card-stack article,
  .insight-process li,
  .insight-note {
    padding: 14px 18px;
  }

  .insight-card-stack h4,
  .insight-process h4 {
    font-size: 1.06rem;
  }

  .insight-card-stack span,
  .insight-process span,
  .insight-visual-grid span {
    margin-bottom: 7px;
  }

  .insight-tags {
    margin-top: 18px;
  }
}

@media (max-width: 1180px) {
  .hero-service-grid,
  .problem-grid-main,
  .benefit-image-stack,
  .focus-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-with-services {
    min-height: 1120px;
  }

  .hero-with-services .hero-content {
    padding-bottom: 520px;
  }

  .scroll-benefit-card {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto !important;
    width: auto;
    min-height: 300px;
    opacity: 1;
    transform: none;
  }

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

  .insight-slide {
    grid-template-columns: 1fr;
    align-items: start;
    overflow-y: auto;
  }

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

@media (max-width: 767px) {
  .hero-service-grid,
  .problem-grid-main,
  .benefit-image-stack,
  .focus-grid,
  .portfolio-grid,
  .project-layout,
  .project-gallery-pair {
    grid-template-columns: 1fr;
  }

  .hero-with-services {
    min-height: auto;
  }

  .hero-service-grid {
    position: relative;
    bottom: auto;
    padding-bottom: 24px;
  }

  .hero-with-services .hero-content {
    padding: 112px 0 38px;
  }

  .problem-scroll-track {
    min-height: auto;
  }

  .problem-sticky-panel {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 76px 0 46px;
  }

  .solution-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .benefit-image-column {
    height: 260px;
  }

  .scroll-benefit-card {
    min-height: auto;
  }

  .diagnostic-choice-grid,
  .benefit-detail-grid,
  .projects-grid,
  .project-before-after,
  .projects-page .project-gallery,
  .insight-process,
  .insight-visual-grid {
    grid-template-columns: 1fr;
  }

  .insight-carousel {
    height: 820px;
    min-height: 820px;
  }

  .insight-slide {
    padding: 24px;
  }

  .insight-copy h3 {
    font-size: clamp(1.9rem, 9vw, 2.85rem);
  }

  .insight-note {
    grid-column: auto;
  }

  .problem-scroll.is-more-control-fixed .more-link {
    bottom: 92px;
  }

  .projects-filters {
    position: relative;
    top: auto;
  }

  .page-hero {
    min-height: 680px;
  }
}
